.fel-wld-offer[hidden] { display: none !important; }

.fel-wld-offer {
    --offer-navy: var(--pri, #125763);
    --offer-button-text: var(--pri-ink, #fff);
    box-sizing: border-box;
    display: grid;
    gap: .35rem;
    align-content: start;
    justify-items: start;
    max-width: 100%;
    margin: 1rem 0;
    padding: .65rem .85rem;
    border: 1px solid var(--line, #bed3cf);
    border-inline-start: 4px solid var(--offer-navy);
    border-radius: .65rem;
    background: var(--pri-soft, #eef5f3);
    color: var(--ink, #1f3036);
    font-size: .95rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.fel-wld-offer :is(h2, h3, p, ul) { margin: 0; color: inherit; }
.fel-wld-offer :is(h2, h3) {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: clamp(1.03rem, 2.5vw, 1.25rem);
    line-height: 1.35;
}
.fel-wld-offer :is(h2, h3)::before,
.fel-wld-offer :is(h2, h3)::after { content: none; }
.fel-wld-offer p { font-size: inherit; }
.fel-wld-offer ul { padding-inline-start: 1.15em; }
.fel-wld-offer__kind, .fel-wld-offer__price, .fel-wld-offer [data-wld-countdown] {
    color: var(--sub, #405960);
    font-size: .78rem;
}
/* The WordPress hub and materials pages define scoped link styles, including hover. */
.fel-wld-offer .fel-wld-offer__cta, .fel-wld-offer .fel-wld-offer__cta:visited {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .38rem .75rem;
    border-radius: .45rem;
    background: var(--offer-navy) !important;
    color: var(--offer-button-text) !important;
    text-decoration: none !important;
    font-weight: 700;
    text-align: center;
}
.fel-wld-offer .fel-wld-offer__cta:hover { filter: brightness(.88); }
.fel-wld-offer :is(a,button):focus-visible { outline: 3px solid var(--offer-navy); outline-offset: 3px; }
.fel-wld-offer--material { font-size: .88rem; }
#fel-learning-top .fel-wld-today-offers {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    margin-block: 7px 0;
    min-width: 0;
}
#fel-learning-top a.fel-wld-today-offer {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 7px clamp(10px, 2vw, 16px) !important;
    border: 1px solid #cddbd6 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #233c38 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
#fel-learning-top a.fel-wld-today-offer:hover { border-color: #66877d !important; }
#fel-learning-top a.fel-wld-today-offer:focus-visible { outline: 2px solid #205642; outline-offset: 2px; }
.fel-wld-today-offer__text {
    display: grid;
    gap: 2px;
    min-width: 0;
    line-height: 1.3;
    font-size: .78rem;
}
.fel-wld-today-offer__text .fel-wld-offer__kind { font-size: .71rem; }
.fel-wld-today-offer__text strong { font-size: .88rem; }
#fel-learning-top .fel-wld-today-offer__arrow {
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    height: 31px;
    border: 1px solid #cddbd6 !important;
    border-radius: 50% !important;
    color: #205642;
    font-weight: 700;
}

.fel-wld-offer--bar { display: none; }
@media (max-width: 599px) {
    .fel-wld-offer--top { gap: .25rem; padding: .45rem .65rem; font-size: .86rem; }
    .fel-wld-bar-visible { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
    .fel-wld-offer--bar:not([hidden]) {
        position: fixed;
        z-index: 30;
        inset: auto 0 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        grid-template-rows: auto auto;
        column-gap: .5rem;
        margin: 0;
        border-radius: 0;
        border-inline-start: 0;
        padding: .3rem .65rem max(.3rem, env(safe-area-inset-bottom));
        box-shadow: 0 -2px 12px #17333630;
    }
    .fel-wld-offer--bar .fel-wld-offer__kind { grid-area: 1 / 1; }
    .fel-wld-offer--bar .fel-wld-offer__cta { grid-area: 2 / 1; gap: .15rem .45rem; flex-wrap: wrap; width: 100%; min-width: 0; }
    .fel-wld-offer__close {
        grid-area: 2 / 2;
        align-self: stretch;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        border: 1px solid currentColor;
        border-radius: .45rem;
        background: transparent;
        color: inherit;
        line-height: 1;
        font-size: 1.5rem;
        cursor: pointer;
    }
    body:has(dialog[open]) .fel-wld-offer--bar { display: none !important; }
}

@media (max-width: 599px) {
    html:has(body.fel-wld-bar-visible) { scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}
