/*
 * Cookie banner: a card fixed to the bottom of the screen, over the page,
 * until the visitor chooses. Both choices are equally easy to make.
 */

.cookie-banner {
    position: fixed;
    right: var(--gutter);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: var(--gutter);
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 32px);
    border: 1px solid var(--c-line);
    border-radius: 20px;
    background: var(--c-ivory);
    color: var(--c-ink-soft);
    box-shadow: 0 26px 60px -30px rgba(40, 15, 15, .55);
    animation: cookie-banner-in .4s cubic-bezier(.2, .7, .2, 1);
}

@keyframes cookie-banner-in { from { opacity: 0; transform: translateY(20px); } }

.cookie-banner__text { flex: 1 1 420px; font-size: 15px; line-height: 1.55; }
.cookie-banner__text p { margin: 0; }
.cookie-banner__text a { color: var(--c-accent); text-underline-offset: 3px; }

.cookie-banner__title {
    margin: 0 0 4px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    color: var(--c-accent);
}

.cookie-banner__current { margin-top: 6px !important; font-weight: 500; color: var(--c-ink-2); }

.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__btn { min-height: 46px; padding: 10px 22px; font-size: 16px; }

@media (max-width: 560px) {
    .cookie-banner { gap: 14px; }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__btn { flex: 1 1 0; justify-content: center; padding-inline: 12px; }
}

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