.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    background: rgba(10, 14, 12, .46);
}
.checkout-modal.is-open {
    display: grid;
    place-items: center;
}
.checkout-shell {
    width: min(1120px, calc(100vw - 28px));
    min-height: min(720px, calc(100svh - 28px));
    max-height: calc(100svh - 28px);
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(15, 23, 42, .28);
}
.checkout-summary {
    padding: clamp(28px, 4vw, 56px);
    background: #536280;
    color: #fff;
}
.checkout-back {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin: -12px 0 34px -12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font-size: 28px;
    cursor: pointer;
}
.checkout-product {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
}
.checkout-total {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 54px;
}
.checkout-total strong {
    font-size: clamp(36px, 5vw, 52px);
    line-height: .95;
}
.checkout-total span {
    margin-top: 7px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}
.checkout-lines {
    width: min(480px, 100%);
    display: grid;
    gap: 20px;
}
.checkout-line,
.checkout-subtotal,
.checkout-due {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.checkout-line strong,
.checkout-subtotal strong,
.checkout-due strong {
    font-size: 14px;
}
.checkout-line p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.4;
}
.checkout-divider {
    height: 1px;
    background: rgba(255, 255, 255, .16);
}
.checkout-promo {
    width: fit-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    padding: 0 14px;
    background: rgba(255, 255, 255, .11);
    color: #fff;
    font-size: 14px;
}
.checkout-form {
    position: relative;
    display: grid;
    align-content: center;
    padding: clamp(28px, 4vw, 56px);
    color: #111827;
    background: #fff;
}
.checkout-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .06);
    color: #475467;
    font-size: 20px;
    cursor: pointer;
}
.checkout-panel-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 500;
}
.checkout-card {
    border: 1px solid rgba(17, 24, 39, .14);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
.checkout-info-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(17, 24, 39, .09);
    font-size: 14px;
}
.checkout-info-row span:first-child {
    color: #667085;
}
.checkout-link {
    border: 0;
    background: transparent;
    color: #111827;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    cursor: pointer;
}
.checkout-method {
    padding: 16px;
}
.checkout-radio-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 15px;
}
.checkout-radio {
    width: 16px;
    height: 16px;
    border: 5px solid #0A0E0C;
    border-radius: 999px;
}
.checkout-field-label {
    display: block;
    margin: 0 0 6px;
    color: #5f6368;
    font-size: 13px;
}
.checkout-input,
.checkout-select {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(17, 24, 39, .14);
    border-radius: 7px;
    padding: 0 12px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.checkout-card-row {
    display: grid;
    grid-template-columns: 1.3fr .7fr .65fr;
    margin-bottom: 18px;
}
.checkout-card-row .checkout-input {
    border-radius: 0;
    box-shadow: none;
}
.checkout-card-row .checkout-input:first-child {
    border-radius: 7px 0 0 7px;
}
.checkout-card-row .checkout-input:last-child {
    border-radius: 0 7px 7px 0;
}
.checkout-pay {
    width: 100%;
    min-height: 56px;
    margin-top: 18px;
    border: 0;
    border-radius: 8px;
    background: #94b9e8;
    color: #20304a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(29, 78, 216, .24);
}
.checkout-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    color: #475467;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}
.checkout-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex: 0 0 16px;
    accent-color: #f97316;
    cursor: pointer;
}
.checkout-terms a {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.checkout-terms-error {
    margin: 6px 0 0;
    color: #b42318;
    font-size: 12.5px;
    font-weight: 700;
}
.checkout-turnstile {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    min-height: 65px;
}
.checkout-turnstile:empty { display: none; }
.checkout-powered a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.checkout-fineprint,
.checkout-powered {
    margin: 14px auto 0;
    max-width: 420px;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}
.checkout-success {
    display: none;
    text-align: center;
}
.checkout-form.is-paid .checkout-live {
    display: none;
}
.checkout-form.is-paid .checkout-success {
    display: grid;
    place-items: center;
    gap: 12px;
}
.checkout-success-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #12b76a;
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}
.checkout-success h2 {
    margin: 8px 0 0;
    font-size: 28px;
}
.checkout-success p {
    margin: 0;
    color: #475467;
    line-height: 1.5;
}
.checkout-success .checkout-pay {
    max-width: 240px;
    margin-top: 10px;
}
@media (max-width: 820px) {
    .checkout-shell {
        grid-template-columns: 1fr;
        overflow: auto;
    }
    .checkout-summary {
        padding: 28px 22px;
    }
    .checkout-form {
        padding: 28px 22px;
    }
    .checkout-card-row {
        grid-template-columns: 1fr;
    }
    .checkout-card-row .checkout-input,
    .checkout-card-row .checkout-input:first-child,
    .checkout-card-row .checkout-input:last-child {
        border-radius: 7px;
        margin-bottom: 8px;
    }
}
