/* Shared checkout UI; payment providers and recurring terms remain server-controlled. */
body.home-page .checkout-modal .checkout-modal-dialog {
    width: min(100%, 760px);
    padding: 24px;
    gap: 12px;
    background: #111216;
    border: 0;
    border-radius: 22px;
}

body.home-page .checkout-modal .checkout-modal-dialog::before { display: none; }
body.home-page .checkout-modal .checkout-modal-heading { gap: 6px; }
body.home-page .checkout-modal .checkout-modal-heading .premium-kicker { display: none; }
body.home-page .checkout-modal .checkout-modal-heading h2 { font-size: 26px; }
body.home-page .checkout-modal .checkout-modal-heading > p:last-child { font-size: 13px; }
body.home-page .checkout-modal .checkout-modal-plan {
    min-height: 58px;
    padding: 10px 12px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
}
body.home-page .checkout-modal .checkout-modal-plan-icon { width: 36px; height: 36px; }

body.payment-hub-interface.payment-hub-checkout-page .checkout-shell--v2 {
    width: min(100% - 40px, 760px);
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

body.payment-hub-interface.payment-hub-checkout-page .checkout-overview {
    position: static;
    gap: 14px;
    padding: 0;
}

body.payment-hub-interface.payment-hub-checkout-page .checkout-overview h1 {
    max-width: none;
    font-size: clamp(28px, 4vw, 44px);
}

body.payment-hub-interface .payment-hub-layout--focused {
    width: min(100% - 40px, 760px);
}

body.payment-hub-interface .payment-hub-card,
body.payment-hub-interface.payment-hub-checkout-page .checkout-payment-panel {
    padding: 24px;
    background: #111216;
    border: 0;
    border-radius: 22px;
}

body form.account-form.slon-checkout-form {
    gap: 14px;
    min-width: 0;
    color: #f3f3f5;
    container-type: inline-size;
}

body .account-form.slon-checkout-form .checkout-email-field {
    gap: 8px;
    color: #e6e7e9;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
}

body .account-form.slon-checkout-form .checkout-email-field input {
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #343539;
    border-radius: 14px;
    background: #090a0b;
    color: #f3f3f5;
    box-shadow: none;
    font-size: 16px;
    font-weight: 600;
}

body .account-form.slon-checkout-form .checkout-email-field input:focus {
    outline: none;
    border-color: #ffc88d;
    box-shadow: 0 0 0 4px rgba(239, 174, 112, .18);
}

body .account-form.slon-checkout-form .checkout-email-field input:user-invalid {
    border-color: #ff8190;
    box-shadow: 0 0 0 4px rgba(255, 102, 122, .12);
}

body .account-form.slon-checkout-form .checkout-email-field > small {
    color: #97979f;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.slon-checkout-form .checkout-method-picker {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.slon-checkout-form .checkout-method-picker legend {
    margin-bottom: 10px;
    padding: 0;
    color: #f3f3f5;
    font-size: 16px;
    font-weight: 700;
}

.slon-checkout-form .checkout-method-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

body .account-form.slon-checkout-form .checkout-method-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
}

body .account-form.slon-checkout-form .checkout-method-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    clip-path: inset(50%);
}

.slon-checkout-form .checkout-method-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 82px;
    height: 100%;
    padding: 14px;
    border: 1px solid #414146;
    border-radius: 16px;
    background: #18191b;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.slon-checkout-form .checkout-method-option:hover .checkout-method-card {
    border-color: #a48c74;
}

.slon-checkout-form .checkout-method-option > input:checked + .checkout-method-card {
    border-color: #eeb97e;
    background: #2d2722;
    box-shadow: inset 0 0 0 1px rgba(238, 185, 126, .4);
}

.slon-checkout-form .checkout-method-option > input:focus-visible + .checkout-method-card {
    outline: 3px solid #ffd09b;
    outline-offset: 4px;
}

.slon-checkout-form .checkout-method-radio {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 1px solid #898989;
    border-radius: 50%;
    background: #3a3b3b;
}

.slon-checkout-form input:checked + .checkout-method-card .checkout-method-radio {
    border: 1px solid #efb97d;
    background: #efb97d;
    box-shadow: inset 0 0 0 4px #494440;
}

.slon-checkout-form .checkout-method-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.slon-checkout-form .checkout-method-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #f7f7f8;
    line-height: 1.25;
}

.slon-checkout-form .checkout-method-title strong {
    font-size: 16px;
    font-weight: 700;
}

.slon-checkout-form .checkout-method-icon {
    display: block;
    width: 23px;
    height: 25px;
    flex: 0 0 23px;
    object-fit: contain;
    color: #eeb97e;
}

.slon-checkout-form .checkout-method-badge {
    padding: 4px 6px;
    border-radius: 7px;
    background: rgba(238, 185, 126, .09);
    color: #e4b885;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.slon-checkout-form .checkout-method-description {
    color: #b9b8c3;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

body .account-form.slon-checkout-form .checkout-subscription-consent {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

body .account-form.slon-checkout-form .checkout-subscription-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #a9a9b1;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
}

body .account-form.slon-checkout-form .checkout-subscription-consent input {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    flex: 0 0 20px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: #ffb16b;
}

body .account-form.slon-checkout-form .btn.btn-primary {
    min-height: 54px;
    padding: 13px 16px;
    justify-content: center;
    gap: 12px;
    border: 1px solid #ffb16b;
    border-radius: 14px;
    background: #ffb16b;
    color: #1b110b;
    box-shadow: 0 12px 32px rgba(255, 177, 107, .14);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    white-space: normal;
}

body .account-form.slon-checkout-form .btn.btn-primary::after {
    content: "→";
    font-size: 25px;
    line-height: 1;
}

body .account-form.slon-checkout-form .btn.btn-primary:hover:not(:disabled) {
    background: #ffc18b;
    border-color: #ffc18b;
}

body .account-form.slon-checkout-form .btn.btn-primary:disabled::after { display: none; }

body .account-form.slon-checkout-form .checkout-legal-note {
    margin: 0;
    color: #96969f;
    font-size: 13px;
    line-height: 1.45;
}

body .account-form.slon-checkout-form .checkout-legal-note a { color: #c0c0c7; }

body .checkout-modal .checkout-modal-trust,
body .account-form.slon-checkout-form .checkout-payment-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 4px;
}

body .checkout-modal .checkout-modal-trust span,
body .account-form.slon-checkout-form .checkout-payment-trust span {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #a3a3ad;
    font-size: 12px;
    line-height: 1.4;
}

body .checkout-modal .checkout-modal-trust i,
body .account-form.slon-checkout-form .checkout-payment-trust b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid rgba(89, 191, 137, .25);
    border-radius: 50%;
    background: rgba(89, 191, 137, .07);
    color: #59bf89;
    font-size: 15px;
    font-style: normal;
}

/* Respond to the form width, including modal and standalone checkout layouts. */
@container (min-width: 600px) {
    .slon-checkout-form .checkout-method-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .slon-checkout-form .checkout-method-options > :only-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    body.home-page .checkout-modal .checkout-modal-heading > p:last-child { display: none; }
    body.home-page .checkout-modal .checkout-modal-dialog {
        padding: 22px 16px calc(16px + env(safe-area-inset-bottom));
        gap: 10px;
        border-radius: 24px 24px 0 0;
    }
    body.payment-hub-interface.payment-hub-checkout-page .checkout-shell--v2,
    body.payment-hub-interface .payment-hub-layout--focused { width: calc(100% - 24px); }
    body.payment-hub-interface .payment-hub-card,
    body.payment-hub-interface.payment-hub-checkout-page .checkout-payment-panel {
        padding: 20px 16px;
        border-radius: 24px;
    }
}

@media (max-width: 380px) {
    .slon-checkout-form .checkout-method-card { gap: 10px; padding: 12px; }
    .slon-checkout-form .checkout-method-title { gap: 7px; }
    .slon-checkout-form .checkout-method-title strong { font-size: 16px; }
    .slon-checkout-form .checkout-method-badge { font-size: 12px; }
    body .account-form.slon-checkout-form .btn.btn-primary { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .slon-checkout-form .checkout-method-card { transition: none; }
}
