/* WooAI Chatbot Widget Styles */

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb.woff2') format('woff2'),
         url('../fonts/IRANSansWeb.woff') format('woff'),
         url('../fonts/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb_Bold.woff2') format('woff2'),
         url('../fonts/IRANSansWeb_Bold.woff') format('woff'),
         url('../fonts/IRANSansWeb_Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

.wooai-chatbot-widget {
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    font-size: var(--wooai-font-size, 14px);
    direction: rtl;
    text-align: right;
    z-index: 999999;
    position: fixed;
    font-feature-settings: "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Position Classes */
.wooai-chatbot-bottom-right {
    bottom: 20px;
    right: 20px;
}

.wooai-chatbot-bottom-left {
    bottom: 20px;
    left: 20px;
}

.wooai-chatbot-top-right {
    top: 20px;
    right: 20px;
}

.wooai-chatbot-top-left {
    top: 20px;
    left: 20px;
}

/* Theme Classes */
.wooai-chatbot-light-theme {
    --wooai-primary-color: var(--wooai-primary-color, #007bff);
    --wooai-secondary-color: var(--wooai-secondary-color, #6c757d);
    --wooai-background-color: var(--wooai-background-color, #ffffff);
    --wooai-text-color: var(--wooai-text-color, #333333);
    --wooai-border-color: #e9ecef;
    --wooai-shadow-color: rgba(0, 0, 0, 0.1);
    --wooai-hover-color: #f8f9fa;
}

.wooai-chatbot-dark-theme {
    --wooai-primary-color: var(--wooai-primary-color, #007bff);
    --wooai-secondary-color: var(--wooai-secondary-color, #6c757d);
    --wooai-background-color: #2d3748;
    --wooai-text-color: #ffffff;
    --wooai-border-color: #4a5568;
    --wooai-shadow-color: rgba(0, 0, 0, 0.3);
    --wooai-hover-color: #4a5568;
}

/* Toggle Button */
.wooai-chatbot-toggle {
    position: relative;
}

.wooai-chatbot-toggle-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    transform: scale(1);
    backdrop-filter: blur(20px);
}

.wooai-chatbot-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.wooai-chatbot-toggle-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.wooai-chatbot-toggle-btn:active {
    transform: scale(0.95) translateY(-1px);
}

.wooai-chatbot-toggle-btn.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 24px 48px rgba(79, 172, 254, 0.5);
}

.wooai-chatbot-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.wooai-chatbot-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.wooai-chatbot-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.wooai-chatbot-icon svg {
    width: 100%;
    height: 100%;
}

.wooai-chatbot-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* Chatbot Window */
.wooai-chatbot-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 320px;
    height: auto;
    background: #ffffff;
    border: none;
    border-radius: var(--wooai-border-radius, 20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000000;
    visibility: visible;
    opacity: 1;
    backdrop-filter: blur(20px);
    transform-origin: bottom right;
}

.wooai-chatbot-bottom-left .wooai-chatbot-window {
    right: auto;
    left: 0;
}

.wooai-chatbot-top-right .wooai-chatbot-window {
    bottom: auto;
    top: 90px;
    right: 0;
}

.wooai-chatbot-top-left .wooai-chatbot-window {
    bottom: auto;
    top: 90px;
    right: auto;
    left: 0;
}

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

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

/* Header */
.wooai-chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
    min-height: 60px;
    backdrop-filter: blur(10px);
}

.wooai-chatbot-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    backdrop-filter: blur(10px);
}

/* Header back button removed */

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

.wooai-chatbot-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wooai-chatbot-header-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.wooai-chatbot-header-avatar-placeholder .wooai-chatbot-icon {
    width: 16px;
    height: 16px;
    color: white;
}

.wooai-chatbot-header-text {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.wooai-chatbot-name {
    margin: 0;
    font-size: 15px;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wooai-chatbot-status {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 400;
    margin-top: 1px;
}

.wooai-chatbot-header-actions {
    display: none;
}

.wooai-chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wooai-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wooai-chatbot-close:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.wooai-chatbot-close .wooai-chatbot-icon {
    width: 16px;
    height: 16px;
}

/* Messages */
.wooai-chatbot-messages {
    flex: 1;
    padding: 16px;
    padding-bottom: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    min-height: 0;
    max-height: calc(500px - 140px);
    background: #ffffff;
}

.wooai-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

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

.wooai-chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.wooai-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Firefox scrollbar */
.wooai-chatbot-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.wooai-chatbot-message {
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
    animation: messageSlide 0.3s ease;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.wooai-chatbot-message.typing-indicator-message {
    z-index: 4;
}

.wooai-chatbot-message-user {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.wooai-chatbot-message-bot {
    flex-direction: row;
    justify-content: flex-start;
}

.wooai-chatbot-message-bot:not(:has(.wooai-chatbot-product-cards)) {
    margin-bottom: 20px;
}

/* Message Avatar */
.wooai-chatbot-message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    position: absolute;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.9);
    z-index: 2;
}

.wooai-chatbot-message-user .wooai-chatbot-message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    bottom: -15px;
    right: -10px;
    z-index: 5;
}

.wooai-chatbot-message-bot .wooai-chatbot-message-avatar {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -15px;
    left: -10px;
    z-index: 5;
}

.wooai-chatbot-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.wooai-chatbot-message-avatar-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wooai-chatbot-message-avatar-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wooai-chatbot-message-user {
    align-self: flex-end;
}

.wooai-chatbot-message-bot {
    align-self: flex-start;
}

/* Welcome Message */
.wooai-chatbot-messages .wooai-chatbot-message:first-child {
    align-self: stretch;
    max-width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

.wooai-chatbot-messages .wooai-chatbot-message:first-child .wooai-chatbot-message-content {
    border: none;
    border-radius: 18px;
    text-align: center;
    padding: 6px 20px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.wooai-chatbot-messages .wooai-chatbot-message:first-child .wooai-chatbot-message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.wooai-chatbot-messages .wooai-chatbot-message:first-child .wooai-chatbot-message-text {
    font-size: 13px;
    line-height: 1.5;
    color: #606060;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Hide timestamp for welcome message */
.wooai-chatbot-messages .wooai-chatbot-message:first-child .wooai-chatbot-message-time {
    display: none;
}

.wooai-chatbot-message-content {
    background: #f1f3f4;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 100%;
    border: none;
    margin: 0 4px;
}

.wooai-chatbot-message-user .wooai-chatbot-message-content {
    background: var(--wooai-user-background-color, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: var(--wooai-user-message-color, white);
    border: none;
    border-bottom-right-radius: 6px;
    order: 1;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.wooai-chatbot-message-bot .wooai-chatbot-message-content {
    background: var(--wooai-bot-background-color, #f1f3f4);
    color: var(--wooai-bot-message-color, #333333);
    border: none;
    border-bottom-left-radius: 6px;
    order: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wooai-chatbot-message-text {
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
    font-size: 13px;
    font-weight: 400;
    white-space: normal;
}

.wooai-chatbot-message-text br {
    display: block;
    margin: 0;
    line-height: 1.5;
}

.wooai-chatbot-message-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 6px;
    color: #9aa0a6;
    font-weight: 400;
    text-align: center;
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Voice Message Styles */
.wooai-chatbot-voice-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f1f3f4;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.wooai-chatbot-message-user .wooai-chatbot-voice-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 6px;
}

.wooai-chatbot-voice-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #667eea;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.wooai-chatbot-voice-play-btn:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

.wooai-chatbot-message-user .wooai-chatbot-voice-play-btn {
    background: rgba(255, 255, 255, 0.2);
}

.wooai-chatbot-voice-play-btn:hover {
    transform: scale(1.1);
}

.wooai-chatbot-voice-play-btn .wooai-chatbot-icon {
    width: 14px;
    height: 14px;
}

.wooai-chatbot-voice-waveform {
    flex: 1;
    height: 20px;
    background: linear-gradient(90deg, #667eea 0%, #667eea 30%, #e0e0e0 30%, #e0e0e0 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.wooai-chatbot-voice-waveform:hover {
    background: linear-gradient(90deg, #5a6fd8 0%, #5a6fd8 30%, #d0d0d0 30%, #d0d0d0 100%);
}

.wooai-chatbot-message-user .wooai-chatbot-voice-waveform {
    background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.3) 30%, rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.1) 100%);
}

.wooai-chatbot-voice-duration {
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
    flex-shrink: 0;
    cursor: pointer;
}

.wooai-chatbot-voice-duration:hover {
    color: #5a6fd8;
}

.wooai-chatbot-message-user .wooai-chatbot-voice-duration {
    color: rgba(255, 255, 255, 0.8);
}

/* Recording Indicator */
.wooai-chatbot-recording-indicator {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4444;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    animation: pulse 1s infinite;
    z-index: 1000;
}

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

.wooai-chatbot-input-container.recording {
    border-color: #ff4444;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.wooai-chatbot-input-container.recording .wooai-chatbot-input-field {
    color: #ff4444;
}

.wooai-chatbot-input-container.recording .wooai-chatbot-input-field::placeholder {
    color: #ff4444;
}

.wooai-chatbot-recording-indicator {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4444;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    animation: pulse 1s infinite;
    z-index: 1000;
    white-space: nowrap;
}

.wooai-chatbot-message-user .wooai-chatbot-message-time {
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    margin-top: 4px;
    position: relative;
    z-index: 3;
}

.wooai-chatbot-message-bot .wooai-chatbot-message-time {
    color: #9aa0a6;
    text-align: right;
    margin-top: 4px;
    position: relative;
    z-index: 3;
}

/* Typing Indicator */
.wooai-chatbot-typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    color: #6c757d;
    font-size: 11px;
    background: #f8f9fa;
    border-radius: 18px;
    margin: 8px 0 20px 0;
    align-self: flex-start;
    width: auto;
    max-width: 80px;
    position: relative;
    z-index: 3;
}

.wooai-chatbot-typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
    justify-content: center;
}

.wooai-chatbot-typing-dots span {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

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

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


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

/* Input */
.wooai-chatbot-input {
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: auto;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
    clear: both;
}

.wooai-chatbot-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wooai-chatbot-input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.wooai-chatbot-input-container.recording {
    border-color: #ff4444;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    position: relative;
}

.wooai-chatbot-input-attach {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
}

.wooai-chatbot-input-attach:hover {
    background: #f1f3f4;
    color: #667eea;
    transform: scale(1.05);
}

.wooai-chatbot-input-attach.recording {
    background: #ff4444;
    color: white;
    animation: pulse 1s infinite;
}

.wooai-chatbot-input-attach.recording:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.05);
}

.wooai-chatbot-input-attach .wooai-chatbot-icon {
    width: 16px;
    height: 16px;
}

.wooai-chatbot-input-field {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 12px;
    color: #2d3748;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    font-weight: 400;
    resize: none;
    max-height: 80px;
    line-height: 1.4;
    order: 1;
}

.wooai-chatbot-input-field::placeholder {
    color: #9aa0a6;
    font-weight: 400;
}

.wooai-chatbot-input-container.recording .wooai-chatbot-input-field {
    color: #ff4444;
}

.wooai-chatbot-input-container.recording .wooai-chatbot-input-field::placeholder {
    color: #ff4444;
}

.wooai-chatbot-send-btn {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
}

.wooai-chatbot-send-btn:hover {
    background: #f1f3f4;
    color: #667eea;
    transform: scale(1.05);
}

.wooai-chatbot-send-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.wooai-chatbot-send-btn:disabled {
    background: var(--wooai-secondary-color);
    cursor: not-allowed;
}

.wooai-chatbot-send-btn .wooai-chatbot-icon {
    width: 13px;
    height: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wooai-chatbot-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        max-height: 500px;
        bottom: 90px;
        right: 10px;
        left: 10px;
        border-radius: 16px;
    }
    
    .wooai-chatbot-messages {
        padding: 16px;
        padding-bottom: 16px;
        max-height: calc(100vh - 200px);
    }
    
    .wooai-chatbot-header {
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .wooai-chatbot-input {
        padding: 16px;
        position: sticky;
        bottom: 0;
    }
    
    .wooai-chatbot-bottom-left .wooai-chatbot-window {
        right: 20px;
        left: 20px;
    }
    
    .wooai-chatbot-top-right .wooai-chatbot-window,
    .wooai-chatbot-top-left .wooai-chatbot-window {
        top: 80px;
        bottom: auto;
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .wooai-chatbot-toggle-btn {
        width: 60px;
        height: 60px;
    }
    
    .wooai-chatbot-icon {
        width: 26px;
        height: 26px;
    }
    
    .wooai-chatbot-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        max-height: 500px;
        bottom: 90px;
        right: 10px;
        left: 10px;
    }
    
    .wooai-chatbot-input {
        padding: 12px;
        position: sticky;
        bottom: 0;
    }
    
    .wooai-chatbot-messages {
        padding: 12px;
        padding-bottom: 12px;
    }
    
    .wooai-chatbot-bottom-left .wooai-chatbot-window {
        right: 10px;
        left: 10px;
    }
    
    .wooai-chatbot-top-right .wooai-chatbot-window,
    .wooai-chatbot-top-left .wooai-chatbot-window {
        top: 90px;
        bottom: auto;
        right: 10px;
        left: 10px;
    }
}

/* Animation Speed Classes */
.wooai-chatbot-slow-animation .wooai-chatbot-window,
.wooai-chatbot-slow-animation .wooai-chatbot-toggle-btn,
.wooai-chatbot-slow-animation .wooai-chatbot-message,
.wooai-chatbot-slow-animation .wooai-chatbot-send-btn {
    animation-duration: 0.6s !important;
    transition-duration: 0.6s !important;
}

.wooai-chatbot-normal-animation .wooai-chatbot-window,
.wooai-chatbot-normal-animation .wooai-chatbot-toggle-btn,
.wooai-chatbot-normal-animation .wooai-chatbot-message,
.wooai-chatbot-normal-animation .wooai-chatbot-send-btn {
    animation-duration: 0.4s !important;
    transition-duration: 0.3s !important;
}

.wooai-chatbot-fast-animation .wooai-chatbot-window,
.wooai-chatbot-fast-animation .wooai-chatbot-toggle-btn,
.wooai-chatbot-fast-animation .wooai-chatbot-message,
.wooai-chatbot-fast-animation .wooai-chatbot-send-btn {
    animation-duration: 0.15s !important;
    transition-duration: 0.15s !important;
}

/* Shadow Intensity Classes */
.wooai-chatbot-no-shadow .wooai-chatbot-window {
    box-shadow: none !important;
}

.wooai-chatbot-light-shadow .wooai-chatbot-window {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.wooai-chatbot-medium-shadow .wooai-chatbot-window {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
}

.wooai-chatbot-heavy-shadow .wooai-chatbot-window {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

/* Button Style Classes */
.wooai-chatbot-rounded-buttons .wooai-chatbot-toggle-btn,
.wooai-chatbot-rounded-buttons .wooai-chatbot-send-btn {
    border-radius: 50%;
}

.wooai-chatbot-square-buttons .wooai-chatbot-toggle-btn,
.wooai-chatbot-square-buttons .wooai-chatbot-send-btn {
    border-radius: 4px;
}

.wooai-chatbot-pill-buttons .wooai-chatbot-toggle-btn,
.wooai-chatbot-pill-buttons .wooai-chatbot-send-btn {
    border-radius: 50px;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .wooai-chatbot-widget {
        --wooai-border-color: #000000;
        --wooai-shadow-color: rgba(0, 0, 0, 0.5);
    }
}

/* Product Cards Styles */
.wooai-chatbot-product-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
    margin-bottom: 16px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    clear: both;
    width: 100%;
    max-width: 100%;
}

.wooai-chatbot-product-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    margin-bottom: 4px;
}

.wooai-chatbot-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--wooai-shadow-color);
}

.wooai-chatbot-product-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.wooai-chatbot-product-link:hover {
    text-decoration: none;
    color: inherit;
}

.wooai-chatbot-product-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.wooai-chatbot-product-icon i {
    font-size: 18px;
    color: white;
}

.wooai-chatbot-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.wooai-chatbot-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wooai-chatbot-product-card:hover .wooai-chatbot-product-image {
    transform: scale(1.05);
}

.wooai-chatbot-product-placeholder {
    font-size: 48px;
    color: #6c757d;
    opacity: 0.5;
}

.wooai-chatbot-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wooai-chatbot-product-title {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    color: #2c3e50;
    line-height: 1.3;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
}

.wooai-chatbot-product-status {
    font-size: 10px;
    color: #6c757d;
    margin: 0;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
}

.wooai-chatbot-product-price {
    font-size: 12px;
    font-weight: 600;
    color: #27ae60;
    margin: 0;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
}

.wooai-chatbot-product-description {
    font-size: 10px;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
}

/* Dark theme adjustments for product cards */
.wooai-chatbot-dark-theme .wooai-chatbot-product-cards {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.wooai-chatbot-dark-theme .wooai-chatbot-product-image-container {
    background: rgba(255, 255, 255, 0.05);
}

.wooai-chatbot-dark-theme .wooai-chatbot-product-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Mobile responsive for product cards */
@media (max-width: 768px) {
    .wooai-chatbot-product-cards {
        padding: 12px;
    }
    
    .wooai-chatbot-product-card {
        padding: 12px;
        gap: 12px;
    }
    
    .wooai-chatbot-product-icon {
        width: 40px;
        height: 40px;
    }
    
    .wooai-chatbot-product-icon i {
        font-size: 20px;
    }
    
    .wooai-chatbot-product-title {
        font-size: 14px;
    }
    
    .wooai-chatbot-product-status {
        font-size: 12px;
    }
    
    .wooai-chatbot-recording-indicator {
        font-size: 11px;
        padding: 6px 12px;
        top: -35px;
    }
    
    .wooai-chatbot-voice-message {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .wooai-chatbot-voice-play-btn {
        width: 28px;
        height: 28px;
    }
    
    .wooai-chatbot-voice-waveform {
        height: 16px;
    }
    
    .wooai-chatbot-voice-duration {
        font-size: 11px;
    }
    
    .wooai-chatbot-typing-indicator {
        margin: 6px 0 16px 0;
        padding: 10px 14px;
        font-size: 10px;
        max-width: 60px;
    }
    
    .wooai-chatbot-typing-dots {
        gap: 2px;
    }
    
    .wooai-chatbot-typing-dots span {
        width: 5px;
        height: 5px;
    }
}

/* Print Styles */
@media print {
    .wooai-chatbot-widget {
        display: none !important;
    }
}

.wooai-chatbot-order-cards {
    border: 1px solid #eaeaea;
    padding: 8px 14px;
    border-radius: 16px;
}