:root {
  --brand: #2c2c54;
  --brand-deep: #1e1e3d;
  --brand-soft: #40407a;
  --pix: #00b39a;
  --pix-dark: #00937f;
  --border: #e7e7ee;
  --text: #1b1b2b;
  --muted: #6b6b80;
  --muted-light: #9a9aae;
  --success: #17a06a;
  --danger: #d64545;
  --bg-soft: #f7f7fb;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 43, .06);
  --shadow-md: 0 4px 16px rgba(20, 20, 43, .08);
  --shadow-lg: 0 12px 34px rgba(20, 20, 43, .12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-weight: 700; letter-spacing: -.01em; }

.icon { width: 16px; height: 16px; flex-shrink: 0; }

.hidden { display: none !important; }

.checkout-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

/* ============ Summary panel ============ */

.summary-panel {
  position: relative;
  overflow: hidden;
  width: 43%;
  min-width: 340px;
  max-width: 560px;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(165deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  display: flex;
  justify-content: flex-end;
  padding: 52px 44px;
}

/* Foto do produto espalhada em miniaturas, tingida na cor da marca via
   mix-blend-mode: independente das cores originais da imagem, o resultado
   sempre combina com o azul do checkout — sem precisar tratar a imagem
   antes de subir. */
.summary-photo-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.photo-tile {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  mix-blend-mode: luminosity;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}

.tile-1 { width: 132px; height: 132px; top: -24px;   right: -24px;  opacity: .55; animation: drift-1 19s ease-in-out infinite -3s; }
.tile-2 { width: 84px;  height: 84px;  top: 128px;   right: 46px;   opacity: .32; animation: drift-2 23s ease-in-out infinite -9s; }
.tile-3 { width: 112px; height: 112px; bottom: 54px; right: -14px;  opacity: .45; animation: drift-3 17s ease-in-out infinite -6s; }
.tile-4 { width: 66px;  height: 66px;  bottom: 168px; right: 132px; opacity: .28; animation: drift-4 26s ease-in-out infinite -14s; }
.tile-5 { width: 150px; height: 150px; bottom: -34px; left: -34px;  opacity: .3;  animation: drift-5 21s ease-in-out infinite -1s; }
.tile-6 { width: 72px;  height: 72px;  top: 54px;    left: -22px;   opacity: .34; animation: drift-6 24s ease-in-out infinite -11s; }
.tile-7 { width: 104px; height: 104px; top: 320px;   left: -28px;   opacity: .4;  animation: drift-7 18s ease-in-out infinite -5s; }
.tile-8 { width: 58px;  height: 58px;  top: 350px;   right: -8px;   opacity: .3;  animation: drift-8 20s ease-in-out infinite -8s; }
.tile-9 { width: 50px;  height: 50px;  bottom: 8px;  right: 74px;   opacity: .26; animation: drift-9 15s ease-in-out infinite -2s; }
.tile-10 { width: 88px; height: 88px;  top: 470px;   left: 6px;     opacity: .3;  animation: drift-10 22s ease-in-out infinite -16s; }
.tile-11 { width: 64px; height: 64px;  bottom: 240px; left: 90px;   opacity: .24; animation: drift-11 25s ease-in-out infinite -19s; }

/* Deslocamentos e durações diferentes por miniatura para não parecerem
   sincronizadas; o delay negativo faz cada uma já entrar "no meio do ciclo". */
@keyframes drift-1 {
  0%   { transform: translate(0, 0) rotate(9deg); }
  33%  { transform: translate(-16px, 14px) rotate(15deg); }
  66%  { transform: translate(8px, 20px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(9deg); }
}
@keyframes drift-2 {
  0%   { transform: translate(0, 0) rotate(-8deg); }
  40%  { transform: translate(14px, -10px) rotate(-2deg); }
  70%  { transform: translate(-10px, 8px) rotate(-14deg); }
  100% { transform: translate(0, 0) rotate(-8deg); }
}
@keyframes drift-3 {
  0%   { transform: translate(0, 0) rotate(6deg); }
  50%  { transform: translate(-18px, -12px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(6deg); }
}
@keyframes drift-4 {
  0%   { transform: translate(0, 0) rotate(-13deg); }
  30%  { transform: translate(12px, 16px) rotate(-20deg); }
  65%  { transform: translate(-14px, -6px) rotate(-6deg); }
  100% { transform: translate(0, 0) rotate(-13deg); }
}
@keyframes drift-5 {
  0%   { transform: translate(0, 0) rotate(-6deg); }
  45%  { transform: translate(18px, -14px) rotate(-12deg); }
  100% { transform: translate(0, 0) rotate(-6deg); }
}
@keyframes drift-6 {
  0%   { transform: translate(0, 0) rotate(14deg); }
  35%  { transform: translate(10px, 18px) rotate(20deg); }
  70%  { transform: translate(-8px, 6px) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(14deg); }
}
@keyframes drift-7 {
  0%   { transform: translate(0, 0) rotate(-10deg); }
  50%  { transform: translate(16px, -16px) rotate(-17deg); }
  100% { transform: translate(0, 0) rotate(-10deg); }
}
@keyframes drift-8 {
  0%   { transform: translate(0, 0) rotate(18deg); }
  40%  { transform: translate(-12px, 10px) rotate(25deg); }
  75%  { transform: translate(6px, -8px) rotate(11deg); }
  100% { transform: translate(0, 0) rotate(18deg); }
}
@keyframes drift-9 {
  0%   { transform: translate(0, 0) rotate(-20deg); }
  50%  { transform: translate(-10px, -12px) rotate(-27deg); }
  100% { transform: translate(0, 0) rotate(-20deg); }
}
@keyframes drift-10 {
  0%   { transform: translate(0, 0) rotate(8deg); }
  30%  { transform: translate(-14px, 12px) rotate(2deg); }
  65%  { transform: translate(10px, -10px) rotate(15deg); }
  100% { transform: translate(0, 0) rotate(8deg); }
}
@keyframes drift-11 {
  0%   { transform: translate(0, 0) rotate(-16deg); }
  50%  { transform: translate(12px, 14px) rotate(-9deg); }
  100% { transform: translate(0, 0) rotate(-16deg); }
}

@media (prefers-reduced-motion: reduce) {
  .photo-tile { animation: none !important; }
}

.summary-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(165deg, var(--brand) 0%, var(--brand-deep) 100%);
  opacity: .68;
  pointer-events: none;
}

.summary-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

/* mobile-only collapsible trigger */
.summary-toggle { display: none; }

.product-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 26px;
  margin-top: 4px;
}

.product-avatar {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-info h1 {
  font-size: 19px;
  margin: 0 0 6px;
  line-height: 1.3;
}

.product-info .description {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.68);
  margin: 0;
  white-space: pre-line;
}

.price-breakdown {
  border-top: 1px solid rgba(255,255,255,.13);
  padding-top: 18px;
}

.price-breakdown .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,.72);
  padding: 5px 0;
}

.price-breakdown .free { color: var(--pix); font-weight: 600; }

.discount-row span:last-child { color: var(--pix); font-weight: 600; }
#discount-code { font-weight: 400; opacity: .7; font-size: 12px; }

/* ---- cupom ---- */

.coupon-block {
  border-top: 1px solid rgba(255,255,255,.13);
  padding-top: 16px;
  margin-top: 4px;
}

.coupon-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.coupon-toggle:hover { color: #fff; }

.coupon-form-wrap { margin-top: 12px; }

.coupon-input-row { display: flex; gap: 8px; }

.coupon-input-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.coupon-input-row input::placeholder { color: rgba(255,255,255,.4); text-transform: none; }
.coupon-input-row input:focus { outline: none; border-color: rgba(255,255,255,.4); }

.coupon-input-row button {
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid var(--pix);
  background: var(--pix);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.coupon-input-row button:hover { background: var(--pix-dark); }
.coupon-input-row button:disabled { opacity: .55; cursor: not-allowed; }

.coupon-feedback {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 8px;
}
.coupon-feedback.is-error { background: rgba(214,69,69,.16); color: #ffb3b3; }
.coupon-feedback.is-success { background: rgba(0,179,154,.16); color: #5ff0d6; }

.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  background: rgba(0,179,154,.14);
  border: 1px solid rgba(0,179,154,.3);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 13px;
  color: #5ff0d6;
}
.coupon-applied button {
  background: none;
  border: none;
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
}
.coupon-applied button:hover { color: #fff; }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.13);
  margin-top: 14px;
  padding-top: 16px;
  margin-bottom: 24px;
}

.total-label { font-size: 14px; color: rgba(255,255,255,.72); }
.total-value-wrap { text-align: right; }
.total-original {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  text-decoration: line-through;
  margin-bottom: 2px;
}
.total-value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }

.pix-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(0,179,154,.16);
  border: 1px solid rgba(0,179,154,.3);
  color: #5ff0d6;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  margin-bottom: 30px;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: rgba(255,255,255,.75);
}

.trust-list .icon { color: rgba(255,255,255,.45); }

.summary-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 36px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* ============ Form panel ============ */

.form-panel {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 52px 28px;
}

.form-inner {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-light);
  transition: color .2s;
}

.step.active { color: var(--brand); }
.step.done { color: var(--pix-dark); }

.step-num {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--border);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.step.active .step-num { background: var(--brand); }
.step.done .step-num { background: var(--pix); }

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  list-style: none;
}

.panel-head { margin-bottom: 22px; }
.panel-head h2 { font-size: 21px; margin: 0 0 5px; }
.panel-head p { margin: 0; font-size: 13.5px; color: var(--muted); }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.input-icon { position: relative; display: flex; align-items: center; }

.input-icon .icon {
  position: absolute;
  left: 14px;
  color: var(--muted-light);
  pointer-events: none;
  transition: color .15s;
}

.input-icon:focus-within .icon { color: var(--brand); }

input[type=text], input[type=email] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  /* 16px evita o zoom automático do iOS Safari ao focar o campo */
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.input-icon input { padding-left: 42px; }

input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(44,44,84,.11);
}

input::placeholder { color: var(--muted-light); }

.field-hint {
  display: block;
  font-size: 11.5px;
  color: var(--muted-light);
  margin-top: 6px;
}

.btn-pay {
  position: relative;
  width: 100%;
  padding: 15px;
  background: var(--pix);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 4px 14px rgba(0,179,154,.3);
  transition: background .15s, transform .12s, box-shadow .15s;
}

.btn-pay .btn-icon { width: 17px; height: 17px; }
.btn-pay:hover { background: var(--pix-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,179,154,.34); }
.btn-pay:active { transform: translateY(0); }
.btn-pay:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn-pay.is-loading .btn-icon { display: none; }
.btn-pay.is-loading .btn-spinner { display: block; }

.secure-note {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  font-size: 11.5px;
  color: var(--muted-light);
  margin: 14px 0 0;
}
.secure-note .icon { width: 13px; height: 13px; }

.error-msg {
  display: flex;
  align-items: center;
  background: #fdecec;
  border: 1px solid #f6d0d0;
  color: var(--danger);
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ============ Pix step ============ */

.pix-box { text-align: center; display: flex; flex-direction: column; }

/* no desktop o QR é a ação principal; no mobile isso se inverte (media query) */
.qr-block   { order: 1; }
.qr-toggle  { order: 2; display: none; }
.pix-copy-block { order: 3; }
.pix-steps  { order: 4; }
.countdown-wrap { order: 5; }
.waiting    { order: 6; }
.waiting-note { order: 7; }

.head-mobile { display: none; }

.btn-copy {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--pix);
  background: #fff;
  color: var(--pix-dark);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 10px;
  transition: background .15s, transform .12s;
}
.btn-copy:hover { background: rgba(0,179,154,.08); }
.btn-copy:active { transform: translateY(1px); }
.btn-copy.copied { background: var(--pix); border-color: var(--pix); color: #fff; }

.copy-feedback {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--pix-dark);
  background: rgba(0,179,154,.09);
  border: 1px solid rgba(0,179,154,.25);
  border-radius: 9px;
  padding: 10px 12px;
  margin: 10px 0 0;
  text-align: left;
}
.copy-feedback.is-error {
  color: var(--danger);
  background: #fdecec;
  border-color: #f6d0d0;
}

.qr-frame {
  position: relative;
  display: inline-block;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.qr-frame::before,
.qr-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--pix);
  border-radius: 3px;
}
.qr-frame::before { top: 7px; left: 7px; border-right: none; border-bottom: none; }
.qr-frame::after { bottom: 7px; right: 7px; border-left: none; border-top: none; }

.qr-frame img { width: 196px; height: 196px; display: block; }

.pix-copy-block { margin-bottom: 20px; }

#pix-copia-cola {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--bg-soft);
  color: var(--muted);
  padding: 12px 13px;
  text-align: center;
}

.pix-steps {
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px 15px 34px;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}
.pix-steps strong { color: var(--text); }

.countdown-wrap { margin-bottom: 18px; }

.countdown-bar {
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 9px;
}

.countdown-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pix), #4fd8c3);
  width: 100%;
  border-radius: 999px;
  transition: width 1s linear;
}

.countdown { font-size: 12.5px; color: var(--muted); }

.waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.waiting-note {
  font-size: 12px;
  color: var(--muted-light);
  margin: 7px 0 0;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--border);
  border-top-color: var(--pix);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

/* ============ Success ============ */

.success-box { text-align: center; }

.success-box .check {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 20px;
  box-shadow: 0 6px 20px rgba(23,160,106,.3);
  animation: pop .32s cubic-bezier(.2,.8,.3,1.2);
}

@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.success-box .check .icon { width: 27px; height: 27px; }
.success-box h2 { font-size: 22px; margin: 0 0 7px; }
.success-lead { color: var(--muted); font-size: 14px; margin: 0 0 26px; }

.receipt {
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 18px 12px;
}

.receipt-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--border);
}

.receipt .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.receipt .row:last-child { border-bottom: none; }
.receipt .row span:first-child { color: var(--muted); flex-shrink: 0; }
.receipt .row span:last-child { font-weight: 600; text-align: right; }

.btn-access {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px;
  margin-top: 22px;
  background: var(--pix);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,179,154,.3);
  transition: background .15s, transform .12s;
}
.btn-access:hover { background: var(--pix-dark); transform: translateY(-1px); text-decoration: none; }
.btn-access .btn-icon { width: 17px; height: 17px; }

.btn-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  margin-top: 10px;
  background: none;
  border: 1px solid var(--pix);
  color: var(--pix-dark);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-support:hover { background: rgba(0,179,154,.08); text-decoration: none; }

/* ============ Footer ============ */

.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 40px;
  font-size: 11.5px;
  color: var(--muted-light);
}
.page-footer .dot { opacity: .5; }

/* ============ Responsive ============ */

@media (max-width: 860px) {
  .checkout-shell { flex-direction: column; min-height: auto; }

  .summary-panel {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 20px 22px;
    justify-content: flex-start;
  }

  .summary-inner { max-width: none; }

  .summary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 15px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .summary-toggle-label { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.85); }
  .summary-toggle-total { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; }
  .summary-toggle .chevron { width: 15px; height: 15px; transition: transform .22s; }
  .summary-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

  .summary-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease, margin-top .28s ease;
  }

  /* --summary-h é definido via JS com a altura real do conteúdo */
  .summary-body.open { max-height: var(--summary-h, 1200px); margin-top: 20px; }

  .product-card { margin-bottom: 20px; }
  .pix-tag { margin-bottom: 22px; }
  .summary-footer { padding-top: 18px; }

  .form-panel { padding: 32px 22px 40px; }
  .page-footer { padding-top: 32px; }
  .qr-frame img { width: 190px; height: 190px; }

  /* No celular ninguém escaneia a própria tela: copiar o código vira a ação principal
     e o QR Code fica opcional, atrás de um toggle. */
  .head-desktop { display: none; }
  .head-mobile { display: block; }

  .pix-copy-block { order: 1; margin-bottom: 22px; }
  .pix-steps { order: 2; }
  .qr-toggle { order: 3; display: flex; }
  .qr-block { order: 4; }
  .countdown-wrap { order: 5; }
  .waiting { order: 6; }
  .waiting-note { order: 7; }

  .btn-copy {
    background: var(--pix);
    border-color: var(--pix);
    color: #fff;
    padding: 17px;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0,179,154,.3);
  }
  .btn-copy:hover { background: var(--pix-dark); }
  .btn-copy.copied { background: var(--pix-dark); }

  .qr-toggle {
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px;
    margin-bottom: 4px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
  }
  .qr-toggle .chevron { width: 15px; height: 15px; transition: transform .22s; }
  .qr-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

  .qr-block {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .qr-block.open { max-height: 340px; }
  .qr-frame { margin: 18px 0 4px; }
}

@media (max-width: 420px) {
  .step-text { display: none; }
  .steps { gap: 8px; }
}
