/* Site footer: full-bleed band in the store's primary colour. Lines are
   mixed from the primary text colour so they follow stores with a light
   primary as well. */
.page-wrapper .page-footer {
    --mc-footer-ink: var(--mc-theme-primary-text, #fff);
    --mc-footer-line: color-mix(in srgb, var(--mc-footer-ink) 20%, transparent);

    margin-top: 0;
    padding: 0 !important;
    background-color: var(--mc-theme-primary, #1a3a62);
    color: var(--mc-footer-ink);
}

.page-footer .footer.content {
    margin-top: 0;
    padding: 0;
    border-top: 0;
}

.mc-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
    padding: 40px 96px 12px;
    color: var(--mc-footer-ink);
}

.mc-footer a,
.mc-footer a:visited,
.mc-footer a:hover {
    color: inherit;
    text-decoration: none;
}

.mc-footer a:focus-visible {
    outline: 2px solid var(--mc-footer-ink);
    outline-offset: 3px;
}

.mc-footer__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.mc-footer__icon--small {
    width: 14px;
    height: 14px;
}

.mc-footer__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
}

.mc-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mc-footer__store {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Frontend names are sometimes stored in lower case. */
.mc-footer__store::first-letter {
    text-transform: uppercase;
}

.mc-footer .mc-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 36px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    font-weight: 500;
}

.mc-footer .mc-footer__links li {
    margin: 0;
}

.mc-footer .mc-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.mc-footer .mc-footer__link:hover span {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mc-footer .mc-footer__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    box-sizing: border-box;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--mc-footer-ink);
    color: var(--mc-theme-primary, #1a3a62);
    font-weight: 600;
    transition: transform 0.15s ease;
}

.mc-footer .mc-footer__button:visited,
.mc-footer .mc-footer__button:hover {
    color: var(--mc-theme-primary, #1a3a62);
}

.mc-footer .mc-footer__button:hover {
    transform: translateX(2px);
}

.mc-footer__note {
    margin: 0;
    max-width: 720px;
    font-size: 13px;
    opacity: 0.8;
}

.mc-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--mc-footer-line);
    font-size: 13px;
}

.mc-footer__bottom > span {
    opacity: 0.8;
}

.mc-footer .mc-footer__top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    opacity: 0.8;
}

.mc-footer .mc-footer__top:hover {
    opacity: 1;
}

@media only screen and (max-width: 1023px) {
    .mc-footer {
        padding: 36px 40px 12px;
    }

    .mc-footer__main {
        gap: 32px;
    }
}

@media only screen and (max-width: 767px) {
    .mc-footer {
        gap: 20px;
        padding: 32px 24px 8px;
    }

    .mc-footer__main {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .mc-footer__store {
        font-size: 22px;
    }

    .mc-footer .mc-footer__links {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .mc-footer .mc-footer__button {
        justify-content: center;
        width: 100%;
        margin-bottom: 8px;
    }

    .mc-footer__bottom {
        font-size: 12px;
    }
}
