/* Cookie choice banner (#2149), on every shop page; replaces the old #cookieconsent notice. */
.cookie-choice {
    --cookie-choice-background: #fff;
    --cookie-choice-text: #000;
    --cookie-choice-muted: #555;
    --cookie-choice-primary: #115d7e;
    --cookie-choice-primary-hover: #1a8bb9;
    --cookie-choice-shadow: rgb(0 0 0 / 35%);

    position: fixed;
    z-index: 1000;
    inset-block-end: 1.25rem;
    inset-inline: 1.25rem;
    max-inline-size: 40rem;
    padding: 1.25rem;
    color: var(--cookie-choice-text);
    background: var(--cookie-choice-background);
    box-shadow: 1px 1px 4px var(--cookie-choice-shadow);
}

.cookie-choice[hidden],
.cookie-choice__categories[hidden],
.cookie-choice__button[hidden] {
    display: none;
}

.cookie-choice__message {
    margin-block: 0 1rem;
}

.cookie-choice__categories {
    display: grid;
    gap: 0.75rem;
    margin-block-end: 1rem;
}

.cookie-choice__category {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.5rem;
    margin: 0;
}

.cookie-choice__description {
    grid-column: 2;
    font-size: 0.875rem;
    color: var(--cookie-choice-muted);
}

.cookie-choice__name {
    font-weight: bold;
}

.cookie-choice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-choice__button {
    margin: 0;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--cookie-choice-primary);
    border-radius: 0.625rem;
    color: #fff;
    background-color: var(--cookie-choice-primary);
    cursor: pointer;
}

.cookie-choice__button:hover {
    border-color: var(--cookie-choice-primary-hover);
    background-color: var(--cookie-choice-primary-hover);
}

.cookie-choice__button--secondary {
    color: var(--cookie-choice-primary);
    background-color: transparent;
}

/* The footer's "Cookie-instellingen" is a button (it opens the banner, it goes nowhere) that reads like the
   footer links next to it; resets the shop's global button style. */
.cookie-settings-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    font: inherit;
    color: inherit;
    background: none;
    text-decoration: none;
    cursor: pointer;
}

.cookie-settings-link:hover {
    border: 0;
    color: var(--cookie-settings-link-hover, #115d7e);
    background: none;
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .cookie-choice {
        --cookie-choice-background: #1e1e1e;
        --cookie-choice-text: #f0f0f0;
        --cookie-choice-muted: #bbb;
    }
}
