/**
 * Zippo Footer Styles
 * Ported from official Zippo Shopify theme
 */

/* Base Variables */
:root {
    --page-width: 120rem;
    --font-heading-scale: 1;
    --color-foreground: 18, 18, 18;
    --color-background: 255, 255, 255;
    --font-body-scale: 1;
    --duration-short: 0.2s;
}

/* Ensure all footer elements are visible */
.footer * {
    box-sizing: border-box;
}

.footer-block,
.footer-block.grid__item,
.footer__blocks-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Color scheme for inverse footer */
.footer.color-inverse,
.color-inverse,
.page-footer {

}



/* Ensure all footer text is white */
.page-footer,
.page-footer .footer.content,
.page-footer h2,
.page-footer h3,
.page-footer .title strong,
.page-footer label,
.page-footer .label {
    /*color: rgba(255, 255, 255, 0.9) !important;*/
}

/* Newsletter styling in dark footer */
.page-footer .block.newsletter {
    background: transparent !important;
    border: none !important;
}

.page-footer .block.newsletter .title strong {
    color: #ffffff !important;
}

.page-footer .block.newsletter input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.page-footer .block.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Ensure SVG icons don't get dark background */
.page-footer svg {
    background-color: transparent !important;
}

.page-footer .icon,
.page-footer .svg-wrapper {
    background-color: transparent !important;
}

/* Footer block styling */
.footer-block.grid__item {
    min-height: 150px;
}

.footer__blocks-wrapper {
    padding: 1rem 0;
}

.gradient {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);
}

/* Page Width Container */
.page-width {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media screen and (min-width: 750px) {
    .page-width {
        /*padding: 0 5rem;*/
    }
}

/* Grid System */
.footer .grid,
.footer__blocks-wrapper.grid {
    display: grid !important;
    gap: 3rem;
    width: 100%;
    margin-bottom: 2rem;
}

.footer .grid--1-col {
    grid-template-columns: 1fr;
}

.footer .grid--2-col {
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 750px) {
    .footer .grid--4-col-tablet {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (min-width: 990px) {
    .footer .grid--4-col-desktop {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ensure grid items are visible */
.footer .grid__item {
    display: block !important;
    min-height: 100px;
}

/* List Reset */
.list-unstyled {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Visually Hidden (Accessibility) */
.visually-hidden {
    position: absolute !important;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    word-wrap: normal !important;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    border-top: 0.1rem solid rgba(var(--color-foreground), 0.08);
}

.footer:not(.color-scheme-1) {
    border-top: none;
}

.section-footer-padding {
    padding-top: 36px;
    padding-bottom: 36px;
}

@media screen and (max-width: 749px) {
    .section-footer-padding {
        padding-top: 27px;
        padding-bottom: 27px;
    }
}

.footer__content-top {
    /*padding-bottom: 5rem;*/
    display: block !important;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0;
}

@media screen and (max-width: 749px) {
    .footer .grid {
        display: block !important;
    }

    .footer-block.grid__item {
        display: block !important;
        padding: 0;
        margin: 4rem 0;
        width: 100%;
    }

    .footer-block.grid__item:first-child {
        margin-top: 0;
    }

    .footer__content-top {
        padding-bottom: 3rem;
        padding-left: calc(4rem / var(--font-body-scale, 1));
        padding-right: calc(4rem / var(--font-body-scale, 1));
    }
}

@media screen and (min-width: 750px) {
    .footer__content-top .grid {
        row-gap: 6rem;
        margin-bottom: 0;
    }
}

/* Footer Blocks */
.footer-block {
    display: block !important;
    visibility: visible !important;
}

.footer-block:only-child:last-child {
    text-align: center;
    max-width: 76rem;
    margin: 0 auto;
}

@media screen and (min-width: 750px) {
    .footer-block {
        display: block !important;
        margin-top: 0;
    }
}

.footer-block:empty {
    display: none !important;
}

.footer-block__heading {
    display: block !important;
    margin-bottom: 2rem;
    margin-top: 0;
    font-size: calc(var(--font-heading-scale) * 1.6rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffffff !important;
    text-transform: uppercase;
}

@media screen and (min-width: 990px) {
    .footer-block__heading {
        font-size: calc(var(--font-heading-scale) * 1.8rem);
    }
}

.footer-block__details-content {
    display: block !important;
    margin-bottom: 4rem;
}

.footer-block__details-content ul,
.footer-block__details-content li {
    display: block !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media screen and (min-width: 750px) {
    .footer-block__details-content {
        margin-bottom: 0;
    }

    .footer-block__details-content > p,
    .footer-block__details-content > li {
        padding: 0;
    }

    .footer-block:only-child li {
        display: inline;
    }

    .footer-block__details-content > li:not(:last-child) {
        margin-right: 1.5rem;
    }
}

.footer-block__details-content .list-menu__item--link,
.footer-block__details-content a {
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 2.2;
    padding: 0.3rem 0;
}

.footer-block__details-content .list-menu__item--active {
    transition: text-decoration-thickness var(--duration-short, 0.2s) ease;
    color: rgb(255, 255, 255);
}

@media screen and (min-width: 750px) {
    .footer-block__details-content .list-menu__item--link:hover {
        color: rgb(255, 255, 255);
        text-decoration: underline;
        text-underline-offset: 0.3rem;
    }

    .footer-block__details-content .list-menu__item--active:hover {
        text-decoration-thickness: 0.2rem;
    }
}

@media screen and (max-width: 989px) {
    .footer-block__details-content .list-menu__item--link {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

@media screen and (min-width: 750px) {
    .footer-block__details-content .list-menu__item--link {
        display: inline-block;
        font-size: 1.4rem;
    }

    .footer-block__details-content > :first-child .list-menu__item--link {
        padding-top: 0;
    }
}

/* Newsletter Block */
.footer-block--newsletter {
    display: flex;
    align-items: flex-end;
    margin-top: 3rem;
    gap: 1rem;
}

.footer-block--newsletter:only-child {
    margin-top: 0;
}

@media screen and (max-width: 749px) {
    .footer-block.footer-block--menu:only-child {
        text-align: left;
    }
}

@media screen and (min-width: 750px) {
    .footer-block--newsletter {
        flex-wrap: nowrap;
        justify-content: center;
    }
}

.footer__list-social:empty,
.footer-block--newsletter:empty {
    display: none;
}

/* Social Icons */
.list-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media only screen and (max-width: 749px) {
    .list-social {
        justify-content: center;
    }
}

.list-social__item .icon {
    height: 2.2rem;
    width: 2.2rem;
}

.list-social__link {
    align-items: center;
    display: flex;
    padding: 1.1rem;
    color: rgb(255, 255, 255);
}

.list-social__link:hover .icon {
    transform: scale(1.07);
}

.svg-wrapper {
    display: inline-block;
}

.svg-wrapper svg {
    width: 100%;
    height: 100%;
}

/* Footer Bottom */
.footer__content-bottom {
    border-top: solid 0.1rem rgba(255, 255, 255, 0.08);
    padding-top: 3rem;
}

.footer__content-bottom:only-child {
    border-top: 0;
}

.footer__content-bottom-wrapper {
    display: flex;
    width: 100%;
}

@media screen and (max-width: 749px) {
    .footer__content-bottom {
        flex-wrap: wrap;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        row-gap: 1.5rem;
    }

    .footer__content-bottom-wrapper {
        flex-wrap: wrap;
        row-gap: 1.5rem;
        justify-content: center;
    }
}

.footer__column {
    width: 100%;
    align-items: flex-end;
}

.footer__column--info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media screen and (min-width: 750px) {
    .footer__column--info {
        padding-left: 0;
        padding-right: 0;
        align-items: flex-end;
    }
}

.footer__localization {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    padding: 1rem 1rem 0;
}

.footer__localization:empty {
    display: none;
}

@media screen and (min-width: 750px) {
    .footer__localization {
        padding: 0.4rem 0;
        justify-content: flex-start;
    }
}

/* Copyright */
.footer__copyright {
    text-align: center;
    margin-top: 1.5rem;
}

@media screen and (min-width: 750px) {
    .footer__content-bottom-wrapper:not(.footer__content-bottom-wrapper--center) .footer__copyright {
        text-align: right;
    }
}

.copyright__content {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
}

.copyright__content a {
    color: currentColor;
    text-decoration: none;
}

.copyright__content a:hover {
    text-decoration: underline;
}

.policies {
    display: inline;
}

.policies li {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.policies li::before {
    content: '\00B7';
    padding: 0 0.8rem;
}

.policies li a {
    padding: 0.6rem 0;
    display: block;
}

@media screen and (min-width: 750px) {
    .policies li a {
        padding: 0;
    }
}

/* Payment Icons */
.list-payment {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: -0.5rem 0;
    padding-top: 1rem;
    padding-left: 0;
}

@media screen and (min-width: 750px) {
    .list-payment {
        justify-content: flex-end;
        margin: -0.5rem;
        padding-top: 0;
    }
}

.list-payment__item {
    align-items: center;
    display: flex;
    padding: 0.5rem;
}

.list-payment__item .icon {
    width: 38px;
    height: 24px;
}

/* Animations */
@keyframes animateSlideIn {
    0% {
        opacity: 0;
        transform: translateY(1rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-trigger.animate--slide-in {
    animation: animateSlideIn 0.5s ease forwards;
}

.scroll-trigger[data-cascade] {
    animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

/* Override Magento default footer styles */


.page-footer .footer.content {
    max-width: 120rem;
    /*padding: 36px 0 !important;*/
    padding: 0 0rem;
    padding-top: 4rem;
}

/* Hide default Magento footer links - we have our custom ones */
.page-footer .footer.links {
    display: none !important;
}

/* Also hide default footer links wrapper if empty */
.footer-links-wrapper:empty,
.footer-bottom-links-list:empty {
    display: none !important;
}

/* Link styles */
a.link {
    text-decoration: none;
    transition: color 0.2s ease;
}

a.link:hover {
    color: rgb(255, 255, 255);
}

/* Newsletter Form Styles */
.newsletter-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

@media screen and (min-width: 750px) {
    .newsletter-form {
        align-items: flex-start;
        margin: 0 auto;
        max-width: 36rem;
    }
}

.newsletter-form__field-wrapper {
    width: 100%;
}

.newsletter-form__field-wrapper .field__input {
    padding-right: 5rem;
}

.newsletter-form__message {
    justify-content: center;
    margin-bottom: 0;
}

.newsletter-form__message--success {
    margin-top: 2rem;
}

@media screen and (min-width: 750px) {
    .newsletter-form__message {
        justify-content: flex-start;
    }
}

/* Fix dropdowns and buttons to have proper backgrounds */
.page-footer .dropdown.switcher-dropdown,
.page-footer .switcher-dropdown {
    background-color: #ffffff !important;
}

.page-footer .dropdown.switcher-dropdown a,
.page-footer .switcher-dropdown a {
    color: #333333 !important;
}

.page-footer button,
.page-footer .action {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.page-footer button:hover,
.page-footer .action:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}


footer .list-payment {
    display: flex;
    justify-content: center;
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin-top: 3rem;
    margin-bottom: 3rem;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
}

footer {
    color: rgba(255,255,255,0.75);
    padding-bottom: 0;
}

.list-social__item svg path {
    color: #fff;
}


@media only screen and (max-width: 767px) {
    .page-footer .footer.content .switcher-store {
        background: inherit;
    }
}
