/* Newsletter, customer links and contact information on a forest green footer. */
body #footer:has(> .footer-container) {
    --home-footer-background: #123b2a;
    --home-footer-accent: #285340;
    --home-footer-accent-hover: #38654f;
    --home-footer-divider: #517561;
    --home-footer-field-border: #a8bfb1;
    margin-top: 0;
    padding-top: 0;
    color: #fff;
    background: var(--home-footer-background);
    border: 0;
    box-shadow: none;
}
body #footer:has(> .footer-container) :focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 3px;
    box-shadow: none !important;
}
body #footer:has(> .footer-container) > .container { width: 100%; max-width: none; padding: 52px 28px 0; background: var(--home-footer-background); }
body #footer:has(> .footer-container) .footer-before-content { max-width: none; padding: 0 0 42px !important; background: transparent; }
body #footer:has(> .footer-container) .footer-before-content #block-newsletter-label { color: #fff !important; font-size: 1.375rem !important; font-weight: 700 !important; text-align: left !important; }
body #footer:has(> .footer-container) .footer-before-content #blockEmailSubscription_displayFooterBefore .block-newsletter-description { color: #c5c5c5 !important; font-size: 0.8125rem !important; text-align: left !important; }
body #footer:has(> .footer-container) .footer-before-content #blockEmailSubscription_displayFooterBefore input[type="email"] { height: 48px; color: #fff !important; background: var(--home-footer-background) !important; border: 1px solid var(--home-footer-field-border) !important; border-radius: 0 !important; box-shadow: none !important; }
body #footer:has(> .footer-container) .footer-before-content #blockEmailSubscription_displayFooterBefore input[type="email"]::placeholder { color: #ccc; opacity: 1; }
body #footer:has(> .footer-container) .footer-before-content #blockEmailSubscription_displayFooterBefore input[type="email"]:focus-visible { outline-offset: -3px; box-shadow: none !important; }
body #footer:has(> .footer-container) .footer-before-content #blockEmailSubscription_displayFooterBefore input[name="submitNewsletter"] {
    min-height: 48px;
    color: #fff !important;
    background: var(--home-footer-accent) !important;
    border: 1px solid var(--home-footer-field-border) !important;
    border-inline-start-width: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body #footer:has(> .footer-container) .footer-before-content #blockEmailSubscription_displayFooterBefore input[name="submitNewsletter"]:is(:hover, :focus-visible) { background: var(--home-footer-accent-hover) !important; }
body #footer:has(> .footer-container) .footer-container { margin-top: 0; padding-top: 35px; color: #fff; background: var(--home-footer-background); border-top: 1px solid var(--home-footer-divider); box-shadow: none; }
body #footer:has(> .footer-container) .footer-container > .container { width: 100%; max-width: none; padding: 0 28px; }
body #footer:has(> .footer-container) .footer-container h3,
body #footer:has(> .footer-container) .footer-container h4,
body #footer:has(> .footer-container) .footer-container .h3,
body #footer:has(> .footer-container) .footer-container .h4,
body #footer:has(> .footer-container) .footer-container .block-contact,
body #footer:has(> .footer-container) .footer-container .block-contact span,
body #footer:has(> .footer-container) .footer-container a,
body #footer:has(> .footer-container) .footer-container p { color: #ddd !important; }
body #footer:has(> .footer-container) .footer-container a:is(:hover, :focus-visible) {
    color: #fff !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
body #footer:has(> .footer-container) :is(.footer-container ul li, .block-contact) a::after { content: none; }
body #footer:has(> .footer-container) .footer-container a { font-size: 0.8125rem; }
body #footer:has(> .footer-container) .footer-container .row:last-child { margin-top: 20px; }
body #footer:has(> .footer-container) .title .collapse-icons { color: #fff; }
body #footer:has(> .footer-container) .block-social li {
    background-color: var(--home-footer-accent) !important;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
body #footer:has(> .footer-container) .block-social li:is(:hover, :has(a:focus-visible)) {
    background-color: var(--home-footer-accent-hover) !important;
    opacity: 1;
}
body #footer:has(> .footer-container) .block-social a { color: #fff !important; }
body #footer:has(> .footer-container) .block-social li.facebook {
    background-image: url("../img/social/facebook.svg") !important;
}
body #footer:has(> .footer-container) .block-social li.instagram {
    background-image: url("../img/social/instagram.svg") !important;
}

@media (max-width: 767px) {
    body #footer:has(> .footer-container) > .container { padding: 40px 16px 0; }
    body #footer:has(> .footer-container) .footer-before-content { padding-bottom: 35px !important; }
    body #footer:has(> .footer-container) .footer-before-content #blockEmailSubscription_displayFooterBefore input[name="submitNewsletter"] { border-inline-start-width: 1px !important; }
    body #footer:has(> .footer-container) .footer-container > .container { padding: 0 16px; }
    body #footer:has(> .footer-container) .footer-container .links ul {
        background: var(--home-footer-accent);
    }
    body #footer:has(> .footer-container) .footer-container .links .title,
    body #footer:has(> .footer-container) .footer-container .block-contact { border-color: var(--home-footer-divider); }
}


@media (max-width: 767px) {
    body #footer:has(> .footer-container) .links button.title {
        appearance: none;
        transition: none;
        color: #ddd;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        border-block-end: 1px solid var(--home-footer-divider);
    }

    body #footer:has(> .footer-container) .links button.title .collapse-icons {
        color: #fff;
        background: var(--home-footer-accent);
        border-color: var(--home-footer-divider);
        border-radius: 0;
    }

    body #footer:has(> .footer-container) .links button.title[aria-expanded="true"] .add {
        transform: rotate(180deg);
    }
}
