/* ===== Cookie Consent Styles ===== */

/* Banner Container */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2d3e50;
    color: #ecf0f1;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.cookie-consent-icon {
    font-size: 32px;
    color: #3498db;
    flex-shrink: 0;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #bdc3c7;
}

.cookie-consent-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

/* Actions */
.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-accept,
.btn-customize,
.btn-reject {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-accept {
    background-color: #3498db;
    color: white;
}

.btn-accept:hover {
    background-color: #2980b9;
}

.btn-customize {
    background-color: transparent;
    color: #ecf0f1;
    border: 1px solid #ecf0f1;
}

.btn-customize:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-reject {
    background-color: transparent;
    color: #ecf0f1;
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.btn-reject:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* Modal */
#cookieSettingsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

#cookieSettingsModal.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#cookieSettingsModal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

#cookieSettingsModal.show .modal-content {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -48%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

#cookieSettingsModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
}

#cookieSettingsModal .modal-header h3 {
    margin: 0;
    color: #2d3e50;
    font-size: 18px;
}

#cookieSettingsModal .modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cookieSettingsModal .modal-close:hover {
    color: #2d3e50;
}

#cookieSettingsModal .modal-body {
    padding: 20px;
}

#cookieSettingsModal .cookie-setting-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

#cookieSettingsModal .cookie-setting-item:last-child {
    border-bottom: none;
}

#cookieSettingsModal .setting-header {
    margin-bottom: 10px;
}

#cookieSettingsModal .checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

#cookieSettingsModal .checkbox-container input[type="checkbox"] {
    display: none;
}

#cookieSettingsModal .checkmark {
    display: inline-flex;
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

#cookieSettingsModal .checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

#cookieSettingsModal .checkbox-container input[type="checkbox"]:checked ~ .checkmark:after {
    content: '✓';
    color: white;
    font-size: 12px;
}

#cookieSettingsModal .checkbox-container input[type="checkbox"]:disabled ~ .checkmark {
    background-color: #bdc3c7;
    border-color: #bdc3c7;
    cursor: not-allowed;
}

#cookieSettingsModal .checkbox-container input[type="checkbox"]:disabled ~ .checkmark:after {
    content: '✓';
    color: white;
    font-size: 12px;
}

#cookieSettingsModal .setting-description {
    margin: 8px 0 0 30px;
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.4;
}

#cookieSettingsModal .modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #ecf0f1;
    justify-content: flex-end;
}

#cookieSettingsModal .modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-content {
        flex-direction: column;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-consent-actions button {
        flex: 1;
        min-width: 120px;
    }

    #cookieSettingsModal .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
    }

    .cookie-consent-text p {
        font-size: 12px;
    }

    .btn-accept,
    .btn-customize,
    .btn-reject {
        padding: 8px 15px;
        font-size: 12px;
    }

    #cookieSettingsModal .modal-header h3 {
        font-size: 16px;
    }
}
