.checkout-form {
  width: min(100%, 540px);
  display: grid;
  gap: 16px;
  margin: 12px auto 0;
  text-align: left;
}

[hidden] { display: none !important; }

.checkout-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.checkout-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #777;
  border-radius: 0;
  color: #fff;
  background: #1a1a1a;
  font: inherit;
}

.checkout-consent {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 10px;
  align-items: start;
  color: #e4e0da;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.checkout-consent input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

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

.checkout-form .button-order:disabled,
#download-button:disabled {
  opacity: .7;
  cursor: wait;
}

.checkout-notice,
#checkout-message {
  max-width: 560px;
  margin: 16px auto 0;
  color: #cbc7c1;
  font-size: 13px;
  line-height: 1.45;
}

#checkout-message[data-state="error"] { color: #ffb39b; }
#checkout-message[data-state="success"] {
  position: fixed;
  z-index: 1000;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  margin: 0;
  border-left: 4px solid var(--orange);
  color: #fff;
  background: #1a1a1a;
  box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
  font-weight: 700;
}

.order-body {
  min-height: 100vh;
  color: #fff;
  background: #111;
}

.order-header {
  width: min(720px, calc(100% - 36px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 24px 0;
  margin: 0 auto;
  border-bottom: 1px solid #393939;
}

.order-header .wordmark { color: #fff; }
.order-header p { margin: 0; color: #c8c3bd; font-size: 11px; }

.order-main {
  width: min(620px, calc(100% - 36px));
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 58px 0 74px;
  margin: 0 auto;
}

.order-main .eyebrow { color: #fff; }
.order-main h1 { max-width: 570px; margin-bottom: 20px; font-size: clamp(42px, 11vw, 68px); }
.order-message { max-width: 540px; color: #e0dcd6; font-size: 18px; line-height: 1.45; }
.order-details { width: 100%; margin: 18px 0 22px; border-top: 1px solid #555; }
.order-details div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #555; }
.order-details dt { color: #c5c1bb; }
.order-details dd { margin: 0; font-weight: 700; text-align: right; }
#download-button { margin-top: 8px; cursor: pointer; }
.order-refresh { min-height: 44px; padding: 9px 0; margin-top: 14px; border: 0; color: #ff6a34; background: transparent; font: inherit; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.order-footnote { max-width: 530px; margin: 26px 0 0; color: #b6b2ad; font-size: 13px; line-height: 1.5; }
.order-home { margin-top: 24px; color: #fff; font-weight: 700; text-decoration-color: #f45116; text-underline-offset: 4px; }

.history-list { width: 100%; display: grid; gap: 12px; padding: 0; margin: 18px 0 6px; list-style: none; }
.history-list > li { display: grid; gap: 7px; padding: 17px; border: 1px solid #555; background: #181818; }
.history-list strong { font-size: 17px; }
.history-list time,
.history-list > li > span { color: #c5c1bb; font-size: 14px; }
.history-list .history-status { color: #ff7847; font-weight: 700; }
.history-list a { width: fit-content; margin-top: 3px; color: #fff; font-weight: 700; text-decoration-color: #f45116; text-underline-offset: 4px; }

@media (min-width: 760px) {
  .order-main { padding-top: 78px; }
}


/* Dedicated checkout details: keep every label and consent readable in the dark brand palette. */
.checkout-body {
  min-height: 100vh;
  color: #fff;
  background: #111;
}

.checkout-main {
  width: min(620px, calc(100% - 36px));
  padding: 30px 0 72px;
  margin: 0 auto;
}

.checkout-back {
  display: inline-block;
  margin-bottom: 30px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

.checkout-main > .eyebrow { color: #fff; }
.checkout-main > h1 { max-width: 620px; margin-bottom: 16px; font-size: clamp(40px, 10vw, 62px); }
.checkout-intro { max-width: 560px; margin-bottom: 25px; color: #e4e0da; font-size: 18px; line-height: 1.45; }

.checkout-summary {
  padding: 20px;
  margin: 0 0 28px;
  border: 1px solid #555;
  border-top: 4px solid var(--orange);
  color: #fff;
  background: #1a1a1a;
}

.checkout-product { display: flex; gap: 16px; align-items: center; }
.checkout-product img { width: 74px; height: 74px; object-fit: contain; background: #111; }
.checkout-product h2 { margin: 0 0 4px; font-family: Carlito, Calibri, Arial, sans-serif; font-size: 19px; font-weight: 900; letter-spacing: 0; line-height: 1.2; }
.checkout-product p { margin: 0; color: #e4e0da; font-size: 14px; }

.checkout-totals { margin: 18px 0 0; border-top: 1px solid #555; }
.checkout-totals div { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid #555; }
.checkout-totals dt { color: #e4e0da; }
.checkout-totals dd { max-width: 62%; margin: 0; color: #fff; font-weight: 800; text-align: right; }
.checkout-totals div:first-child dd { color: #ff7847; font-size: 20px; }
.checkout-payment-note { margin: 14px 0 0; color: #e4e0da; font-size: 14px; line-height: 1.45; }

.checkout-form-title { margin: 0; font-family: Carlito, Calibri, Arial, sans-serif; font-size: 23px; font-weight: 900; letter-spacing: 0; }
.checkout-field label span { color: #d0cbc4; font-weight: 400; }
.checkout-field input:focus-visible { outline-color: #ff7847; outline-offset: 2px; }

.checkout-consents {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin: 2px 0 0;
  border: 1px solid #666;
}

.checkout-consents legend { padding: 0 6px; color: #fff; font-size: 16px; font-weight: 800; }
.checkout-consent { color: #fff; }
.checkout-consent span { color: #fff; }
.checkout-notice { color: #d0cbc4; }

@media (min-width: 760px) {
  .checkout-main { padding-top: 42px; }
}

.checkout-form .button-order {
  width: 100%;
  min-height: 58px;
  border: 2px solid var(--orange);
  color: #fff;
  background: #111;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.checkout-form .button-order:hover {
  background: #252525;
  transform: translateY(-1px);
}


/* Softer checkout navigation and a compact, single-line page title. */
.checkout-back {
  gap: 9px;
  align-items: center;
  margin-bottom: 36px;
  color: #d0cbc4;
  text-decoration: none;
  transition: color .18s ease;
}

.checkout-back span {
  color: var(--orange);
  font-size: 20px;
  line-height: 1;
  transition: transform .18s ease;
}

.checkout-back:hover { color: #fff; }
.checkout-back:hover span { transform: translateX(-3px); }

.checkout-main > h1 {
  max-width: 100%;
  margin-bottom: 16px;
  font-family: Carlito, Calibri, Arial, sans-serif;
  font-size: clamp(22px, 6.6vw, 40px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.1;
  white-space: nowrap;
}
