/* The footer continues to use the native Flatsome widgets and payment bar. */
#footer.footer-wrapper {
    --footer-ink: var(--hb-ink, #18372f);
    --footer-muted: #42584d;
    --footer-line: #aec1b0;
    --footer-bg: var(--hb-sage, #e4eee0);
    --footer-font: var(--hb-type, system-ui, sans-serif);
    --footer-heading: var(--hb-serif, Georgia, serif);
    --footer-accent: var(--hb-berry, #742945);
    --footer-gutter: clamp(32px, 5vw, 52.5px);
    background: var(--footer-bg);
}

#footer.footer-wrapper .footer-widgets.footer-2 {
    padding-block: 36px 48px;
    background: var(--footer-bg) !important;
}

#footer.footer-wrapper .footer-2 > .row,
#footer.footer-wrapper .absolute-footer > .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1260px;
    padding-inline: var(--footer-gutter);
    margin-inline: auto;
}

#footer.footer-wrapper .footer-2 > .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: clamp(24px, 3vw, 40px);
}

#footer.footer-wrapper .footer-2 > .row::before,
#footer.footer-wrapper .footer-2 > .row::after {
    display: none;
}

#footer.footer-wrapper .footer-2 > .row > .widget {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

#footer.footer-wrapper .footer-2 .custom-html-widget > div > p:first-child:not(:has(a)),
#footer.footer-wrapper .footer-2 #custom_html-6 h3 {
    margin: 0 0 22px !important;
    color: var(--footer-ink) !important;
    font: 400 25px/1.24 var(--footer-heading) !important;
    letter-spacing: 0 !important;
    text-transform: none;
}

#footer.footer-wrapper .footer-2 .custom-html-widget > div > p.sf-footer-accordion-heading:first-child {
    margin-bottom: 0 !important;
}

#footer.footer-wrapper .footer-2 .sf-footer-accordion-label {
    padding-bottom: 22px;
}

#footer.footer-wrapper .footer-2 .hb-footer-shop li,
#footer.footer-wrapper .footer-2 .custom-html-widget > div > p:not(:first-child),
#footer.footer-wrapper .footer-2 .sf-footer-accordion-content > p {
    margin: 0 0 13px !important;
    font: 400 15px/1.5 var(--footer-font) !important;
}

#footer.footer-wrapper .footer-2 .hb-footer-shop ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#footer.footer-wrapper .footer-2 .hb-footer-shop li:last-child,
#footer.footer-wrapper .footer-2 .sf-footer-accordion-content > p:last-child {
    margin-bottom: 0 !important;
}

#footer.footer-wrapper .footer-2 .custom-html-widget a {
    display: inline-block;
    color: var(--footer-ink) !important;
    font: inherit;
    text-decoration: none;
    text-underline-offset: 0.23em;
}

#footer.footer-wrapper .footer-2 .custom-html-widget a:hover,
#footer.footer-wrapper .footer-2 .custom-html-widget a:focus-visible {
    color: var(--footer-accent) !important;
    text-decoration: underline;
}

#footer.footer-wrapper .footer-2 #custom_html-6 .custom-html-widget > div,
#footer.footer-wrapper .footer-2 #custom_html-6 form {
    padding: 0 !important;
    border: 0;
    background: var(--footer-bg) !important;
}

#footer.footer-wrapper .footer-2 #custom_html-6 h3 {
    margin-bottom: 12px !important;
}

#footer.footer-wrapper .footer-2 #custom_html-6 .custom-html-widget > div > p {
    margin-bottom: 18px !important;
    color: var(--footer-muted) !important;
}

#footer.footer-wrapper .footer-2 #custom_html-6 form,
#footer.footer-wrapper .footer-2 .hb-footer-signup-inactive fieldset {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
    padding: 0;
    margin: 0 !important;
    border: 0;
}

#footer.footer-wrapper .footer-2 #custom_html-6 form > div,
#footer.footer-wrapper .footer-2 .hb-footer-signup-inactive fieldset > div {
    min-width: 0;
    margin: 0 !important;
}

#footer.footer-wrapper .footer-2 #custom_html-6 input[type="email"] {
    box-sizing: border-box;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px;
    padding-inline: 11px !important;
    margin: 0 !important;
    border: 1px solid var(--footer-muted) !important;
    border-radius: 8px !important;
    background: var(--footer-bg) !important;
    color: var(--footer-ink) !important;
    font: 400 15px/1.2 var(--footer-font) !important;
    box-shadow: none !important;
}

#footer.footer-wrapper .footer-2 #custom_html-6 input[type="email"]::placeholder {
    color: var(--footer-muted);
    opacity: 1;
}

#footer.footer-wrapper .footer-2 #custom_html-6 button[type="submit"] {
    min-width: 0;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border: 1px solid var(--footer-ink) !important;
    border-radius: 8px !important;
    background: var(--footer-ink) !important;
    color: #fff !important;
    font: 600 14px/1.2 var(--footer-font) !important;
    text-transform: none;
    white-space: normal;
    box-shadow: none !important;
}

#footer.footer-wrapper .footer-2 #custom_html-6 fieldset:disabled input {
    opacity: 1;
    cursor: not-allowed;
}

#footer.footer-wrapper .footer-2 #custom_html-6 fieldset:disabled button {
    background: transparent !important;
    color: var(--footer-muted) !important;
    border-color: var(--footer-muted) !important;
    opacity: 1;
    cursor: not-allowed;
}

#footer.footer-wrapper a:focus-visible,
#footer.footer-wrapper button:focus-visible,
#footer.footer-wrapper input:focus-visible {
    outline: 2px solid var(--footer-accent) !important;
    outline-offset: 3px !important;
}

#footer.footer-wrapper .absolute-footer {
    color: var(--footer-muted);
    background: var(--footer-bg) !important;
}

#footer.footer-wrapper .absolute-footer > .container {
    flex-wrap: wrap;
    gap: 14px 24px;
    padding-block: 22px 24px;
    border: 0;
}

#footer.footer-wrapper .absolute-footer {
    border-top: 1px solid var(--footer-line);
}

#footer.footer-wrapper .copyright-footer {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    #footer.footer-wrapper .footer-2 > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #footer.footer-wrapper {
        --footer-gutter: clamp(22px, 10.25vw, 40px);
    }

    #footer.footer-wrapper .footer-widgets.footer-2 {
        padding-block: 25px 36px;
    }

    #footer.footer-wrapper .footer-2 > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    #footer.footer-wrapper .footer-2 #custom_html-3 {
        padding-bottom: 24px;
        border-bottom: 1px solid var(--footer-line);
    }

    #footer.footer-wrapper .footer-2 #custom_html-6 {
        margin-top: 30px;
    }

    #footer.footer-wrapper .footer-2 .custom-html-widget > div > p:first-child:not(:has(a)),
    #footer.footer-wrapper .footer-2 #custom_html-6 h3,
    #footer.footer-wrapper .footer-2 .sf-footer-accordion-toggle {
        font-size: 22px !important;
    }

    #footer.footer-wrapper .footer-2 .sf-footer-accordion-toggle {
        min-height: 58px;
        font-family: var(--footer-heading);
        font-weight: 400;
        letter-spacing: 0;
    }

    #footer.footer-wrapper .footer-2 .hb-footer-shop a,
    #footer.footer-wrapper .footer-2 .sf-footer-accordion-content a {
        min-height: 32px;
        padding-block: 5px;
    }

    #footer.footer-wrapper .absolute-footer > .container {
        align-items: flex-start;
        flex-direction: column;
    }
}
