/* ============================================
   Checkout Lia Castro — Clean minimal style
   ============================================ */

:root {
  /* Brand greens */
  --green-darker: #0a4d2e;
  --green-dark:   #0e5d3a;
  --green:        #137b4a;
  --green-light:  #d1e7d8;
  --green-lighter:#e9f3ec;

  /* Orange accents (bump dashed border) */
  --orange:        #ea580c;
  --orange-soft:   #f97316;
  --orange-pale:   #fdf3e7;
  --orange-cream:  #fcefda;

  /* Neutrals */
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --ink-300: #d1d5db;
  --ink-200: #e5e7eb;
  --ink-100: #f3f4f6;
  --ink-50:  #f9fafb;

  --bg:    #f5f6f4;
  --card:  #ffffff;
  --border:#e5e7eb;

  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-800);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
input:focus, select:focus, textarea:focus { outline: none; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   Timer bar
   ============================================ */
.timer-bar {
  background: var(--green-dark);
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
}
.timer-bar .eye-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
@media (max-width: 540px) {
  .timer-bar .eye-wrap { display: none; }
  .timer-bar { padding: 12px 16px; }
}
.timer-digits {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.timer-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.timer-num { font-size: 26px; font-weight: 800; letter-spacing: .02em; }
.timer-label { font-size: 10px; opacity: .85; letter-spacing: .12em; margin-top: 4px; font-weight: 500; }
.timer-sep { font-size: 26px; font-weight: 800; opacity: .8; align-self: flex-start; line-height: 1; }

/* ============================================
   Shell + layout
   ============================================ */
.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}
.stack { display: flex; flex-direction: column; }

/* ============================================
   Banner
   ============================================ */
.banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: #f5ece1;
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}
.banner img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.banner-fallback {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 28px;
  background: linear-gradient(90deg, #f5ece1 0%, #f5ece1 55%, #ead9c1 100%);
  min-height: 200px;
}
.banner-fallback h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 56px;
  line-height: .92;
  letter-spacing: -.01em;
  color: #1f1b16;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.banner-fallback h1 span { display: block; font-size: 38px; }
.banner-fallback p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: #4a3d2b;
  margin: 0;
  font-weight: 400;
}
.banner-art {
  display: grid;
  place-items: center;
  position: relative;
}
.banner-art svg { width: 100%; max-width: 240px; height: auto; }

/* ============================================
   Card
   ============================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.card-title .ic {
  width: 30px;
  height: 30px;
  background: var(--ink-100);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--ink-700);
}
.card-aside {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 400;
}
.card-aside strong { color: var(--ink-800); font-weight: 600; }

/* ============================================
   Form
   ============================================ */
.field { display: block; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.field-row:last-child { margin-bottom: 0; }
.field-row > * { min-width: 0; }
@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; gap: 14px; }
  .card-form .field-row { grid-template-columns: 1fr 1fr; gap: 12px; }
}
label.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 7px;
}
.input, .select {
  width: 100%;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14.5px;
  color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .select::placeholder { color: var(--ink-400); }
.input:focus, .select:focus {
  border-color: var(--ink-800);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}
.input.error, .select.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}
.field-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 6px;
  font-weight: 500;
}
.field-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.45;
}

/* Email field with red error indicator (mimics original) */
.input-wrap {
  position: relative;
}
.input-suffix {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
}
.email-error-icon {
  width: 26px;
  height: 26px;
  background: #ef4444;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: white;
}

/* Phone field with flag + +55 prefix inline */
.input-flag {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  background: white;
  padding: 0 14px;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.input-flag:focus-within {
  border-color: var(--ink-800);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}
.input-flag.error { border-color: #dc2626; }
.input-flag .flag-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-700);
  border-right: 1px solid var(--ink-200);
  padding-right: 10px;
}
.input-flag .flag-svg { width: 22px; height: 16px; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.input-flag .prefix { color: var(--ink-700); font-weight: 500; padding-left: 6px; }
.input-flag input {
  flex: 1;
  border: none;
  padding: 11px 0;
  background: transparent;
  font-size: 14.5px;
  color: var(--ink-900);
  min-width: 0;
}

/* Email suggestion chips */
.email-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.email-chip {
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-700);
  font-weight: 500;
}
.email-chip:hover { background: var(--green-lighter); border-color: var(--green-light); color: var(--green-dark); }

/* ============================================
   Testimonials
   ============================================ */
.test-list {
  display: flex;
  flex-direction: column;
}
.testimonial {
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-100);
}
.testimonial:first-child { padding-top: 4px; }
.testimonial:last-child { border-bottom: none; padding-bottom: 4px; }
.test-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.test-left {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
}
.test-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink-200);
  object-fit: cover;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.test-name { font-weight: 700; color: var(--ink-900); font-size: 14.5px; margin-bottom: 4px; }
.stars { display: inline-flex; gap: 1px; color: #f5b840; font-size: 14px; letter-spacing: 1px; }

.test-helpful {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-500);
  font-size: 13px;
}
.test-helpful .tbtn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-500);
  transition: background .15s, color .15s;
}
.test-helpful .tbtn svg { width: 18px; height: 18px; }
.test-helpful .tbtn:hover { background: var(--ink-100); }
.test-helpful .tbtn.active.up { background: var(--green-lighter); color: var(--green-dark); }
.test-helpful .tbtn.active.down { background: #fee2e2; color: #dc2626; }

@media (max-width: 540px) {
  .test-helpful {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11.5px;
  }
  .test-helpful > span { line-height: 1.1; text-align: center; }
  .test-helpful .tbtn { width: 22px; height: 22px; border-radius: 5px; }
  .test-helpful .tbtn svg { width: 13px; height: 13px; }
  .test-helpful-icons { display: inline-flex; gap: 0; }
  .test-photo { width: 44px !important; height: 44px !important; }
  .test-name { font-size: 13.5px !important; }
  .stars { font-size: 12px !important; }
}

.test-body {
  margin-top: 10px;
  margin-left: 62px;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.55;
}
@media (max-width: 540px) {
  .test-body { margin-left: 0; }
}

/* ============================================
   Payment
   ============================================ */
.pay-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.pay-tab {
  width: 80px;
  height: 60px;
  border: 1.5px solid var(--ink-200);
  background: white;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  transition: all .15s;
  position: relative;
}
.pay-tab:hover { border-color: var(--ink-400); }
.pay-tab.active {
  border-color: var(--ink-900);
  border-width: 2px;
}
.pay-tab svg { display: block; }

.pay-info {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.55;
}
.pay-info strong { color: var(--ink-900); }
.pay-info-title { font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.pay-info-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-200);
}
@media (max-width: 540px) {
  .pay-info {
    padding: 14px 16px;
    font-size: 12.5px;
    line-height: 1.5;
  }
  .pay-info-title { font-size: 13px; margin-bottom: 6px; }
  .pay-info-price {
    font-size: 14px;
    margin-top: 10px;
    padding-top: 10px;
    color: var(--green-dark);
  }
}

/* Card form */
.card-form .field-row.three { grid-template-columns: 1fr 110px 110px; }
@media (max-width: 540px) { .card-form .field-row.three { grid-template-columns: 1fr; } }
.card-brand-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* ============================================
   Summary (right column)
   ============================================ */
.summary { }
.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 10px;
}

.summary-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
}
.si-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--ink-100);
}
.si-name {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-600);
  text-transform: uppercase;
  letter-spacing: .01em;
  font-weight: 500;
  margin-bottom: 6px;
}
.si-price { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.si-remove {
  font-size: 11.5px;
  color: #dc2626;
  margin-top: 4px;
  font-weight: 500;
  display: inline-block;
}
.si-remove:hover { text-decoration: underline; }

/* Order bumps section with dashed orange border */
.bumps-box {
  border: 1.5px dashed var(--orange);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 8px;
}
.bumps-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.bumps-title { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.add-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}
.add-all:hover { text-decoration: underline; }

.bump {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  background: white;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .15s;
}
.bump:last-child { margin-bottom: 0; }
.bump.added { border-color: var(--green-dark); }
.bump-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--orange-cream);
  border-bottom: 1px solid var(--ink-100);
  cursor: pointer;
  user-select: none;
}
.bump.added .bump-toggle-row { background: var(--green-lighter); }
.bump-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--ink-400);
  background: white;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all .15s;
}
.bump.added .bump-checkbox {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.bump-checkbox svg { display: none; }
.bump.added .bump-checkbox svg { display: block; color: white; }
.bump-toggle-label { font-size: 14px; font-weight: 600; color: var(--ink-800); }
.bump.added .bump-toggle-label { color: var(--green-dark); }

.bump-body { padding: 14px; }
.bump-product {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
}
.bump-img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background: var(--ink-100);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
}
.bump-shortname { font-size: 14px; color: var(--ink-700); margin-bottom: 4px; font-weight: 500; }
.bump-price { font-size: 14.5px; font-weight: 700; color: var(--ink-900); }

.bump-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ink-100); }
.bump-detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bump-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-900);
}
.bump-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--green-dark);
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  padding: 1px 7px;
  font-weight: 600;
  letter-spacing: .01em;
}
.bump-desc {
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.5;
}

/* Totals */
.totals { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--ink-200); }
.tot-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-700);
}
.tot-row.discount { color: var(--green-dark); font-weight: 600; }
.tot-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--ink-200);
}
.tot-row.total small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-500);
  margin-top: 2px;
  letter-spacing: 0;
}

/* Coupon */
.coupon-row { display: flex; gap: 8px; margin: 14px 0; }
.coupon-row .input { padding: 9px 12px; font-size: 13px; }
.coupon-apply {
  padding: 9px 14px;
  border: 1px solid var(--ink-300);
  background: white;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-700);
  white-space: nowrap;
}
.coupon-apply:hover { border-color: var(--ink-900); color: var(--ink-900); }
.coupon-applied {
  background: var(--green-lighter);
  border: 1px dashed var(--green-dark);
  color: var(--green-darker);
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
}
.coupon-applied .x { cursor: pointer; font-weight: 700; }

/* ============================================
   CTA + legal
   ============================================ */
.cta-btn {
  width: 100%;
  background: var(--green-dark);
  color: white;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .01em;
  margin-top: 18px;
  transition: background .15s, transform .12s;
}
.cta-btn:hover { background: var(--green-darker); }
.cta-btn:active { transform: translateY(1px); }
.cta-btn:disabled { background: var(--green-dark); color: white; cursor: not-allowed; opacity: 1; }

.legal {
  font-size: 12px;
  color: var(--ink-500);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.secure-foot {
  text-align: center;
  padding: 24px 16px;
  color: var(--ink-500);
  font-size: 12px;
}
.sf-legal {
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.55;
  margin: 0 auto 14px;
  max-width: 540px;
  text-wrap: pretty;
}
.sf-legal a { color: inherit; text-decoration: none; }
.sf-legal a strong { color: var(--ink-900); font-weight: 700; }
.sf-legal a:hover strong { text-decoration: underline; }
.sf-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-100);
  font-size: 13px;
  color: var(--ink-500);
  flex-wrap: wrap;
}
.sf-copy { color: var(--ink-500); }
.sf-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-weight: 500;
}
.sf-secure svg { color: var(--green-dark); }
@media (max-width: 540px) {
  .sf-legal { font-size: 13px; }
  .sf-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 12.5px;
  }
}

/* ============================================
   Processing + success
   ============================================ */
.processing-overlay {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, .55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100;
}
.processing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  text-align: center;
  max-width: 320px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--ink-100);
  border-top-color: var(--green-dark);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-card h3 { margin: 0 0 6px; color: var(--ink-900); font-size: 16px; }
.processing-card p { margin: 0; color: var(--ink-600); font-size: 13px; }

.success-wrap { max-width: 520px; margin: 40px auto; padding: 0 16px; }
.success-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}
.success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  background: var(--green-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  animation: pop .4s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.success-card h1 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -.01em;
  color: var(--ink-900);
}
.success-card p { color: var(--ink-600); margin: 0 0 20px; font-size: 14px; }
.success-detail {
  background: var(--ink-50);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-700);
  margin-bottom: 16px;
}
.success-detail .row { display: flex; justify-content: space-between; padding: 4px 0; }
.success-detail .row strong { color: var(--ink-900); font-weight: 600; }




/* ============================================
   PIX success screen (post-checkout)
   ============================================ */
.pix-screen {
  min-height: 100vh;
  background: var(--bg);
  padding: 24px 14px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pix-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.pix-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink-900);
  text-align: center;
  line-height: 1.25;
}
.pix-subtitle {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--ink-600);
  text-align: center;
  line-height: 1.5;
}

/* Expiry countdown */
.pix-expiry {
  background: #fef3c7;
  border-radius: 12px;
  padding: 14px 18px 12px;
  margin-bottom: 22px;
}
.pix-expiry-text {
  text-align: center;
  color: #92400e;
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 8px;
}
.pix-expiry-text strong { font-weight: 700; color: #78350f; }
.pix-expiry-bar {
  height: 4px;
  background: rgba(180, 83, 9, .18);
  border-radius: 999px;
  overflow: hidden;
}
.pix-expiry-fill {
  height: 100%;
  background: #c2410c;
  border-radius: 999px;
  transition: width 1s linear;
}

/* QR code */
.pix-qr-box {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  padding: 18px;
  margin: 0 auto 18px;
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
}
.pix-qr-box img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* Copy row */
.pix-copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
}
.pix-copy-input {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  min-width: 0;
}
.pix-copy-btn {
  background: #0f172a;
  color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
  white-space: nowrap;
}
.pix-copy-btn:hover { background: #1e293b; }
.pix-copy-btn:active { background: #020617; }

/* Confirm button */
.pix-confirm-btn {
  width: 100%;
  background: var(--green-dark);
  color: white;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s;
}
.pix-confirm-btn:hover { background: var(--green-darker); }
.pix-confirm-btn:active { transform: translateY(1px); }

.pix-divider {
  height: 1px;
  background: var(--ink-100);
  margin: 22px 0;
}

/* How to pay */
.pix-how h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
}
.pix-how ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pix-how ol li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14.5px;
  color: var(--ink-700);
  line-height: 1.5;
}
.pix-how ol li strong { color: var(--ink-900); font-weight: 700; }
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-600);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Order summary card */
.pix-summary-card { padding: 22px 24px; }
.pix-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
}
.pix-summary-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pix-summary-head h3 svg { color: var(--ink-700); }
.pix-summary-total {
  font-size: 14px;
  color: var(--ink-500);
}
.pix-summary-total strong { color: var(--ink-900); font-weight: 700; margin-left: 2px; }

.pix-summary-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--ink-100);
}
.pix-summary-item:first-of-type { padding-top: 16px; }
.pix-summary-item:last-of-type { padding-bottom: 0; }
.pix-summary-item img,
.pix-summary-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.pix-summary-thumb {
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 22px;
}
.pix-summary-name {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.3;
  margin-bottom: 4px;
}
.pix-summary-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-900);
}

/* Pending screen */
.pix-pending-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.pix-pending-icon .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--ink-100);
  border-top-color: var(--green-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.pix-pending-help {
  background: var(--green-lighter);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-700);
  text-align: center;
}
.pix-pending-help p { margin: 0; }
.pix-pending-help p + p { margin-top: 6px; }

/* Mobile tweaks */
@media (max-width: 540px) {
  .pix-card { padding: 24px 18px; border-radius: 14px; }
  .pix-title { font-size: 19px; }
  .pix-subtitle { font-size: 13.5px; margin-bottom: 18px; }
  .pix-qr-box { width: 220px; height: 220px; padding: 14px; }
  .pix-copy-btn { padding: 12px 14px; font-size: 13px; }
  .pix-copy-input { font-size: 12px; padding: 0 10px; }
  .pix-confirm-btn { font-size: 15px; }
  .pix-summary-card { padding: 18px 20px; }
}


/* Verify payment button states */
.pix-confirm-btn:disabled { opacity: .8; cursor: wait; }
.btn-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
.pix-verify-error {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.pix-verify-error svg { color: #dc2626; flex-shrink: 0; margin-top: 1px; }

/* Success detail card (post-confirmation) */
.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-darker));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  animation: pop .5s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.success-detail {
  background: var(--ink-50);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-700);
  margin: 20px 0 0;
}
.success-detail .row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  gap: 12px;
}
.success-detail .row strong { color: var(--ink-900); font-weight: 700; }


/* Redirect dot pulse on success */
.redirect-dot {
  width: 8px; height: 8px;
  background: var(--green-dark);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
a.pix-confirm-btn { width: 100%; box-sizing: border-box; }
