/* Private checkout shares the public brand, typography and display controls. */
.checkout-order-form [data-checkout-billing-person][hidden],
.checkout-order-form [data-checkout-billing-organization][hidden],
.checkout-order-form:has(select[name="billing_kind"] option[value="person"]:checked) [data-checkout-billing-organization],
.checkout-order-form:has(select[name="billing_kind"] option[value="organization"]:checked) [data-checkout-billing-person],
.checkout-order-form .checkout-field[hidden],
.checkout-order-form .checkout-check[hidden],
.checkout-order-form:has(select[name="billing_kind"] option[value="person"]:checked) label:has(input[name="tax_payer"]),
.checkout-order-form:has(select[name="billing_kind"] option[value="person"]:checked) label[for="checkout-registration_id"],
.checkout-order-form:has(select[name="billing_kind"] option[value="person"]:checked) label[for="checkout-vat_id"],
.checkout-order-form:has(input[name="initial_owner_mode"][value="same"]:checked) label[for="checkout-owner_name"],
.checkout-order-form:has(input[name="initial_owner_mode"][value="same"]:checked) label[for="checkout-owner_email"] { display: none; }
.checkout-page {
  --checkout-bg: #0a1f18;
  --checkout-panel: #123025;
  --checkout-field: #0d261e;
  --checkout-text: #f4f7f4;
  --checkout-muted: #b7c7bf;
  --checkout-border: #365d4c;
  --checkout-accent: #a8e4c8;
  --checkout-button-text: #13241e;
  --checkout-notice: #e2c47e;
  margin: 0;
  background: var(--checkout-bg);
  color: var(--checkout-text);
  font-family: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
html[data-theme] .checkout-page { background: var(--checkout-bg); color: var(--checkout-text); }
.checkout-page *, .checkout-page *::before, .checkout-page *::after { box-sizing: border-box; }
.checkout-page :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--checkout-accent); outline-offset: 4px; }
.checkout-header { border-bottom: 1px solid var(--checkout-border); }
.checkout-header-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.checkout-brand { max-width: 100%; flex-shrink: 0; }
.checkout-brand img { width: 176px; max-width: 100%; height: auto; }
.checkout-header-actions { display: flex; align-items: center; gap: 28px; min-width: 0; }
.checkout-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .875rem; font-weight: 650; color: var(--checkout-muted); }
.checkout-back:hover { color: var(--checkout-accent); }
.checkout-back > span { font-size: 1.2rem; }
.checkout-header .language-menu > summary { padding: 8px 13px; }
.checkout-header .language-menu-panel { z-index: 30; max-width: calc(100vw - 32px); }
.checkout-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) 0 112px;
  overflow-wrap: anywhere;
}
.checkout-main > h1, .checkout-main .front-inquiry h1 {
  max-width: 22ch;
  margin: 0 0 32px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.checkout-main h2 { margin: 0 0 14px; font-size: 1.4rem; font-weight: 650; line-height: 1.3; }
.checkout-main p + p { margin-top: 12px; }
.checkout-intro { margin: -16px 0 24px; color: var(--checkout-muted); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.checkout-summary-panel { grid-column: 2; grid-row: 1; position: sticky; top: 28px; min-width: 0; }
.checkout-order-form { grid-column: 1; grid-row: 1; }
.checkout-form { min-width: 0; counter-reset: checkout-section; }
.checkout-card {
  min-width: 0;
  margin: 0 0 24px;
  padding: clamp(22px, 3vw, 32px);
  color: var(--checkout-text);
  background: var(--checkout-panel);
  border: 1px solid var(--checkout-border);
  border-radius: 24px;
}
.checkout-card > :last-child { margin-bottom: 0; }
.checkout-card > p, .checkout-card > div > p, .checkout-confirm-card > p { color: var(--checkout-muted); }
fieldset.checkout-card { padding-top: 22px; }
.checkout-card legend { max-width: 100%; padding: 0 10px; color: var(--checkout-text); font-size: 1.125rem; font-weight: 700; line-height: 1.5; letter-spacing: -.015em; }
.checkout-form fieldset > legend::before { counter-increment: checkout-section; content: counter(checkout-section, decimal-leading-zero); margin-right: 10px; color: var(--checkout-accent); font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.checkout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.checkout-coupon-field { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.checkout-coupon-field .checkout-field { flex: 1 1 12rem; margin: 0; }
.checkout-coupon-summary { margin-top: 0; font-size: .875rem; }
.checkout-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 6px 0; font-size: .875rem; font-weight: 600; }
.checkout-field > span { color: var(--checkout-muted); }
.checkout-field input, .checkout-field select, .checkout-page .front-inquiry-form :is(input:not([type="checkbox"]), select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--checkout-border);
  border-radius: 12px;
  background: var(--checkout-field);
  color: var(--checkout-text);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}
.checkout-field :is(input, select):hover, .checkout-page .front-inquiry-form :is(input, select, textarea):hover { border-color: var(--checkout-accent); }
.checkout-field select { margin-bottom: 16px; }
.checkout-check { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0; font-size: .9375rem; }
.checkout-check input, .checkout-page .front-inquiry-form input[type="checkbox"] { flex-shrink: 0; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--checkout-accent); }
.checkout-summary-card { position: relative; overflow: hidden; background: linear-gradient(150deg, #15543d, #123025 75%); }
.checkout-summary-card::after { content: ""; pointer-events: none; position: absolute; right: -110px; bottom: -160px; width: 300px; height: 300px; border: 1px solid #a8e4c81a; border-radius: 50%; }
.checkout-summary-card > * { position: relative; z-index: 1; }
.checkout-summary-card .checkout-kicker { margin: 0 0 16px; color: var(--checkout-accent); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.checkout-period-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--checkout-border); border-radius: 999px; background: var(--checkout-field); }
.checkout-period-option { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 9px 12px; border-radius: 999px; color: var(--checkout-muted); font-size: .875rem; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.checkout-period-option:hover { color: var(--checkout-text); }
.checkout-period-option[aria-current="page"] { color: var(--checkout-button-text); background: var(--checkout-accent); }
.checkout-summary-panel[aria-busy="true"] .checkout-period-option { cursor: progress; opacity: .6; }
.checkout-order-form[aria-busy="true"] .checkout-submit { cursor: progress; opacity: .6; }
[data-checkout-period-error] { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--checkout-notice); border-radius: 14px; color: var(--checkout-notice); font-size: .875rem; line-height: 1.6; }
.checkout-summary-card h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 500; margin-bottom: 18px; letter-spacing: -.04em; }
.checkout-description { margin-top: 16px; color: var(--checkout-muted); font-size: .9375rem; line-height: 1.65; }
.checkout-total-label { margin: 0; font-size: .875rem; font-weight: 600; }
.checkout-summary-card .checkout-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 9px; margin: 4px 0 18px; color: var(--checkout-text); font-size: clamp(2rem, 3.1vw, 2.75rem); font-weight: 750; line-height: 1.15; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.checkout-price span { color: var(--checkout-muted); font-size: .875rem; font-weight: 400; letter-spacing: normal; }
.checkout-offer-facts { border-top: 1px solid var(--checkout-border); padding-top: 12px; color: var(--checkout-muted); font-size: .875rem; }
.checkout-offer-facts p { margin: 0; }
.checkout-year-option { flex-direction: column; }
.checkout-year-option small { font-size: .75rem; }
.checkout-plan-picker { margin-top: 18px; }
.checkout-plan-picker > p { margin: 0 0 6px; font-size: .875rem; font-weight: 700; }
.checkout-plan-options { display: flex; flex-wrap: wrap; gap: 4px; }
.checkout-plan-options .checkout-period-option { flex: 1 1 auto; border: 1px solid var(--checkout-border); }
.checkout-summary { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 10px 20px; margin: 24px 0; }
.checkout-summary dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.checkout-summary dt { color: var(--checkout-muted); font-weight: 600; }
.checkout-notice { margin: 0 0 28px; padding: 16px 20px; border: 1px solid var(--checkout-notice); border-radius: 16px; color: var(--checkout-notice); background: #e2c47e08; font-size: .9375rem; font-weight: 600; }
.checkout-notice[role="alert"] { border-width: 2px; }
.checkout-submit, .checkout-page .front-inquiry-form button[type="submit"] { display: inline-flex; justify-content: center; align-items: center; gap: 20px; max-width: 100%; min-height: 54px; padding: 14px 24px; border: 1px solid transparent; border-radius: 999px; background: var(--checkout-accent); color: var(--checkout-button-text); font: inherit; font-size: .9375rem; font-weight: 800; line-height: 1.4; text-align: center; cursor: pointer; }
.checkout-submit:hover, .checkout-page .front-inquiry-form button[type="submit"]:hover { filter: brightness(1.07); }
.checkout-submit > span { display: inline-grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; font-size: 1.1rem; font-weight: 400; }
.checkout-confirm-card > .checkout-link { display: inline-block; margin-block: 8px; font-weight: 700; }
.checkout-confirm-card > p { margin-top: 16px; font-size: .875rem; }
.checkout-link { color: var(--checkout-accent); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.checkout-document-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.checkout-document-list li { min-width: 0; padding: 16px 20px; border: 1px solid var(--checkout-border); border-radius: 16px; }
.checkout-document-list a { font-weight: 650; }
.checkout-document-action { margin: 18px 0 0; }
.checkout-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border: 1px solid var(--checkout-accent); border-radius: 999px; background: var(--checkout-accent); color: var(--checkout-button-text); font: inherit; font-weight: 750; line-height: 1.35; text-decoration: none; cursor: pointer; }
.checkout-action:hover { filter: brightness(1.07); text-decoration: underline; }
.checkout-account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.checkout-account-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%;
  padding: 8px 16px; border: 1px solid var(--checkout-border); border-radius: 999px;
  background: transparent; color: var(--checkout-accent); font: inherit; font-weight: 650; cursor: pointer;
}
.checkout-account-secondary:hover { border-color: var(--checkout-accent); text-decoration: underline; }
.checkout-order-form [data-checkout-account-fallback][hidden],
.checkout-order-form[hidden],
.checkout-inline-account[hidden] { display: none; }
.checkout-inline-account { grid-column: 1; min-width: 0; }
.checkout-inline-account form { display: grid; gap: 14px; margin-block: 12px; }
.checkout-inline-account label { display: grid; gap: 6px; color: var(--checkout-muted); font-size: .9375rem; font-weight: 600; }
.checkout-inline-account label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 10px; }
.checkout-inline-account input:not([type="hidden"], [type="checkbox"]) {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--checkout-border);
  border-radius: 12px; background: var(--checkout-field); color: var(--checkout-text); font: inherit;
}
.checkout-inline-account input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--checkout-accent); }
.checkout-inline-account button {
  justify-self: start; min-height: 44px; padding: 9px 18px; border: 1px solid var(--checkout-accent);
  border-radius: 999px; background: var(--checkout-accent); color: var(--checkout-button-text); font: inherit; font-weight: 700; cursor: pointer;
}
.checkout-inline-account summary { padding-block: 10px; color: var(--checkout-accent); font-weight: 650; cursor: pointer; }
.checkout-inline-account .identity-registration form[data-checkout-account-kind="register"] > h2 { display: none; }
.checkout-inline-account a { color: var(--checkout-accent); text-decoration: underline; text-underline-offset: .2em; }
.checkout-inline-account > .checkout-link { display: inline-block; margin-top: 16px; }
.checkout-profile-cta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--checkout-border); }
.checkout-profile-cta p { margin: 0 0 12px; }
.checkout-profile-cta p:last-child { margin: 0; }
.checkout-document-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 0; font-size: .875rem; }
.checkout-document-meta dt { color: var(--checkout-muted); }
.checkout-document-meta dd { margin: 0; overflow-wrap: anywhere; }
.checkout-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.checkout-status-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.checkout-status-layout > .checkout-card { margin: 0; }
.checkout-order-number { margin: 0; font-size: .875rem; }
.checkout-order-number strong { display: block; margin-top: 3px; color: var(--checkout-text); font-weight: 600; }
.checkout-status-metrics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--checkout-border); }
.checkout-status-metrics dt, .checkout-current-balance dt { color: var(--checkout-muted); font-size: .875rem; }
.checkout-status-metrics dd { margin: 3px 0 0; font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 750; line-height: 1.25; }
.checkout-status-metrics .checkout-metric-detail { color: var(--checkout-muted); font-size: .875rem; font-weight: 500; }
.checkout-page .fulfillment-current .fulfillment-statuses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.15rem; }
.checkout-page .fulfillment-current .fulfillment-statuses h3 { font-size: .875rem; color: var(--checkout-muted); }
.checkout-page .fulfillment-current .fulfillment-badge { font-size: .875rem; }
.checkout-next-step { padding: 14px 16px; border: 1px solid var(--checkout-border); border-radius: 14px; background: var(--checkout-field); }
.checkout-next-step h3, .checkout-payment-details h3 { margin: 0 0 8px; }
.checkout-next-step p { margin: 0; }
.checkout-next-step [data-booking-confirmed-address] { overflow-wrap: anywhere; }
.checkout-page .fulfillment .checkout-primary { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--checkout-accent); color: var(--checkout-button-text); font-weight: 750; line-height: 1.35; text-decoration: none; }
.checkout-page .fulfillment .checkout-primary:hover { text-decoration: underline; }
.checkout-current-balance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; align-items: baseline; margin: 16px 0 0; }
.checkout-current-balance dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.checkout-payment-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 16px; }
.checkout-payment-details:target { scroll-margin-top: 16px; }
.checkout-payment-details .fulfillment-facts { margin: 0; }
.checkout-payment-details .fulfillment-fact { grid-template-columns: 1fr; gap: 2px; }
.checkout-payment-details .fulfillment-qr { margin: 0; font-size: .875rem; }
.checkout-status-extra > summary { padding: 9px 0; font-weight: 650; cursor: pointer; }
.checkout-status-extra[open] > summary { margin-bottom: 12px; }

/* Inquiry and workspace screens share this private shell. */
.checkout-page .front-inquiry { padding: 0; }
.checkout-page .front-inquiry > .container { width: 100%; max-width: 840px; padding: 0; margin: 0; }
.checkout-page .front-inquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--checkout-border); border-radius: 24px; background: var(--checkout-panel); }
.checkout-page .front-inquiry-form > label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: .875rem; font-weight: 600; color: var(--checkout-muted); }
.checkout-page .front-inquiry-form > label:has(textarea) { grid-column: 1 / -1; }
.checkout-page .front-inquiry-form > label:has(input[type="checkbox"]) { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; }
.checkout-page .front-inquiry-form button[type="submit"] { justify-self: start; grid-column: 1 / -1; }
.checkout-page .front-inquiry a { color: var(--checkout-accent); text-decoration: underline; text-underline-offset: .2em; }

html[data-theme="light"] .checkout-page { --checkout-bg: #f4f7f4; --checkout-panel: #fff; --checkout-field: #f6faf7; --checkout-text: #13241e; --checkout-muted: #52655c; --checkout-border: #c7d2cc; --checkout-accent: #176c4d; --checkout-button-text: #fff; --checkout-notice: #75550b; }
html[data-theme="light"] .checkout-summary-card { background: linear-gradient(150deg, #e5f5ed, #f3f8f5 85%); }
html[data-theme="light"] .checkout-summary-card::after { border-color: #176c4d1a; }
html[data-theme="contrast"] .checkout-page { --checkout-bg: #000; --checkout-panel: #000; --checkout-field: #000; --checkout-text: #fff; --checkout-muted: #fff; --checkout-border: #fff; --checkout-accent: #ffe600; --checkout-button-text: #000; --checkout-notice: #ffe600; }
html[data-theme="contrast"] .checkout-summary-card { background: #000; }
html[data-theme="contrast"] .checkout-summary-card::after { content: none; }
html[data-theme="contrast"] .checkout-notice { background: #000; }
html[data-theme="contrast"] .checkout-card, html[data-theme="contrast"] .checkout-field :is(input, select), html[data-theme="contrast"] .checkout-page .front-inquiry-form { border-width: 2px; }

@media (max-width: 960px) {
  .checkout-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
  .checkout-grid { grid-template-columns: 1fr; gap: 12px; }
  .checkout-card { padding: 24px; }
}
@media (max-width: 740px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 0; }
  .checkout-status-layout { grid-template-columns: 1fr; gap: 16px; }
  .checkout-summary-panel, .checkout-order-form { grid-column: auto; grid-row: auto; position: static; }
  .checkout-summary-card { margin-bottom: 32px; }
  .checkout-summary-card .checkout-price { font-size: 2.5rem; }
  .checkout-main { padding-top: 32px; }
  .checkout-summary { grid-template-columns: 1fr; gap: 4px; }
  .checkout-summary dd { margin-bottom: 12px; }
}
@media (max-width: 520px) {
  .checkout-header-inner, .checkout-main { width: calc(100% - 32px); }
  .checkout-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding-block: 18px; }
  .checkout-brand { grid-column: 1; }
  .checkout-brand img { width: 150px; }
  .checkout-header-actions { display: contents; }
  .checkout-header .language-menu { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .checkout-back { grid-column: 1; font-size: .8125rem; }
  .checkout-main > h1, .checkout-main .front-inquiry h1 { margin-bottom: 24px; }
  .checkout-card { padding: 22px 20px; border-radius: 20px; }
  .checkout-card legend { padding: 0 6px; font-size: 1.0625rem; }
  .checkout-notice { padding: 14px 16px; }
  .checkout-submit { width: 100%; }
  .checkout-page .front-inquiry-form { grid-template-columns: 1fr; padding: 22px 20px; }
  .checkout-page .front-inquiry-form button[type="submit"] { width: 100%; }
  .checkout-payment-details { grid-template-columns: 1fr; }
}
