/* Cookie banner — markup is injected by js/cookie-consent.js. */

.cookie-banner {
    position: fixed;
    z-index: 2000;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px 24px;
    border: 1px solid rgba(192, 170, 129, 0.35);
    border-radius: 6px;
    background-color: #1d2b24;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-family: Cabin, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: none;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    margin: 0;
    flex: 1;
}

.cookie-banner__link {
    color: #c0aa81;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__link:hover {
    color: #fff;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Accept and reject get the same weight: rejecting must be as easy as
   accepting under GDPR / the Czech DPA guidance. */
.cookie-banner__button {
    padding: 12px 20px;
    border: 1px solid #c0aa81;
    border-radius: 4px;
    background-color: transparent;
    color: #fff;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}

.cookie-banner__button:hover {
    background-color: #c0aa81;
    color: #1d2b24;
}

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

.cookie-settings-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* Inside article text (the privacy policy) it should read like the other links. */
.bp-article-body .cookie-settings-link {
    color: #ff7100;
    text-underline-offset: 2px;
}

.bp-article-body .cookie-settings-link:hover {
    color: #d95f00;
}

@media screen and (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .cookie-banner__button {
        flex: 1;
    }
}

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