.zpcb2-root {
  --bg-1: #f7f9fc;
  --bg-2: #eef3f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --line: rgba(16, 24, 40, 0.08);
  --line-strong: rgba(16, 24, 40, 0.14);
  --text: #18202b;
  --muted: #667286;
  --muted-2: #8791a2;
  --accent: #1d4ed8;
  --accent-dark: #173ea8;
  --accent-blue: #66a7ff;
  --accent-blue-2: #3f7ee8;
  --price: #f44a01;
  --danger: #d92d20;
  --ok-bg: #ebf7ef;
  --ok-text: #2d6d47;
  --warn-bg: #fff1ef;
  --warn-text: #b14f45;
  color: var(--text);
  font-family: inherit;
  background:
    radial-gradient(circle at top left, rgba(99, 142, 255, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  padding: 16px 0;
}

.zpcb2-root * {
  box-sizing: border-box;
}

.zpcb2-shell {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.zpcb2-main,
.zpcb2-summary {
  min-width: 0;
}

.zpcb2-hero,
.zpcb2-section,
.zpcb2-summary-card,
.zpcb2-compat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(14, 30, 62, 0.06);
}

.zpcb2-hero {
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(83, 142, 255, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(102, 167, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #ffffff, #f7fbff);
  border-color: var(--line);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.zpcb2-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 120px), rgba(61, 121, 236, 0.08) calc(100% - 120px), rgba(61, 121, 236, 0.08) calc(100% - 119px), transparent calc(100% - 119px)),
    linear-gradient(180deg, transparent 0, transparent 26px, rgba(61, 121, 236, 0.05) 26px, rgba(61, 121, 236, 0.05) 27px, transparent 27px);
  pointer-events: none;
}

.zpcb2-title {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.zpcb2-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.zpcb2-hero-total {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5f8fc;
  border: 1px solid #dfe8f5;
  white-space: nowrap;
}

.zpcb2-hero-total-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.zpcb2-hero-total strong {
  font-size: 15px;
  color: var(--price);
  font-weight: 800;
}

.zpcb2-subtitle {
  margin: 10px 0 0;
  max-width: 820px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.zpcb2-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.zpcb2-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5f8fc;
  border: 1px solid #dfe8f5;
  color: var(--muted);
  font-size: 12px;
}

.zpcb2-meta strong {
  color: var(--text);
  font-weight: 700;
}

.zpcb2-section {
  margin-top: 16px;
  overflow: hidden;
}

.zpcb2-section-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.zpcb2-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.zpcb2-section-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.zpcb2-list {
  display: grid;
}

.zpcb2-slot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.zpcb2-slot:last-child {
  border-bottom: 0;
}

.zpcb2-slot:hover {
  background: rgba(255, 255, 255, 0.025);
}

.zpcb2-slot.is-pulse::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(125, 178, 255, 0.5);
  animation: zpcb2Pulse 0.58s ease-out;
  pointer-events: none;
}

@keyframes zpcb2Pulse {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

.zpcb2-slot-copy {
  min-width: 0;
}

.zpcb2-slot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.zpcb2-slot-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.zpcb2-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f4f7fb;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zpcb2-slot-hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-2);
}

.zpcb2-choice {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.zpcb2-choice-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.zpcb2-choice-name {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.zpcb2-choice-head {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  justify-content: space-between;
}

.zpcb2-choice-link {
  color: inherit;
  text-decoration: none;
}

.zpcb2-choice-link:hover .zpcb2-choice-name {
  color: var(--accent);
}

.zpcb2-choice-image-wrap {
  display: block;
}

.zpcb2-choice-meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.zpcb2-cost-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.zpcb2-cost-line strong {
  color: var(--text);
  font-weight: 800;
}

.zpcb2-cost-missing-editor {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.zpcb2-cost-missing-editor span,
.zpcb2-product-warning {
  font-size: 10.5px;
  color: var(--warn-text);
  font-weight: 700;
}

.zpcb2-cost-missing-editor input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(177, 79, 69, 0.28);
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  color: var(--text);
}

.zpcb2-cost-missing-editor input:focus {
  outline: none;
  border-color: rgba(177, 79, 69, 0.65);
  box-shadow: 0 0 0 3px rgba(177, 79, 69, 0.12);
}

.zpcb2-cost-sep {
  color: var(--muted-2);
}

.zpcb2-choice-footer {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.zpcb2-choice-action-group,
.zpcb2-slot-empty-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.zpcb2-choice-action-group {
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
}

.zpcb2-choice-action-group-compact {
  flex-wrap: nowrap;
}

.zpcb2-choice-action-group-external {
  margin-left: 0;
  justify-content: flex-start;
}

.zpcb2-slot-empty-actions .zpcb2-btn-secondary {
  background: #56575c;
  border-color: #56575c;
  color: #ffffff;
}

.zpcb2-slot-empty-actions .zpcb2-btn-secondary:hover,
.zpcb2-slot-empty-actions .zpcb2-btn-secondary:focus-visible {
  background: #4b4c50;
  border-color: #4b4c50;
  color: #ffffff;
}

.zpcb2-choice-action-group .zpcb2-btn-secondary {
  background: #56575c;
  border-color: #56575c;
  color: #ffffff;
  box-shadow: none;
}

.zpcb2-choice-action-group .zpcb2-btn-secondary:hover,
.zpcb2-choice-action-group .zpcb2-btn-secondary:focus-visible {
  background: #4b4c50;
  border-color: #4b4c50;
  color: #ffffff;
}

.zpcb2-choice-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--price);
}

.zpcb2-choice-remove {
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted) !important;
  font-size: 18px !important;
  line-height: 1;
  width: 22px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  min-height: 22px !important;
  border-radius: 0 !important;
}

.zpcb2-choice-remove:hover {
  color: var(--danger) !important;
  transform: none !important;
}

.zpcb2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.zpcb2-btn {
  appearance: none;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.zpcb2-btn:hover {
  transform: translateY(-1px);
  background: #f8fbff;
}

.zpcb2-btn-inline {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 10px;
  font-size: 10.5px;
  white-space: nowrap;
  box-shadow: none;
  margin-left: auto;
}

.zpcb2-choice-action-group .zpcb2-btn-inline {
  margin-left: 0;
  min-width: 92px;
}

.zpcb2-btn-primary {
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-blue-2));
  border-color: transparent;
  color: #f8fbff;
  box-shadow: 0 8px 22px rgba(77, 127, 224, 0.22);
}

.zpcb2-btn-primary:hover {
  box-shadow: 0 10px 24px rgba(77, 127, 224, 0.28);
}

.zpcb2-btn-testpdf {
  background: #ffffff;
  border-color: rgba(244, 74, 1, 0.28);
  color: var(--price);
}

.zpcb2-btn-testpdf:hover {
  background: #fff7f2;
  border-color: rgba(244, 74, 1, 0.44);
}

.zpcb2-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.zpcb2-summary {
  position: sticky;
  top: 16px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.zpcb2-summary-card,
.zpcb2-compat-card {
  padding: 14px;
  background: #ffffff;
}

.zpcb2-summary-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.zpcb2-summary-total {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.zpcb2-summary-total-inline {
  font-size: 16px;
  margin-top: 4px;
}

.zpcb2-summary-total-quoted {
  color: var(--price);
}

.zpcb2-admin-summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #0f1115;
}

.zpcb2-admin-summary-item {
  min-width: 0;
}

.zpcb2-admin-summary-strip .zpcb2-summary-label {
  color: rgba(255,255,255,0.68);
}

.zpcb2-admin-summary-strip .zpcb2-summary-total {
  color: #ffffff;
}

.zpcb2-admin-summary-strip .zpcb2-summary-total-quoted {
  color: #17a34a;
}

.zpcb2-summary-meta,
.zpcb2-summary-muted {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}

.zpcb2-summary-savings {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 20px;
}

.zpcb2-footer {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 3;
}

.zpcb2-billing-box {
  display: grid;
  gap: 6px;
}

.zpcb2-billing-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zpcb2-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.zpcb2-billing-toggle input {
  margin: 0;
}

.zpcb2-billing-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fbfdff;
}

.zpcb2-billing-field {
  display: grid;
  gap: 5px;
}

.zpcb2-billing-field-full {
  grid-column: 1 / -1;
}

.zpcb2-billing-field span {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text);
}

.zpcb2-billing-field input {
  width: 100%;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #d8e3f2;
  background: #ffffff;
  border-radius: 6px;
  box-sizing: border-box;
  font: inherit;
  color: var(--text);
}

.zpcb2-billing-field select {
  width: 100%;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #d8e3f2;
  background: #ffffff;
  border-radius: 6px;
  box-sizing: border-box;
  font: inherit;
  color: var(--text);
}

.zpcb2-billing-field input:focus {
  outline: none;
  border-color: rgba(125, 178, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(125, 178, 255, 0.12);
}

.zpcb2-billing-field select:focus {
  outline: none;
  border-color: rgba(125, 178, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(125, 178, 255, 0.12);
}

.zpcb2-billing-field.is-invalid input,
.zpcb2-billing-field.is-invalid select {
  border-color: #d92d20;
  box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.08);
}

.zpcb2-field-error,
.zpcb2-billing-error,
.zpcb2-pdf-error {
  display: block;
  color: #d92d20;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.zpcb2-billing-error {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.zpcb2-pdf-error {
  margin-top: 4px;
}

.zpcb2-billing-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.zpcb2-billing-edit {
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: #d92d20 !important;
  font-size: 10px;
  font-weight: 700;
  padding: 0 !important;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 0 0 auto;
}

.zpcb2-billing-edit:hover,
.zpcb2-billing-edit:focus-visible {
  color: #b42318;
  text-decoration: underline;
}

.zpcb2-footer .zpcb2-btn {
  width: 100%;
  position: relative;
  z-index: 4;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.zpcb2-admin-toggle-wrap {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(29, 78, 216, 0.08);
  background: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.zpcb2-admin-toggle-wrap.is-pulse {
  box-shadow: 0 0 0 4px rgba(102, 167, 255, 0.14);
  border-color: rgba(102, 167, 255, 0.45);
}

.zpcb2-admin-toggle-copy {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.zpcb2-admin-switch {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.zpcb2-admin-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.zpcb2-admin-switch-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.zpcb2-mode-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.zpcb2-mode-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(29, 78, 216, 0.14);
  border-top-color: var(--accent-blue);
  animation: zpcb2Spin 0.7s linear infinite;
}

@keyframes zpcb2Spin {
  to {
    transform: rotate(360deg);
  }
}

.zpcb2-admin-switch-track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: #dbe7fb;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.1);
  transition: background 0.2s ease;
}

.zpcb2-admin-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.18);
  transition: transform 0.22s ease;
}

.zpcb2-admin-switch input:checked + .zpcb2-admin-switch-track {
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-blue-2));
}

.zpcb2-admin-switch input:checked + .zpcb2-admin-switch-track .zpcb2-admin-switch-thumb {
  transform: translateX(24px);
}

.zpcb2-admin-metrics {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.zpcb2-admin-calc {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(29, 78, 216, 0.08);
  background: #fbfdff;
}

.zpcb2-admin-calc-head {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.zpcb2-cost-warning {
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid rgba(177, 79, 69, 0.18);
  background: #fff7f5;
  border-radius: 10px;
}

.zpcb2-cost-warning-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--warn-text);
}

.zpcb2-cost-warning-copy {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.zpcb2-cost-warning-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.zpcb2-cost-warning-item {
  display: grid;
  gap: 5px;
}

.zpcb2-cost-warning-item span {
  font-size: 10px;
  color: var(--text);
  font-weight: 700;
}

.zpcb2-cost-warning-item input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  color: var(--text);
}

.zpcb2-cost-warning-item input:focus {
  outline: none;
  border-color: rgba(125, 178, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(125, 178, 255, 0.12);
}

.zpcb2-admin-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #ffffff;
}

.zpcb2-admin-metric span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.zpcb2-admin-metric strong {
  font-size: 12px;
  color: var(--text);
  font-weight: 800;
}

.zpcb2-admin-metric:first-child span,
.zpcb2-admin-metric:first-child strong {
  color: #d92d20;
}

.zpcb2-admin-metric:nth-last-child(2) span,
.zpcb2-admin-metric:nth-last-child(2) strong {
  color: #17a34a;
}

.zpcb2-admin-metric-input {
  display: block;
}

.zpcb2-admin-metric-input input {
  width: 100%;
  min-height: 34px;
  margin-top: 6px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 0;
  border: 1px solid #d8e3f2;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.zpcb2-drawer-compact {
  width: min(560px, 100%);
}

.zpcb2-external-form {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.zpcb2-external-field {
  display: grid;
  gap: 6px;
}

.zpcb2-external-field span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.zpcb2-external-field input,
.zpcb2-external-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  box-sizing: border-box;
}

.zpcb2-external-field textarea {
  min-height: 108px;
  resize: vertical;
}

.zpcb2-external-field input:focus,
.zpcb2-external-field textarea:focus {
  outline: none;
  border-color: rgba(125, 178, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(125, 178, 255, 0.12);
}

.zpcb2-external-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.zpcb2-admin-metric-input input:focus {
  outline: none;
  border-color: rgba(125, 178, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(125, 178, 255, 0.12);
}

.zpcb2-compat-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zpcb2-compat-status.is-good {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.zpcb2-compat-status.is-warning {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.zpcb2-issues {
  margin: 12px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--warn-text);
}

.zpcb2-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(6, 9, 13, 0.72);
}

.zpcb2-modal.is-open {
  display: flex;
}

.zpcb2-drawer {
  width: min(840px, 100%);
  height: 100%;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: -14px 0 36px rgba(10, 26, 52, 0.12);
  animation: zpcb2SlideIn 0.28s ease-out;
}

@keyframes zpcb2SlideIn {
  from {
    transform: translateX(36px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.zpcb2-drawer-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.zpcb2-drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.zpcb2-drawer-subtitle {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.zpcb2-searchbar {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.zpcb2-searchbar input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
}

.zpcb2-searchbar input:focus {
  outline: none;
  border-color: rgba(125, 178, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(125, 178, 255, 0.12);
}

.zpcb2-picker-grid {
  padding: 14px 18px 18px;
  overflow: auto;
  display: grid;
  gap: 12px;
}

.zpcb2-product-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.zpcb2-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 178, 255, 0.35);
  background: #fbfdff;
}

.zpcb2-product-image {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.zpcb2-product-copy {
  min-width: 0;
}

.zpcb2-product-link {
  color: inherit;
  text-decoration: none;
}

.zpcb2-product-link:hover .zpcb2-product-name,
.zpcb2-product-link:focus-visible .zpcb2-product-name {
  color: var(--accent);
}

.zpcb2-product-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.zpcb2-product-name {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.zpcb2-product-sku {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--muted);
}

.zpcb2-discount {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--danger);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.zpcb2-price-stack {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.zpcb2-price-regular {
  color: #111111;
  font-size: 11px;
  text-decoration: line-through;
  text-decoration-color: #111111;
}

.zpcb2-product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--price);
}

.zpcb2-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.zpcb2-loading,
.zpcb2-empty {
  padding: 42px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .zpcb2-shell {
    grid-template-columns: 1fr;
  }

  .zpcb2-summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 760px) {
  .zpcb2-root {
    padding: 8px 0;
  }

  .zpcb2-shell {
    gap: 12px;
  }

  .zpcb2-hero,
  .zpcb2-summary-card,
  .zpcb2-compat-card {
    border-radius: 12px;
    padding: 12px;
  }

  .zpcb2-title {
    font-size: clamp(24px, 8vw, 34px);
  }

  .zpcb2-hero-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .zpcb2-hero-total {
    width: 100%;
    justify-content: space-between;
    padding: 7px 10px;
  }

  .zpcb2-summary-total {
    font-size: 19px;
  }

  .zpcb2-summary-savings {
    gap: 6px;
    margin-top: 6px;
  }

  .zpcb2-admin-calc {
    padding: 9px;
    border-radius: 10px;
  }

  .zpcb2-admin-metric {
    padding: 8px 9px;
  }

  .zpcb2-admin-toggle {
    font-size: 11px;
  }

  .zpcb2-admin-toggle-wrap {
    padding: 9px 10px;
  }

  .zpcb2-admin-switch {
    gap: 8px;
  }

  .zpcb2-admin-switch-label {
    font-size: 10px;
  }

  .zpcb2-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .zpcb2-meta span {
    width: auto;
    font-size: 11px;
    padding: 7px 8px;
    min-width: 0;
  }

  .zpcb2-slot {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .zpcb2-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .zpcb2-actions .zpcb2-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }

  .zpcb2-choice {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
  }

  .zpcb2-choice-image {
    width: 50px;
    height: 50px;
  }

  .zpcb2-drawer {
    width: 100%;
    border-left: 0;
  }

  .zpcb2-drawer-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .zpcb2-picker-grid {
    padding: 10px;
    gap: 8px;
  }

  .zpcb2-product-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .zpcb2-product-image {
    width: 54px;
    height: 54px;
    border-radius: 10px;
  }

  .zpcb2-product-head {
    gap: 6px;
  }

  .zpcb2-product-sku {
    display: none;
  }

  .zpcb2-product-name {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .zpcb2-price-stack {
    margin-top: 5px;
    gap: 6px;
  }

  .zpcb2-price-regular {
    font-size: 10px;
  }

  .zpcb2-product-price,
  .zpcb2-choice-price {
    font-size: 13px;
  }

  .zpcb2-choice {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .zpcb2-admin-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .zpcb2-summary-total-inline {
    font-size: 13px;
  }

  .zpcb2-choice-image {
    width: 56px;
    height: 56px;
  }

  .zpcb2-choice-footer {
    gap: 6px;
  }

  .zpcb2-cost-line {
    font-size: 10.5px;
    gap: 3px;
  }

  .zpcb2-btn-inline {
    min-height: 28px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .zpcb2-choice-remove {
    width: 18px;
    height: 18px;
    min-height: 18px !important;
    font-size: 16px !important;
  }

  .zpcb2-product-actions {
    width: 100%;
    margin-top: 8px;
  }

  .zpcb2-product-actions .zpcb2-btn {
    flex: 1 1 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }

  .zpcb2-choice-action-group,
  .zpcb2-slot-empty-actions,
  .zpcb2-external-actions {
    width: 100%;
  }

  .zpcb2-choice-action-group .zpcb2-btn,
  .zpcb2-external-actions .zpcb2-btn {
    flex: 1 1 100%;
  }

  .zpcb2-choice-action-group-compact .zpcb2-btn {
    flex: 1 1 50%;
    min-width: 0;
  }

  .zpcb2-slot-empty-actions {
    flex-wrap: nowrap;
  }

  .zpcb2-slot-empty-actions .zpcb2-btn {
    flex: 1 1 50%;
    min-width: 0;
  }
}
