/* ============================================
   Cookie consent banner + modal
   ============================================ */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1080;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 20px 22px;
    font-size: 0.9rem;
    color: #212529;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.cookie-banner-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.cookie-banner-body {
    color: #495057;
    margin-bottom: 14px;
}

.cookie-banner-body a {
    color: #0d6efd;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-modal-overlay.is-hidden {
    display: none;
}

.cookie-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.cookie-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}

.cookie-modal-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px;
    margin-top: 14px;
}

.cookie-modal-section + .cookie-modal-section {
    margin-top: 10px;
}

.cookie-modal-section-title {
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cookie-modal-section-body {
    color: #6c757d;
    font-size: 0.88rem;
}

.cookie-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 18px;
}

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

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

.cookie-switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #adb5bd;
    border-radius: 24px;
    transition: background-color 0.2s;
}

.cookie-switch .slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cookie-switch input:checked + .slider {
    background-color: #198754;
}

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

.cookie-switch input:disabled + .slider {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .cookie-banner {
        left: 24px;
        right: auto;
    }
}