/* ========================= CASA DOLCE CHECKOUT SHELL =========================
   Mobile-first. Layout limpo focado em conversão. SEM overflow horizontal.
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cd-bg: #f7f8fc;
  --cd-surface: #ffffff;
  --cd-surface-soft: #f6f7fb;
  --cd-border: #e6e9f0;
  --cd-border-strong: #cdd2dc;
  --cd-text: #1b2030;
  --cd-text-soft: #4a5168;
  --cd-muted: #7c8499;
  --cd-brand: #0e1116;
  --cd-brand-fg: #ffffff;
  --cd-accent: #b87333;
  --cd-accent-soft: #f6e7d8;
  --cd-success: #1f9d6b;
  --cd-success-soft: #e3f7ec;
  --cd-warning: #d97706;
  --cd-warning-soft: #fef3e0;
  --cd-danger: #d8413a;
  --cd-danger-soft: #fde7e6;
  --cd-bump: #fff7ed;
  --cd-bump-border: #f59e0b;
  --cd-bump-strong: #b45309;
  --cd-shadow-sm: 0 1px 0 rgba(15, 23, 42, 0.04);
  --cd-shadow-md: 0 2px 6px rgba(15, 23, 42, 0.05);
  --cd-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.10);
  --cd-radius: 5px;
  --cd-radius-sm: 4px;
  --cd-gap: 14px;
  --cd-gap-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cd-bg);
  color: var(--cd-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-weight: 600; line-height: 1.25; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

/* hide originals from old shopify-like markup */
body > #app { display: none; }

/* ============= SHELL ============= */
.cd-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--cd-bg);
  display: block;
  min-height: 100vh;
}

/* ============= TOP BANNER ============= */
.cd-banner {
  width: 100%;
  padding: 9px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  background: var(--cd-warning-soft);
  color: var(--cd-warning);
  letter-spacing: 0.005em;
}
.cd-banner strong { font-weight: 700; }

/* ============= HEADER ============= */
.cd-header {
  background: var(--cd-surface);
  border-bottom: 1px solid var(--cd-border);
  padding: 18px 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.cd-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
}
.cd-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--cd-text); line-height: 1; text-decoration: none; }
.cd-logo img { display: block; max-height: 44px; width: auto; object-fit: contain; }
.cd-logo-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; line-height: 1; }

.cd-header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* logo centralizada (modo opcional) */
.cd-header.is-logo-center .cd-header-inner { position: relative; justify-content: center; }
.cd-header.is-logo-center .cd-logo { margin: 0 auto; }
.cd-header.is-logo-center .cd-header-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}
.cd-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  background: var(--cd-success-soft);
  color: var(--cd-success);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.cd-cart-link {
  width: 38px; height: 38px;
  border-radius: var(--cd-radius);
  border: 1px solid var(--cd-border);
  display: grid; place-items: center;
  color: var(--cd-text);
  background: var(--cd-surface);
}
.cd-cart-link svg { width: 18px; height: 18px; }

/* ============= FREE SHIPPING BAR ============= */
.cd-shipbar {
  background: var(--cd-surface);
  border-bottom: 1px solid var(--cd-border);
  padding: 10px 14px;
  font-size: 12.5px;
  text-align: center;
  color: var(--cd-text-soft);
}
.cd-shipbar.is-done { background: var(--cd-success-soft); color: var(--cd-success); font-weight: 600; }
.cd-shipbar-amount { color: var(--cd-accent); font-weight: 700; }
.cd-shipbar-track {
  height: 4px;
  border-radius: 999px;
  background: var(--cd-border);
  margin: 8px auto 0;
  overflow: hidden;
  max-width: 420px;
}
.cd-shipbar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cd-accent), #d4a373);
  border-radius: 999px;
  transition: width 240ms ease;
}
.cd-shipbar.is-done .cd-shipbar-fill { background: var(--cd-success); width: 100% !important; }

/* ============= MAIN GRID ============= */
.cd-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 14px 8px;
  display: grid;
  gap: 14px;
}

@media (min-width: 920px) {
  .cd-main {
    grid-template-columns: 360px 1fr;
    gap: 28px;
    padding: 28px 24px 12px;
    align-items: start;
  }
  .cd-summary-col { position: sticky; top: 96px; order: 1; }
  .cd-form-col { order: 2; min-width: 0; }
}

/* ============= MOBILE SUMMARY (collapsable) ============= */
.cd-summary-mobile {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  box-shadow: none;
  overflow: hidden;
}
.cd-summary-mobile-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cd-surface-soft);
  border: none;
  padding: 14px 18px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  gap: 10px;
}
.cd-summary-mobile-toggle:hover { background: #eef0f7; }
.cd-summary-mobile-toggle .label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cd-summary-mobile-toggle .label .cd-cart-icon { flex: 0 0 18px; color: var(--cd-text-soft); }
.cd-summary-mobile-toggle .label-stack { display: flex; flex-direction: column; min-width: 0; }
.cd-summary-mobile-toggle .label-title { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--cd-text); }
.cd-summary-mobile-toggle .label-cta { font-size: 12px; line-height: 1.3; color: var(--cd-muted); margin-top: 1px; }
.cd-summary-mobile-toggle-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.cd-summary-mobile-toggle .total { font-weight: 800; font-size: 18px; color: var(--cd-text); }
.cd-summary-mobile-toggle .chevron-badge {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  display: grid;
  place-items: center;
  color: var(--cd-text);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), background 200ms ease;
  animation: cd-chev-pulse 2.6s ease-in-out infinite;
}
.cd-summary-mobile-toggle:hover .chevron-badge { background: var(--cd-brand); color: var(--cd-brand-fg); border-color: var(--cd-brand); }
.cd-summary-mobile.is-open .cd-summary-mobile-toggle .chevron-badge { transform: rotate(180deg); animation: none; }
.cd-summary-mobile.is-open .cd-summary-mobile-toggle { background: var(--cd-surface); }
.cd-summary-mobile.is-open .cd-summary-mobile-toggle .label-cta { color: var(--cd-text-soft); }
@keyframes cd-chev-pulse {
  0%, 88%, 100% { transform: translateY(0); }
  92% { transform: translateY(2px); }
  96% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cd-summary-mobile-toggle .chevron-badge { animation: none; }
}

.cd-summary-mobile-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cd-summary-mobile-body > .cd-summary-mobile-inner {
  overflow: hidden;
  min-height: 0;
}
.cd-summary-mobile-inner-pad {
  padding: 14px;
  border-top: 1px solid var(--cd-border);
}
.cd-summary-mobile.is-open .cd-summary-mobile-body { grid-template-rows: 1fr; }

.cd-summary-mobile-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--cd-border);
}
.cd-summary-mobile.is-open .cd-summary-mobile-preview { display: none; }
.cd-summary-mobile-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cd-summary-mobile-preview-thumb {
  position: relative;
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: var(--cd-radius-sm);
  border: 1px solid var(--cd-border);
  background: var(--cd-surface-soft);
}
.cd-summary-mobile-preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.cd-summary-mobile-preview-thumb .qty {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--cd-brand);
  color: var(--cd-brand-fg);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: grid; place-items: center;
  padding: 0 5px;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--cd-surface);
}
.cd-summary-mobile-preview-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--cd-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

@media (min-width: 920px) { .cd-summary-mobile { display: none; } }

/* ============= DESKTOP SUMMARY ============= */
.cd-summary {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: 20px;
  box-shadow: none;
}
@media (max-width: 919px) { .cd-summary-col .cd-summary { display: none; } }

.cd-summary h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cd-muted);
}
.cd-summary-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px 10px 0;
  margin: 0 -10px;
}
.cd-summary-item { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.cd-summary-thumb {
  position: relative;
  width: 56px; height: 56px;
  border-radius: var(--cd-radius-sm);
  border: 1px solid var(--cd-border);
  background: var(--cd-surface-soft);
  flex: 0 0 56px;
}
.cd-summary-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.cd-summary-thumb .qty {
  position: absolute;
  top: -7px; right: -7px;
  background: var(--cd-brand);
  color: var(--cd-brand-fg);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: grid; place-items: center;
  padding: 0 6px;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--cd-surface);
}
.cd-summary-name { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.35; word-wrap: break-word; font-weight: 500; }
.cd-summary-name small { display: block; color: var(--cd-muted); font-size: 12.5px; margin-top: 3px; font-weight: 400; }
.cd-summary-price { font-size: 14.5px; font-weight: 700; white-space: nowrap; flex: 0 0 auto; }

.cd-summary-sep { height: 1px; background: var(--cd-border); margin: 14px 0; }

.cd-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  padding: 6px 0;
  color: var(--cd-text-soft);
  gap: 8px;
}
.cd-summary-row strong { color: var(--cd-text); font-weight: 600; }
.cd-summary-row.is-discount strong { color: var(--cd-success); }

.cd-summary-total {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--cd-border);
  font-size: 20px;
  font-weight: 800;
}
.cd-summary-total small { font-size: 12px; color: var(--cd-muted); font-weight: 500; }

/* coupon */
.cd-coupon { margin-top: 12px; }
.cd-coupon-toggle {
  background: transparent;
  border: none;
  padding: 6px 0;
  color: var(--cd-text-soft);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  text-decoration: underline;
}
.cd-coupon-form { display: none; gap: 6px; margin-top: 6px; }
.cd-coupon.is-open .cd-coupon-form { display: flex; }
.cd-coupon-form input[type=text] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--cd-border-strong);
  background: var(--cd-surface);
  border-radius: var(--cd-radius-sm);
  padding: 8px 10px;
  font-size: 14px;
}
.cd-coupon-form button {
  background: var(--cd-brand);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: var(--cd-radius-sm);
  font-size: 12.5px;
  font-weight: 600;
}
.cd-coupon-msg { font-size: 12px; padding: 4px 0; }
.cd-coupon-msg.is-error { color: var(--cd-danger); }
.cd-coupon-msg.is-success { color: var(--cd-success); font-weight: 600; }
.cd-coupon-hint { font-size: 11.5px; color: var(--cd-muted); margin-top: 2px; }

/* ============= FORM ============= */
.cd-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cd-section {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: 20px;
  box-shadow: none;
}
.cd-section h2 { margin: 0 0 12px; font-size: 16px; }
.cd-section .helper { font-size: 12.5px; color: var(--cd-muted); margin: -6px 0 12px; }

.cd-grid-2 { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 540px) { .cd-grid-2 { grid-template-columns: 1fr 1fr; } }
.cd-grid-3 { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 540px) { .cd-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.cd-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cd-field label { font-size: 12px; color: var(--cd-text-soft); font-weight: 500; }
.cd-field input,
.cd-field select,
.cd-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--cd-border-strong);
  border-radius: var(--cd-radius-sm);
  background: var(--cd-surface);
  color: var(--cd-text);
  font-size: 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  appearance: none;
  -webkit-appearance: none;
}
@media (max-width: 540px) {
  .cd-field input, .cd-field select, .cd-field textarea { padding: 12px 12px; }
}
@media (hover: none) and (pointer: coarse) {
  .cd-field input, .cd-field select, .cd-field textarea,
  .cd-coupon-form input[type=text],
  input[type=text], input[type=email], input[type=tel], input[type=number],
  input[type=password], input[type=search], input[type=url], select, textarea { font-size: 16px; }
}
.cd-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237c8499' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
.cd-field input:focus, .cd-field select:focus, .cd-field textarea:focus {
  outline: none;
  border-color: var(--cd-brand);
  box-shadow: 0 0 0 3px rgba(14, 17, 22, 0.08);
}
.cd-field input.is-invalid { border-color: var(--cd-danger); }

.cd-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cd-text-soft);
}
.cd-checkbox-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--cd-brand); flex: 0 0 18px; }

/* ============= PAYMENT OPTIONS ============= */
.cd-pay-options { display: flex; flex-direction: column; gap: 8px; }
.cd-pay-option {
  display: block;
  border: 1px solid var(--cd-border-strong);
  border-radius: var(--cd-radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
  background: var(--cd-surface);
}
.cd-pay-option:hover { background: var(--cd-surface-soft); }
.cd-pay-option.is-selected {
  border-color: var(--cd-brand);
  background: var(--cd-surface-soft);
  box-shadow: inset 0 0 0 1px var(--cd-brand);
}
.cd-pay-row { display: flex; align-items: center; gap: 10px; }
.cd-pay-row input[type=radio] { width: 18px; height: 18px; accent-color: var(--cd-brand); flex: 0 0 18px; }
.cd-pay-info { flex: 1; min-width: 0; }
.cd-pay-title { font-weight: 600; font-size: 14px; }
.cd-pay-sub { color: var(--cd-muted); font-size: 12px; margin-top: 1px; }
.cd-pay-logo { height: 22px; width: auto; flex: 0 0 auto; }
.cd-pay-extra { display: none; padding: 10px 0 0; }
.cd-pay-option.is-selected .cd-pay-extra[data-extra-active] { display: block; }

/* ============= SHIPPING METHODS ============= */
.cd-ship-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--cd-surface-soft);
  border: 1px dashed var(--cd-border-strong);
  border-radius: var(--cd-radius-sm);
  color: var(--cd-text-soft);
  font-size: 13px;
}
.cd-ship-empty svg { color: var(--cd-muted); flex: 0 0 18px; }
.cd-ship-options { display: flex; flex-direction: column; gap: 8px; }
.cd-ship-option {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--cd-border-strong);
  border-radius: var(--cd-radius);
  padding: 11px 14px;
  cursor: pointer;
  background: var(--cd-surface);
}
.cd-ship-option.is-selected {
  border-color: var(--cd-brand);
  background: var(--cd-surface-soft);
  box-shadow: inset 0 0 0 1px var(--cd-brand);
}
.cd-ship-option input[type=radio] { width: 16px; height: 16px; accent-color: var(--cd-brand); flex: 0 0 16px; }
.cd-ship-option > div { flex: 1; min-width: 0; }
.cd-ship-name { font-weight: 600; font-size: 13.5px; }
.cd-ship-desc { color: var(--cd-muted); font-size: 12px; margin-top: 1px; }
.cd-ship-price { margin-left: auto; font-weight: 700; font-size: 13.5px; flex: 0 0 auto; }
.cd-ship-price.is-free { color: var(--cd-success); }

/* ============= ORDER BUMP ============= */
.cd-bumps-stack { display: flex; flex-direction: column; gap: 10px; }
.cd-bump {
  position: relative;
  border: 2px dashed var(--cd-bump-border);
  background: var(--cd-bump);
  border-radius: var(--cd-radius);
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
  min-width: 0;
}
.cd-bump:hover { background: #ffeacf; }
.cd-bump.is-selected { background: #ffeacf; border-style: solid; }
.cd-bump-flag {
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--cd-bump-border);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cd-bump-check { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--cd-bump-border); margin-top: 2px; }
.cd-bump-img {
  width: 50px; height: 50px;
  border-radius: var(--cd-radius-sm);
  flex: 0 0 50px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #fde6c0;
}
.cd-bump-body { flex: 1; min-width: 0; }
.cd-bump-title { font-weight: 700; font-size: 14px; color: var(--cd-bump-strong); line-height: 1.3; }
.cd-bump-sub { font-size: 12px; color: #92400e; margin-top: 2px; }
.cd-bump-prices { margin-top: 4px; font-size: 13.5px; color: var(--cd-bump-strong); }
.cd-bump-prices s { color: #92400e; opacity: 0.65; margin-right: 5px; font-size: 12px; }
.cd-bump-prices strong { font-weight: 700; }
.cd-bump-discount {
  background: var(--cd-bump-border);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 5px;
}

/* ============= TRUST BADGES ============= */
.cd-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px 0;
}
@media (min-width: 540px) { .cd-trust { grid-template-columns: repeat(3, 1fr); } }
.cd-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--cd-text-soft);
  padding: 8px 12px;
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-sm);
}
.cd-trust-icon {
  width: 28px; height: 28px;
  flex: 0 0 28px;
  border-radius: var(--cd-radius-sm);
  background: var(--cd-success-soft);
  color: var(--cd-success);
  display: grid; place-items: center;
}

/* ============= PAYMENT BADGES (footer) ============= */
.cd-pay-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.cd-pay-badge {
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: 6px;
  padding: 4px 8px;
  height: 28px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cd-text-soft);
  letter-spacing: 0.02em;
}
.cd-pay-badge.is-mbway { color: #ed1c24; }
.cd-pay-badge.is-multibanco { color: #003d7c; }
.cd-pay-badge.is-visa { color: #1a1f71; }
.cd-pay-badge.is-mc { color: #eb001b; }
.cd-pay-badge img { height: 16px; width: auto; }

/* ============= SECURITY SEALS ============= */
.cd-seals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 0 0;
  margin-bottom: -2px;
}
@media (min-width: 540px) { .cd-seals { grid-template-columns: repeat(4, 1fr); } }
.cd-seal {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-sm);
  min-width: 0;
}
.cd-seal-icon {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: var(--cd-radius-sm);
  background: var(--cd-success-soft);
  color: var(--cd-success);
  display: grid; place-items: center;
}
.cd-seal-body { min-width: 0; }
.cd-seal-body strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--cd-text); line-height: 1.2; }
.cd-seal-body small { display: block; font-size: 11px; color: var(--cd-muted); margin-top: 2px; line-height: 1.3; }

/* ============= SOCIAL PROOF ============= */
.cd-social {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: 16px;
  box-shadow: var(--cd-shadow-sm);
}
.cd-social-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cd-social-stars { color: #f59e0b; font-size: 15px; letter-spacing: 1px; }
.cd-social-rating { font-weight: 700; font-size: 15px; }
.cd-social-count { color: var(--cd-muted); font-size: 12px; }
.cd-social-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 540px) { .cd-social-list { grid-template-columns: 1fr 1fr; } }
.cd-review {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--cd-surface-soft);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-sm);
  min-width: 0;
}
.cd-review-avatar {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
}
.cd-review-body { flex: 1; min-width: 0; }
.cd-review-name { font-weight: 600; font-size: 13px; }
.cd-review-stars { color: #f59e0b; font-size: 11px; letter-spacing: 1px; margin-top: 1px; }
.cd-review-text { font-size: 12.5px; color: var(--cd-text-soft); margin-top: 4px; line-height: 1.4; word-wrap: break-word; }

/* ============= SUBMIT BAR ============= */
.cd-submit-bar {
  position: sticky;
  bottom: 0;
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: 14px;
  box-shadow: 0 -2px 8px rgba(15,23,42,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cd-submit {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--cd-radius-sm);
  background: var(--cd-brand);
  color: var(--cd-brand-fg);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: transform 80ms ease, opacity 120ms ease, background 120ms ease;
}
.cd-submit:hover { background: #000; }
.cd-submit:active { transform: translateY(1px); }
.cd-submit[disabled] { opacity: 0.7; cursor: progress; }
.cd-submit-amount { font-weight: 800; }
.cd-submit-foot {
  font-size: 11.5px;
  color: var(--cd-muted);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* ============= POSTAL LOOKUP LOADER ============= */
.cd-postal-wrap { position: relative; }
.cd-postal-loader {
  position: absolute;
  top: 38px; right: 12px;
  width: 14px; height: 14px;
  border: 2px solid var(--cd-border-strong);
  border-top-color: var(--cd-brand);
  border-radius: 50%;
  animation: cdspin 700ms linear infinite;
  display: none;
}
.cd-postal-wrap.is-loading .cd-postal-loader { display: block; }
@keyframes cdspin { to { transform: rotate(360deg); } }

/* ============= MODAL ============= */
.cd-modal { position: fixed; inset: 0; display: none; z-index: 100; }
.cd-modal.is-open { display: flex; align-items: center; justify-content: center; padding: 16px; }
.cd-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.cd-modal-dialog {
  position: relative;
  max-width: 480px;
  margin: 0;
  background: var(--cd-surface);
  border-radius: var(--cd-radius);
  box-shadow: var(--cd-shadow-lg);
  padding: 22px;
  overflow: auto;
  max-height: calc(100vh - 32px);
  width: 100%;
}
.cd-modal-title { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.cd-modal-loader { display: flex; gap: 10px; align-items: center; color: var(--cd-text-soft); }
.cd-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--cd-border-strong);
  border-top-color: var(--cd-brand);
  border-radius: 50%;
  animation: cdspin 700ms linear infinite;
  display: inline-block;
}
.cd-modal-body { font-size: 13.5px; }
.cd-modal-ref-card {
  background: var(--cd-surface-soft);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-sm);
  padding: 12px;
  margin-top: 10px;
}
.cd-modal-ref-row {
  display: flex; justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed var(--cd-border);
  font-size: 13.5px;
  gap: 8px;
}
.cd-modal-ref-row:last-child { border-bottom: none; }
.cd-modal-ref-row strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.cd-modal-close {
  position: absolute;
  top: 8px; right: 10px;
  background: transparent; border: none;
  font-size: 22px; color: var(--cd-muted);
}
.cd-modal-error {
  background: var(--cd-danger-soft);
  color: var(--cd-danger);
  padding: 10px;
  border-radius: var(--cd-radius-sm);
  font-weight: 500;
}

/* ============= POST-PURCHASE ============= */
.cd-postpurchase {
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(180deg, var(--cd-accent-soft) 0%, #fff 100%);
  border: 1px solid var(--cd-accent);
  border-radius: var(--cd-radius);
}
.cd-postpurchase-head { font-size: 13px; font-weight: 700; color: var(--cd-accent); margin-bottom: 8px; }
.cd-postpurchase-card {
  display: flex; gap: 10px; align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-sm);
  min-width: 0;
}
.cd-postpurchase-img { width: 44px; height: 44px; border-radius: var(--cd-radius-sm); object-fit: cover; flex: 0 0 44px; }
.cd-postpurchase-body { flex: 1; font-size: 12.5px; min-width: 0; }
.cd-postpurchase-body strong { display: block; font-size: 13px; }
.cd-postpurchase-body small { color: var(--cd-muted); font-size: 11.5px; }

/* ============= FOOTER ============= */
.cd-footer {
  text-align: center;
  font-size: 11.5px;
  color: var(--cd-muted);
  padding: 4px 14px 18px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cd-footer-image {
  display: block;
  margin: 0 auto;
  max-height: 110px;
  max-width: min(420px, 90vw);
  width: auto;
  height: auto;
  opacity: 0.95;
}
@media (min-width: 540px) { .cd-footer-image { max-height: 130px; max-width: 460px; } }

/* utils */
.cd-only-mobile { display: block; }
.cd-only-desktop { display: none; }
@media (min-width: 920px) {
  .cd-only-mobile { display: none; }
  .cd-only-desktop { display: block; }
}
