.december-offer {
    position: relative;
    isolation: isolate;
    color: #0c2348;
    background: linear-gradient(90deg, #dceffc, #f8fcff 40%, #eff8ff 78%, #dceffc);
    border-block: 1px solid #d5e7f4;
    font-family: Inter, DM_Sans, sans-serif;
}

.december-offer::before,
.december-offer::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block: 0;
    width: min(9vw, 9rem);
    pointer-events: none;
    background: url("../img/december-frost.png") left center / auto 100% no-repeat;
    mask-image: linear-gradient(to right, #000, transparent);
}

.december-offer::before { left: 0; }
.december-offer::after { right: 0; transform: scaleX(-1); }

.december-offer__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "title date" "copy copy";
    align-items: center;
    gap: .45rem .65rem;
    margin-inline: auto;
    padding: .65rem 1rem .75rem;
    font-size: .9375rem;
    line-height: 1.4;
}

.december-offer__title {
    grid-area: title;
    min-width: 0;
    overflow-wrap: anywhere;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 750;
}

.december-offer__title svg { flex: none; color: #1582b9; }
.december-offer__copy { grid-area: copy; min-width: 0; margin: 0; font: inherit; overflow-wrap: anywhere; }
.december-offer__copy strong { font-weight: 750; }

.december-offer__date {
    grid-area: date;
    justify-self: end;
    padding: .12em .65em;
    border: 1px solid #3184b7;
    border-radius: 2rem;
    background: #f9fdff;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
}

/* The mobile header normally overlays the photo. Give the offer its own row. */
body:not(.sticky-header) .header_section:has(+ .december-offer) { position: relative; }

/* The inner-page mastheads used to reserve 5rem for the overlaid mobile menu.
   The offer now places that menu in the normal flow. */
@media (max-width: 63.99rem) {
    .header_image > .mt-20,
    .mt-20:has(> img[src$="/img/offer_banner.jpg"]) { margin-top: 0; }

    .header_image:has(> .mt-20) { height: calc(300px - 5rem); }
}

.december-mobile-brand {
    align-items: center;
    height: 5rem;
    padding-block: .5rem;
}

.december-mobile-brand a {
    padding: .5rem;
    border-radius: .5rem;
    background: white;
}

.december-mobile-brand img { width: 5rem; height: auto; }

@media (min-width: 48rem) {
    .december-offer__inner {
        grid-template-areas: "title copy date";
        grid-template-columns: auto minmax(0, auto) auto;
        justify-content: center;
        min-height: 2.75rem;
        padding-block: .4rem;
        font-size: .875rem;
    }

    .december-offer__date { white-space: nowrap; }
    .december-offer__title::after { content: "·"; }
}

/* Leave room for the desktop logo that extends below the navigation. */
@media (min-width: 64rem) {
    .december-offer__inner { padding-inline-start: 10.5rem; }
}

@media (min-width: 64rem) and (max-width: 74rem) {
    .header_section:has(+ .december-offer) :is(.gap-x-5, .gap-x-9) { column-gap: .5rem; }
}

@media (min-width: 80rem) and (max-width: 95.99rem) {
    .december-offer__inner {
        max-width: none;
        padding-inline-start: calc((100% - 80rem) / 2 + 10.5rem);
        column-gap: .45rem;
    }
}

@media (min-width: 96rem) {
    .december-offer__inner { font-size: 1rem; }
    .december-offer__date { font-size: .875rem; }
}

@media (max-width: 39.99rem) {
    .december-offer::before,
    .december-offer::after {
        width: 1.4rem;
        background-image: url("../img/december-frost-mobile.png");
        background-size: 100% 100%;
    }

    body:has(.december-offer) [data-component="hero"] .hero-awards {
        position: static;
        padding: .75rem 1rem;
    }

    body:has(.december-offer) .hero-awards > img {
        width: 100%;
        border-radius: .75rem;
    }
}

@media (max-width: 22rem) {
    .december-offer__inner { gap: .4rem; padding-inline: .75rem; }
    .december-offer__title { gap: .25rem; }
    .december-offer__title svg { width: 1.1rem; }
    .december-offer__date { font-size: .75rem; }
}
