.cookie-consent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 10000;
    padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border, rgba(26, 31, 46, 0.08));
    box-shadow: 0 -8px 30px rgba(26, 31, 46, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: 1.25rem;
}

.cookie-consent-text {
    margin: 0;
    flex: 1 1 280px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted, #5c6478);
}

.cookie-consent-text a {
    color: var(--brand, #2e5a31);
    font-weight: 600;
    text-decoration: none;
}

.cookie-consent-text a:hover,
.cookie-consent-text a:focus-visible {
    text-decoration: underline;
}

.cookie-consent-accept {
    flex-shrink: 0;
}

.cookie-consent .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.15rem;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}

.cookie-consent .btn-primary {
    background: #2e5a31;
    color: #fff;
}

.cookie-consent .btn-primary:hover,
.cookie-consent .btn-primary:focus-visible {
    background: #234825;
}

body.has-cookie-consent-banner {
    padding-bottom: 5.5rem;
}

@media (max-width: 640px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-accept {
        width: 100%;
    }
}
