:root {
  --sb-ink: #102d3a;
  --sb-teal: #139da3;
  --sb-teal-dark: #08767d;
  --sb-lime: #bbb546;
  --sb-cream: #f5f1e7;
  --sb-paper: #fff;
  --sb-muted: #58707a;
  --sb-line: #d8e1e3;
  --sb-danger: #9c3434;
  --sb-success: #267c62;
  color: var(--sb-ink);
  font-family: Inter, Aptos, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(19, 157, 163, .18), transparent 28rem),
    linear-gradient(145deg, #f9fbfa 0%, var(--sb-cream) 100%);
}

a {
  color: var(--sb-teal-dark);
}

.checkout-header {
  width: 100%;
  min-height: 86px;
  padding: 16px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: rgba(16, 45, 58, .98);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}

.checkout-header img {
  width: min(260px, 52vw);
}

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

.checkout-header nav a {
  color: #fff;
  font-weight: 750;
}

.checkout-header .button {
  border-color: var(--sb-lime);
  background: var(--sb-lime);
  color: var(--sb-ink);
}

.checkout-shell,
body > main {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 88px) 0 90px;
}

.checkout-hero {
  max-width: 900px;
  margin-bottom: clamp(34px, 5vw, 70px);
}

.checkout-hero--compact {
  margin-bottom: 34px;
}

.eyebrow,
.offer-country {
  margin: 0 0 10px;
  color: var(--sb-teal-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.checkout-hero--compact h1 {
  font-size: clamp(2.1rem, 5vw, 4.5rem);
}

.checkout-hero > p:last-child {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--sb-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.offer-card,
.order-panel,
.verification-panel,
.empty-offers {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--sb-line);
  border-radius: 24px;
  box-shadow: 0 22px 65px rgba(16, 45, 58, .09);
}

.offer-card {
  min-height: 380px;
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.offer-card h2,
.verification-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.offer-card p,
.verification-panel p {
  color: var(--sb-muted);
  line-height: 1.6;
}

.offer-footer {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--sb-line);
}

.offer-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--sb-ink) !important;
  font-size: 2rem;
  font-weight: 800;
}

.offer-price span {
  font-size: .8rem;
  letter-spacing: .12em;
}

.button,
button.button {
  min-height: 48px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sb-teal);
  border-radius: 12px;
  background: var(--sb-teal);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--sb-teal-dark);
}

.button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.button--small {
  min-height: 40px;
  padding: 9px 14px;
}

.button--secondary {
  background: #fff;
  color: var(--sb-teal-dark);
}

.verification-panel {
  margin: 0 0 32px;
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-left: 7px solid var(--sb-lime);
}

.verification-panel p {
  max-width: 760px;
  margin-bottom: 0;
}

.order-panel {
  max-width: 950px;
  padding: clamp(26px, 5vw, 58px);
}

.order-panel dl {
  margin: 0;
}

.order-panel dl > div {
  padding: 16px 0;
  display: grid;
  grid-template-columns: minmax(110px, 190px) 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--sb-line);
}

.order-panel dt {
  color: var(--sb-muted);
  font-weight: 700;
}

.order-panel dd {
  margin: 0;
  font-weight: 800;
}

.status {
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf1f2;
}

.status--paid {
  background: #ddf4e9;
  color: var(--sb-success);
}

.status--failed,
.status--cancelled {
  background: #f8e5e5;
  color: var(--sb-danger);
}

.simulation-notice {
  margin-top: 28px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  background: #f6f2da;
}

.payment-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.text-button {
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--sb-muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.outcome {
  margin-top: 30px;
  padding: 24px;
  border-radius: 16px;
  background: #f4f6f6;
}

.outcome--success {
  background: #e7f5ef;
}

.order-documents {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--sb-line);
}

.order-documents ul {
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.order-documents li {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--sb-line);
  border-radius: 12px;
  background: #f8faf9;
}

.order-documents small {
  color: var(--sb-muted);
}

.billing-document-page {
  background: #eef3f2;
}

.billing-toolbar {
  width: min(1080px, calc(100% - 32px));
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.billing-toolbar > div {
  display: flex;
  gap: 10px;
}

.billing-document-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 60px;
  padding: clamp(28px, 6vw, 72px);
  background: var(--sb-paper);
  border: 1px solid var(--sb-line);
  box-shadow: 0 24px 70px rgba(16, 45, 58, .12);
}

.billing-document__heading {
  padding-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 3px solid var(--sb-ink);
}

.billing-document__heading h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.billing-reference {
  margin: 14px 0 0;
  color: var(--sb-muted);
  font-weight: 800;
  letter-spacing: .04em;
}

.test-document-label {
  padding: 14px 18px;
  color: #7d2424;
  border: 3px solid #b63a3a;
  transform: rotate(1deg);
  text-align: center;
  line-height: 1.25;
}

.billing-disclaimer {
  margin: 28px 0;
  padding: 16px 18px;
  color: #682828;
  background: #fff0f0;
  border-left: 5px solid #b63a3a;
  font-weight: 750;
}

.billing-summary dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-summary dl > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--sb-line);
}

.billing-summary dt {
  margin-bottom: 5px;
  color: var(--sb-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.billing-summary dd {
  margin: 0;
  font-weight: 800;
}

.billing-summary small,
.billing-lines small {
  display: block;
  margin-top: 3px;
  color: var(--sb-muted);
  font-weight: 500;
}

.billing-total {
  color: var(--sb-teal-dark);
  font-size: 1.45rem;
}

.billing-lines {
  margin-top: 38px;
}

.billing-lines h2 {
  font-size: 1.55rem;
}

.billing-table-wrap {
  overflow-x: auto;
}

.billing-lines table {
  width: 100%;
  border-collapse: collapse;
}

.billing-lines th,
.billing-lines td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--sb-line);
  text-align: left;
  vertical-align: top;
}

.billing-lines th:last-child,
.billing-lines td:last-child {
  text-align: right;
}

.billing-tax-note {
  margin-top: 34px;
  padding: 18px;
  background: #f3f6f5;
}

.billing-tax-note p {
  margin: 5px 0 0;
}

.billing-checksum {
  margin: 28px 0 0;
  color: var(--sb-muted);
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.message-stack {
  margin-bottom: 24px;
}

.message {
  padding: 14px 18px;
  border-radius: 10px;
  background: #e7f0f2;
}

@media (max-width: 720px) {
  .billing-toolbar,
  .billing-document__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .billing-toolbar > div {
    flex-wrap: wrap;
  }

  .billing-summary dl {
    grid-template-columns: 1fr;
  }

  .test-document-label {
    align-self: flex-start;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body.billing-document-page {
    background: #fff;
  }

  .billing-toolbar {
    display: none;
  }

  .billing-document-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

.message--error {
  background: #f8e5e5;
  color: var(--sb-danger);
}

.message--success {
  background: #ddf4e9;
  color: var(--sb-success);
}

.empty-offers {
  padding: 38px;
}

.account-nav {
  width: min(900px, calc(100% - 40px));
  margin: 28px auto 0;
}

.account-nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 0;
  list-style: none;
}

.account-shell {
  max-width: 760px;
}

.account-messages {
  width: min(760px, calc(100% - 40px));
  margin: 24px auto 0;
}

.account-shell form > div,
.account-shell form > p {
  margin-bottom: 18px;
}

.account-shell input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #b8c8cd;
  border-radius: 10px;
  font: inherit;
}

.account-shell label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.account-shell .helptext {
  display: block;
  margin-top: 5px;
  color: var(--sb-muted);
  font-size: .9rem;
}

.account-shell ul.errorlist {
  color: var(--sb-danger);
}

@media (max-width: 720px) {
  .checkout-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .checkout-shell,
  body > main {
    width: min(100% - 24px, 1500px);
    padding-top: 34px;
  }

  .verification-panel,
  .payment-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .order-panel dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .payment-actions .button {
    width: 100%;
  }
}
