/* Footer - dealer.international. Depends on: dealer-components. */

:root {
    --footer-shell-padding-top: 32px;
    --footer-shell-padding-bottom: 32px;
    --footer-grid-row-gap: 24px;
    --footer-grid-row-gap-tablet: 28px;
    --footer-grid-column-gap-desktop: 72px;
    --footer-grid-row-gap-desktop: 20px;
    --footer-heading-size: var(--font-size-small);
    --footer-heading-weight: var(--font-weight-medium);
    --footer-heading-letter-spacing: 0.04em;
    --footer-heading-line-height: 1.3;
    --footer-body-size: var(--font-size-body);
    --footer-body-line-height: 1.45;
    --footer-text-color: var(--color-white);
    --footer-text-muted: rgba(255, 255, 255, 0.84);
    --footer-text-faint: rgba(255, 255, 255, 0.65);
    --footer-link-hover-opacity: 0.78;
    --footer-accordion-radius: 10px;
    --footer-accordion-border: rgba(255, 255, 255, 0.12);
    --footer-accordion-padding-x: 0px;
    --footer-accordion-padding-y: 12px;
    --footer-panel-padding-top: 15px;
    --footer-accordion-panel-padding-bottom: 20px;
    --footer-section-gap: 15px;
    --footer-menu-gap: 14px;
    --footer-contact-gap: 14px;
    --footer-community-gap: 28px;
    --footer-icon-gap: 8px;
    --footer-icon-touch: 32px;
    --footer-payment-gap: 10px;
    /*
     * Uniform white "badge" cards drawn in CSS; assets are logo-only SVGs.
     * Every card is the SAME fixed size and the logo is scaled to fit inside
     * (object-fit: contain), so mixed logo aspect ratios still line up evenly.
     */
    /* Card size reduced ~20% from 58x36 (applies on every breakpoint). */
    --footer-payment-badge-width: 46px;
    --footer-payment-badge-height: 29px;
    --footer-payment-badge-radius: 5px;
    --footer-payment-badge-pad-y: 5px;
    --footer-payment-badge-pad-x: 7px;
    --footer-payment-badge-bg: #fff;
    --footer-payment-text-size: 12px;
    --footer-chevron-size: 12px;
}

.site-footer {
    padding: var(--footer-shell-padding-top) 0 var(--footer-shell-padding-bottom);
    background-color: var(--color-black);
    color: var(--footer-text-color);
}

.site-footer a:not(.button):not(.components-button) {
    color: var(--footer-text-color);
    text-decoration: none;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
    color: var(--footer-text-color);
}

.site-footer .col-full {
    margin-bottom: 0;
}

.dealer-footer {
    color: var(--footer-text-color);
}

.dealer-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "information"
        "contacts"
        "community"
        "payments";
    row-gap: var(--footer-grid-row-gap);
}

.dealer-footer__section {
    min-width: 0;
}

.dealer-footer__section--information {
    grid-area: information;
}

.dealer-footer__section--contacts {
    grid-area: contacts;
}

.dealer-footer__section--community {
    grid-area: community;
}

.dealer-footer__section--payments {
    grid-area: payments;
}

.dealer-footer__accordion {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.dealer-footer__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: var(--footer-accordion-padding-y) var(--footer-accordion-padding-x);
    list-style: none;
    cursor: pointer;
}

.dealer-footer__summary::-webkit-details-marker {
    display: none;
}

.dealer-footer__summary::marker {
    content: "";
}

.dealer-footer__summary-text,
.dealer-footer__community-title {
    margin: 0;
    color: var(--footer-text-color);
    font-size: var(--footer-heading-size);
    font-weight: var(--footer-heading-weight);
    letter-spacing: var(--footer-heading-letter-spacing);
    line-height: var(--footer-heading-line-height);
}

.dealer-footer__summary-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--footer-chevron-size);
    height: var(--footer-chevron-size);
    color: var(--footer-text-color);
}

.dealer-footer__summary-icon svg {
    display: block;
    transition: transform var(--motion-duration-fast) var(--motion-ease-standard);
}

.dealer-footer__accordion[open] .dealer-footer__summary-icon svg {
    transform: rotate(180deg);
}

.dealer-footer__panel {
    padding: var(--footer-panel-padding-top) var(--footer-accordion-padding-x) var(--footer-accordion-panel-padding-bottom);
}

.dealer-footer__menu,
.dealer-footer__contact-list,
.dealer-footer__icon-list,
.dealer-footer__payment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dealer-footer__menu {
    display: grid;
    gap: var(--footer-menu-gap);
}

.dealer-footer__menu a,
.dealer-footer__contact-link,
.dealer-footer__contact-text {
    display: inline-block;
    color: var(--footer-text-muted);
    font-size: var(--footer-body-size);
    font-weight: var(--font-weight-light);
    line-height: var(--footer-body-line-height);
}

.dealer-footer__menu-empty {
    margin: 0;
    color: var(--footer-text-faint);
    font-size: var(--font-size-small);
    line-height: 1.5;
}

.dealer-footer__contact-list {
    display: grid;
    gap: var(--footer-contact-gap);
}

.dealer-footer__contact-text {
    color: var(--footer-text-muted);
}

.dealer-footer__contact-link--email {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

.dealer-footer__community-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--footer-community-gap);
}

.dealer-footer__community-group {
    min-width: 0;
}

.dealer-footer__icon-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--footer-icon-gap);
    margin-top: var(--footer-section-gap);
}

.dealer-footer__icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--footer-icon-touch);
    min-width: var(--footer-icon-touch);
    height: var(--footer-icon-touch);
    color: var(--footer-text-color);
}

.dealer-footer__icon-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 24px;
    max-height: 24px;
}

.dealer-footer__payment-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--footer-payment-gap);
    justify-content: center;
}

/*
 * Each payment method is a logo-only SVG sitting inside a uniform white card.
 * The card (background, radius, padding, fixed height) is owned here, NOT baked
 * into the asset — so every brand looks consistent and a new method is just one
 * array entry + one logo-only SVG. object-fit keeps each mark's aspect ratio.
 */
.dealer-footer__payment-badge {
    display: block;
    box-sizing: border-box;
    width: var(--footer-payment-badge-width);
    height: var(--footer-payment-badge-height);
    padding: var(--footer-payment-badge-pad-y) var(--footer-payment-badge-pad-x);
    background: var(--footer-payment-badge-bg);
    border-radius: var(--footer-payment-badge-radius);
    /* Flat chips: kill any inherited image shadow (e.g. parent-theme img rules)
       so the cards read as clean flat white, not framed/shadowed. */
    box-shadow: none;
    object-fit: contain;
}

/*
 * Text badge variant: same white card, but holds a short label (e.g.
 * "Crypto") instead of a logo <img>. Width is intrinsic to the text rather
 * than the shared fixed icon width, height matches the icon badges.
 */
.dealer-footer__payment-badge--text {
    width: auto;
    height: var(--footer-payment-badge-height);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    color: var(--color-black);
    font-size: var(--footer-payment-text-size);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

.dealer-footer a:hover,
.dealer-footer a:active {
    color: var(--footer-text-color);
    opacity: var(--footer-link-hover-opacity);
}

body.dealer-focus-modality-ready.dealer-using-keyboard .dealer-footer a:focus,
body.dealer-focus-modality-ready.dealer-using-keyboard .dealer-footer summary:focus {
    outline: var(--focus-outline-width) solid var(--color-white);
    outline-offset: var(--focus-outline-offset);
    color: var(--footer-text-color);
    opacity: 1;
}

@media (min-width: 768px) {
    :root {
        --footer-shell-padding-top: 36px;
        --footer-shell-padding-bottom: 36px;
        --footer-grid-row-gap: var(--footer-grid-row-gap-tablet);
        --footer-accordion-padding-x: 0px;
        --footer-panel-padding-top: 16px;
        --footer-section-gap: 16px;
    }

    .dealer-footer__accordion.is-expanded-lock > .dealer-footer__summary {
        pointer-events: none;
    }
}

@media (max-width: 767.98px) {
    .dealer-footer__section--community {
        padding-top: var(--footer-accordion-padding-y);
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .dealer-footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "information contacts"
            "information payments"
            "community community";
        column-gap: 56px;
        row-gap: 40px;
        align-items: start;
    }

    .dealer-footer__accordion:not([open]) > .dealer-footer__panel {
        display: block;
    }

    .dealer-footer__summary {
        padding-top: 0;
        padding-bottom: 0;
        cursor: default;
    }

    .dealer-footer__summary-icon {
        display: none;
    }

    .dealer-footer__section--contacts {
        justify-self: end;
    }

    .dealer-footer__section--contacts .dealer-footer__summary {
        justify-content: flex-end;
    }

    .dealer-footer__section--contacts .dealer-footer__summary-text,
    .dealer-footer__section--contacts .dealer-footer__panel {
        text-align: right;
    }

    .dealer-footer__section--contacts .dealer-footer__contact-list {
        justify-items: end;
    }

    .dealer-footer__section--payments {
        justify-self: end;
    }

    .dealer-footer__payment-list {
        justify-content: flex-end;
    }

    .dealer-footer__section--community {
        justify-self: center;
    }

    .dealer-footer__community-grid {
        grid-template-columns: repeat(2, auto);
        column-gap: 56px;
    }

    .dealer-footer__community-group {
        text-align: center;
    }

    .dealer-footer__section--community .dealer-footer__icon-list {
        justify-content: center;
        margin-top: 16px;
    }
}

@media (min-width: 1024px) {
    :root {
        --footer-shell-padding-top: 56px;
        --footer-shell-padding-bottom: 68px;
        --footer-accordion-padding-x: 0px;
        --footer-accordion-padding-y: 0px;
        --footer-panel-padding-top: 18px;
        --footer-accordion-panel-padding-bottom: 0px;
        --footer-section-gap: 18px;
        --footer-menu-gap: 14px;
        --footer-contact-gap: 14px;
    }

    .dealer-footer__grid {
        grid-template-columns: minmax(180px, 1fr) minmax(300px, 1.06fr) auto;
        grid-template-areas:
            "information contacts community"
            "information payments community";
        column-gap: var(--footer-grid-column-gap-desktop);
        row-gap: var(--footer-grid-row-gap-desktop);
        align-items: start;
    }

    .dealer-footer__accordion {
        border: 0;
        border-radius: 0;
        background: none;
    }

    .dealer-footer__accordion:not([open]) > .dealer-footer__panel {
        display: block;
    }

    .dealer-footer__summary {
        padding: 0;
        cursor: default;
    }

    .dealer-footer__summary-icon {
        display: none;
    }

    .dealer-footer__community-grid {
        grid-template-columns: 1fr;
    }

    .dealer-footer__section--community {
        justify-self: end;
    }

    .dealer-footer__community-group {
        text-align: right;
    }

    .dealer-footer__section--community .dealer-footer__icon-list {
        gap: 8px;
        justify-content: flex-end;
        margin-top: 16px;
    }

    .dealer-footer__community-group + .dealer-footer__community-group {
        margin-top: var(--footer-community-gap);
    }

    .dealer-footer__payment-list {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dealer-footer__summary-icon svg {
        transition-duration: 0s;
    }
}
