/* Cookie Consent Banner */
#cookieConsentBanner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 11000;
    background: var(--card-bg, #fff);
    border-top: 2px solid var(--accent-color, #519D88);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
}

.cookie-banner-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
}

.cookie-banner-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cookie-banner-text {
    font-size: .88rem;
    margin: 0;
    color: var(--text-secondary, #555);
    flex: 1;
    min-width: 220px;
}

.cookie-banner-text a {
    color: var(--accent-color, #519D88);
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-banner-subtext {
    display: block;
    font-size: .78rem;
    color: #aaa;
    margin-top: 3px;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

#btnCookieSettings, #btnDeclineCookies {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: .82rem;
    color: #999;
    text-decoration: underline;
}

#btnAcceptCookies, #btnAcceptAllModal {
    background: var(--accent-color, #519D88);
    border: none;
    border-radius: 6px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: .9rem;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

/* Cookie Settings Modal */
#cookieSettingsModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, .55);
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 30px 28px;
    max-width: 560px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .25);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-modal-header strong {
    font-size: 1.05rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-secondary, #777);
}

.cookie-modal-desc {
    font-size: .83rem;
    color: var(--text-secondary, #666);
    margin-bottom: 18px;
    line-height: 1.5;
}

.cookie-modal-desc a {
    color: var(--accent-color, #519D88);
    text-decoration: underline;
}

.cookie-modal-section-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.cookie-modal-option {
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.cookie-modal-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-option-title {
    font-size: .92rem;
}

.cookie-modal-badge {
    background: #519D88;
    color: #fff;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: .78rem;
    font-weight: 600;
}

.cookie-modal-option-desc {
    font-size: .82rem;
    color: var(--text-secondary, #666);
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: .3s;
}

.cookie-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
    display: block;
}

.cookie-switch input:checked + .cookie-slider {
    background: var(--accent-color, #519D88);
}

.cookie-switch input:checked + .cookie-slider::before {
    transform: translateX(20px);
}

.cookie-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#btnSaveCookieSettings {
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 9px 22px;
    cursor: pointer;
    font-size: .88rem;
    color: var(--text-primary, #333);
    font-weight: 500;
}
