/* A6.1 — Cookie/Consent banner styles. No dark patterns: all three action
 * buttons share identical size, weight and prominence. Reject is NOT a faded
 * link. WCAG 2.2 AA: visible focus, sufficient contrast, keyboard operable. */

#cs-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    background: #ffffff;
    border-top: 3px solid #527a3c;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
    font-family: 'Lato', Arial, sans-serif;
    color: #333;
}
#cs-consent-banner.cs-consent-visible {
    display: block;
}
.cs-consent-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 22px 20px;
}
.cs-consent-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #2f4a23;
}
.cs-consent-body {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px;
}
.cs-consent-cats {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 16px;
    font-size: 13px;
    color: #555;
}
.cs-consent-cats li {
    margin-bottom: 4px;
}
.cs-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.consent-btn {
    flex: 1 1 0;
    min-width: 180px;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    text-align: center;
    border: 2px solid #527a3c;
    border-radius: 8px;
    background: #ffffff;
    color: #2f4a23;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.consent-btn:hover {
    background: #eef3e8;
}
.consent-btn-accept {
    background: #527a3c;
    color: #ffffff;
}
.consent-btn-accept:hover {
    background: #436632;
}
.consent-btn:focus-visible,
.consent-btn:focus {
    outline: 3px solid #d8a23a;
    outline-offset: 2px;
}
.cs-consent-foot {
    margin: 14px 0 0;
    font-size: 12px;
    color: #777;
}
.cs-consent-foot a {
    color: #527a3c;
    text-decoration: underline;
}

/* Map placeholder (click-to-load) */
.consent-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    background: #eef1ec;
    color: #444;
    box-sizing: border-box;
}
.consent-placeholder p {
    margin: 0;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.5;
}

/* Consent-gated iframe (e.g. Google Maps), injected by consent.js after opt-in.
   Defined as a class so consent.js needs NO inline style attribute — required
   for the /v2/ enforce CSP (no style-src 'unsafe-inline'). */
.consent-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer re-open link */
[data-consent-reopen] {
    cursor: pointer;
}

@media (max-width: 600px) {
    .cs-consent-actions {
        flex-direction: column;
    }
    .consent-btn {
        min-width: 0;
        width: 100%;
    }
}

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