/*
 * Branded footer. Colours come from the store's brand settings through --ft-primary and --ft-accent
 * (set on the footer element). Selectors start with "html body footer.bb-footer" so they win over the
 * older light/dark footer layouts without touching them.
 */
html body footer.bb-footer.bb-footer--brand {
    --ft-bg: color-mix(in srgb, var(--ft-primary, #0b5bd3) 24%, #040a1c);
    --ft-bg-2: color-mix(in srgb, var(--ft-primary, #0b5bd3) 34%, #040a1c);
    --ft-text: #c9d4ee;
    --ft-muted: #8fa0c6;
    --ft-line: rgba(255, 255, 255, .12);
    margin-top: 72px !important;
    padding: 0 0 18px !important;
    border: 0 !important;
    background: linear-gradient(180deg, var(--ft-bg-2) 0%, var(--ft-bg) 55%) !important;
    color: var(--ft-text) !important;
    position: relative;
}
/* a thin accent line across the top edge */
html body footer.bb-footer.bb-footer--brand::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ft-primary, #0b5bd3), var(--ft-accent, #f5c400));
}

/* benefit cards float over the top edge of the dark footer */
html body footer.bb-footer.bb-footer--brand .bb-footer-service-grid {
    margin-top: -44px !important;
    margin-bottom: 18px !important;
    position: relative;
    z-index: 2;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-service-grid a {
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(4, 10, 28, .22) !important;
    border: 0 !important;
}

html body footer.bb-footer.bb-footer--brand .bb-footer-columns {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
    color: var(--ft-text) !important;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-columns > section > strong {
    display: block;
    margin: 0 0 14px !important;
    color: var(--ft-accent, #f5c400) !important;
    font-size: .78rem !important;
    letter-spacing: .12em;
    text-transform: uppercase;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-columns > section:not(.bb-footer-brand) > a {
    display: block;
    padding: 5px 0 !important;
    color: var(--ft-text) !important;
    font-size: .92rem !important;
    text-decoration: none !important;
    transition: color .15s ease, transform .15s ease;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-columns > section:not(.bb-footer-brand) > a::before,
html body footer.bb-footer.bb-footer--brand .bb-footer-columns > section:not(.bb-footer-brand) > a::marker {
    content: none !important;
    display: none !important;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-columns > section:not(.bb-footer-brand) > a:hover,
html body footer.bb-footer.bb-footer--brand .bb-footer-columns > section:not(.bb-footer-brand) > a:focus-visible {
    color: #fff !important;
    transform: translateX(3px);
}

/* brand column */
html body footer.bb-footer.bb-footer--brand .bb-footer-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    padding: 0 !important;
    color: #fff !important;
    text-decoration: none !important;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-logo img.bb-footer-logo-mark {
    width: auto !important;
    height: 60px !important;
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: contain;
}
/* fallback when no white version can be made: the original logo on a white tile */
html body footer.bb-footer.bb-footer--brand .bb-footer-logo img:not(.bb-footer-logo-mark) {
    width: 54px !important;
    height: 54px !important;
    padding: 6px;
    box-sizing: border-box;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
html body footer.bb-footer.bb-footer--brand .bb-footer-logo strong {
    color: #fff !important;
    font-size: 1.05rem !important;
    line-height: 1.2;
    letter-spacing: .01em;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-tagline {
    margin: 14px 0 16px !important;
    max-width: 34ch;
    color: var(--ft-muted) !important;
    font-size: .92rem !important;
    line-height: 1.55;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-contact {
    display: grid !important;
    gap: 10px !important;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-contact a,
html body footer.bb-footer.bb-footer--brand .bb-footer-contact .bb-footer-address,
html body footer.bb-footer.bb-footer--brand .bb-footer-contact .store-support-phones {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: var(--ft-text) !important;
    font-size: .9rem !important;
    line-height: 1.4;
    text-decoration: none !important;
    flex-wrap: wrap;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-contact .store-support-phones a { display: inline !important; }
html body footer.bb-footer.bb-footer--brand .bb-footer-contact a:hover { color: #fff !important; }
html body footer.bb-footer.bb-footer--brand .bb-footer-contact svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 2px;
    color: var(--ft-accent, #f5c400);
    stroke: currentColor;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-contact span[aria-hidden="true"] { color: var(--ft-accent, #f5c400); }

html body footer.bb-footer.bb-footer--brand .bb-footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
html body footer.bb-footer.bb-footer--brand .bb-footer-social a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 1px solid var(--ft-line) !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07) !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-social a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
html body footer.bb-footer.bb-footer--brand .bb-footer-social a:hover,
html body footer.bb-footer.bb-footer--brand .bb-footer-social a:focus-visible { transform: translateY(-2px); border-color: transparent !important; }
html body footer.bb-footer.bb-footer--brand .bb-footer-social .bb-social-facebook:hover,
html body footer.bb-footer.bb-footer--brand .bb-footer-social .bb-social-facebook:focus-visible { background: #1877f2 !important; }
html body footer.bb-footer.bb-footer--brand .bb-footer-social .bb-social-instagram:hover,
html body footer.bb-footer.bb-footer--brand .bb-footer-social .bb-social-instagram:focus-visible { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888) !important; }
html body footer.bb-footer.bb-footer--brand .bb-footer-social .bb-social-whatsapp:hover,
html body footer.bb-footer.bb-footer--brand .bb-footer-social .bb-social-whatsapp:focus-visible { background: #25d366 !important; }

html body footer.bb-footer.bb-footer--brand .bb-footer-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
html body footer.bb-footer.bb-footer--brand .bb-footer-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px !important;
    border: 1px solid rgba(245, 196, 0, .35) !important;
    border-radius: 999px;
    background: rgba(245, 196, 0, .1) !important;
    color: var(--ft-accent, #f5c400) !important;
    font-size: .75rem !important;
    font-weight: 600;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-trust svg { width: 14px; height: 14px; stroke: currentColor; }

/* bottom bar */
html body footer.bb-footer.bb-footer--brand .bb-footer-bottom {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding-top: 18px !important;
    border-top: 1px solid var(--ft-line) !important;
    color: var(--ft-muted) !important;
    font-size: .82rem !important;
}
html body footer.bb-footer.bb-footer--brand .bb-footer-bottom a { color: var(--ft-text) !important; text-decoration: none !important; }
html body footer.bb-footer.bb-footer--brand .bb-footer-bottom a:hover { color: #fff !important; }
html body footer.bb-footer.bb-footer--brand .bb-footer-promise b { background: var(--ft-accent, #f5c400) !important; }
html body footer.bb-footer.bb-footer--brand .bb-footer-top { font-weight: 600; }

@media (max-width: 760px) {
    html body footer.bb-footer.bb-footer--brand { margin-top: 56px !important; }
    html body footer.bb-footer.bb-footer--brand .bb-footer-bottom { justify-content: flex-start; }
    /* leave room for the fixed mobile bottom navigation */
    html body.has-mobile-bottom-nav footer.bb-footer.bb-footer--brand { padding-bottom: 96px !important; }
}

/* keep every footer block inside the page gutters, centred like the rest of the store */
html body footer.bb-footer.bb-footer--brand .bb-footer-service-grid,
html body footer.bb-footer.bb-footer--brand .bb-footer-columns,
html body footer.bb-footer.bb-footer--brand .bb-footer-bottom {
    box-sizing: border-box;
    width: min(1240px, calc(100% - 32px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
