/**
 * Cookie consent banner. Standalone stylesheet so the banner ships without
 * a Laravel Mix rebuild of the main bundle.
 */

.cookie-consent {
    --cookie-accent: #ab8a62;
    --cookie-surface: #2b2b2b;
    --cookie-text: #f2efea;

    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 9999;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: var(--cookie-surface);
    color: var(--cookie-text);
    border-top: 3px solid var(--cookie-accent);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
    animation: cookie-consent-in 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cookie-consent-in {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
}

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

.cookie-consent__body {
    max-width: 1140px;
    margin: 0 auto;
}

.cookie-consent__title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    color: var(--cookie-accent);
}

.cookie-consent__text {
    margin: 0;
    max-width: 70ch;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.cookie-consent__link {
    color: var(--cookie-accent);
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-consent__settings {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
}

.cookie-consent__option {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.5;
    cursor: pointer;
}

.cookie-consent__option input {
    margin-top: 0.25rem;
    accent-color: var(--cookie-accent);
    flex: none;
}

.cookie-consent__actions {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cookie-consent__btn {
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--cookie-accent);
    border-radius: 4px;
    background: transparent;
    color: var(--cookie-text);
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.cookie-consent__btn:hover,
.cookie-consent__btn:focus-visible {
    background: var(--cookie-accent);
    color: #1b1b1b;
}

.cookie-consent__btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.cookie-consent__btn--primary {
    background: var(--cookie-accent);
    color: #1b1b1b;
    font-weight: 600;
}

.cookie-consent__btn--primary:hover,
.cookie-consent__btn--primary:focus-visible {
    filter: brightness(1.1);
}

.cookie-consent__btn--ghost {
    border-color: rgba(242, 239, 234, 0.4);
}