/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px 20px;
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 3px solid #527ff4;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-content {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-icon {
    font-size: 24px;
}

.cookie-consent-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 12px;
}

.cookie-consent-text a {
    color: #527ff4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cookie-consent-text a:hover {
    color: #3f68c7;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #527ff4 0%, #3f68c7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(82, 127, 244, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(82, 127, 244, 0.4);
}

.cookie-btn-decline {
    background: #f0f0f0;
    color: #4a5568;
}

.cookie-btn-decline:hover {
    background: #e0e0e0;
}

.cookie-btn-settings {
    background: transparent;
    color: #527ff4;
    border: 2px solid #527ff4;
}

.cookie-btn-settings:hover {
    background: #527ff4;
    color: white;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

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

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

.cookie-settings-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #4a5568;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-settings-close:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

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

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #527ff4;
}

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

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.cookie-category-description {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.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: 0.3s;
    border-radius: 26px;
}

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

.toggle-switch input:checked + .toggle-slider {
    background-color: #527ff4;
}

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

.toggle-switch input:disabled + .toggle-slider {
    background-color: #527ff4;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .cookie-btn {
        flex: 1;
        justify-content: center;
        padding: 14px 20px;
    }

    .cookie-settings-content {
        max-height: 95vh;
    }

    .cookie-consent-title {
        font-size: 16px;
    }

    .cookie-consent-text {
        font-size: 13px;
    }
}

/* Cookie floating button (when banner is dismissed) - same size as chatbot toggler */
.cookie-settings-button {
    position: fixed;
    bottom: 120px;
    right: 35px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #527ff4 0%, #3f68c7 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(82, 127, 244, 0.4);
    transition: all 0.3s ease;
    z-index: 99998;
    display: none;
}

.cookie-settings-button.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(82, 127, 244, 0.4);
}
