/* Compact stacked checkout payment selector. */
.fourtwigs-checkout-panel--payment #litecheckout_step_payment > .litecheckout__section > .litecheckout__group:first-child {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    overflow: hidden;
    border: 1px solid var(--fourtwigs-checkout-border);
    border-radius: 7px;
    background: var(--fourtwigs-checkout-surface);
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list > .litecheckout__shipping-method,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list > .fourtwigs-checkout-payment-choice {
    width: 100%;
    margin: 0 !important;
    border-bottom: 1px solid var(--fourtwigs-checkout-border);
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list > .litecheckout__shipping-method {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
}

/* PayPal is replaced by CS-Cart while its processor selection is saved. */
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--fourtwigs-checkout-border);
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal:last-child {
    border-bottom: 0;
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list > :last-child {
    border-bottom: 0;
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .litecheckout__shipping-method__wrapper,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-choice,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    padding: 0 76px 0 52px;
    border: 0 !important;
    border-radius: 0;
    background: var(--fourtwigs-checkout-surface);
    box-shadow: none !important;
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .litecheckout__shipping-method__wrapper::before,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-choice::before,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 18px;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border: 2px solid var(--fourtwigs-checkout-border);
    border-radius: 50%;
    background: var(--fourtwigs-checkout-surface);
    transform: translateY(-50%);
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-payment-card-selected .litecheckout__shipping-method__radio:checked + .litecheckout__shipping-method__wrapper,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__radio:checked + .litecheckout__shipping-method__wrapper,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-choice[aria-checked="true"] {
    background: var(--fourtwigs-checkout-selected) !important;
    box-shadow: inset 4px 0 0 var(--fourtwigs-checkout-accent) !important;
}

html body .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-payment-card-selected .litecheckout__shipping-method__radio:checked + .litecheckout__shipping-method__wrapper,
html body .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__radio:checked + .litecheckout__shipping-method__wrapper,
html body .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-choice[aria-checked="true"],
html body .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__radio:checked + .litecheckout__shipping-method__wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    padding: 0 76px 0 52px;
    border: 0 !important;
    border-radius: 0;
    outline: 0 !important;
    box-shadow: inset 4px 0 0 var(--fourtwigs-checkout-accent) !important;
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-payment-card-selected .litecheckout__shipping-method__radio:checked + .litecheckout__shipping-method__wrapper::before,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__radio:checked + .litecheckout__shipping-method__wrapper::before,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-choice[aria-checked="true"]::before,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__radio:checked + .litecheckout__shipping-method__wrapper::before {
    border-color: var(--fourtwigs-checkout-accent);
    background: var(--fourtwigs-checkout-accent);
    box-shadow: inset 0 0 0 6px var(--fourtwigs-checkout-selected);
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .litecheckout__shipping-method__wrapper::after,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-choice::after,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__wrapper::after {
    display: none !important;
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .litecheckout__shipping-method__title,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-choice__brand,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__title {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-logo {
    position: absolute;
    top: 50%;
    right: 18px;
    margin: 0;
    transform: translateY(-50%);
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .fourtwigs-checkout-payment-logo {
    position: absolute;
    top: 50%;
    right: 18px;
    margin: 0;
    transform: translateY(-50%);
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .litecheckout__shipping-method__delivery-time,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-choice__description,
.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__delivery-time {
    display: none;
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list > .fourtwigs-stripe-express {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 18px;
    border-bottom: 1px solid var(--fourtwigs-checkout-border);
    background: color-mix(in srgb, var(--fourtwigs-checkout-surface) 94%, var(--fourtwigs-checkout-border));
}

body:not([data-ca-fourtwigs-payment-mode="card"]) .fourtwigs-checkout-payment-list > .fourtwigs-stripe-express {
    display: none !important;
}

.fourtwigs-checkout-payment-list > .fourtwigs-stripe-express:not([data-ca-fourtwigs-active-mode="card"]) {
    display: none !important;
}

.fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-stripe-express__test-banner {
    margin-top: 0;
}

@media (max-width: 640px) {
    .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .litecheckout__shipping-method__wrapper,
    .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-choice,
    .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__wrapper {
        padding-right: 66px;
        padding-left: 46px;
    }

    .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .litecheckout__shipping-method__wrapper::before,
    .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-choice::before,
    .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__wrapper::before {
        left: 14px;
    }

    .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list .fourtwigs-checkout-payment-logo {
        right: 14px;
    }

    .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .fourtwigs-checkout-payment-logo {
        right: 14px;
    }

    html body .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment--paypal .litecheckout__shipping-method__radio:checked + .litecheckout__shipping-method__wrapper {
        padding-right: 66px;
        padding-left: 46px;
    }

    .fourtwigs-checkout-panel--payment .fourtwigs-checkout-payment-list > .fourtwigs-stripe-express {
        padding: 14px;
    }
}
