/* Cookie Consent Popup Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0c3b80;
    color: white;
    padding: 15px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-text {
    flex: 1;
    margin-right: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
    min-width: 100px;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-btn.accept {
    background-color: white;
    color: #0c3b80;
}

.cookie-btn.reject {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn.customize {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cookie-settings-modal.visible {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h2 {
    margin: 0;
    color: #e52527;
    font-size: 24px;
}

.cookie-type {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.cookie-type-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.cookie-type-header h3 .arrow-icon {
    margin-right: 10px;
    transition: transform 0.3s;
}

.cookie-type.expanded .cookie-type-header h3 .arrow-icon {
    transform: rotate(90deg);
}

.cookie-type-description {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

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

input:checked + .toggle-slider {
    background-color: #e52527;
}

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.cookie-modal-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.cookie-policy-link {
    flex: 1;
    display: flex;
    align-items: center;
}

.cookie-policy-link a {
    color: #0c3b80;
    text-decoration: none;
    font-weight: 500;
}

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

.cookie-modal-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn.save {
    background-color: #e52527;
    color: white;
}

.cookie-btn.accept-all {
    background-color: #0c3b80;
    color: white;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        padding: 15px;
    }

    .cookie-text {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        padding: 10px 15px;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .cookie-modal-footer {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-policy-link {
        justify-content: center;
    }

    .cookie-modal-actions {
        justify-content: center;
    }
}