.checkout-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #edf4ff;
  background: radial-gradient(ellipse at 85% 0%, #152e49 0, #091321 47%, #080f1a 100%);
}

.checkout-page .nav-wrap { justify-content: space-between; }

.store-checkout {
  background:
    radial-gradient(ellipse at 72% -16%, #192f4e 0, #0d1b2d 37%, transparent 68%),
    #090f1b;
}

.checkout-more,
.store-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
}

.checkout-more {
  color: #a6def3;
  min-height: 44px;
  font-size: 14px;
}

.store-cart-link svg,
.checkout-empty-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.checkout-shell {
  flex: 1;
  max-width: 1120px;
  padding-block: 56px 72px;
}

.checkout-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.checkout-heading h1 {
  font-size: clamp(42px, 6vw, 67px);
  letter-spacing: .015em;
  line-height: 1;
}

.checkout-heading p,
.checkout-empty p {
  color: #afc1d7;
  font-size: 15px;
  line-height: 1.55;
  margin-top: 10px;
}

.checkout-more {
  white-space: nowrap;
  padding-inline: 15px;
  border: 1px solid #355674;
  border-radius: 8px;
  background: #152538;
}

.checkout-more:hover,
.checkout-secondary:hover,
.store-cart-link:hover {
  border-color: #71cce7;
  background-color: #1d364d;
}

.checkout-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.52fr) minmax(305px, 1fr);
  gap: 22px;
}

.checkout-fields {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.checkout-surface {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #2d415a;
  background: #111e30;
  box-shadow: 0 12px 26px #050a1226;
}

.store-checkout .checkout-shell {
  width: min(1112px, calc(100% - 52px));
  padding-block: 42px 58px;
}

.store-checkout .checkout-heading { margin-bottom: 24px; }
.store-checkout .checkout-heading h1 { font-size: clamp(42px, 5.4vw, 61px); letter-spacing: .005em; }
.store-checkout .checkout-heading p { margin-top: 7px; }
.store-checkout .checkout-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 414px); gap: 20px; }
.store-checkout .checkout-surface { padding: 24px; border-color: #2b415b; border-radius: 15px; }
.store-checkout .checkout-section-heading { margin-bottom: 14px; }
.store-checkout .checkout-section-heading h2,
.checkout-methods legend {
  color: #e9f3ff;
  font-family: KFDisplay, 'Segoe UI', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: .015em;
}

.checkout-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 17px;
}

.checkout-section-heading h2,
.checkout-empty h2 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: .02em;
}

.checkout-section-heading > span {
  color: #a7bdd4;
  font-size: 12px;
  white-space: nowrap;
}

.checkout-items {
  padding: 0;
  margin: 0;
  list-style: none;
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding-block: 12px;
}

.checkout-item + .checkout-item {
  border-top: 1px solid #293950;
}

.checkout-item:last-child {
  padding-bottom: 0;
}

.checkout-art {
  display: grid;
  align-items: center;
  min-height: 60px;
  border: 1px solid #344053;
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 67%, #5440298a, #1c293a 78%);
}

.checkout-art img {
  width: 100%;
  height: auto;
}

.checkout-item-data h3 {
  color: #f5d486;
  font-size: 22px;
  line-height: 1.16;
}

.checkout-item-data p,
.checkout-help {
  margin-top: 4px;
  color: #b1c3d8;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.checkout-line-price {
  display: inline-block;
  margin-top: 5px;
  font-size: 14px;
  color: #f2f7fe;
}

.checkout-item-actions {
  display: grid;
  justify-items: end;
}

.checkout-quantity {
  display: flex;
  align-items: center;
  border: 1px solid #3a516d;
  border-radius: 7px;
  overflow: hidden;
  color: #e4effb;
  background: #0d1927;
  font-variant-numeric: tabular-nums;
}

.checkout-quantity button {
  width: 40px;
  height: 40px;
  background: #172b41;
  color: #afdcf2;
  border: 0;
  font-size: 20px;
}

.checkout-quantity button:disabled {
  color: #73859c;
  background: #132032;
}

.checkout-quantity button:enabled:hover { background: #264663; }
.checkout-quantity button:focus-visible { outline-offset: -4px; }
.checkout-quantity output { min-width: 31px; text-align: center; font-size: 14px; }

.checkout-remove {
  color: #a8bad0;
  font-size: 12px;
  padding: 8px 0 5px 8px;
  border: 0;
  background: transparent;
}

.checkout-remove:hover { color: #ffb5bf; text-decoration: underline; }

.store-checkout .checkout-item { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; padding-top: 4px; }
.store-checkout .checkout-item + .checkout-item { margin-top: 13px; padding-top: 16px; }
.store-checkout .checkout-art { min-height: 70px; border-color: #5f4c35; }
.store-checkout .checkout-item-data h3 { color: #f3f7fd; }
.store-checkout .checkout-item-data p { color: #d5bb83; }
.store-checkout .checkout-line-price { font-size: 15px; }
.store-checkout .checkout-item-actions { gap: 2px; }
.store-checkout .checkout-remove { padding: 5px 2px; }
.checkout-details > section + section { margin-top: 19px; padding-top: 19px; border-top: 1px solid #2a3c54; }
.checkout-details .checkout-section-heading { margin-bottom: 10px; }
.checkout-details .checkout-section-heading h2 { font-size: 21px; }
.checkout-account-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #2c4a64;
  border-radius: 9px;
  background: #0d1929;
}
.checkout-avatar {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 7px; background: #20374c;
}
.checkout-avatar canvas { width: 24px; height: 24px; image-rendering: pixelated; }
.checkout-account-card .checkout-account-name { margin: 0; font-size: 15px; font-weight: 750; color: #f0f7ff; overflow-wrap: anywhere; }
.checkout-account-verified { color: #93dfc1; font-size: 12px; font-weight: 600; white-space: nowrap; }
.checkout-account-verified > span { margin-right: 3px; }
.checkout-account-card + .checkout-help { margin-top: 8px; }

.checkout-page :is(.checkout-pix-form, .order-pix) label {
  display: block;
  color: #d7e5f4;
  font-size: 14px;
  font-weight: 600;
}

.checkout-page input:not([type="radio"]) {
  width: 100%;
  min-width: 0;
  min-height: 47px;
  padding: 10px 13px;
  border: 1px solid #405a77;
  border-radius: 7px;
  color: #f1f6fd;
  background: #0a1524;
  font: inherit;
  font-size: 16px;
}

.checkout-page input::placeholder { color: #889db6; }
.checkout-page input[aria-invalid='true'] { border-color: #de8f9b; }
.checkout-page input:focus { border-color: #7dd9f7; outline: 2px solid #66d9f032; }
.checkout-help:empty { margin: 0; }
.checkout-help[data-state='error'] { color: #ffb4bf; }
.checkout-help[data-state='success'] { color: #98eac0; }

.checkout-coupon-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.checkout-methods { min-width: 0; margin: 0; padding: 0; border: 0; }
.checkout-methods legend { padding: 0; margin-bottom: 13px; }
.checkout-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkout-method { position: relative; display: block; cursor: pointer; }
.checkout-method-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 34px 1fr;
  align-items: start;
  gap: 8px;
  min-height: 116px;
  height: 100%;
  padding: 12px;
  border: 1px solid #314860;
  border-radius: 10px;
  background: #0b1626;
}
.checkout-method:hover .checkout-method-content { border-color: #6089a4; background: #13243a; }
.checkout-method input:checked + .checkout-method-content {
  border-color: #75d8f3;
  background: #122d43;
  box-shadow: 0 0 0 1px #65d6f226 inset;
}
.checkout-method input:focus-visible + .checkout-method-content { outline: 2px solid #b7efff; outline-offset: 3px; }
.checkout-method-indicator {
  display: grid; place-items: center;
  align-self: start; justify-self: end;
  width: 18px; height: 18px; margin-top: 1px;
  border: 1px solid #6b859f; border-radius: 50%;
  color: #84e1fb;
}
.checkout-method input:checked + .checkout-method-content .checkout-method-indicator { border-color: currentColor; }
.checkout-method input:checked + .checkout-method-content .checkout-method-indicator::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}
.checkout-method-copy { grid-column: 1 / -1; min-width: 0; }
.checkout-method-copy strong, .checkout-method-copy small { display: block; }
.checkout-method-copy strong { color: #f2f8ff; font-size: 16px; line-height: 1.2; }
.checkout-method-copy small { color: #b5cce4; margin-top: 3px; line-height: 1.35; font-size: 12px; }
.checkout-method-mark { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; }
.pix-mark { color: #69e5cb; background: #163a3b; }
.pix-mark::before, .pix-mark::after {
  content: '';
  grid-area: 1 / 1; width: 15px; height: 15px; border-radius: 4px; transform: rotate(45deg);
  background: currentColor;
}
.pix-mark::after { width: 9px; height: 9px; background: transparent; border: 1px solid #163a3b; border-radius: 2px; }
.card-mark { color: #96dffa; background: #18354f; }
.card-mark::before { content: ''; width: 20px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; }
.card-mark::after { content: ''; position: absolute; inset: 14px 8px auto; height: 2px; background: currentColor; }

.checkout-secondary {
  min-height: 44px;
  padding: 0 14px;
  color: #bde6fa;
  font: inherit;
  font-weight: 700;
  border: 1px solid #3c6481;
  border-radius: 7px;
  background: #162c41;
}

.checkout-summary {
  position: sticky;
  top: 94px;
  border-top-color: #557e9c;
  background: linear-gradient(145deg, #182b40, #101c2d 70%);
}

.store-checkout .checkout-summary {
  border-color: #345570;
  background: linear-gradient(155deg, #172b41, #111e30 64%);
}
.checkout-breakdown { margin-top: 19px; padding-top: 17px; border-top: 1px solid #304963; }
.checkout-breakdown .checkout-section-heading { margin-bottom: 12px; }
.checkout-breakdown .checkout-section-heading h2 { font-size: 22px; }
.checkout-breakdown .checkout-totals { margin-bottom: 14px; gap: 9px; }
.checkout-breakdown .checkout-total { padding-top: 10px; }
.checkout-breakdown .checkout-total dd { font-size: 29px; line-height: 1.25; }
.checkout-breakdown .checkout-cta { min-height: 50px; font-size: 14px; }

.checkout-totals {
  display: grid;
  gap: 12px;
  margin: 0 0 19px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.checkout-totals dt { color: #b4c7dc; }
.checkout-totals dd { margin: 0; font-weight: 700; text-align: right; }
#checkout-discount { color: #98eac0; }

.checkout-totals .checkout-total {
  border-top: 1px solid #3b5068;
  padding-top: 13px;
}

.checkout-total dt { color: #f1f7fd; font-size: 16px; font-weight: 700; }
.checkout-total dd { color: #edf6ff; font-size: 26px; }

.checkout-cash {
  padding: 10px 11px;
  border: 1px solid #715b393d;
  border-radius: 6px;
  background: #715b391e;
}

.checkout-cash dd { color: #f5d78d; }
.checkout-cta { width: 100%; min-height: 48px; justify-content: center; font-size: 13px; }
.checkout-dock-amount, #review-status:empty { display: none; }
.checkout-pix-form { display: grid; gap: 15px; margin-block: 12px; }
.checkout-pix-form [data-pix-step] { display: grid; gap: 8px; }
.checkout-pix-form input, .pix-code {
  width: 100%; min-width: 0; padding: 12px; border-radius: 8px; border: 1px solid #35516a;
  background: #091522; color: #edf5ff; font: inherit;
}
.checkout-pix-form input { font-size: 16px; }
.checkout-pix-form label { color: #edf5ff; font-size: 19px; font-weight: 700; }
.checkout-pix-form p:empty { display: none; }
.checkout-step-progress { display: grid; gap: 6px; color: #b9d0e4; font-size: 13px; }
.checkout-step-progress progress {
  appearance: none; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 4px;
  background: #233b52; accent-color: #58cce9;
}
.checkout-step-progress progress::-webkit-progress-bar { background: #233b52; }
.checkout-step-progress progress::-webkit-progress-value { background: #58cce9; }
.checkout-step-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
#checkout-order-link { margin-top: 14px; display: flex; }
#checkout-payment-result[data-state='error'] { color: #ffbac6; }

.checkout-payment-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 11px 0 0;
  color: #c3c8d4;
  font-size: 12px;
  text-align: center;
}

.checkout-notice {
  padding: 11px 14px;
  margin: 0 0 16px;
  border: 1px solid #615932;
  border-radius: 8px;
  background: #3a2d1a69;
  color: #f7db9d;
  font-size: 13px;
  line-height: 1.55;
}

.checkout-empty { padding-block: 50px; text-align: center; }
.checkout-empty .button { margin-top: 19px; font-size: 12px; }

.checkout-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border: 1px solid #3a6079;
  border-radius: 12px;
  color: #a9dff3;
  background: #1b3549;
}

.checkout-empty-icon svg { width: 26px; height: 26px; }

.checkout-review {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
  color: #edf4ff;
}

.store-checkout .checkout-review { width: min(474px, calc(100% - 32px)); border-color: #3c5d7a; }
.store-checkout .checkout-review .checkout-section-heading { padding-bottom: 13px; border-bottom: 1px solid #2e435b; }
.store-checkout .checkout-review .checkout-section-heading h2 { font-size: 28px; }
.store-checkout .checkout-review .order-pix img { display: block; justify-self: center; border-radius: 10px; }

.checkout-review::backdrop { background: #040910cd; }

.checkout-close {
  height: 44px;
  width: 44px;
  color: #d6e6f8;
  background: #1a2b40;
  border: 1px solid #3b5674;
  border-radius: 7px;
  font-size: 26px;
}

.checkout-footer {
  border-top: 1px solid #273e55;
  background: #0a1320;
  color: #a1b7ce;
  font-size: 13px;
}

.checkout-footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 17px;
}

.checkout-footer a { color: #abe1f4; }

.checkout-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.checkout-policy a {
  color: #abe1f4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cash-shop-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.store-cart-link {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #486784;
  border-radius: 7px;
  background: #15293f;
  color: #c4eafa;
  font-size: 13px;
}

.store-cart-link [data-cart-count] {
  min-width: 1.5em;
  padding-inline: 3px;
  border-radius: 3px;
  color: #071625;
  background: #8fdef9;
  text-align: center;
}

@media (max-width: 760px) {
  .checkout-shell { padding-block: 37px 56px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .store-checkout .checkout-shell { width: calc(100% - 32px); padding-top: 29px; }
  .store-checkout .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .store-checkout .checkout-fields { gap: 14px; }
  .checkout-summary { position: static; }
  .store-checkout:has(.checkout-layout:not([hidden])) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .checkout-dock {
    position: fixed; z-index: 12; inset: auto 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr);
    align-items: center; gap: 4px 16px; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: #101e30; border-top: 1px solid #345572; box-shadow: 0 -8px 24px #05101ac7;
  }
  .checkout-dock-amount { display: grid; gap: 3px; white-space: nowrap; }
  .checkout-dock-amount span { color: #b4c7dc; font-size: .78rem; }
  .checkout-dock-amount strong { color: #edf6ff; font-size: 1.1rem; }
  .checkout-dock #review-status { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .checkout-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .checkout-shell { width: calc(100% - 30px); }
  .checkout-surface { padding: 16px; }
  .checkout-empty { padding-block: 35px; }
  .checkout-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; }
  .checkout-art { min-height: 46px; }
  .checkout-quantity button { width: 34px; min-height: 40px; }
  .checkout-quantity output { min-width: 24px; }
  .checkout-item-data h3 { font-size: 20px; }
  .checkout-item-data p { font-size: 12px; }
  .checkout-totals .checkout-total dd { font-size: 24px; }
  .store-checkout .checkout-heading { gap: 8px; margin-bottom: 18px; }
  .store-checkout .checkout-heading h1 { font-size: clamp(35px, 10.5vw, 42px); }
  .store-checkout .checkout-surface { padding: 16px; }
  .store-checkout .checkout-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 9px; }
  .store-checkout .checkout-art { min-height: 48px; }
  .checkout-method-content { min-height: 111px; padding: 10px; }
  .checkout-account-card { gap: 8px; }
}

@media (max-width: 380px) {
  .store-checkout .checkout-item { grid-template-columns: 48px minmax(0, 1fr); align-items: start; }
  .store-checkout .checkout-item-actions {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .checkout-account-verified { font-size: 0; }
  .checkout-account-verified > span { margin: 0; font-size: 14px; }
}
