.checkout {
  padding-block: clamp(32px, 6vw, 72px);
  max-width: 1060px;
}
.checkout [hidden] { display: none; }
.checkout-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 5px 12px;
  margin-bottom: 24px;
}
.checkout-heading h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.13;
  letter-spacing: -.05em;
}
.checkout-heading a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}
.checkout-heading a:first-child { grid-column: 1 / -1; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 18px; align-items: start; }
.checkout-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(17px, 3vw, 28px);
}
.checkout-panel h2 { font-size: 19px; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 8px; }
#checkout-contact h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
#checkout-contact h2::before {
  content: '';
  width: 22px;
  height: 22px;
  background: url('/assets/pix.webp') center / contain no-repeat;
}
.checkout-plan { font-size: 25px; font-weight: 700; margin: 16px 0 0; }
.checkout-muted, .checkout-status { font-size: 14px; color: var(--muted); margin: 4px 0 14px; }
.checkout-status:empty, #coupon-message:empty { margin: 0; }
.checkout label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 5px; }
.checkout input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.checkout input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.checkout input[type="checkbox"] { accent-color: var(--button); margin: 0; }
.checkout .checkout-check { display: flex; gap: 8px; align-items: baseline; }
.checkout-terms { font-size: 14px; color: var(--muted); padding-top: 5px; }
.checkout-terms summary { cursor: pointer; }
.checkout-terms p { margin: 6px 0 0; }
.checkout-action { margin-top: 14px; width: 100%; justify-content: center; }
.checkout button:disabled { cursor: wait; opacity: .65; }
.coupon-form > div { display: flex; gap: 8px; }
.coupon-form .button { min-height: 0; }
.checkout-totals { margin: 16px 0 0; }
.checkout-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.checkout-totals dd { margin: 0; }
.checkout-total { border-top: 1px solid var(--line); margin-top: 10px; font-size: 20px; font-weight: 700; }
.checkout-totals > .checkout-total { padding-top: 12px; }
#pix-image { display: block; background: white; margin: 18px auto; max-width: 100%; height: auto; border-radius: 9px; }
.billing-list { display: grid; gap: 16px; }
.billing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; border-top: 1px solid var(--line); padding: 14px 0; }
.billing-row:first-child { margin-top: 14px; }
.billing-row:last-child { padding-bottom: 0; }
.billing-row p { margin: 2px 0 0; }
@media (max-width: 700px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { grid-row: 1; }
  .checkout-heading { grid-template-columns: 1fr; }
  .checkout-heading a:first-child { grid-column: auto; }
}
.billing-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.checkout-identity { display: flex; align-items: center; gap: 14px; padding-block: 16px; }
.checkout-identity img { width: 48px; height: 48px; border-radius: 50%; background: var(--hover); }
.checkout-identity strong, .checkout-identity span { display: block; overflow-wrap: anywhere; }
.checkout-identity span { margin: 0; }
.checkout-confetti { position: fixed; inset: 0; z-index: 100; pointer-events: none; width: 100%; height: 100%; }

.checkout-identity { margin-bottom: 12px; }
.pix-qr { display: grid; place-items: center; margin: 16px 0 22px; }
#pix-details .pix-qr img { width: min(100%, 224px); margin: 0; padding: 8px; background: #fff; border-radius: 12px; }
.pix-instruction { text-align: center; }
.pix-copy { display: flex; gap: 8px; align-items: stretch; }
.pix-copy input { min-width: 0; flex: 1; }
.pix-copy button { white-space: nowrap; }
@media (max-width: 450px) {
  .pix-copy { flex-direction: column; }
}
