.fbc-promo-banner[hidden] {
    display: none;
}

.fbc-promo-banner {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Typold', sans-serif;
}

.fbc-promo-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 38, 33, .54);
    opacity: 0;
    transition: opacity .25s ease;
}

.fbc-promo-banner__panel {
    position: relative;
    z-index: 1;
    width: min(1000px, 100%);
    max-height: calc(100vh - 48px);
    border-radius: 6px;
    background: #f5f1ea;
    color: #2a2621;
    box-shadow: 0 32px 80px -24px rgba(42, 38, 33, .4), 0 2px 8px rgba(42, 38, 33, .08);
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}

.fbc-promo-banner.is-active .fbc-promo-banner__overlay,
.fbc-promo-banner.is-active .fbc-promo-banner__panel {
    opacity: 1;
}

.fbc-promo-banner.is-active .fbc-promo-banner__panel {
    transform: translateY(0) scale(1);
}

.fbc-promo-banner__close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(42, 38, 33, .22);
    border-radius: 2px;
    background: #f5f1ea;
    color: #2a2621;
    box-shadow: none;
    cursor: pointer;
    transition: background .2s ease;
}

.fbc-promo-banner__close:hover {
    background: #ece5da;
}

.fbc-promo-banner__close::before,
.fbc-promo-banner__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 1px;
    background: currentColor;
}

.fbc-promo-banner__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.fbc-promo-banner__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.fbc-promo-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 14px;
    color: #9a8f7e;
    font-size: 11.5px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.fbc-promo-banner__eyebrow span {
    display: block;
    width: 7px;
    height: 7px;
    background: #847454;
}

.fbc-promo-banner__grid {
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: 60px;
    align-items: start;
    padding: 40px 48px 38px;
}

.fbc-promo-banner__title {
    margin: 26px 0 0;
    color: #262320;
    font-family: 'Typold', sans-serif;
    font-size: clamp(42px, 5vw, 54px);
    line-height: .96;
    font-weight: 800;
    letter-spacing: -.015em;
    text-transform: uppercase;
}

.fbc-promo-banner__text {
    max-width: 30em;
    margin: 24px 0 0;
    color: #5a5349;
    font-size: 16.5px;
    line-height: 1.62;
    font-weight: 300;
}

.fbc-promo-banner__content > .fbc-promo-banner__button {
    margin-top: 30px;
}

.fbc-promo-banner__products-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    min-height: 14px;
    margin-bottom: 14px;
}

.fbc-promo-banner__products-heading span:first-child {
    color: #9a8f7e;
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.fbc-promo-banner__products-heading span:last-child {
    color: #b4aa98;
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
    letter-spacing: .1em;
}

.fbc-promo-banner__products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fbc-promo-banner__product {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
    border: 1px solid rgba(42, 38, 33, .1);
    border-radius: 4px;
    background: #fbf9f5;
    color: #2a2621;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.fbc-promo-banner__product:hover {
    border-color: rgba(132, 116, 84, .55);
    color: #2a2621;
    text-decoration: none;
    transform: translateY(-1px);
}

.fbc-promo-banner__product-image {
    display: block;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 3px;
    background: #e6dfd2;
}

.fbc-promo-banner__product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fbc-promo-banner__product-content {
    flex: 1;
    min-width: 0;
}

.fbc-promo-banner__product-title {
    display: block;
    color: #2a2621;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fbc-promo-banner__product-price {
    display: block;
    margin-top: 7px;
    color: #847454;
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .03em;
}

.fbc-promo-banner__product-price del {
    opacity: .6;
}

.fbc-promo-banner__product-price ins {
    text-decoration: none;
}

.fbc-promo-banner__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 48px;
    border-top: 1px solid rgba(42, 38, 33, .12);
    background: #f0ebe1;
}

.fbc-promo-banner__booksy {
    color: #2a2621;
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .06em;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-transform: uppercase;
}

.fbc-promo-banner__booksy:hover {
    color: #847454;
}

.fbc-promo-banner__actions {
    display: flex;
    gap: 14px;
}

.fbc-promo-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border: 1px solid rgba(42, 38, 33, .4);
    border-radius: 2px;
    background: transparent;
    color: #2a2621;
    font-size: 12.5px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .08em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.fbc-promo-banner__button:hover {
    background: rgba(42, 38, 33, .06);
    color: #2a2621;
    text-decoration: none;
}

.fbc-promo-banner__button--primary {
    padding: 15px 30px;
    border-color: #7a6855;
    background: #7a6855;
    color: #f5f1ea;
}

.fbc-promo-banner__button--primary:hover {
    border-color: #6e6044;
    background: #6e6044;
    color: #f5f1ea;
}

@media (max-width: 767px) {
    .fbc-promo-banner {
        align-items: center;
        padding: 10px;
    }

    .fbc-promo-banner__panel {
        display: flex;
        flex-direction: column;
        max-height: calc(100dvh - 20px);
        overflow: hidden;
        border-radius: 4px;
        box-shadow: none;
    }

    .fbc-promo-banner__close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        background: #f5f1ea;
    }

    .fbc-promo-banner__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        flex: 1 1 auto;
        min-height: 0;
        gap: 18px;
        overflow: hidden;
        padding: 44px 18px 16px;
    }

    .fbc-promo-banner__eyebrow {
        gap: 9px;
        font-size: 10px;
        letter-spacing: .18em;
    }

    .fbc-promo-banner__title {
        margin-top: 20px;
        font-size: 30px;
    }

    .fbc-promo-banner__text {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.45;
    }

    .fbc-promo-banner__content > .fbc-promo-banner__button {
        margin-top: 20px;
    }

    .fbc-promo-banner__products-heading {
        margin-bottom: 10px;
    }

    .fbc-promo-banner__products-heading span:first-child,
    .fbc-promo-banner__products-heading span:last-child {
        font-size: 10px;
    }

    .fbc-promo-banner__products {
        position: relative;
        min-height: 0;
        max-height: 150px;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 4px;
    }

    .fbc-promo-banner__products::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background: linear-gradient(to bottom, rgba(245, 241, 234, 0), #f5f1ea);
        pointer-events: none;
    }

    .fbc-promo-banner__product {
        gap: 14px;
        padding: 10px 12px;
    }

    .fbc-promo-banner__product-image {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .fbc-promo-banner__product-title {
        font-size: 11.5px;
        line-height: 1.22;
    }

    .fbc-promo-banner__product-price {
        margin-top: 5px;
        font-size: 11px;
    }

    .fbc-promo-banner__footer {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px 18px 18px;
    }

    .fbc-promo-banner__booksy {
        font-size: 11.5px;
        text-align: center;
    }

    .fbc-promo-banner__actions {
        flex-direction: column;
    }

    .fbc-promo-banner__button {
        width: 100%;
        max-width: calc(100% - 30px);
        padding: 12px 14px;
        font-size: 11px;
        line-height: 1.15;
        letter-spacing: .06em;
        white-space: normal;
    }

    .fbc-promo-banner__button--primary {
        padding: 13px 14px;
    }

    .fbc-promo-banner__content > .fbc-promo-banner__button {
        max-width: calc(100% - 30px);
    }
}
