/* Canonical Avelle footer: measured Ecomus /women/ structure. */
.avelle-footer-ecomus {
    --avelle-footer-bg: #f7f7f7;
    --avelle-footer-surface: #fff;
    --avelle-footer-text: #545454;
    --avelle-footer-title: #000;
    --avelle-footer-border: #ebebeb;
    --avelle-footer-accent: var(--avl-primary, var(--tp-theme-primary));
    background: var(--avelle-footer-bg);
    color: var(--avelle-footer-text);
    font-family: "Albert Sans", Arial, sans-serif;
}

/* Owner 2026-07-29: radius is now driven GLOBALLY from avelle-foundation.css
   :root tokens (controls 8px, cards + icons 6px) — no footer-scoped radius
   override. Only the footer border token is scoped here so controls use the
   lighter footer border instead of the global rgba border. */
html:root body footer.avelle-footer-ecomus {
    --avl-ui-border-color: var(--avelle-footer-border);
    --avl-ui-field-border: var(--avelle-footer-border);
}

.avelle-footer-ecomus,
.avelle-footer-ecomus * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.avelle-footer-ecomus .container {
    margin-inline: auto !important;
    max-width: var(--avl-container, 1440px) !important;
    padding-inline: var(--avl-gutter, 30px) !important;
    width: 100% !important;
}

.avelle-footer-ecomus__main {
    border-top: 1px solid var(--avelle-footer-border);
    padding-block: 54px 46px;
}

.avelle-footer-ecomus__grid {
    align-items: start;
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.avelle-footer-ecomus__brand,
.avelle-footer-ecomus__newsletter,
.avelle-footer-ecomus__nav {
    min-width: 0;
}

.avelle-footer-ecomus__logo {
    display: inline-flex;
    margin-bottom: 20px;
    max-width: 170px;
}

.avelle-footer-ecomus__logo-image {
    display: block;
    height: auto;
    max-height: 43px;
    max-width: 170px;
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.avelle-footer-ecomus__contact {
    display: grid;
    font-style: normal;
    gap: 6px;
    margin: 0;
}

.avelle-footer-ecomus__contact,
.avelle-footer-ecomus__nav,
.avelle-footer-ecomus .avelle-footer-newsletter p {
    color: var(--avelle-footer-text);
}

.avelle-footer-ecomus__contact span,
.avelle-footer-ecomus__contact a,
.avelle-footer-ecomus__nav a,
.avelle-footer-ecomus .avelle-footer-newsletter p {
    font-size: 14px;
    font-weight: 400;
    line-height: 22.4px;
    text-decoration: none;
}

.avelle-footer-ecomus__actions {
    margin-top: 15px;
}

.avelle-footer-ecomus__actions a {
    align-items: center;
    color: var(--avelle-footer-title);
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    line-height: 22px;
    text-decoration: none;
}

.avelle-footer-ecomus__arrow {
    align-items: center;
    display: inline-flex;
    flex: 0 0 8px;
    height: 8px;
    justify-content: center;
    line-height: 0;
    width: 8px;
}

.avelle-footer-ecomus__arrow svg {
    display: block;
    height: 8px;
    width: 8px;
}

.avelle-footer-ecomus__social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.avelle-footer-ecomus__social a {
    align-items: center;
    background: transparent;
    border: 1px solid var(--avelle-footer-border);
    border-radius: 50%;
    color: var(--avelle-footer-title);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease;
    width: 34px;
}

.avelle-footer-ecomus__social svg,
.avelle-footer-ecomus__social i {
    color: currentColor;
    font-size: 14px;
    height: 14px;
    width: 14px;
}

.avelle-footer-ecomus .avelle-footer-ecomus__actions a:is(:hover, :focus-visible, :active) {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--avl-ui-link-hover-color) !important;
}

.avelle-footer-ecomus .avelle-footer-ecomus__actions a:is(:hover, :focus-visible, :active) > span:first-child {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

html:root body[data-avelle-ui-preset][data-avelle-ui-button][data-avelle-ui-border][data-avelle-ui-field][data-avelle-ui-icon][data-avelle-ui-hover] footer.avelle-footer-ecomus .avelle-footer-ecomus__social a:is(:hover, :focus-visible) {
    background: var(--avelle-footer-accent) !important;
    border-color: var(--avelle-footer-accent) !important;
    color: var(--avl-ui-icon-hover-color) !important;
}

html:root body[data-avelle-ui-preset][data-avelle-ui-button][data-avelle-ui-border][data-avelle-ui-field][data-avelle-ui-icon][data-avelle-ui-hover] footer.avelle-footer-ecomus .avelle-footer-ecomus__social a:is(:hover, :focus-visible) :is(svg, i) {
    color: var(--avl-ui-icon-hover-color) !important;
}

.avelle-footer-ecomus__nav {
    border: 0;
}

.avelle-footer-ecomus__nav summary {
    cursor: default;
    display: flex;
    list-style: none;
    margin: 0 0 24px;
}

.avelle-footer-ecomus__nav summary::-webkit-details-marker {
    display: none;
}

.avelle-footer-ecomus__nav-title,
.avelle-footer-ecomus .avelle-footer-newsletter h4 {
    color: var(--avelle-footer-title);
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    margin: 0;
    text-transform: none;
}

.avelle-footer-ecomus__nav ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.avelle-footer-ecomus__nav a {
    display: inline-flex;
}

.avelle-footer-ecomus .avelle-footer-newsletter {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.avelle-footer-ecomus .avelle-footer-newsletter h4 {
    margin-bottom: 24px;
}

.avelle-footer-ecomus .avelle-footer-newsletter p {
    margin: 0 0 20px;
    max-width: 330px;
}

.avelle-footer-ecomus .avelle-footer-newsletter__form {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: block;
    max-width: 360px;
    min-height: 54px;
    padding: 0;
    position: relative;
    width: 100%;
}

.avelle-footer-ecomus .avelle-footer-newsletter__form > input,
footer.avelle-footer-ecomus .avelle-footer-newsletter form.avelle-footer-newsletter__form.subscribe-form > input#avelle-footer-newsletter-email {
    background: var(--avelle-footer-surface);
    border: 1px solid var(--avelle-footer-border) !important;
    border-radius: var(--avl-ui-field-radius) !important;
    color: var(--avelle-footer-title) !important;
    display: block !important;
    font-size: 14px !important;
    height: 54px;
    line-height: 54px;
    padding: 0 122px 0 18px;
    width: 100%;
}

footer.avelle-footer-ecomus .avelle-footer-newsletter form.avelle-footer-newsletter__form.subscribe-form > input#avelle-footer-newsletter-email:is(:hover, :focus, :focus-visible, :active) {
    border-color: var(--avelle-footer-border) !important;
    box-shadow: none !important;
    outline: 0 !important;
    outline-offset: 0 !important;
}

.avelle-footer-ecomus .avelle-footer-newsletter__form > button,
.avelle-footer-ecomus .avelle-footer-newsletter__fallback {
    align-items: center;
    background: var(--avelle-footer-title);
    border: 1px solid var(--avelle-footer-title);
    border-radius: var(--avl-ui-control-radius);
    color: var(--avl-ui-button-color) !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0 18px;
    text-decoration: none;
    white-space: nowrap;
}

.avelle-footer-ecomus .avelle-footer-newsletter__form > button {
    position: absolute;
    right: 7px;
    top: 7px;
    transform: none;
}

.avelle-footer-ecomus .avelle-footer-newsletter__form > button:hover,
.avelle-footer-ecomus .avelle-footer-newsletter__form > button:focus-visible,
.avelle-footer-ecomus .avelle-footer-newsletter__fallback:hover,
.avelle-footer-ecomus .avelle-footer-newsletter__fallback:focus-visible {
    background: var(--avelle-footer-accent);
    border-color: var(--avelle-footer-accent);
    color: var(--avl-ui-button-hover-color) !important;
}

.avelle-footer-ecomus .newsletter-success-message,
.avelle-footer-ecomus .newsletter-error-message {
    display: block;
    font-size: 12px;
    line-height: 18px;
    margin-top: 6px;
}

.avelle-footer-ecomus__newsletter-compliance {
    border-top: 1px solid var(--avelle-footer-border);
    margin-top: 24px;
    padding-top: 18px;
}

.avelle-footer-ecomus .avelle-footer-ecomus__newsletter-compliance .avelle-footer-compliance {
    align-items: stretch;
    display: grid;
    flex: none;
    gap: 12px;
    grid-template-columns: max-content;
    justify-content: center;
    justify-items: stretch;
    margin: 0 auto;
    max-width: 100%;
    padding: 0;
    width: max-content;
}

.avelle-footer-ecomus .avelle-footer-ecomus__newsletter-compliance :is(.avelle-footer-payment-row, .avelle-footer-processor-row) {
    justify-content: center;
}

.avelle-footer-ecomus__sub {
    border-top: 1px solid var(--avelle-footer-border);
    padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px));
}

.avelle-footer-ecomus__bottom {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.avelle-footer-ecomus .avelle-footer-legal-left {
    color: var(--avelle-footer-text);
    display: grid;
    flex: 1 1 50%;
    gap: 3px;
    min-width: 0;
}

.avelle-footer-ecomus .avelle-footer-legal-left > p {
    color: var(--avelle-footer-text) !important;
    font-size: 12px !important;
    line-height: 18px !important;
    margin: 0 !important;
    text-align: left;
}

.avelle-footer-ecomus .avelle-footer-compliance {
    align-items: flex-end;
    border-top: 0;
    display: grid;
    flex: 1 1 50%;
    gap: 12px;
    grid-template-columns: max-content;
    justify-content: end;
    justify-items: stretch;
    margin: 0;
    padding-top: 0;
}

.avelle-footer-ecomus .avelle-footer-payment-row,
.avelle-footer-ecomus .avelle-footer-processor-row {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
    justify-content: flex-end;
    width: 100%;
}

.avelle-footer-ecomus .avelle-footer-processor-row {
    flex-wrap: nowrap;
    margin-top: 0;
}

html:root body footer.avelle-footer-ecomus .avelle-footer-compliance__withdrawal {
    --avelle-global-radius-control: 4px;
    --avl-ui-control-radius: 4px;
    align-items: center;
    background: var(--avelle-footer-surface) !important;
    border: 1px solid var(--avelle-footer-border) !important;
    border-radius: 4px !important;
    box-sizing: border-box;
    color: var(--avelle-footer-title) !important;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    justify-content: center;
    min-height: 26px;
    padding: 0 9px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    width: 100%;
}

html:root body footer.avelle-footer-ecomus .avelle-footer-compliance__withdrawal:is(:hover, :focus-visible) {
    background: var(--avelle-footer-surface) !important;
    border-color: var(--avelle-footer-border) !important;
    color: var(--avelle-footer-title) !important;
}

html:root body[data-avelle-ui-preset][data-avelle-ui-button][data-avelle-ui-border][data-avelle-ui-field][data-avelle-ui-icon][data-avelle-ui-hover] footer.avelle-footer-ecomus .avelle-footer-compliance__withdrawal {
    background: var(--avelle-footer-surface) !important;
    border: 1px solid var(--avelle-footer-border) !important;
}

.avelle-footer-ecomus .avelle-footer-compliance__netopia-chip {
    background: transparent;
    border: 0;
    padding: 0;
}

.avelle-footer-ecomus .avelle-footer-anpc-sal {
    background: transparent !important;
    display: inline-flex !important;
    min-height: 0;
    min-width: 0;
}

html:root body footer.avelle-footer-ecomus .avelle-footer-anpc-sal:is(:hover, :focus, :focus-visible) {
    background: transparent !important;
}

.avelle-footer-ecomus .avelle-footer-compliance .avelle-footer-processor-row img.avelle-footer-payment-netopia,
.avelle-footer-ecomus .avelle-footer-compliance .avelle-footer-processor-row .avelle-footer-anpc-sal img {
    display: block;
    height: 34px !important;
    max-height: 34px !important;
    max-width: 136px;
    object-fit: contain;
    width: auto !important;
}

@media (min-width: 1200px) {
    .avelle-footer-ecomus .avelle-footer-compliance {
        margin-inline-end: 56px;
    }
}

@media (max-width: 991px) {
    .avelle-footer-ecomus .container {
        padding-inline: 24px !important;
    }

    .avelle-footer-ecomus__main {
        padding-block: 32px 26px;
    }

    .avelle-footer-ecomus__grid {
        gap: 24px 18px;
    }

    .avelle-footer-ecomus__nav--useful {
        display: block;
    }

    .avelle-footer-ecomus .avelle-footer-newsletter p {
        margin-bottom: 14px;
    }

    .avelle-footer-ecomus .avelle-footer-compliance {
        align-items: center;
        gap: 8px;
        justify-content: center;
    }

    .avelle-footer-ecomus .avelle-footer-compliance__netopia,
    .avelle-footer-ecomus .avelle-footer-anpc-sal img {
        max-width: 112px;
    }

}

@media (min-width: 640px) and (max-width: 991px) {
    .avelle-footer-ecomus__grid {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(238px, 1.55fr);
    }

    .avelle-footer-ecomus .avelle-footer-newsletter__form > input,
    footer.avelle-footer-ecomus .avelle-footer-newsletter form.avelle-footer-newsletter__form.subscribe-form > input#avelle-footer-newsletter-email {
        padding-inline: 14px;
    }

    .avelle-footer-ecomus .avelle-footer-newsletter__form > button {
        font-size: 12px;
        gap: 10px;
        margin-top: 8px;
        padding-inline: 10px;
        position: static;
        width: 100%;
    }
}

@media (max-width: 639px) {
    .avelle-footer-ecomus .container {
        padding-inline: 15px !important;
    }

    .avelle-footer-ecomus__main {
        padding-block: 32px 26px;
    }

    .avelle-footer-ecomus__grid {
        gap: 22px;
        grid-template-columns: 1fr;
    }

    .avelle-footer-ecomus__logo {
        margin-bottom: 16px;
    }

    .avelle-footer-ecomus__nav summary {
        align-items: center;
        cursor: pointer;
        justify-content: space-between;
        margin: 0;
        min-height: 34px;
    }

    .avelle-footer-ecomus__nav-toggle {
        height: 14px;
        position: relative;
        width: 14px;
    }

    .avelle-footer-ecomus__nav-toggle::before,
    .avelle-footer-ecomus__nav-toggle::after {
        background: currentColor;
        content: "";
        left: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .avelle-footer-ecomus__nav-toggle::before {
        height: 1px;
        width: 12px;
    }

    .avelle-footer-ecomus__nav-toggle::after {
        height: 12px;
        transition: transform .18s ease;
        width: 1px;
    }

    .avelle-footer-ecomus__nav[open] .avelle-footer-ecomus__nav-toggle::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .avelle-footer-ecomus__nav ul {
        gap: 8px;
        padding-top: 13px;
    }

    .avelle-footer-ecomus__nav:not([open]) > ul {
        display: none !important;
    }

    .avelle-footer-ecomus__nav[open] > ul {
        display: grid !important;
    }

    .avelle-footer-ecomus .avelle-footer-newsletter h4 {
        margin-bottom: 13px;
    }

    .avelle-footer-ecomus__newsletter-compliance {
        margin-top: 20px;
        padding-top: 16px;
    }

    .avelle-footer-ecomus .avelle-footer-newsletter__form {
        max-width: none;
    }

    .avelle-footer-ecomus__bottom {
        flex-direction: column;
        gap: 14px;
    }

    .avelle-footer-ecomus .avelle-footer-legal-left {
        text-align: center;
    }

    .avelle-footer-ecomus .avelle-footer-legal-left > p {
        text-align: center;
    }

    .avelle-footer-ecomus .avelle-footer-compliance {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    .avelle-footer-ecomus .avelle-footer-payment-row,
    .avelle-footer-ecomus .avelle-footer-processor-row {
        justify-content: center;
    }

    .avelle-footer-ecomus__sub {
        padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    }
}
