/* Cookie Consent Modal Styles */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-consent-overlay.show {
    display: block;
    opacity: 1;
}

.cookie-consent-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.cookie-consent-modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.cookie-consent-container {
    padding: 24px;
}

.cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-consent-header h3 {
    margin: 0;
    color: #1cc3b2;
    font-size: 20px;
    font-weight: 600;
}

.cookie-consent-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.cookie-consent-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.cookie-consent-content {
    margin-bottom: 16px;
}

.cookie-consent-content p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 14px;
}

.cookie-consent-categories {
    margin: 16px 0;
    max-height: 300px;
    overflow-y: auto;
}

.cookie-category {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.cookie-category.active {
    border-color: #1cc3b2;
    background: #f0fffe;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cookie-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cookie-category-title h4 {
    margin: 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.cookie-category-title .category-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1cc3b2;
    font-size: 16px;
}

.cookie-category-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.cookie-category-toggle.active {
    background-color: #1cc3b2;
}

.cookie-category-toggle.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-category-toggle.active::after {
    transform: translateX(20px);
}

.cookie-category-description {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    display: none;
}

.cookie-category.expanded .cookie-category-description {
    display: block;
}

.cookie-category-expand {
    background: none;
    border: none;
    color: #1cc3b2;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 0;
    margin-top: 8px;
    text-decoration: none;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
}

.cookie-consent-btn-primary {
    background-color: #1cc3b2;
    color: white;
}

.cookie-consent-btn-primary:hover {
    background-color: #17a89a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(28, 195, 178, 0.3);
}

.cookie-consent-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.cookie-consent-btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.cookie-consent-btn-outline {
    background-color: transparent;
    color: #1cc3b2;
    border: 2px solid #1cc3b2;
}

.cookie-consent-btn-outline:hover {
    background-color: #1cc3b2;
    color: white;
}

.cookie-consent-links {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.cookie-consent-links a {
    color: #1cc3b2;
    text-decoration: none;
    margin: 0 8px;
    font-size: 12px;
    transition: color 0.3s ease;
}

.cookie-consent-links a:hover {
    color: #17a89a;
    text-decoration: underline;
}

.cookie-consent-settings-toggle {
    background: none;
    border: none;
    color: #1cc3b2;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 0;
    text-decoration: underline;
    margin-top: 10px;
}

.cookie-consent-settings-toggle:hover {
    color: #17a89a;
}

.cookie-consent-minimal {
    display: none;
}

.cookie-consent-minimal.show {
    display: block;
}

.cookie-consent-minimal .cookie-consent-container {
    padding: 20px;
}

.cookie-consent-minimal .cookie-consent-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.cookie-consent-minimal .cookie-consent-header h3 {
    font-size: 20px;
}

.cookie-consent-minimal .cookie-consent-content p {
    font-size: 14px;
    margin-bottom: 15px;
}

.cookie-consent-minimal .cookie-consent-actions {
    margin-top: 20px;
    padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-modal {
        max-width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .cookie-consent-container {
        padding: 20px;
    }

    .cookie-consent-header h3 {
        font-size: 18px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
    }

    .cookie-category {
        padding: 10px;
    }

    .cookie-category-title h4 {
        font-size: 14px;
    }

    .cookie-consent-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .cookie-consent-links a {
        margin: 0;
    }
}

/* Animation for category expansion */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.cookie-category-description {
    animation: slideDown 0.3s ease;
}

