.site-footer,
.store-chrome .site-footer {
    --footer-background: rgb(255 255 255 / 70%);
    --footer-border: rgb(255 255 255 / 50%);
    --footer-logo-color: #1a1a1a;
    --footer-accent: #006eb6;
    --footer-text: #555;
    padding-block: 4rem;
    border-block-start: 1px solid var(--footer-border);
    background: var(--footer-background);
    color: var(--footer-text);
    font: 400 1rem / 1.6 'Quicksand', sans-serif;
}

[data-theme="dark"] .site-footer {
    --footer-background: rgb(30 41 59 / 60%);
    --footer-border: rgb(255 255 255 / 8%);
    --footer-logo-color: #f8fafc;
    --footer-accent: #f3e7a2;
    --footer-text: #cbd5e1;
}

.site-footer .footer-container {
    max-inline-size: 1200px;
    margin-inline: auto;
    padding-inline: 2rem;
}

.site-footer .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.site-footer .footer-logo {
    color: var(--footer-logo-color);
}

.site-footer .footer-logo .accent-text {
    color: var(--footer-accent);
}

.store-footer .footer-company {
    margin: 0.5rem 0 0;
    color: var(--footer-text);
}

.store-chrome .store-footer .footer-company a {
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.store-footer .footer-company,
.site-footer .footer-meta,
.site-footer .footer-shop-links {
    font-size: 0.9rem;
}

.site-footer .copyright {
    margin: 0;
}

.site-footer .footer-cookie-settings:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    min-block-size: 44px;
    font-weight: inherit;
}

.site-footer .footer-cookie-settings svg {
    flex: none;
    inline-size: 1em;
    block-size: 1em;
}

.site-footer.store-footer {
    --footer-stripe-green: #26998c;
    --footer-stripe-gold: #e9c369;
    --footer-stripe-orange: #f4a261;
    --footer-stripe-coral: #e76f51;
    container: storefront-footer / inline-size;
    position: relative;
    isolation: isolate;
}

.store-footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
    inset-inline-end: 0;
    inset-block-end: 0;
    inline-size: 3rem;
    block-size: calc(50% + 1.5rem);
    background:
        radial-gradient(circle at right bottom,
            transparent 15px, var(--footer-stripe-coral) 15px 20px,
            transparent 20px 24px, var(--footer-stripe-orange) 24px 29px,
            transparent 29px 33px, var(--footer-stripe-gold) 33px 38px,
            transparent 38px 42px, var(--footer-stripe-green) 42px 47px,
            transparent 47px) right top / 100% 3rem no-repeat,
        linear-gradient(to left,
            transparent 15px, var(--footer-stripe-coral) 15px 20px,
            transparent 20px 24px, var(--footer-stripe-orange) 24px 29px,
            transparent 29px 33px, var(--footer-stripe-gold) 33px 38px,
            transparent 38px 42px, var(--footer-stripe-green) 42px 47px,
            transparent 47px) right bottom / 100% calc(100% - 3rem) no-repeat;
}

@media (min-width: 48rem) {
    .store-footer::before {
        inset-inline: 0 auto;
        inset-block: 50% auto;
        inline-size: min(33%, 43rem, calc(50% - 10rem));
        block-size: clamp(2.5rem, 5vw, 5rem);
        transform: translateY(-50%);
        background: linear-gradient(to bottom,
            var(--footer-stripe-green) 0% 19%,
            transparent 19% 27%, var(--footer-stripe-gold) 27% 46%,
            transparent 46% 54%, var(--footer-stripe-orange) 54% 73%,
            transparent 73% 81%, var(--footer-stripe-coral) 81% 100%);
        clip-path: polygon(
            0 0, 60% 0, 100% 9.5%, 60% 19%, 0 19%,
            0 27%, 65% 27%, 100% 36.5%, 65% 46%, 0 46%,
            0 54%, 62% 54%, 100% 63.5%, 62% 73%, 0 73%,
            0 81%, 57% 81%, 100% 90.5%, 57% 100%, 0 100%);
        mask-image: linear-gradient(to right, #000 30%, transparent);
    }
}

.store-chrome .site-footer .footer-shop-links {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-block-start: 1.5rem;
    padding: 0;
    border: 0;
}

.store-chrome .site-footer .footer-shop-links a {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    color: inherit;
    font: inherit;
}

@container storefront-footer (min-width: 48rem) {
    .site-footer .footer-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 1.5rem;
    }

    .site-footer .footer-brand {
        grid-column: 2;
    }

    .store-chrome .site-footer .footer-shop-links {
        grid-column: 3;
        justify-self: end;
        align-items: flex-start;
        margin-block-start: 0;
    }

    .store-chrome .site-footer .footer-shop-links a {
        min-block-size: 2rem;
    }
}
