/* =================== Black Friday offer: the strip at the top and the pricing card =================== */

/* ---------- The strip under the menu of every page ---------- */

/* The whole strip is one link to the pricing page. The items wrap on a small screen.
   The strip is dark blue, with a burgundy line under it. */
.bf-site {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .75rem;
    padding: .7rem 1rem;
    border-bottom: 3px solid #520e26;
    background-color: #0b1633;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    text-wrap: balance;
    transition: background-color .2s ease;
}

/* Only the color changes on hover: the dark blue becomes a little lighter. */
.bf-site:hover,
.bf-site:focus-visible {
    background-color: #13224a;
    color: #ffffff;
}

.bf-site strong {
    color: #ffd34d;
    font-weight: 800;
}

.bf-site s,
.bf-page s {
    opacity: .75;
}

.bf-site-cta {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

/* The last day and the link text wrap together.
   The link text then never stands alone on a line. */
.bf-site-end {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .75rem;
}

/* The last day of the offer, with a clock icon. */
.bf-site-date {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.bf-site-date svg {
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    color: #ffd34d;
}

/* The yellow "Black Friday" label. */
.bf-pill {
    display: inline-block;
    padding: .15rem .7rem;
    border-radius: 999px;
    background-color: #ffba00;
    color: #111111;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* On a phone, and on a short screen such as a phone turned sideways, the strip stays short,
   because it stays on the screen. The text is a little smaller.
   The whole strip is a link, so the link text is not needed. */
@media (max-width: 575.98px), (max-height: 500px) {
    .bf-site {
        gap: .25rem .5rem;
        padding: .5rem .75rem;
        font-size: .8125rem;
    }

    .bf-site-cta {
        display: none;
    }

    /* A narrower label keeps the label and the Arabic headline on one line at 360px. */
    .bf-pill {
        padding: .15rem .55rem;
    }
}

/* The strip stays under the menu while the page scrolls, on every screen.
   The top value is the menu height, as in .body-nav-fixed in theme.css. The menu stays above the strip. */
.bf-site {
    position: sticky;
    top: 93px;
    z-index: 1020;
}

@media (max-width: 1199.98px) {
    .bf-site {
        top: 109px;
    }
}

@media (max-width: 310.98px) {
    .bf-site {
        top: 149px;
    }
}

/* ---------- The badges of the plans in the pricing box ---------- */

/* During the offer the badges have long texts. A badge wraps onto a second line,
   so it never passes the edge of its plan card. */
.pricing-fee .badge {
    white-space: normal;
    line-height: 1.35;
    text-wrap: balance;
}

/* ---------- The card before the pricing box ---------- */

/* The card looks like a coupon. A dark burgundy side holds the badge.
   A dashed line separates the side from the dark blue body with the texts. */
.bf-page {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #0b1633;
    color: #ffffff;
    text-align: center;
}

/* On a phone, the side is a band above the body. */
.bf-page-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.5rem;
    border-bottom: 2px dashed rgba(255, 255, 255, .35);
    background-color: #440b1f;
}

.bf-page-body {
    padding: 1.5rem;
}

/* The large rotated "50% OFF" badge. */
.bf-page-badge {
    flex-shrink: 0;
    padding: .75rem 1.1rem;
    border-radius: .9rem;
    background-color: #ffba00;
    color: #111111;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    transform: rotate(-4deg);
    white-space: nowrap;
}

.bf-page-title {
    margin: 0 0 .35rem;
    color: #ffffff;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.3;
}

.bf-page-text {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
}

.bf-page-text strong {
    color: #ffd34d;
}

/* The yellow line that says the price stays for life.
   The lock icon stands at the start of the text, so the line follows the text alignment. */
.bf-page-lock {
    margin: .85rem 0 0;
    color: #ffe08a;
    font-weight: 600;
    line-height: 1.45;
    text-wrap: pretty;
}

.bf-page-lock svg {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    margin-inline-end: .25rem;
    vertical-align: -.15em;
    color: #ffd34d;
}

/* The yellow label under the text: the last day of the offer. */
.bf-page-notes {
    display: flex;
    justify-content: center;
    margin-top: .85rem;
}

.bf-page-note {
    display: inline-block;
    padding: .25rem .85rem;
    border-radius: 999px;
    background-color: #ffba00;
    color: #111111;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* From a tablet up, the side stands beside the body. The dashed line is between them. */
@media (min-width: 768px) {
    .bf-page {
        flex-direction: row;
        text-align: start;
    }

    .bf-page-side {
        flex-shrink: 0;
        padding: 1.75rem 2.25rem;
        border-bottom: 0;
        border-inline-end: 2px dashed rgba(255, 255, 255, .35);
    }

    .bf-page-body {
        padding: 1.75rem 2.25rem;
    }

    .bf-page-badge {
        font-size: 2rem;
    }

    .bf-page-notes {
        justify-content: flex-start;
    }
}
