/**
 * Frontend CSS for AI Chatbot widget
 */

/* CSS Variables */
:root {
    --ai-chatbot-primary-color: #667eea;
    --ai-chatbot-secondary-color: #764ba2;
    --ai-chatbot-text-color: #333;
    --ai-chatbot-text-light: #666;
    --ai-chatbot-bg-color: #ffffff;
    --ai-chatbot-bg-light: #f8f9fa;
    --ai-chatbot-border-color: #e0e0e0;
    --ai-chatbot-border-radius: 12px;
    --ai-chatbot-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --ai-chatbot-shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
    --ai-chatbot-z-index: 999999;
    --ai-chatbot-bubble-size: 56px;
    --ai-chatbot-window-width: 400px;
    --ai-chatbot-window-height: 600px;
}

/* Widget Container */
.ai-chatbot-widget-container {
    position: fixed;
    z-index: var(--ai-chatbot-z-index);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ai-chatbot-text-color);
    box-sizing: border-box;
}

.ai-chatbot-widget-container *,
.ai-chatbot-widget-container *::before,
.ai-chatbot-widget-container *::after {
    box-sizing: border-box;
}

/* Position Variants */
.ai-chatbot-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.ai-chatbot-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.ai-chatbot-position-top-right {
    top: 20px;
    right: 20px;
}

.ai-chatbot-position-top-left {
    top: 20px;
    left: 20px;
}

/* Chat Bubble */
.ai-chatbot-bubble {
    width: var(--ai-chatbot-bubble-size);
    height: var(--ai-chatbot-bubble-size);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ai-chatbot-primary-color), var(--ai-chatbot-secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--ai-chatbot-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    outline: none;
}

.ai-chatbot-bubble:hover {
    transform: scale(1.1);
    box-shadow: var(--ai-chatbot-shadow-hover);
}

.ai-chatbot-bubble:focus {
    ring: 2px solid var(--ai-chatbot-primary-color);
    ring-offset: 2px;
}

.ai-chatbot-bubble-size-small {
    --ai-chatbot-bubble-size: 48px;
}

.ai-chatbot-bubble-size-large {
    --ai-chatbot-bubble-size: 64px;
}

.ai-chatbot-bubble-icon svg,
.ai-chatbot-bubble-close svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.ai-chatbot-bubble-close {
    display: none;
}

.ai-chatbot-open .ai-chatbot-bubble-icon {
    display: none;
}

.ai-chatbot-open .ai-chatbot-bubble-close {
    display: flex;
}

/* Bubble Text */
.ai-chatbot-bubble-text {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--ai-chatbot-bg-color);
    color: var(--ai-chatbot-text-color);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--ai-chatbot-shadow);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show text on hover */
.ai-chatbot-bubble:hover .ai-chatbot-bubble-text {
    opacity: 1;
}

/* For left-positioned widgets, show text on the right */
.ai-chatbot-position-bottom-left .ai-chatbot-bubble-text,
.ai-chatbot-position-top-left .ai-chatbot-bubble-text {
    right: auto;
    left: calc(100% + 15px);
}

/* Hide text when chat is open */
.ai-chatbot-open .ai-chatbot-bubble-text {
    display: none;
}

/* Bubble Notification */
.ai-chatbot-bubble-notification {
    position: absolute;
    top: -35px;
    right: 0;
    background: white;
    color: var(--ai-chatbot-text-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.3s ease-out;
}

.ai-chatbot-bubble-notification::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 15px;
    border: 5px solid transparent;
    border-top-color: white;
}

/* Chat Window */
.ai-chatbot-window {
    position: absolute;
    width: var(--ai-chatbot-window-width);
    height: var(--ai-chatbot-window-height);
    background: var(--ai-chatbot-bg-color);
    border-radius: var(--ai-chatbot-border-radius);
    box-shadow: var(--ai-chatbot-shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ai-chatbot-position-bottom-right .ai-chatbot-window,
.ai-chatbot-position-top-right .ai-chatbot-window {
    right: 0;
}

.ai-chatbot-position-bottom-left .ai-chatbot-window,
.ai-chatbot-position-top-left .ai-chatbot-window {
    left: 0;
}

.ai-chatbot-position-bottom-right .ai-chatbot-window,
.ai-chatbot-position-bottom-left .ai-chatbot-window {
    bottom: calc(var(--ai-chatbot-bubble-size) + 15px);
}

.ai-chatbot-position-top-right .ai-chatbot-window,
.ai-chatbot-position-top-left .ai-chatbot-window {
    top: calc(var(--ai-chatbot-bubble-size) + 15px);
}

.ai-chatbot-open .ai-chatbot-window {
    display: flex;
    animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header */
.ai-chatbot-header {
    background: linear-gradient(135deg, var(--ai-chatbot-primary-color), var(--ai-chatbot-secondary-color));
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--ai-chatbot-border-radius) var(--ai-chatbot-border-radius) 0 0;
    flex-shrink: 0; /* Prevent shrinking */
}

.ai-chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ai-chatbot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-chatbot-avatar svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ai-chatbot-header-text {
    flex: 1;
    min-width: 0;
}

.ai-chatbot-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.ai-chatbot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.ai-chatbot-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

.ai-chatbot-controls {
    display: flex;
    gap: 8px;
}

.ai-chatbot-controls button {
    background: transparent;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ai-chatbot-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-chatbot-controls button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Messages Area */
.ai-chatbot-messages {
    flex: 1;
    min-height: 0; /* Important for flexbox scrolling */
    height: calc(100% - 180px);
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--ai-chatbot-bg-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.ai-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.ai-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Message */
.ai-chatbot-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: fadeInUp 0.3s ease-out;
}

.ai-chatbot-message-user {
    flex-direction: row-reverse;
    /*align-self: flex-end;*/
}

.ai-chatbot-message-user .ai-chatbot-message-content {
    align-items: flex-end;
}

.ai-chatbot-message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ai-chatbot-primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-chatbot-message-avatar svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.ai-chatbot-message-user .ai-chatbot-message-avatar {
    background: var(--ai-chatbot-text-light);
}

.ai-chatbot-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: calc(100% - 40px);
}

.ai-chatbot-message-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    line-height: 1.4;
}

.ai-chatbot-message-user .ai-chatbot-message-bubble {
    background: var(--ai-chatbot-primary-color);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.ai-chatbot-message-system .ai-chatbot-message-bubble {
    background: #fef3c7;
    color: #92400e;
    border-radius: 18px;
}

.ai-chatbot-message-time {
    font-size: 11px;
    color: var(--ai-chatbot-text-light);
    padding: 0 4px;
}

/* Message Content Formatting */
.ai-chatbot-message-bubble strong {
    font-weight: 600;
}

.ai-chatbot-message-bubble em {
    font-style: italic;
}

.ai-chatbot-message-bubble code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 12px;
}

.ai-chatbot-message-user .ai-chatbot-message-bubble code {
    background: rgba(255, 255, 255, 0.2);
}

/* Code blocks */
.ai-chatbot-message-bubble pre {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
    overflow-x: auto;
}

.ai-chatbot-message-bubble pre code {
    background: transparent;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
}

.ai-chatbot-message-user .ai-chatbot-message-bubble pre {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Headers in messages */
.ai-chatbot-message-bubble h2,
.ai-chatbot-message-bubble h3,
.ai-chatbot-message-bubble h4 {
    margin: 12px 0 8px;
    font-weight: 600;
    line-height: 1.3;
}

.ai-chatbot-message-bubble h2 {
    font-size: 18px;
}

.ai-chatbot-message-bubble h3 {
    font-size: 16px;
}

.ai-chatbot-message-bubble h4 {
    font-size: 14px;
}

/* Lists in messages */
.ai-chatbot-message-bubble ul,
.ai-chatbot-message-bubble ol {
    margin: 8px 0;
    padding-left: 20px;
}

.ai-chatbot-message-bubble li {
    margin: 4px 0;
    line-height: 1.5;
}

/* Paragraphs */
.ai-chatbot-message-bubble p {
    margin: 0 0 8px;
}

.ai-chatbot-message-bubble p:last-child {
    margin-bottom: 0;
}

.ai-chatbot-message-bubble a {
    color: var(--ai-chatbot-primary-color);
    text-decoration: none;
}

.ai-chatbot-message-bubble a:hover {
    text-decoration: underline;
}

.ai-chatbot-message-user .ai-chatbot-message-bubble a {
    color: rgba(255, 255, 255, 0.9);
}

/* Typing Indicator */
.ai-chatbot-typing {
    display: none;
}

.ai-chatbot-typing-indicator {
    background: white;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 4px;
    align-items: center;
}

.ai-chatbot-typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ai-chatbot-text-light);
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.ai-chatbot-typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.ai-chatbot-typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

/* Input Area */
.ai-chatbot-input-area {
    border-top: 1px solid var(--ai-chatbot-border-color);
    background: white;
    flex-shrink: 0; /* Prevent shrinking */
}

.ai-chatbot-input-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px 20px;
}

.ai-chatbot-input {
    flex: 1;
    border: 1px solid var(--ai-chatbot-border-color);
    border-radius: 20px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
    min-height: 20px;
    max-height: 80px;
}

.ai-chatbot-input:focus {
    border-color: var(--ai-chatbot-primary-color);
}

.ai-chatbot-input::placeholder {
    color: var(--ai-chatbot-text-light);
}

.ai-chatbot-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ai-chatbot-primary-color);
    color: white;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ai-chatbot-send:hover:not(:disabled) {
    background: var(--ai-chatbot-secondary-color);
    transform: scale(1.05);
}

.ai-chatbot-send:disabled {
    background: var(--ai-chatbot-text-light);
    cursor: not-allowed;
    transform: none;
}

.ai-chatbot-send svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Footer */
.ai-chatbot-footer {
    padding: 8px 20px;
    border-top: 1px solid var(--ai-chatbot-border-color);
    background: white;
    text-align: center;
    border-radius: 0 0 var(--ai-chatbot-border-radius) var(--ai-chatbot-border-radius);
    flex-shrink: 0; /* Prevent shrinking */
}

.ai-chatbot-powered-by {
    font-size: 11px;
    color: var(--ai-chatbot-text-light);
}

/* Notification Badge */
.ai-chatbot-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    animation: bounceIn 0.5s ease-out;
}

/* GDPR Notice */
.ai-chatbot-gdpr-notice {
    position: absolute;
    bottom: calc(var(--ai-chatbot-bubble-size) + 20px);
    right: 0;
    background: white;
    border: 1px solid var(--ai-chatbot-border-color);
    border-radius: 8px;
    padding: 16px;
    max-width: 280px;
    box-shadow: var(--ai-chatbot-shadow);
    font-size: 13px;
    line-height: 1.4;
}

.ai-chatbot-gdpr-content p {
    margin: 0 0 12px 0;
    color: var(--ai-chatbot-text-color);
}

.ai-chatbot-gdpr-buttons {
    display: flex;
    gap: 8px;
}

.ai-chatbot-gdpr-accept,
.ai-chatbot-gdpr-decline {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--ai-chatbot-border-color);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.ai-chatbot-gdpr-accept {
    background: var(--ai-chatbot-primary-color);
    color: white;
    border-color: var(--ai-chatbot-primary-color);
}

.ai-chatbot-gdpr-decline:hover {
    background: var(--ai-chatbot-bg-light);
}

.ai-chatbot-gdpr-accept:hover {
    background: var(--ai-chatbot-secondary-color);
}

/* Inline Shortcode Widget */
.ai-chatbot-shortcode-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid var(--ai-chatbot-border-color);
    border-radius: var(--ai-chatbot-border-radius);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ai-chatbot-shortcode-container .ai-chatbot-widget {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ai-chatbot-inline .ai-chatbot-messages {
    height: 300px;
    min-height: 300px;
}

/* Theme Variants */
.ai-chatbot-theme-dark {
    --ai-chatbot-bg-color: #1f2937;
    --ai-chatbot-bg-light: #374151;
    --ai-chatbot-text-color: #f9fafb;
    --ai-chatbot-text-light: #d1d5db;
    --ai-chatbot-border-color: #4b5563;
}

.ai-chatbot-theme-minimal {
    --ai-chatbot-border-radius: 4px;
    --ai-chatbot-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ai-chatbot-theme-rounded {
    --ai-chatbot-border-radius: 24px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ai-chatbot-widget-container {
        --ai-chatbot-window-width: calc(100vw - 20px);
        --ai-chatbot-window-height: calc(100vh - 100px);
    }

    .ai-chatbot-position-bottom-right,
    .ai-chatbot-position-bottom-left {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .ai-chatbot-position-top-right,
    .ai-chatbot-position-top-left {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .ai-chatbot-window {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        height: auto;
        max-width: none;
        max-height: none;
    }

    .ai-chatbot-bubble {
        position: fixed;
        bottom: 20px;
        right: 20px;
    }

    .ai-chatbot-gdpr-notice {
        position: fixed;
        bottom: calc(var(--ai-chatbot-bubble-size) + 30px);
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .ai-chatbot-mobile .ai-chatbot-window {
        border-radius: 0;
    }

    .ai-chatbot-mobile .ai-chatbot-header {
        border-radius: 0;
    }

    .ai-chatbot-mobile .ai-chatbot-input-area {
        border-radius: 0;
    }

}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ai-chatbot-widget-container *,
    .ai-chatbot-widget-container *::before,
    .ai-chatbot-widget-container *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.ai-chatbot-input:focus,
.ai-chatbot-send:focus,
.ai-chatbot-controls button:focus {
    outline: 2px solid var(--ai-chatbot-primary-color);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --ai-chatbot-border-color: #000;
        --ai-chatbot-text-light: #333;
    }
}

/* Print styles */
@media print {
    .ai-chatbot-widget-container {
        display: none !important;
    }
}

/* Promotional Banner Styles */
.ai-chatbot-promo-container {
    width: 100%;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease-in;
}

.ai-chatbot-promo-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: var(--ai-chatbot-border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-chatbot-promo-card {
    background: var(--ai-chatbot-bg-color);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-chatbot-promo-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Promo Logo */
.ai-chatbot-promo-card .promo-logo {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px;
}

.ai-chatbot-promo-card .promo-logo img {
    max-width: 120px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Promo Content */
.ai-chatbot-promo-card .promo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-chatbot-promo-card .promo-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--ai-chatbot-text-color);
    margin: 0;
    line-height: 1.2;
}

.ai-chatbot-promo-card .promo-headline {
    font-size: 13px;
    color: var(--ai-chatbot-primary-color);
    font-weight: 500;
    line-height: 1.3;
}

/* Rating */
.ai-chatbot-promo-card .promo-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.ai-chatbot-promo-card .star {
    color: #ffc107;
    font-size: 16px;
    line-height: 1;
}

.ai-chatbot-promo-card .star-empty {
    color: #e0e0e0;
}

.ai-chatbot-promo-card .rating-value {
    color: var(--ai-chatbot-text-light);
    font-size: 12px;
    margin-left: 4px;
}

/* Features List */
.ai-chatbot-promo-card .promo-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-chatbot-promo-card .promo-features li {
    font-size: 12px;
    color: var(--ai-chatbot-text-light);
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.ai-chatbot-promo-card .promo-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Payment Icons */
.ai-chatbot-promo-card .promo-payments {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--ai-chatbot-border-color);
}

.ai-chatbot-promo-card .payment-icon {
    width: 32px;
    height: 20px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.ai-chatbot-promo-card:hover .payment-icon {
    opacity: 1;
}

/* CTA Section */
.ai-chatbot-promo-card .promo-cta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-chatbot-promo-card .promo-button {
    display: inline-block;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--ai-chatbot-primary-color), var(--ai-chatbot-secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-chatbot-promo-card .promo-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--ai-chatbot-secondary-color), var(--ai-chatbot-primary-color));
}

.ai-chatbot-promo-card .promo-terms {
    font-size: 11px;
    color: var(--ai-chatbot-text-light);
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
}

.ai-chatbot-promo-card .promo-terms:hover {
    color: var(--ai-chatbot-primary-color);
    text-decoration: underline;
}

/* Responsive Design for Promotional Banner */
@media (min-width: 768px) {
    .ai-chatbot-promo-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }

    .ai-chatbot-promo-card {
        margin-bottom: 0;
    }
}

/* Mobile optimizations for promotional banner */
@media (max-width: 480px) {
    .ai-chatbot-promo-grid {
        padding: 8px;
    }

    .ai-chatbot-promo-card {
        padding: 10px;
    }

    .ai-chatbot-promo-card .promo-brand {
        font-size: 14px;
    }

    .ai-chatbot-promo-card .promo-headline {
        font-size: 12px;
    }

    .ai-chatbot-promo-card .promo-features li {
        font-size: 11px;
    }

    .ai-chatbot-promo-card .promo-button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Animation for promotional banner appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}