/* Cookie Consent Banner */
.cookie-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99998;
}

.cookie-overlay.active {
    display: block;
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 99999;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
}

.cookie-banner.active {
    display: block;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Left: text */
.cookie-banner-left {
    flex: 1;
    min-width: 0;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.cookie-banner-header svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.cookie-banner-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.cookie-banner-text {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.cookie-banner-text a {
    color: #003D4E;
    font-weight: 600;
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

/* Right: buttons */
.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-btn:hover {
    opacity: 0.85;
}

.cookie-btn-accept {
    background: #003D4E;
    color: #fff;
}

.cookie-btn-reject {
    background: #f0f0f0;
    color: #444;
}

.cookie-btn-reject:hover {
    background: #e4e4e4;
}

.cookie-btn-settings {
    background: transparent;
    color: #003D4E;
    border: 1px solid #003D4E;
    padding: 7px 20px;
}

.cookie-btn-save {
    background: #003D4E;
    color: #fff;
    display: none;
}

/* Category toggles — shown below when expanded */
.cookie-categories-wrapper {
    display: none;
    border-top: 1px solid #eee;
}

.cookie-categories-wrapper.active {
    display: block;
}

.cookie-categories-wrapper.active ~ .cookie-banner-inner .cookie-btn-save,
.cookie-btn-save.visible {
    display: inline-block;
}

.cookie-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-category {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px 16px;
    flex: 1;
    min-width: 180px;
}

.cookie-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cookie-category-head label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
}

.cookie-category-head .cookie-badge {
    font-size: 10px;
    background: #003D4E;
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.cookie-category p {
    font-size: 11px;
    color: #888;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* Toggle switch */
.cookie-banner label.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-banner .cookie-toggle input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.cookie-banner .cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 20px;
    transition: 0.25s;
}

.cookie-banner .cookie-toggle-slider:before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-banner .cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider {
    background: #003D4E;
}

.cookie-banner .cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider:before {
    transform: translateX(16px);
}

.cookie-banner .cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-slider {
    background: #003D4E;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        gap: 14px;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .cookie-categories {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .cookie-category {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner-inner {
        padding: 14px 16px;
        gap: 10px;
    }

    .cookie-banner-header h3 {
        font-size: 14px;
    }

    .cookie-banner-text {
        font-size: 12px;
    }

    .cookie-btn {
        padding: 11px 16px;
        font-size: 13px;
    }
}
