#colorbox.pabex-fastpay-modal {
    --pabex-fastpay-accent: #00ADB5;
    --pabex-fastpay-text: #111827;
    --pabex-fastpay-muted: #6B7280;
    --pabex-fastpay-border: #E5E7EB;
    --pabex-fastpay-soft: #F9FAFB;
    --pabex-fastpay-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

body.pabex-fastpay-open {
    overflow: hidden;
}

#cboxOverlay.pabex-fastpay-overlay {
    background: rgba(17, 24, 39, 0.56) !important;
    backdrop-filter: blur(8px);
}

#colorbox.pabex-fastpay-modal {
    width: min(860px, calc(100vw - 40px)) !important;
    max-width: 860px !important;
    border-radius: 22px;
    box-shadow: var(--pabex-fastpay-shadow);
    overflow: visible !important;
}

#colorbox.pabex-fastpay-modal #cboxWrapper,
#colorbox.pabex-fastpay-modal #cboxContent,
#colorbox.pabex-fastpay-modal #cboxLoadedContent {
    width: 100% !important;
    border-radius: 22px;
    background: #fff;
}

#colorbox.pabex-fastpay-modal #cboxLoadedContent {
    height: auto !important;
    max-height: calc(100vh - 64px);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 28px 30px 30px;
    color: var(--pabex-fastpay-text);
    scrollbar-gutter: stable;
}

#colorbox.pabex-fastpay-modal .express-checkout__header {
    margin: 0 44px 18px 0;
    padding: 0;
}

#colorbox.pabex-fastpay-modal .express-checkout__header-title {
    margin: 0;
    color: var(--pabex-fastpay-text);
    font-size: 28px;
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: 0;
}

#colorbox.pabex-fastpay-modal .pabex-fastpay-products {
    display: grid;
    gap: 16px;
}

#colorbox.pabex-fastpay-modal .pabex-fastpay-product {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--pabex-fastpay-border);
    border-radius: 16px;
    background: var(--pabex-fastpay-soft);
}

#colorbox.pabex-fastpay-modal .express-checkout__product-inner {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

#colorbox.pabex-fastpay-modal .express-checkout__product-image {
    width: 76px;
    height: 76px;
    border: 1px solid var(--pabex-fastpay-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

#colorbox.pabex-fastpay-modal .express-checkout__product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#colorbox.pabex-fastpay-modal .express-checkout__product-name {
    margin: 0;
    color: var(--pabex-fastpay-text);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
}

#colorbox.pabex-fastpay-modal .express-checkout__product-name strong {
    display: inline-block;
    margin-right: 8px;
    color: var(--pabex-fastpay-muted);
    font-weight: 650;
}

#colorbox.pabex-fastpay-modal .express-checkout__product-prices {
    min-width: 132px;
    text-align: right;
}

#colorbox.pabex-fastpay-modal .express-checkout__product-price-standard,
#colorbox.pabex-fastpay-modal .express-checkout__product-price-final {
    margin: 2px 0;
    font-size: 13px;
    line-height: 1.35;
}

#colorbox.pabex-fastpay-modal .express-checkout__product-price-standard {
    color: var(--pabex-fastpay-muted);
}

#colorbox.pabex-fastpay-modal .express-checkout__product-price-final {
    color: var(--pabex-fastpay-text);
    font-weight: 750;
}

#colorbox.pabex-fastpay-modal .pabex-fastpay-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin: 14px 0 0;
    padding: 16px 18px;
    border: 1px solid rgba(0, 173, 181, 0.28);
    border-radius: 16px;
    background: rgba(0, 173, 181, 0.08);
}

#colorbox.pabex-fastpay-modal .express-checkout__products-price-total-label,
#colorbox.pabex-fastpay-modal .express-checkout__products-price-total-value {
    margin: 0;
}

#colorbox.pabex-fastpay-modal .express-checkout__products-price-total-label {
    color: var(--pabex-fastpay-muted);
    font-size: 14px;
    font-weight: 650;
}

#colorbox.pabex-fastpay-modal .express-checkout__products-price-total-value {
    color: var(--pabex-fastpay-text);
    font-size: 22px;
    font-weight: 800;
}

#colorbox.pabex-fastpay-modal .pabex-fastpay-payment {
    margin: 20px 0 0;
    padding: 22px;
    border: 1px solid rgba(0, 173, 181, 0.35);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(0, 173, 181, 0.08), rgba(249, 250, 251, 0.9)),
        #fff;
}

#colorbox.pabex-fastpay-modal .express-checkout__quick-payment-title {
    margin: 0 0 6px;
    color: var(--pabex-fastpay-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

#colorbox.pabex-fastpay-modal .express-checkout__quick-payment-description {
    margin: 0 0 16px;
    color: var(--pabex-fastpay-muted);
    font-size: 14px;
    line-height: 1.45;
}

#colorbox.pabex-fastpay-modal .pabex-fastpay-payment-buttons {
    display: grid;
    gap: 12px;
    align-items: center;
}

#colorbox.pabex-fastpay-modal .pabex-fastpay-gateway {
    min-height: 44px;
}

#colorbox.pabex-fastpay-modal .express-checkout__divider {
    margin: 18px 0;
}

#colorbox.pabex-fastpay-modal .express-checkout__divider-text {
    color: var(--pabex-fastpay-muted);
    font-size: 13px;
}

#colorbox.pabex-fastpay-modal .pabex-fastpay-auth {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--pabex-fastpay-border);
    border-radius: 16px;
    background: #fff;
}

#colorbox.pabex-fastpay-modal .pabex-fastpay-auth .js-go-to-login-step {
    width: auto;
    min-height: 40px;
    border-radius: 999px;
}

#colorbox.pabex-fastpay-modal .pabex-fastpay-guest {
    margin: 10px 0 0;
    color: var(--pabex-fastpay-muted);
    font-size: 14px;
    line-height: 1.45;
}

#colorbox.pabex-fastpay-modal .pabex-fastpay-footer {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--pabex-fastpay-border);
    color: var(--pabex-fastpay-muted);
    font-size: 12px;
    line-height: 1.5;
}

#colorbox.pabex-fastpay-modal .pabex-fastpay-footer a {
    color: var(--pabex-fastpay-text);
    text-decoration-color: rgba(17, 24, 39, 0.28);
}

#colorbox.pabex-fastpay-modal #cboxClose.pabex-fastpay-close {
    top: 18px !important;
    right: 18px !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid var(--pabex-fastpay-border) !important;
    border-radius: 999px !important;
    background-color: #fff !important;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}

#colorbox.pabex-fastpay-modal #cboxClose.pabex-fastpay-close::before,
#colorbox.pabex-fastpay-modal #cboxClose.pabex-fastpay-close::after {
    background: var(--pabex-fastpay-text);
}

@media (max-width: 640px) {
    #colorbox.pabex-fastpay-modal {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        border-radius: 18px;
    }

    #colorbox.pabex-fastpay-modal #cboxWrapper,
    #colorbox.pabex-fastpay-modal #cboxContent,
    #colorbox.pabex-fastpay-modal #cboxLoadedContent {
        border-radius: 18px;
    }

    #colorbox.pabex-fastpay-modal #cboxLoadedContent {
        max-height: calc(100vh - 28px);
        padding: 22px 18px 24px;
    }

    #colorbox.pabex-fastpay-modal .express-checkout__header-title {
        font-size: 23px;
    }

    #colorbox.pabex-fastpay-modal .express-checkout__product-inner {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 12px;
    }

    #colorbox.pabex-fastpay-modal .express-checkout__product-image {
        width: 62px;
        height: 62px;
    }

    #colorbox.pabex-fastpay-modal .express-checkout__product-prices {
        grid-column: 1 / -1;
        min-width: 0;
        text-align: left;
    }

    #colorbox.pabex-fastpay-modal .pabex-fastpay-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    #colorbox.pabex-fastpay-modal .pabex-fastpay-payment {
        padding: 18px;
    }
}
