/* Import Outfit Google Font directly */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.shoponix-chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --primary-color-rgb: 124, 58, 237; /* Default fallback */
}

/* 1. Floating Toggle Button (Pill Design) */
.shoponix-toggle {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    border-radius: 24px !important;
    padding: 0 22px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    outline: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.shoponix-toggle:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.shoponix-toggle:active {
    transform: scale(0.96);
}

.shoponix-toggle svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shoponix-toggle:hover svg {
    transform: rotate(6deg) scale(1.05);
}

.shoponix-toggle-text {
    margin-left: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    letter-spacing: -0.1px !important;
}

/* Breathing Pulse Ring (Pill Adapter) */
.shoponix-toggle::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 24px !important;
    border: 2px solid var(--primary-color);
    opacity: 0;
    animation: shoponix-pulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
}

@keyframes shoponix-pulse {
    0% {
        transform: scale(0.96);
        opacity: 0.8;
    }
    50% {
        opacity: 0;
        transform: scale(1.15);
    }
    100% {
        opacity: 0;
        transform: scale(1.15);
    }
}

/* 1.1 Proactive Speech Bubble styling */
.shoponix-help-bubble {
    position: absolute !important;
    bottom: 62px !important;
    right: 0 !important;
    background: white !important;
    border: 1.5px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
    padding: 10px 32px 10px 16px !important;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.12) !important;
    z-index: 99998 !important;
    white-space: nowrap !important;
    font-family: 'Outfit', sans-serif !important;
    animation: shoponix-bubble-bounce 3.5s ease-in-out infinite, shoponix-bubble-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transform-origin: bottom right;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.shoponix-help-bubble-text {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    display: inline-block !important;
    letter-spacing: -0.1px !important;
}

.shoponix-help-bubble-close {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.shoponix-help-bubble-close:hover {
    color: #ef4444 !important;
    transform: translateY(-50%) scale(1.15) !important;
}

.shoponix-help-bubble-arrow {
    position: absolute !important;
    bottom: -7px !important;
    right: 32px !important;
    width: 12px !important;
    height: 12px !important;
    background: white !important;
    border-right: 1.5px solid rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.05) !important;
    transform: rotate(45deg) !important;
    z-index: -1 !important;
}

@keyframes shoponix-bubble-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shoponix-bubble-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Dark mode support for Proactive Speech Bubble */
.shoponix-help-bubble.shoponix-dark-mode-bubble {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}
.shoponix-help-bubble.shoponix-dark-mode-bubble .shoponix-help-bubble-text {
    color: #f8fafc !important;
}
.shoponix-help-bubble.shoponix-dark-mode-bubble .shoponix-help-bubble-arrow {
    background: #1e293b !important;
    border-right-color: rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
.shoponix-help-bubble.shoponix-dark-mode-bubble .shoponix-help-bubble-close {
    color: #64748b !important;
}
.shoponix-help-bubble.shoponix-dark-mode-bubble .shoponix-help-bubble-close:hover {
    color: #ef4444 !important;
}

/* 2. Glassmorphic Chat Window */
.shoponix-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 375px;
    height: 560px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: shoponix-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes shoponix-appear {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 3. Sleek Header */
.shoponix-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.shoponix-avatar-container {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shoponix-avatar-icon {
    width: 20px;
    height: 20px;
    stroke: white;
}

.shoponix-avatar-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--primary-color);
}

.shoponix-header-text h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.shoponix-header-text p {
    margin: 2px 0 0 0;
    font-size: 11px;
    opacity: 0.85;
    font-weight: 400;
}

.shoponix-header button {
    background: rgba(255, 255, 255, 0.12) !important;
    border: none !important;
    color: white !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    outline: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.shoponix-header button svg {
    width: 14px !important;
    height: 14px !important;
    stroke: white !important;
    fill: none !important;
}

.shoponix-header button:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

/* 4. Messages Container */
.shoponix-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(248, 250, 252, 0.45);
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

/* Scrollbar Customization */
.shoponix-messages::-webkit-scrollbar {
    width: 5px;
}
.shoponix-messages::-webkit-scrollbar-track {
    background: transparent;
}
.shoponix-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}
.shoponix-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.18);
}

/* Individual Messages */
.shoponix-message {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 13.5px;
    line-height: 1.5;
    animation: shoponix-msg-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

@keyframes shoponix-msg-slide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shoponix-message-user {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.shoponix-message-bot {
    background: white;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.shoponix-initial-message {
    border-bottom-left-radius: 16px;
}

/* 5. Input Area */
.shoponix-input-area {
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.88);
    align-items: center;
    gap: 10px;
    position: relative;
}

.shoponix-char-counter {
    display: none;
    position: absolute;
    top: -20px;
    right: 15px;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}

.shoponix-input-area input {
    flex: 1 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: rgba(248, 250, 252, 0.8) !important;
    border-radius: 24px !important;
    padding: 10px 16px !important;
    outline: none !important;
    font-size: 13px !important;
    font-family: inherit !important;
    transition: all 0.3s !important;
    height: auto !important;
    box-shadow: none !important;
    width: auto !important;
}

.shoponix-input-area input:focus {
    background: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12) !important;
}

.shoponix-input-area button#shoponix-send {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    border: none !important;
    color: white !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2) !important;
    box-sizing: border-box !important;
}

.shoponix-input-area button#shoponix-send svg {
    width: 16px !important;
    height: 16px !important;
    stroke: white !important;
    fill: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.shoponix-input-area button#shoponix-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.shoponix-input-area button#shoponix-send:active {
    transform: scale(0.95);
}

/* 5.1 Premium Voice Button Styling */
.shoponix-input-area button#shoponix-voice-btn {
    background: none !important;
    border: none !important;
    color: var(--primary-color) !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.shoponix-input-area button#shoponix-voice-btn:hover {
    background: rgba(124, 58, 237, 0.08) !important;
    transform: scale(1.05) !important;
}

.shoponix-input-area button#shoponix-voice-btn:active {
    transform: scale(0.95) !important;
}

.shoponix-input-area button#shoponix-voice-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    fill: none !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 6. Premium Product Card Design */
.shoponix-product-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 12px !important;
    border-radius: 12px !important;
    margin-top: 12px !important;
    background: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden;
}

.shoponix-product-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(124, 58, 237, 0.15) !important;
}

.shoponix-product-card img {
    border-radius: 8px !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    object-fit: cover !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.shoponix-product-card:hover img {
    transform: scale(1.06) !important;
}

.shoponix-product-card h4 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 0 4px 0 !important;
    font-size: 13.5px !important;
    line-height: 1.3 !important;
}

.shoponix-product-card p {
    font-weight: 500 !important;
    color: var(--primary-color) !important;
    margin: 0 0 10px 0 !important;
    font-size: 13.5px !important;
}

.shoponix-product-card .button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    color: white !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15) !important;
    transition: all 0.2s !important;
}

.shoponix-product-card .button:hover {
    opacity: 0.95 !important;
    transform: scale(1.03) !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25) !important;
}

/* 7. Typing Indicator skeleton */
.shoponix-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: white;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    width: fit-content;
}

.shoponix-typing-dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: shoponix-typing-bounce 1.4s infinite ease-in-out both;
}

.shoponix-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.shoponix-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes shoponix-typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* 8. Quick welcome prompts */
.shoponix-quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    animation: shoponix-msg-slide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shoponix-quick-prompt-btn {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: #4f46e5;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.shoponix-quick-prompt-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

.shoponix-quick-prompt-btn:active {
    transform: scale(0.97);
}

/* Responsive Viewports */
/* Responsive Viewports - True Mobile Fullscreen Mode */
@media (max-width: 480px) {
    .shoponix-window { 
        width: 100% !important; 
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        right: 0 !important; 
        bottom: 0 !important;
        left: 0 !important;
        top: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        position: fixed !important;
    }
    .shoponix-chatbot {
        bottom: 16px;
        right: 16px;
    }
}

/* Interactive Cart Styling */
.shoponix-cart-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 16px;
    margin-top: 10px;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.shoponix-cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.shoponix-cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.shoponix-cart-item img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.03);
}
.shoponix-cart-item-info {
    flex: 1;
}
.shoponix-cart-item-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.3;
}
.shoponix-cart-item-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.shoponix-cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.shoponix-cart-qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: white !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 !important;
    min-width: 22px !important;
}
.shoponix-cart-qty-btn:hover {
    border-color: var(--primary-color) !important;
    background: rgba(124, 58, 237, 0.05) !important;
    color: var(--primary-color) !important;
}
.shoponix-cart-qty-val {
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    min-width: 14px;
    text-align: center;
}

/* Totals Summary Row */
.shoponix-cart-totals {
    margin-top: 14px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
}
.shoponix-cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #475569;
    margin-bottom: 6px;
}
.shoponix-cart-total-row:last-child {
    margin-bottom: 0;
}
.shoponix-cart-total-row.grand-total {
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    padding-top: 6px;
    margin-top: 6px;
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

/* Applied Coupons list */
.shoponix-cart-coupons-applied {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.shoponix-cart-coupon-tag {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #065f46;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.shoponix-cart-coupon-remove {
    cursor: pointer;
    font-weight: 700;
    color: #ef4444;
}

/* Coupon Submission Area */
.shoponix-cart-coupon-area {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}
.shoponix-cart-coupon-input {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    outline: none !important;
    height: 32px !important;
    font-family: inherit !important;
    box-shadow: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.shoponix-cart-coupon-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    height: 32px !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15) !important;
}
.shoponix-cart-coupon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25) !important;
}
.shoponix-cart-coupon-btn:active {
    transform: scale(0.98);
}

/* Cart Checkout buttons wrapper */
.shoponix-cart-checkout-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.shoponix-cart-checkout-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
    transition: all 0.2s !important;
}
.shoponix-cart-checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3) !important;
}
.shoponix-cart-continue-btn {
    background: white !important;
    color: #475569 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}
.shoponix-cart-continue-btn:hover {
    background: #f8fafc !important;
}

/* Dynamic Checkout Wizard Styling */
.shoponix-checkout-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 16px;
    margin-top: 10px;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.shoponix-form-row {
    margin-bottom: 12px;
}
.shoponix-form-row label {
    display: block;
    font-weight: 600;
    color: #475569;
    font-size: 11px;
    margin-bottom: 4px;
}
.shoponix-form-input {
    width: 100% !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    outline: none !important;
    font-family: inherit !important;
    box-shadow: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    height: 36px !important;
    transition: all 0.2s !important;
}
.shoponix-form-input:focus {
    border-color: var(--primary-color) !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
}
.shoponix-form-row-group {
    display: flex;
    gap: 10px;
}
.shoponix-form-row-group .shoponix-form-row {
    flex: 1;
}

/* Custom dropdown styled selectors */
select.shoponix-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px !important;
    padding-right: 30px !important;
}

/* Progress bar dots */
.shoponix-checkout-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding-bottom: 12px;
}
.shoponix-progress-title {
    font-weight: 700;
    font-size: 12px;
    color: #475569;
}
.shoponix-progress-dots {
    display: flex;
    gap: 6px;
}
.shoponix-progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s;
}
.shoponix-progress-dot.active {
    background: var(--primary-color);
    width: 14px;
    border-radius: 4px;
}

/* Checkout Submit/Action triggers */
.shoponix-checkout-action-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
    transition: all 0.2s !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.shoponix-checkout-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3) !important;
}
.shoponix-checkout-action-btn:active {
    transform: scale(0.98);
}

/* 9. Premium Horizontal Product Recommendation Carousel */
.shoponix-carousel-container {
    width: 100%;
    overflow: hidden;
    margin: 12px 0;
    position: relative;
}

.shoponix-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    padding: 4px 4px 12px 4px;
    scroll-snap-type: x mandatory;
}

.shoponix-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.shoponix-carousel-track .shoponix-product-card {
    flex: 0 0 78% !important; /* Show 78% of the card to hint at scrollability on the side */
    scroll-snap-align: start;
    margin-top: 0 !important;
    padding: 12px !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
}

.shoponix-carousel-track .shoponix-product-card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
}

.shoponix-carousel-track .shoponix-product-card-body > img {
    width: 100% !important;
    height: 130px !important;
    max-height: 130px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.shoponix-carousel-track .shoponix-product-card-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
    padding: 0 !important;
}

.shoponix-carousel-track .shoponix-product-card-info > div:first-child {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.shoponix-carousel-track .shoponix-product-card-price {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

.shoponix-carousel-track .shoponix-product-card-info div[style*="display: flex"] {
    display: flex !important;
    gap: 6px !important;
    margin-top: 8px !important;
    width: 100% !important;
}

.shoponix-carousel-track .shoponix-product-card-info div[style*="display: flex"] a,
.shoponix-carousel-track .shoponix-product-card-info div[style*="display: flex"] button {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    height: 32px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
}

.shoponix-carousel-track .shoponix-product-card-info div[style*="display: flex"] a.shoponix-wishlist-btn {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
}

@media (min-width: 420px) {
    .shoponix-carousel-track .shoponix-product-card {
        flex: 0 0 72% !important;
    }
}

/* Premium UX additions */
.shoponix-message-time {
    font-size: 9px;
    color: #94a3b8;
    margin: -4px 8px 8px 8px;
    display: block;
    font-weight: 500;
}
.shoponix-message-user + .shoponix-message-time {
    text-align: right;
}
.shoponix-message-bot + .shoponix-message-time {
    text-align: left;
}

.shoponix-message-bot {
    position: relative;
}

.shoponix-copy-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    background: none !important;
    border: none !important;
    padding: 4px !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
}

.shoponix-message-bot:hover .shoponix-copy-btn {
    opacity: 1;
}

.shoponix-copy-btn:hover {
    color: var(--primary-color) !important;
}

.shoponix-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    pointer-events: none;
}

.shoponix-feedback-container {
    display: flex;
    gap: 8px;
    margin-top: -4px;
    margin-bottom: 8px;
    padding-left: 12px;
}

.shoponix-feedback-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 11px !important;
    padding: 2px !important;
    color: #94a3b8 !important;
    transition: color 0.2s, transform 0.1s !important;
    outline: none !important;
}

.shoponix-feedback-btn:hover {
    color: var(--primary-color) !important;
    transform: scale(1.15);
}

.shoponix-feedback-btn.active {
    color: #22c55e !important;
    pointer-events: none;
}

.shoponix-feedback-btn.active.shoponix-feedback-down {
    color: #ef4444 !important;
}

/* ==========================================================================
   PREMIUM UX ADDITIONS: Dark Mode, Draggable, Suggested Chips, Exit Intent
   ========================================================================== */

/* 1. Dark Mode Styles */
.shoponix-window.shoponix-dark-mode {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

.shoponix-window.shoponix-dark-mode .shoponix-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #31108c 100%) !important;
}

.shoponix-window.shoponix-dark-mode .shoponix-messages {
    background: #0f172a !important;
}

.shoponix-window.shoponix-dark-mode .shoponix-message-bot {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border-bottom-left-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.shoponix-window.shoponix-dark-mode .shoponix-message-user {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    color: white !important;
}

.shoponix-window.shoponix-dark-mode .shoponix-input-wrapper {
    background: #1e293b !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.shoponix-window.shoponix-dark-mode #shoponix-input {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.shoponix-window.shoponix-dark-mode #shoponix-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2) !important;
}

.shoponix-window.shoponix-dark-mode .shoponix-product-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #f1f5f9 !important;
}

.shoponix-window.shoponix-dark-mode .shoponix-product-card h4,
.shoponix-window.shoponix-dark-mode .shoponix-product-card-info > div:first-child {
    color: #f8fafc !important;
}

.shoponix-window.shoponix-dark-mode .shoponix-product-card-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

/* 2. Draggable Window Styling */
.shoponix-header {
    cursor: move !important;
}

/* 3. Suggested Replies Chips */
.shoponix-suggested-replies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 12px 16px;
    margin-top: -4px;
}

.shoponix-suggested-chip {
    background: rgba(124, 58, 237, 0.08) !important;
    border: 1px solid rgba(124, 58, 237, 0.15) !important;
    color: var(--primary-color) !important;
    padding: 6px 12px !important;
    border-radius: 16px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    font-family: inherit !important;
    outline: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shoponix-suggested-chip:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.2) !important;
}

.shoponix-window.shoponix-dark-mode .shoponix-suggested-chip {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

.shoponix-window.shoponix-dark-mode .shoponix-suggested-chip:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

/* 4. Exit Intent Modal Overlay */
.shoponix-exit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999998;
    display: none;
    align-items: center;
    justify-content: center;
}

.shoponix-exit-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    width: 340px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: shoponixScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes shoponixScaleIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.shoponix-exit-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.shoponix-exit-card p {
    margin: 0 0 20px 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.4;
}

.shoponix-exit-buttons {
    display: flex;
    gap: 10px;
}

.shoponix-exit-btn-chat {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.shoponix-exit-btn-close {
    flex: 1;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* Phase 1 Extracted Classes from chat-window.php */
.shoponix-header-action-btn {
    background: none !important;
    border: none !important;
    padding: 4px !important;
    cursor: pointer !important;
    color: white !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.shoponix-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shoponix-language-picker-container {
    margin-top: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    text-align: left;
}

.shoponix-language-picker-title {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shoponix-language-picker {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.shoponix-lang-btn {
    background: #f8fafc;
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.shoponix-lang-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15) !important;
}

.shoponix-bot-message-wrapper {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
    width: 100%;
}

.shoponix-bot-avatar-inner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15);
}

.shoponix-bot-avatar-icon {
    color: white !important;
    margin: 0 !important;
    display: block !important;
}

.shoponix-offer-ask-container {
    margin: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    text-align: left;
    width: 100%;
}

.shoponix-offer-ask-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.shoponix-offer-ask-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shoponix-offer-choice-btn {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.shoponix-offer-choice-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15) !important;
}

.shoponix-offer-choice-btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.shoponix-special-coupon-card {
    margin: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(79, 70, 229, 0.08) 100%) !important;
    border: 1px dashed rgba(124, 58, 237, 0.3) !important;
    width: 100%;
}

.shoponix-special-coupon-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shoponix-special-coupon-text {
    font-size: 13px;
    line-height: 1.4;
    color: #475569;
    margin-bottom: 10px;
}

.shoponix-apply-coupon-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15) !important;
    transition: all 0.2s !important;
}

.shoponix-input-action-btn {
    background: none !important;
    border: none !important;
    padding: 6px !important;
    cursor: pointer !important;
    color: var(--primary-color) !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
}

.shoponix-input-action-icon {
    transition: all 0.2s;
    stroke: var(--primary-color);
}

/* Tracking & UI Classes Extracted from JS */
.shoponix-track-order-card,
.shoponix-track-result-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    margin-top: 8px;
    font-family: inherit;
}

.shoponix-track-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.shoponix-track-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.shoponix-track-desc {
    margin: 0 0 14px 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.shoponix-track-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.shoponix-track-input {
    width: 100% !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
}

.shoponix-track-submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
    transition: all 0.2s !important;
}

.shoponix-track-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.shoponix-track-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.shoponix-track-result-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.shoponix-track-status-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.shoponix-track-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.shoponix-track-grid-label {
    font-size: 10px;
    color: #94a3b8;
    display: block;
    text-transform: uppercase;
    font-weight: 700;
}

.shoponix-track-grid-value {
    font-size: 12px;
    color: #334155;
    font-weight: 600;
}

.shoponix-track-grid-full {
    grid-column: span 2;
}

.shoponix-home-btn {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    flex: 1;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}

.shoponix-home-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
}

.shoponix-track-another-btn {
    background: white !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    flex: 1;
}

.shoponix-visual-search-preview {
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 14px;
    margin: 12px 0;
    animation: shoponix-msg-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shoponix-visual-search-img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.04);
}

.shoponix-badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
@keyframes shoponix-avatar-pulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}
.shoponix-avatar-pulse {
    animation: shoponix-avatar-pulse 2s infinite;
}
@keyframes shoponix-fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Skeleton Loader */
.shoponix-skeleton-line {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    animation: shoponix-skeleton-pulse 1.5s infinite ease-in-out;
}
.shoponix-skeleton-line:last-child {
    margin-bottom: 0;
    width: 60%;
}
.shoponix-skeleton-line:nth-child(2) {
    width: 80%;
}
@keyframes shoponix-skeleton-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 9. Modern Animations & UI */
.shoponix-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background-color: var(--primary-color, #7c3aed);
    vertical-align: text-bottom;
    animation: shoponix-blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes shoponix-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.shoponix-suggested-replies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    animation: shoponix-fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes shoponix-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shoponix-suggested-reply-btn {
    background: white !important;
    color: #475569 !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    font-family: inherit !important;
}

.shoponix-suggested-reply-btn:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: rgba(124, 58, 237, 0.05) !important;
    transform: translateY(-1px) !important;
}

/* Voice Wave Animation */
.shoponix-voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 16px;
    margin: 0 4px;
}
.shoponix-voice-wave-bar {
    width: 3px;
    background-color: currentColor;
    border-radius: 3px;
    animation: shoponix-wave 1s ease-in-out infinite;
}
.shoponix-voice-wave-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.shoponix-voice-wave-bar:nth-child(2) { height: 100%; animation-delay: 0.1s; }
.shoponix-voice-wave-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.shoponix-voice-wave-bar:nth-child(4) { height: 100%; animation-delay: 0.3s; }
.shoponix-voice-wave-bar:nth-child(5) { height: 40%; animation-delay: 0.4s; }

@keyframes shoponix-wave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* Trust Badges */
.shoponix-trust-badges {
    display: flex;
    justify-content: space-around;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 8px;
    margin-top: 12px;
    border: 1px solid rgba(0,0,0,0.04);
}

.shoponix-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

.shoponix-trust-badge svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
}

.shoponix-trust-badge.stars svg {
    fill: #fbbf24;
    stroke: #fbbf24;
}

/* Image Upload Preview */
.shoponix-image-preview-wrapper {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 16px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shoponix-fade-in-up 0.3s forwards;
    z-index: 10;
}

.shoponix-image-preview-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.shoponix-image-preview-close {
    background: #f1f5f9;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.shoponix-image-preview-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Coupon Card Styling */
.shoponix-coupon-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.15) 100%);
    border: 1px dashed #10b981;
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
    text-align: center;
}

.shoponix-coupon-code {
    display: inline-block;
    background: white;
    border: 1px solid #10b981;
    color: #065f46;
    font-weight: 700;
    font-family: monospace;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.shoponix-coupon-code:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}
