.labeaute-free-delivery-banner {
    background: #fff8e1;
    border: 1px solid #f4c430;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 1em;
    line-height: 1.4;
    text-align: center;
    color: #5c4200;
    /* Anchor for the asterisk eligibility-note popover so it can size
       relative to the banner (capped at banner width) instead of
       overflowing past the slide-cart edge or the viewport. */
    position: relative;
}

.labeaute-free-delivery-banner--qualified {
    background: #e6f4ea;
    border-color: #2e7d32;
    color: #1e4620;
}

.labeaute-free-delivery-banner--teaser {
    background: #e3f2fd;
    border-color: #1565c0;
    color: #0d3d6b;
}

.labeaute-free-delivery-banner a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.labeaute-free-delivery-banner a:hover {
    text-decoration: none;
}

.labeaute-free-delivery-banner strong {
    font-weight: 700;
}

.labeaute-free-delivery-banner .woocommerce-Price-amount {
    font-weight: 700;
}

/* Mini-cart / slide-cart surfaces get 20% larger type so the message
   stays readable inside the compact pane. */
.woocommerce-mini-cart .labeaute-free-delivery-banner,
.elementor-menu-cart .labeaute-free-delivery-banner {
    font-size: 1.2em;
}

/* Inline footnote asterisk shown in the visitor teaser. Tap / hover /
   focus reveals the eligibility note in a popover anchored to the
   banner box (not the asterisk) — the slide cart and mobile checkout
   are narrow enough that an asterisk-anchored balloon overflows the
   pane and gets clipped. Anchoring to the banner keeps the note
   inside whatever surface the banner is in. */
.labeaute-fd-info {
    display: inline;
}

.labeaute-fd-info-mark {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.labeaute-fd-info-mark:hover {
    text-decoration: none;
}

.labeaute-fd-info-mark:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.labeaute-fd-info-note {
    position: absolute;
    /* Below the banner rather than above: the slide cart clips
       anything above the banner top, and below leaves room for the
       cart contents to be obscured by the popover (z-index 10). */
    top: calc(100% + 6px);
    left: 8px;
    right: 8px;
    padding: 6px 10px;
    background: #333;
    border-radius: 4px;
    color: #fff;
    font-size: 0.85em;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s, visibility 0.15s;
    pointer-events: none;
    z-index: 10;
}

.labeaute-fd-info:hover .labeaute-fd-info-note,
.labeaute-fd-info:focus-within .labeaute-fd-info-note {
    visibility: visible;
    opacity: 1;
}
