.product-checkout-page { margin: 0; background: #101b2d; color: #111827; }
.checkout-backdrop { position: fixed; inset: 0; background: linear-gradient(180deg, #203652 0 65px, #18283d 65px, #101b2d 100%); }
.checkout-site-brand { position: absolute; top: 17px; left: max(22px, calc((100vw - 1100px) / 2)); color: #91a0b6; font-size: 1.5rem; font-weight: 750; text-transform: uppercase; }
#product-checkout { position: relative; display: grid; grid-template-columns: minmax(234px, 300px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "summary head" "summary body"; width: min(980px, calc(100% - 38px)); height: min(860px, calc(100dvh - 48px)); margin: 24px auto; overflow: hidden; border-radius: 9px; background: #fff; box-shadow: 0 24px 60px #080e19aa; }
.checkout-summary { grid-area: summary; overflow-y: auto; padding: 20px; background: #f5f7fb; border-right: 1px solid #d8e0ea; }
.checkout-summary img { display: block; width: 100%; height: auto; }
.checkout-summary img[hidden] { display: none; }
#product-name { margin-top: 16px; font-size: 1.55rem; line-height: 1.15; font-weight: 650; color: #111; }
#product-description { margin-top: 8px; font-size: .9375rem; color: #4b5563; }
#buyer-role { border: 0; border-top: 1px solid #d8e0ea; margin-top: 20px; padding-top: 3px; }
#buyer-role-label { display: block; padding-top: 7px; font-weight: 700; }
#buyer-role label { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; margin-right: 14px; }
.checkout-head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #d8e0ea; }
.checkout-head h1 { display: flex; align-items: center; gap: 9px; font-size: 1.3rem; line-height: 1.2; font-weight: 650; color: #111; }
.checkout-lock { width: 18px; height: 18px; }
.checkout-close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #d8e0ea; color: #111; }
.checkout-close svg { width: 18px; height: 18px; }
.checkout-body { grid-area: body; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#checkout-payment { min-width: 0; }
#checkout-payment[inert] { opacity: .6; pointer-events: none; }
#fsc-embedded-checkout-container { position: relative; width: 100%; }
#fsc-embedded-checkout-container iframe { width: 100% !important; max-width: 100%; border: 0; }
#checkout-status, #test-mode { margin: 12px 16px; font-size: .9rem; }
#checkout-status:empty { display: none; }
#checkout-status[data-loading="true"] { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 32px 16px; color: #334155; }
#checkout-status[data-loading="true"]::before { content: ""; box-sizing: border-box; width: 16px; height: 16px; border: 2px solid #cbd5e1; border-top-color: #254d81; border-radius: 50%; animation: checkout-loading-spin .85s linear infinite; }
@keyframes checkout-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #checkout-status[data-loading="true"]::before { animation: none; } }
.checkout-controls button { min-height: 44px; margin: 0 16px 12px; padding: 8px 13px; border: 1px solid currentColor; }
#product-checkout[data-state="complete"] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "body"; width: min(745px, calc(100% - 38px)); }
#product-checkout[data-receipt="compact"] { height: auto; max-height: calc(100dvh - 48px); }
#product-checkout[data-state="complete"] .checkout-summary, #product-checkout[data-state="complete"] .checkout-lock { display: none; }
#purchase-confirmation { margin: 20px 20px 0; padding: 16px 18px; border-left: 4px solid #254d81; background: #f5f7fb; }
#confirmation-title { margin: 0 0 4px; font-weight: 700; }
#confirmation-title:focus { outline: none; }
#order-access { margin: 24px 20px; padding: 0 18px; }
#order-product-name { font-size: 1.15rem; font-weight: 700; }
#order-reference { margin-top: 6px; }
.order-access-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.order-access-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; border-radius: 4px; background: #142b4a; color: #fff; text-decoration: none; font-weight: 600; }
.order-access-actions a:hover { background: #0d213c; }
.order-access-actions a:focus-visible { outline: 2px solid #254d81; outline-offset: 3px; }
#receipt-help { margin-top: 10px; }
#receipt-help a { color: #1a4b85; text-decoration: underline; }
#receipt-role { margin: 22px 0 0; padding: 4px 0 0; border: 0; }
#receipt-role legend { font-weight: 700; }
#receipt-role label { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-right: 16px; }
#receipt-role-status:not(:empty) { margin-top: 4px; }
#retry-answer { min-height: 44px; padding: 4px 10px; text-decoration: underline; }
#product-checkout-dialog { width: min(980px, calc(100% - 38px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; }
#product-checkout-dialog::backdrop { background: rgba(12, 19, 31, .72); }
#product-checkout-dialog #product-checkout { width: 100%; margin: 0; }
#product-checkout-dialog:has(#product-checkout[data-state="complete"]) { width: min(745px, calc(100% - 38px)); }
@media (max-width: 700px) {
  #product-checkout, #product-checkout[data-state="complete"] { display: block; width: 100%; height: auto; min-height: 100dvh; margin: 0; border-radius: 0; }
  #product-checkout[data-receipt="compact"] { max-height: none; }
  #product-checkout-dialog, #product-checkout-dialog:has(#product-checkout[data-state="complete"]) { width: 100%; max-height: 100dvh; }
  .checkout-summary { display: block; padding: 16px 0 0; border-right: 0; }
  .checkout-summary img { width: min(calc(100% - 36px), 244px); margin: 0 auto; }
  .checkout-summary > div { padding: 12px 18px 16px; text-align: center; }
  #product-name { margin: 0; font-size: 1.3rem; }
  #product-description { display: none; }
  #buyer-role { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; margin: 0 14px; padding: 0; }
  #buyer-role[hidden] { display: none; }
  #buyer-role-label { padding-top: 0; font-size: .875rem; }
  #buyer-role label { margin: 0; font-size: .875rem; }
  .checkout-body { overflow: visible; }
  #purchase-confirmation { margin: 14px 12px 0; }
  #order-access { margin: 20px 12px; }
}
