/* The WhatsApp button (.whatsApp-icons) sits bottom-right on desktop (right:40/bottom:40)
   and moves to bottom-left on mobile (<=768px). This widget is pinned to the opposite
   corner at each of those same breakpoints so the two never overlap. */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    z-index: 1050;
    font-family: "Open Sans", sans-serif;
}

@media (max-width: 768px) {
    .chatbot-widget {
        left: auto;
        right: 16px;
        bottom: 16px;
    }
}

.chatbot-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 30% 30%, #2a4a3d, #152d25 70%);
    color: #e9c77b;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(188, 155, 97, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease;
    animation: chatbotBling 2.6s ease-in-out infinite;
    overflow: visible;
}

.chatbot-toggle:hover {
    transform: scale(1.08);
}

.chatbot-flower-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9c77b;
    display: block;
}

.chatbot-toggle .chatbot-sparkle {
    position: absolute;
    top: -4px;
    right: -2px;
    font-size: 14px;
    color: #ffe9b0;
    text-shadow: 0 0 6px rgba(255, 233, 176, 0.9);
    animation: chatbotTwinkle 1.8s ease-in-out infinite;
    pointer-events: none;
}

.chatbot-toggle .chatbot-sparkle.sparkle-2 {
    top: auto;
    bottom: 2px;
    right: auto;
    left: -4px;
    font-size: 10px;
    animation-delay: 0.6s;
}

@keyframes chatbotBling {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(188, 155, 97, 0.55);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(188, 155, 97, 0);
    }
}

@keyframes chatbotTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.chatbot-panel {
    position: absolute;
    bottom: 68px;
    left: 0;
    right: auto;
    width: min(340px, calc(100vw - 32px));
    height: min(480px, calc(100vh - 120px));
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 768px) {
    .chatbot-panel {
        left: auto;
        right: 0;
    }
}

.chatbot-header {
    background: #152d25;
    color: #ffffff;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f9f7f2;
}

.chatbot-message {
    max-width: 88%;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chatbot-message-bot {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #e3dede;
    color: #152d25;
}

.chatbot-message-user {
    align-self: flex-end;
    background: #bc9b61;
    color: #ffffff;
}

html[dir="rtl"] .chatbot-message-bot {
    align-self: flex-end;
}

html[dir="rtl"] .chatbot-message-user {
    align-self: flex-start;
}

.chatbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 10px 6px;
}

.chatbot-quick-reply {
    border: 1px solid #bc9b61;
    background: #ffffff;
    color: #152d25;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.chatbot-quick-reply:hover {
    background: #bc9b61;
    color: #ffffff;
}

.chatbot-input-row {
    display: flex;
    border-top: 1px solid #e3dede;
    padding: 6px;
    gap: 6px;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #e3dede;
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 13px;
    outline: none;
}

.chatbot-input:focus {
    border-color: #bc9b61;
}

.chatbot-send {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #152d25;
    color: #bc9b61;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

