/* Keep global WooCommerce link and heading styles out of the blue footer. */
.footer .footer-top {
    align-items: center;
    gap: 24px;
}

.footer .footer-top h2 {
    color: var(--cream);
    font-size: clamp(40px, 9vw, 68px);
    line-height: 1.06;
    margin-bottom: 28px;
}

.footer .footer-top a.button {
    background: var(--cream);
    color: var(--blue);
    font-weight: 700;
}

.footer .footer-top a.button:hover {
    background: var(--yellow);
}

.footer .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer .footer-links > div {
    gap: 8px;
    font-size: 16px;
    line-height: 1.5;
}

.footer .footer-links > div > p {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .09em;
    margin-bottom: 8px;
}

.footer .footer-links a {
    display: inline-block;
    color: var(--cream);
    font-weight: 500;
    padding-block: 3px;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.footer .footer-links a:hover {
    color: var(--yellow);
    text-decoration: underline;
}

.footer a:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 5px;
    border-radius: 4px;
}

.footer .footer-links .small {
    color: var(--cream);
    font-size: 14px;
    line-height: 1.6;
    opacity: 1;
    margin-top: 8px;
}

.footer .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    color: var(--cream);
    font-size: 12px;
    line-height: 1.5;
    opacity: 1;
}

.footer .footer-bottom > span:last-child {
    max-width: none;
    text-align: right;
}

.footer .footer-payments {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer .footer-payments li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 32px;
    padding: 4px;
    background: #fff;
    border-radius: 4px;
}

.footer .footer-payments img {
    display: block;
    width: 30px;
    height: auto;
    max-height: 22px;
    object-fit: contain;
}

.footer .footer-payments .footer-payment-mastercard {
    width: 28px;
}

@media (max-width: 767px) {
    .footer .footer-bottom {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .footer .footer-bottom > span:last-child {
        text-align: center;
    }
}

.footer .footer-cookie {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 390px);
    justify-self: center;
    opacity: 1;
}

.footer .footer-cookie img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: 50% 55%;
    animation: flaky-footer-cookie-float 8s ease-in-out infinite;
}

@keyframes flaky-footer-cookie-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
    50% { transform: translate3d(0, -16px, 0) rotate(4deg); }
}

@media (min-width: 1000px) {
    .footer .footer-top h2 { font-size: 68px; }
    .footer .footer-links { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .footer .footer-cookie { width: min(100%, 490px); }
}

@media (max-width: 599px) {
    .footer .footer-links a:not(.footer-logo) {
        min-height: 40px;
        padding-block: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer .footer-cookie img { animation: none; }
}
