/* ConvertyBot Cookie Consent Banner */

.ai-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: aiConsentFadeIn 0.3s ease-out;
}

@keyframes aiConsentFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ai-consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.ai-consent-modal {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: aiConsentSlideUp 0.4s ease-out;
}

@keyframes aiConsentSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ai-consent-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.ai-consent-header h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.ai-consent-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

.ai-consent-body {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

.ai-consent-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ai-consent-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ai-consent-category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.ai-consent-category-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-consent-category-info h3 .required {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

.ai-consent-category-info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

/* Toggle Switch */
.ai-consent-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-consent-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-consent-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
}

.ai-consent-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ai-consent-switch input:checked + .ai-consent-slider {
    background-color: #667eea;
}

.ai-consent-switch input:checked + .ai-consent-slider:before {
    transform: translateX(24px);
}

.ai-consent-switch input:disabled + .ai-consent-slider {
    background-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Footer */
.ai-consent-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.ai-consent-links {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    justify-content: center;
}

.ai-consent-links a {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.ai-consent-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.ai-consent-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ai-consent-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ai-consent-btn-reject {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.ai-consent-btn-reject:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.ai-consent-btn-custom {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #667eea;
}

.ai-consent-btn-custom:hover {
    background: #f5f7ff;
}

.ai-consent-btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ai-consent-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Settings Button (Always Visible) */
.ai-consent-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 999998;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-consent-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: #f9fafb;
}

/* Hidden state */
.ai-consent-banner.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .ai-consent-modal {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .ai-consent-header {
        padding: 20px 20px 15px;
    }

    .ai-consent-header h2 {
        font-size: 20px;
    }

    .ai-consent-header p {
        font-size: 13px;
    }

    .ai-consent-body {
        padding: 15px 20px;
    }

    .ai-consent-footer {
        padding: 15px 20px;
    }

    .ai-consent-actions {
        flex-direction: column;
    }

    .ai-consent-btn {
        width: 100%;
    }

    .ai-consent-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .ai-consent-settings-btn {
        bottom: 10px;
        left: 10px;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Print styles */
@media print {
    .ai-consent-banner,
    .ai-consent-settings-btn {
        display: none !important;
    }
}
