.checkout-page {
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 42, 163, 0.14), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(255, 122, 26, 0.13), transparent 24%),
    linear-gradient(180deg, #0b0c12 0, #151721 100%);
}

.checkout-header {
  position: absolute;
}

.checkout-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-nav a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.checkout-nav a:hover,
.checkout-nav a:focus-visible {
  color: #fff;
}

.checkout-main {
  width: 100%;
  margin: 0;
  padding: 142px 0 0;
}

.checkout-intro {
  width: min(calc(100% - 48px), var(--max));
  max-width: none;
  margin: 0 auto;
  padding-bottom: 44px;
  color: #fff;
}

.checkout-intro .eyebrow {
  margin-bottom: 12px;
  color: #ff8fcf;
}

.checkout-intro h1 {
  margin: 0;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.checkout-intro > p:last-child {
  max-width: 610px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.12rem;
}

.checkout-content {
  padding: 44px 0;
  background: #f3f5f8;
}

.checkout-layout {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.order-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 17, 22, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(7, 8, 13, 0.13);
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px 27px;
  border-bottom: 1px solid var(--line);
}

.panel-heading .eyebrow {
  margin-bottom: 9px;
}

.panel-heading h2 {
  max-width: none;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.08;
}

.cart-item {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 34px 32px;
}

.order-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
}

.order-card.is-checkout-active .order-card-body {
  grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr);
}

.product-column {
  min-width: 0;
}

.product-art {
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 122, 26, 0.34), transparent 34%),
    radial-gradient(circle at 82% 80%, rgba(124, 61, 255, 0.46), transparent 42%),
    var(--night);
  box-shadow: 0 18px 38px rgba(7, 8, 13, 0.2);
}

.product-art img {
  width: 70px;
  height: 70px;
  border-radius: 15px;
}

.product-copy h3 {
  font-size: 1.25rem;
}

.product-copy {
  min-width: 0;
}

.product-copy > p {
  max-width: 430px;
  margin: 9px 0 0;
  color: var(--muted);
}

.product-includes {
  display: grid;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  color: #343943;
  font-size: 0.91rem;
  list-style: none;
}

.product-includes li {
  position: relative;
  padding-left: 21px;
}

.product-includes li::before {
  position: absolute;
  left: 0;
  top: 0.15em;
  color: var(--magenta);
  font-weight: 900;
  content: "✓";
}

.product-price {
  grid-column: 2;
  display: grid;
  justify-items: start;
  min-width: 116px;
  text-align: left;
}

.product-price strong {
  font-size: 1.35rem;
}

.product-price span {
  max-width: 110px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.cart-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 0 32px 32px;
  padding: 18px;
  border: 1px solid #dce7f3;
  border-radius: 8px;
  background: #f4f8fc;
  color: #344454;
}

.cart-note svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: #2278ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-note p {
  margin: 0;
  font-size: 0.9rem;
}

.order-checkout {
  min-width: 0;
  padding: 34px 32px 32px;
  border-left: 1px solid var(--line);
}

.order-review {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
  align-content: start;
}

.order-review[hidden],
.inline-checkout-stage[hidden] {
  display: none !important;
}

.inline-checkout-stage {
  min-width: 0;
}

.checkout-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.checkout-stage-header .eyebrow {
  margin-bottom: 8px;
}

.checkout-stage-header h3 {
  font-size: 1.45rem;
  line-height: 1.1;
}

.checkout-stage-header > div > p:last-child {
  max-width: 430px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.checkout-stage-back {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.checkout-stage-back:hover,
.checkout-stage-back:focus-visible {
  color: var(--ink);
}

.inline-checkout-status {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.inline-checkout-status.is-error {
  color: #b42318;
  font-weight: 700;
}

.paddle-checkout-container {
  width: 100%;
  min-width: 312px;
  min-height: 650px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.order-totals {
  display: grid;
  gap: 0;
  margin: 0;
}

.order-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.order-totals dt,
.order-totals dd {
  margin: 0;
}

.order-totals dd {
  text-align: right;
  font-weight: 740;
}

.order-tax {
  color: var(--muted);
  font-size: 0.84rem;
}

.order-discount {
  color: #b31571;
  font-size: 0.84rem;
  font-weight: 760;
}

.order-total {
  align-items: baseline;
  border-bottom: 0 !important;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 820;
}

.order-total dd {
  font-size: 1.5rem;
}

.checkout-actions {
  min-width: 0;
}

.checkout-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  cursor: pointer;
}

.checkout-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.45);
  opacity: 0.58;
  transform: none;
}

.checkout-status {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.checkout-status.is-error {
  color: #b42318;
  font-weight: 700;
}

.success-main {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: 80px;
  place-items: center;
}

.success-shell {
  width: min(calc(100% - 48px), 760px);
  margin: 0 auto;
}

.success-card {
  padding: 52px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.success-card [hidden] {
  display: none !important;
}

.success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2aa3, #ff7a1a);
  box-shadow: 0 14px 34px rgba(255, 42, 163, 0.25);
  place-items: center;
}

.success-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card[data-success-state="unconfirmed"] .success-icon {
  background: #747b87;
  box-shadow: none;
}

.success-card h1 {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.success-lead {
  max-width: 590px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.purchase-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
  text-align: left;
}

.purchase-details > div {
  min-width: 0;
  padding: 20px;
  background: #f7f8fa;
}

.purchase-details span,
.purchase-details strong {
  display: block;
}

.purchase-details span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.purchase-details strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}

.success-actions .button,
.confirmation-warning .button {
  min-width: 220px;
}

.text-link {
  color: var(--ink);
  font-weight: 800;
}

.fulfillment-note {
  max-width: 570px;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.confirmation-warning {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid #efd5a7;
  border-radius: 10px;
  background: #fff9ee;
}

.confirmation-warning p {
  margin: 0 0 18px;
  color: #654910;
}

.payment-assurance {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.payment-assurance span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.payment-assurance svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .order-card-body,
  .order-card.is-checkout-active .order-card-body {
    grid-template-columns: 1fr;
  }

  .order-checkout {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .paddle-checkout-container {
    min-width: 0;
  }
}

@media (max-width: 650px) {
  .checkout-page {
    background: linear-gradient(180deg, #0b0c12 0, #151721 100%);
  }

  .checkout-header {
    padding-right: 16px;
  }

  .checkout-nav a:first-child {
    display: none;
  }

  .checkout-header .platform-mark {
    display: none;
  }

  .checkout-main {
    width: 100%;
    padding: 116px 0 0;
  }

  .success-main {
    padding-bottom: 42px;
  }

  .success-shell {
    width: min(calc(100% - 28px), 760px);
  }

  .success-card {
    padding: 34px 22px;
  }

  .purchase-details {
    grid-template-columns: 1fr;
  }

  .success-actions {
    flex-direction: column;
  }

  .checkout-stage-header {
    gap: 14px;
  }

  .checkout-intro {
    width: min(calc(100% - 28px), var(--max));
    padding-bottom: 30px;
  }

  .checkout-content {
    padding: 30px 0;
  }

  .checkout-layout {
    width: min(calc(100% - 28px), var(--max));
  }

  .checkout-intro h1 {
    font-size: clamp(2.45rem, 12vw, 3rem);
    letter-spacing: -0.04em;
  }

  .panel-heading,
  .cart-item,
  .order-checkout {
    padding: 24px;
  }

  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
  }

  .product-art {
    width: 76px;
    height: 76px;
    border-radius: 16px;
  }

  .product-art img {
    width: 52px;
    height: 52px;
    border-radius: 11px;
  }

  .product-price {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .product-copy,
  .product-includes li,
  .cart-note p {
    overflow-wrap: anywhere;
  }

  .product-price span {
    max-width: none;
  }

  .cart-note {
    margin: 0 24px 24px;
  }

  .payment-assurance {
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }
}

@media (max-width: 430px) {
  .checkout-nav a {
    padding-right: 2px;
  }

  .panel-heading {
    align-items: start;
  }
}
