/*
 * Consent banner. Injected by js/consent.js, so none of this markup exists in
 * the HTML — see that file for when the bar appears and what it gates.
 *
 * Self-contained on purpose, including its own media query. The product pages
 * do not load responsive.css (theme-studio.css carries the same note about the
 * Instagram icon), so a breakpoint kept anywhere else would apply on the
 * landing page and not on the pages an Instagram ad actually lands people on.
 */

.consent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* Above the Shopify Buy Button's floating cart toggle, which sets its own
       z-index in the high thousands. */
    z-index: 100000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    padding: 1.15rem 5%;
    background: #FFFFFF;
    border-top: 1px solid var(--color-border, #E5E5E0);
    box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.07);
}

.consent-bar-text {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-muted, #555555);
    max-width: 62ch;
}

.consent-bar-link {
    color: var(--color-text-muted, #555555);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.consent-bar-link:hover {
    color: var(--color-text, #1A1A1A);
}

.consent-bar-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/*
 * Accept and Decline are deliberately the same button. A reject that is
 * smaller, greyer or further away than accept is not a free choice, and it is
 * the defect most often acted on by the Datenschutzbehörde. Style one, get
 * both — there is no rule below that distinguishes them.
 */
.consent-bar-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    padding: 0.7rem 1.6rem;
    border: 1px solid #111111;
    border-radius: 0;
    background: #FFFFFF;
    color: #111111;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.consent-bar-btn:hover {
    background: #111111;
    color: #FFFFFF;
}

.consent-bar-btn:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

@media (max-width: 820px) {
    .consent-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem 5% 1.5rem;
    }

    .consent-bar-text {
        max-width: none;
    }

    /* Equal width rather than equal-ish: on a narrow screen the longer word
       would otherwise make Decline the smaller target. */
    .consent-bar-btn {
        flex: 1 1 0;
        padding: 0.8rem 0.5rem;
    }
}
