/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #1A1A1A;
    border-top: 1px solid #333333;
    padding: 16px 32px;
    z-index: 10000;
    transition: bottom 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.cookie-icon {
    flex-shrink: 0;
}

.cookie-icon svg {
    width: 20px;
    height: 20px;
    fill: #1E3A8A;
}

.cookie-text h4 {
    margin: 0 0 2px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

.cookie-text p {
    margin: 0;
    font-family: 'Source Serif 4', serif;
    font-size: 13px;
    color: #A0A0A0;
    line-height: 1.4;
}

.cookie-text a {
    color: #1E3A8A;
    text-decoration: none;
}

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

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-btn-necessary {
    background: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
}

.cookie-btn-necessary:hover {
    background: rgba(255,255,255,0.1);
}

.cookie-btn-customize {
    background: transparent;
    border: none;
    color: #A0A0A0;
    padding: 10px 16px;
}

.cookie-btn-customize:hover {
    color: #FFFFFF;
}

.cookie-btn-accept {
    background: #1E3A8A;
    border: 1px solid #1E3A8A;
    color: #FFFFFF;
    box-shadow: none;
}

.cookie-btn-accept:hover {
    background: #1E3A8A;
    border-color: #1E3A8A;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cookie-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.cookie-modal {
    background: #FFFFFF;
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.cookie-modal-overlay.show .cookie-modal {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #A0A0A0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.cookie-modal-close:hover {
    color: #1A1A1A;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    padding: 16px 0;
    border-bottom: 1px solid #F0F0F0;
}

.cookie-category:last-child {
    border-bottom: none;
}

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

.cookie-category-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
}

.cookie-category-desc {
    font-family: 'Source Serif 4', serif;
    font-size: 13px;
    color: #A0A0A0;
    line-height: 1.4;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E0E0E0;
    transition: 0.2s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #1E3A8A;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #1E3A8A;
    cursor: not-allowed;
}

.cookie-toggle input:disabled + .cookie-toggle-slider:before {
    transform: translateX(20px);
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #F0F0F0;
    display: flex;
    justify-content: flex-end;
}

.cookie-modal-save {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 32px;
    background: #1E3A8A;
    border: 1px solid #1E3A8A;
    color: #FFFFFF;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-modal-save:hover {
    background: #1E3A8A;
    border-color: #1E3A8A;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .cookie-btn-customize {
        order: 3;
    }
}

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

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}