/* Cookie Consent Modal Styles - Similar to efilli.com */

.cookie-consent-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    animation: fadeIn 0.3s ease-in-out;
}

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

.cookie-consent-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 480px;
    width: 90%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

.cookie-consent-modal.active {
    display: block;
}

.cookie-consent-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.cookie-consent-logo {
    max-width: 120px;
    margin-bottom: 12px;
}

.cookie-consent-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cookie-consent-close:hover {
    color: #1f2937;
}

.cookie-consent-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.cookie-consent-body {
    padding: 20px 24px;
    max-height: 400px;
    overflow-y: auto;
}

.cookie-consent-description {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
}

.cookie-consent-description a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

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

.cookie-settings-toggle {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.cookie-settings-toggle:hover {
    background: #f3f4f6;
}

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

.cookie-toggle-info {
    flex: 1;
}

.cookie-toggle-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
}

.cookie-toggle-required {
    font-size: 11px;
    color: #6b7280;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 500;
}

.cookie-toggle-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    margin-left: 12px;
}

.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: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

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

.toggle-switch input:checked + .toggle-slider {
    background-color: #4f46e5;
}

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

.toggle-switch input:disabled + .toggle-slider {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.cookie-consent-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.cookie-btn-primary {
    background: #4f46e5;
    color: white;
}

.cookie-btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.cookie-btn-secondary {
    background: white;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.cookie-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.cookie-btn-text {
    background: transparent;
    color: #6b7280;
    padding: 12px 16px;
    min-width: auto;
}

.cookie-btn-text:hover {
    color: #1f2937;
    background: #f3f4f6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-modal {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
    
    .cookie-consent-footer {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        min-width: 100%;
    }
}

/* Settings View */
.cookie-settings-view {
    display: none;
}

.cookie-settings-view.active {
    display: block;
}

.cookie-simple-view {
    display: block;
}

.cookie-simple-view.hidden {
    display: none;
}
