/**
 * "From X/month" on product cards and in the cart. Brand tokens match the
 * product-page block (blue #034ea2, navy #053879, yellow #ffcd00). The font
 * is inherited from the theme on purpose: these pages do not load Cairo.
 */
.egygamer-bnpl-card,
.egygamer-bnpl-cart {
    --bnpl-navy: #053879;
    --bnpl-yellow: #ffcd00;
    --bnpl-sky: #f0f6fd;
    --bnpl-line: #d9e4f2;
    --bnpl-muted: #5a6b82;
}

/* ------------------------------ product card ----------------------------- */

.egygamer-bnpl-card {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin-block: 6px 4px;
    padding-block: 3px;
    padding-inline: 3px 9px;
    box-sizing: border-box;
    background: var(--bnpl-sky);
    border: 1.5px solid var(--bnpl-line);
    border-radius: 999px;
    box-shadow: none;
    color: var(--bnpl-navy);
    cursor: pointer;
    font: inherit;
    line-height: 1.25;
    text-align: start;
    text-transform: none;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
    -webkit-appearance: none;
    appearance: none;
}

.egygamer-bnpl-card:hover,
.egygamer-bnpl-card:focus-visible {
    background: #fff;
    border-color: var(--bnpl-navy);
    box-shadow: 0 2px 0 var(--bnpl-navy);
    color: var(--bnpl-navy);
}

.egygamer-bnpl-card:focus-visible {
    outline: 2px solid var(--bnpl-yellow);
    outline-offset: 2px;
}

.egygamer-bnpl-card:active {
    box-shadow: none;
    transform: translateY(1px);
}

.egygamer-bnpl-card .bnpl-card-coin {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--bnpl-yellow);
    border: 1.5px solid var(--bnpl-navy);
    border-radius: 50%;
    color: var(--bnpl-navy);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.egygamer-bnpl-card .bnpl-card-text {
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
}

.egygamer-bnpl-card .chevron-glyph {
    flex: 0 0 auto;
    opacity: .7;
}

/* The arrow points the reading direction; Arabic reads right to left. */
:lang(ar) .egygamer-bnpl-card .chevron-glyph {
    transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
    .egygamer-bnpl-card {
        transition: none;
    }
}

/* ------------------------ shared sheet on listing pages ------------------ */

#bnpl-listing-modal [data-role="bnpl-sheet"] {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

#bnpl-listing-modal .modal-product {
    margin: 0;
    color: var(--bnpl-navy);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#bnpl-listing-modal .modal-product:empty {
    display: none;
}

/* -------------------------------- the cart ------------------------------- */

.egygamer-bnpl-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-block: 14px;
    padding: 12px 14px;
    box-sizing: border-box;
    background: var(--bnpl-sky);
    border: 2px solid var(--bnpl-line);
    border-radius: 14px;
    color: var(--bnpl-navy);
}

.egygamer-bnpl-cart .bnpl-cart-coin {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bnpl-yellow);
    border: 2px solid var(--bnpl-navy);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.egygamer-bnpl-cart .bnpl-cart-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.egygamer-bnpl-cart .bnpl-cart-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.egygamer-bnpl-cart .bnpl-cart-headline {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
}

.egygamer-bnpl-cart .bnpl-cart-note {
    color: var(--bnpl-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}
