/* MME coded footer — ported from Measure With Us / Uazon Storefront */

.mme-footer-wrap {
    --mme-footer-gray: #9ca3af;
    --mme-footer-primary: var(--mme-accent, #c8922a);
    --mme-footer-icon-bg: rgba(255, 255, 255, 0.08);
    --mme-footer-title-gold: var(--mme-logo-gold-text, linear-gradient(90deg, #9a6f1a 0%, #c8922a 18%, #e8c45a 52%, #f9e586 78%, #fff4ab 100%));
    --mme-footer-col-gap: 28px;
    width: 100%;
    max-width: none;
    padding-top: 50px;
}

.mme-footer-wrap .container {
    max-width: none;
    width: 100%;
    padding: 0;
}

.mme-footer-inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-inline: clamp(20px, 4vw, 56px);
    box-sizing: border-box;
}

.mme-footer-logo-bar {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mme-footer-trusted-logo {
    margin-bottom: 18px;
}

.mme-footer-trusted-logo .mme-footer-logo-link,
.mme-footer-logo-link {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}

.mme-footer-site-logo,
.mme-footer-trusted-logo img,
.mme-footer-logo-link img,
.mme-footer-logo-bar img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

.mme-footer {
    padding-bottom: 0;
}

.mme-footer-top-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mme-footer-col-gap);
    margin: 0;
    width: 100%;
}

.mme-footer-col {
    box-sizing: border-box;
    width: 100%;
    padding: 0;
    min-width: 0;
}

.mme-footer-links,
.mme-footer-column,
.mme-footer-trusted-payments {
    height: 100%;
}

@media (min-width: 768px) {
    .mme-footer-top-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--mme-footer-col-gap);
    }
}

@media (min-width: 992px) {
    .mme-footer-top-row {
        display: grid;
        grid-template-columns: repeat(var(--mme-footer-col-count, 4), minmax(0, 1fr));
        align-items: start;
        gap: var(--mme-footer-col-gap);
        width: 100%;
    }

    .mme-footer-col {
        max-width: none;
    }
}

.mme-footer-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 18px;
    text-align: center;
    background: var(--mme-footer-title-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.mme-footer-top-row .mme-footer-stack--contact .mme-footer-title {
    text-align: center;
}

.mme-footer-trusted-payments {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mme-footer-col-tags {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.mme-footer-trusted-payments--under-tags {
    width: 100%;
    margin-top: var(--mme-footer-col-gap);
    padding-top: var(--mme-footer-col-gap);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mme-footer-col-grid-spacer {
    display: none;
}

@media (min-width: 992px) {
    .mme-footer-top-row--brands-trusted-stacked .mme-footer-col-grid-spacer {
        display: block;
        visibility: hidden;
        padding: 0;
        margin: 0;
        min-height: 0;
    }
}

.mme-footer-trusted-logo {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mme-footer-trusted-social {
    text-align: center;
}

.mme-footer-contact-location-title {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .mme-footer-title {
        background: none;
        -webkit-text-fill-color: currentColor;
        color: var(--mme-footer-primary);
    }
}

.mme-footer-column {
    font-size: 14px;
    line-height: 1.6;
}

.mme-footer-contact-locations {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mme-footer-contact-location + .mme-footer-contact-location {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mme-footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mme-footer-contact-list li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--mme-footer-gray);
    text-align: left;
}

.mme-footer-contact-list li:last-child {
    margin-bottom: 0;
}

.mme-footer-contact-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--mme-footer-icon-bg);
    color: var(--mme-footer-primary);
}

.mme-footer-contact-icon svg {
    display: block;
}

.mme-footer-contact-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
}

.mme-footer-contact-item-title {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.mme-footer-contact-item-value {
    display: block;
    color: inherit;
    text-align: left;
}

.mme-footer-contact-list li a.mme-footer-contact-item-value {
    color: inherit;
    text-decoration: none;
}

.mme-footer-contact-list li a:hover,
.mme-footer-contact-list li.js-mme-copy-contact:hover {
    color: var(--mme-footer-primary);
}

.mme-footer-contact-list li.js-mme-copy-contact {
    cursor: pointer;
}

.mme-footer-top-logo {
    margin-bottom: 16px;
}

.mme-footer-top-logo img {
    max-height: 44px;
    width: auto;
    height: auto;
    display: block;
}

.mme-footer-links .mme-footer-list-inline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mme-footer-links:not(.mme-footer-tags) .mme-footer-list-inline li {
    display: block;
    margin-bottom: 8px;
}

.mme-footer-links:not(.mme-footer-tags) .mme-footer-list-inline li a {
    color: var(--footer-menu-link-color, var(--mme-footer-gray));
    text-decoration: none;
    transition: color 0.15s ease;
}

.mme-footer-links:not(.mme-footer-tags) .mme-footer-list-inline li a:hover {
    color: var(--mme-footer-primary);
}

.mme-footer-tags .mme-footer-list-inline li {
    display: inline-block;
    max-width: 100%;
    margin: 0 4px 7px 0;
}

.mme-footer-tags .mme-footer-list-inline li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--mme-footer-gray);
    border: 1px solid rgba(156, 163, 175, 0.35);
    border-radius: 999px;
    padding: 6px 12px;
    text-decoration: none;
}

.mme-footer-tag-icon {
    display: inline-flex;
    color: var(--mme-footer-primary);
}

.mme-footer-tags .mme-footer-list-inline li a:hover {
    color: var(--mme-footer-primary);
    border-color: rgba(200, 146, 42, 0.65);
}

.mme-footer-trusted-title {
    margin-bottom: 18px;
}

.mme-footer-trusted-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
}

.mme-footer-trusted-badges img {
    max-height: 28px;
    width: auto;
    object-fit: contain;
}

.mme-footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 15px;
}

.mme-footer-whatsapp-icon {
    display: inline-flex;
    color: #fff;
}

.mme-footer-whatsapp-btn:hover {
    opacity: 0.92;
    color: #fff !important;
}

.mme-footer-trusted-social {
    margin-top: 20px;
}

.mme-footer-trusted-social li {
    display: inline-block;
    margin: 0 4px 4px 0;
}

.mme-footer-trusted-social a {
    color: var(--storefront-social-icon-color, #fff);
    text-decoration: none;
}

.mme-footer-trusted-social a:hover {
    color: var(--storefront-social-icon-hover-color, #e5e7eb);
}

.mme-footer-bottom {
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mme-footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    min-height: 36px;
}

.mme-footer-text {
    line-height: 26px;
    text-align: center;
}

.mme-footer-text a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.mme-footer-text a:hover {
    text-decoration: underline;
}

.mme-footer-bottom-sep {
    margin: 0 8px;
    opacity: 0.65;
}

/* Pre-footer */
.mme-footer-pre {
    padding: 28px 0;
}

.mme-footer-pre-inner.mme-footer-pre-align-left { text-align: left; }
.mme-footer-pre-inner.mme-footer-pre-align-center { text-align: center; }
.mme-footer-pre-inner.mme-footer-pre-align-right { text-align: right; }

.mme-footer-pre-home-seo {
    padding: 32px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mme-footer-pre-home-seo__layout {
    display: flex;
    align-items: stretch;
    gap: clamp(20px, 3vw, 40px);
}

.mme-footer-pre-home-seo__media {
    flex: 0 0 auto;
    width: clamp(140px, 16vw, 220px);
}

.mme-footer-pre-home-seo__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.mme-footer-pre-home-seo__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

.mme-footer-pre-home-seo__layout.mme-footer-pre-align-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mme-footer-pre-home-seo__layout.mme-footer-pre-align-right {
    flex-direction: row-reverse;
}

.mme-footer-pre-home-seo__title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.35;
}

.mme-footer-pre-home-seo__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    opacity: 0.82;
}

.mme-footer-pre-home-seo__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mme-footer-primary);
    text-decoration: none;
    font-weight: 500;
}

.mme-footer-pre-home-seo__link:hover {
    opacity: 0.85;
}

/* Alignment helpers */
.mme-footer-section-align-left { text-align: left; }
.mme-footer-section-align-center { text-align: center; }
.mme-footer-section-align-right { text-align: right; }

.mme-footer-section-align-center .mme-footer-contact-list li,
.mme-footer-section-align-right .mme-footer-contact-list li,
.mme-footer-mobile-align-center .mme-footer-contact-list li,
.mme-footer-mobile-align-right .mme-footer-contact-list li {
    justify-content: flex-start;
    text-align: left;
}

.mme-footer-section-align-center .mme-footer-contact-body,
.mme-footer-section-align-right .mme-footer-contact-body,
.mme-footer-mobile-align-center .mme-footer-contact-body,
.mme-footer-mobile-align-right .mme-footer-contact-body,
.mme-footer-section-align-center .mme-footer-contact-item-value,
.mme-footer-section-align-right .mme-footer-contact-item-value,
.mme-footer-section-align-center .mme-footer-contact-location-title,
.mme-footer-section-align-right .mme-footer-contact-location-title {
    text-align: left;
}
.mme-footer-section-align-center .mme-footer-logo-bar { text-align: center; }
.mme-footer-section-align-center .mme-footer-logo-link img { margin-inline: auto; }
.mme-footer-section-align-right .mme-footer-logo-bar { text-align: right; }
.mme-footer-section-align-right .mme-footer-logo-link img { margin-left: auto; margin-right: 0; }
.mme-footer-section-align-center .mme-footer-top-logo img { margin-inline: auto; }
.mme-footer-section-align-right .mme-footer-top-logo img { margin-left: auto; margin-right: 0; }

.mme-footer-menus-align-left .mme-footer-title,
.mme-footer-menus-align-left .mme-footer-trusted-title { text-align: left; }
.mme-footer-menus-align-center .mme-footer-title,
.mme-footer-menus-align-center .mme-footer-trusted-title { text-align: center; }
.mme-footer-menus-align-right .mme-footer-title,
.mme-footer-menus-align-right .mme-footer-trusted-title { text-align: right; }

.mme-footer-top-row .mme-footer-title,
.mme-footer-top-row .mme-footer-trusted-title,
.mme-footer-top-row .mme-footer-menus-align-left .mme-footer-title,
.mme-footer-top-row .mme-footer-menus-align-right .mme-footer-title,
.mme-footer-top-row .mme-footer-menus-align-left .mme-footer-trusted-title,
.mme-footer-top-row .mme-footer-menus-align-right .mme-footer-trusted-title {
    text-align: center;
}

.mme-footer-menus-align-center .mme-footer-links:not(.mme-footer-tags) .mme-footer-list-inline,
.mme-footer-menus-align-center .mme-footer-tags .mme-footer-list-inline,
.mme-footer-menus-align-center .mme-footer-trusted-social { text-align: center; }

.mme-footer-top-row .mme-footer-links:not(.mme-footer-tags) .mme-footer-list-inline,
.mme-footer-top-row .mme-footer-links:not(.mme-footer-tags) .mme-footer-list-inline li,
.mme-footer-top-row .mme-footer-tags .mme-footer-list-inline,
.mme-footer-top-row .mme-footer-trusted-social,
.mme-footer-top-row .mme-footer-menus-align-left .mme-footer-links:not(.mme-footer-tags) .mme-footer-list-inline,
.mme-footer-top-row .mme-footer-menus-align-right .mme-footer-links:not(.mme-footer-tags) .mme-footer-list-inline,
.mme-footer-top-row .mme-footer-menus-align-left .mme-footer-tags .mme-footer-list-inline,
.mme-footer-top-row .mme-footer-menus-align-right .mme-footer-tags .mme-footer-list-inline {
    text-align: center;
}

.mme-footer-menus-align-right .mme-footer-links:not(.mme-footer-tags) .mme-footer-list-inline,
.mme-footer-menus-align-right .mme-footer-tags .mme-footer-list-inline,
.mme-footer-menus-align-right .mme-footer-trusted-social { text-align: right; }

.mme-footer-menus-align-center .mme-footer-trusted-badges { justify-content: center; }
.mme-footer-menus-align-right .mme-footer-trusted-badges { justify-content: flex-end; }

.mme-footer-top-row .mme-footer-trusted-badges,
.mme-footer-top-row .mme-footer-menus-align-left .mme-footer-trusted-badges,
.mme-footer-top-row .mme-footer-menus-align-right .mme-footer-trusted-badges {
    justify-content: center;
}

.mme-footer-bottom-align-left .mme-footer-bottom-inner { align-items: flex-start; }
.mme-footer-bottom-align-right .mme-footer-bottom-inner { align-items: flex-end; }

/* Mobile stack layout */
@media (max-width: 767px) {
    .mme-footer.mme-footer--stack-mobile {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        margin: 0 -6px;
    }

    .mme-footer.mme-footer--stack-mobile > .mme-footer-top {
        display: contents;
    }

    .mme-footer.mme-footer--stack-mobile .mme-footer-top-row {
        display: contents;
    }

    .mme-footer.mme-footer--stack-mobile .mme-footer-stack {
        order: var(--footer-mobile-order, 99);
        width: var(--footer-mobile-column-width, 100%);
        max-width: var(--footer-mobile-column-width, 100%);
        padding: 6px !important;
        display: flex;
        align-items: stretch;
    }

    .mme-footer.mme-footer--stack-mobile .mme-footer-stack.mme-footer-mobile-span-full {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mme-footer.mme-footer--stack-mobile .mme-footer-stack.mme-footer-mobile-span-half {
        width: 50% !important;
        max-width: 50% !important;
    }

    .mme-footer.mme-footer--stack-mobile .mme-footer-stack--bottom {
        width: 100%;
        max-width: 100%;
        display: block;
    }

    .mme-footer.mme-footer--stack-mobile .mme-footer-stack:not(.mme-footer-stack--bottom) > .mme-footer-column,
    .mme-footer.mme-footer--stack-mobile .mme-footer-stack:not(.mme-footer-stack--bottom) > .mme-footer-links,
    .mme-footer.mme-footer--stack-mobile .mme-footer-stack:not(.mme-footer-stack--bottom) > .mme-footer-trusted-payments {
        width: 100%;
        height: 100%;
        padding: 14px 12px !important;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.02);
    }

    .mme-footer.mme-footer--stack-mobile .mme-footer-stack--tags.mme-footer-col-tags--with-trusted {
        padding: 14px 12px !important;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.02);
    }

    .mme-footer.mme-footer--stack-mobile .mme-footer-stack--tags.mme-footer-col-tags--with-trusted > .mme-footer-links,
    .mme-footer.mme-footer--stack-mobile .mme-footer-stack--tags.mme-footer-col-tags--with-trusted > .mme-footer-trusted-payments {
        padding: 0 !important;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .mme-footer.mme-footer--stack-mobile .mme-footer-stack--tags.mme-footer-col-tags--with-trusted .mme-footer-trusted-payments--under-tags {
        margin-top: 14px;
        padding-top: 14px;
    }

    .mme-footer.mme-footer--stack-mobile .mme-footer-col-grid-spacer {
        display: none !important;
    }

    .mme-footer-mobile-hidden {
        display: none !important;
    }

    .mme-footer-mobile-align-center { text-align: center !important; }
    .mme-footer-mobile-align-right { text-align: right !important; }
    .mme-footer-mobile-align-left { text-align: left !important; }

    .mme-footer-mobile-align-center .mme-footer-contact-list li { justify-content: flex-start !important; text-align: left !important; }
    .mme-footer-mobile-align-right .mme-footer-contact-list li { justify-content: flex-start !important; text-align: left !important; }

    .mme-footer-mobile-menu-columns-2 .mme-footer-links:not(.mme-footer-tags) .mme-footer-list-inline {
        column-count: 2;
        column-gap: 14px;
    }

    .mme-footer-mobile-menu-columns-2 .mme-footer-links:not(.mme-footer-tags) .mme-footer-list-inline li {
        break-inside: avoid;
        margin-bottom: 8px;
    }

    .mme-footer-pre-home-seo__layout:not(.mme-footer-pre-align-center):not(.mme-footer-pre-align-right) {
        flex-direction: column;
    }
}

.mme-footer-copy-toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(10px);
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    color: #f9fafb;
    font-size: 12px;
    line-height: 1.5;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.mme-footer-copy-toast.mme-footer-copy-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 991px) {
    .mme-footer-wrap {
        padding-bottom: 62px;
    }
}
