.typing {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 20px;
}
.typing .dot {
    width: 6px;
    height: 6px;
    background-color: #555;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}
.typing .dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
    align-items: center;
}
.typing .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% { opacity: 0.2; transform: scale(1); }
    20% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(1); }
}
#chat-output .product-carousel {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    gap: 12px;
    scroll-snap-type: x mandatory;
}
#chat-output .product-card {
    min-width: 180px;
    max-width: 200px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    justify-content: end;
}
#chat-output .product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
#chat-output .product-name {
    font-weight: bold;
    margin: 8px 0 4px;
}
#chat-output .product-price {
    color: #e63946;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 18px;
}
#chat-output .product-button {
    display: inline-block;
    padding: 6px 10px;
    background: #1d3557;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

 #chatbot-toggle {
            position: fixed;
            bottom: 20px;
            right: 34px;
            background-color: #d6f8ff;
            color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 34px;
            cursor: pointer;
            z-index: 9999;
            line-height: 1;
            display: flex;
            padding: 35px!important;
            justify-content: center;
            align-items: center;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        }
                .chat-message {
            display: flex;
            margin: 8px 0;
        }

        .chat-message.user {
            justify-content: flex-end;
        }
        .d-none { display:none; }
        .chat-message.ai {
            display: block;
        }
        .powered-by {
            text-align: center;
        }
             .chat-message  #product-info {
                 text-decoration: none;
    color: #000;
    font-size: 14px;
            }
        .chat-message .bubble {
            max-width: 80%;
            padding: 10px 14px;
            border-radius: 12px;
            line-height: 1.4em;
            white-space: pre-wrap;
            min-height: 40px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }
 .product-carousel   .product-attributes       {
    font-size: 0.9em;
    color: #666;
    white-space: normal !important;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}
        .chat-message.ai .bubble:has(.product-carousel) {
            max-width: 100%;
            display: flex;
            flex-direction: column;
            margin: 10px 0px;
        }
        .quick-reply, .quick-reply:focus, .quick-reply:hover {
            margin: 5px;
            padding: 5px 10px;
            border: 1px solid #eaeaea;
            border-radius: 6px;
            background: #fff;
            color: #607D8B;
            font-weight: 500;
        }
        .chat-message.user .bubble {
            background-color: #0073aa;
            color: white;
            border-bottom-right-radius: 0;
        }
        #voice-btn {
            border: 0; 
            background: transparent
        }
        #chat-input {
            padding: 6px 0 6px 14px;
            border: none;
            background-color: #f4f7f9;
            border-radius: 24px;
            border: none;
        }
        .powered-by {
            font-size: 12px;
            margin: 5px;
        }
        #send-btn {
            border: none;
            background: transparent;
        }
        .chat-message.ai .bubble {
            background-color: #fff;
            color: #000;
            border-bottom-left-radius: 0;
        }

        .chat-message.loading .bubble {
            font-style: italic;
            opacity: 0.7;
        }
        .pplane {
            flex-shrink: 0;
            fill: var(--custom-action-color, #0566FF);
        }
        #chat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: #2196F3;
            padding: 10px 14px;
            border-bottom: 1px solid #ddd;
            color: #fff;
            font-weight: 400;
            font-size: 16px;
        }
        #chat-controls, #chat-output {
            padding: 10px;
        }

                    #chatbot-box {
                        display: none;
                        position: fixed;
                        bottom: 85px;
                        right: 20px;
                        width: 600px;
                        background: white;
                        border: 1px solid #ccc;
                        overflow-x: hidden;
                        z-index: 9999;
                        border-radius: 20px;
                        box-shadow: 0 0 10px rgba(0,0,0,0.2);
                    }
                    @media (max-width: 600px) {
                        #chatbot-box {
                        width: 100vw;
                        right: 0;
                        left: 0;
                        z-index:999999;
                        border-radius: 0;
                        height: 90vh; 
                        bottom: 0;     
                        }
                    }

@keyframes chatbot-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.chatbot-pulse {
  animation: chatbot-pulse 0.4s ease-in-out;
}

@keyframes chatbot-vibrate {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
}
.chatbot-vibrate {
  animation: chatbot-vibrate 0.4s linear;
}

@keyframes chatbot-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  60% { transform: translateY(4px); }
}
.chatbot-bounce {
  animation: chatbot-bounce 0.6s ease;
}

@keyframes chatbot-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 174, 255, 0); }
  50% { box-shadow: 0 0 12px rgba(0, 174, 255, 0.7); }
}
.chatbot-glow {
  animation: chatbot-glow 1.5s ease-in-out;
}
