#rest-chatbot-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#rest-chatbot-toggle {
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

#rest-chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#rest-chatbot-toggle .chat-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#rest-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 60vh;
    max-height: 600px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}

#rest-chatbot-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.chatbot-header {
    background: #000000;
    color: #CA8D2B;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-bottom: 2px solid #CA8D2B;
}

#rest-chatbot-close {
    background: none;
    border: none;
    color: #CA8D2B;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#rest-chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fdfaf6;
    /* Un tono cálido muy suave para fondo */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out forwards;
}

.chat-bubble.bot {
    background: #ffffff;
    color: #111111;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    border: 1px solid #eeeeee;
}

.chat-bubble.user {
    background: #000000;
    color: #CA8D2B;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.chat-option-btn {
    background: #ffffff;
    border: 1px solid #CA8D2B;
    color: #000000;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

.chat-option-btn:hover {
    background: #CA8D2B;
    color: #000000;
}

.chatbot-input-area {
    display: flex;
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
}

.chatbot-input-area.hidden {
    display: none;
}

#chatbot-input {
    flex: 1;
    border: 1px solid #dddddd;
    padding: 10px;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#chatbot-input:focus {
    border-color: #CA8D2B;
}

#chatbot-send {
    background: #000000;
    color: #CA8D2B;
    border: none;
    padding: 0 15px;
    margin-left: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

#chatbot-send:hover {
    background: #CA8D2B;
    color: #000000;
}

/* Image Gallery Carousel */
.chat-gallery {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.chat-gallery-item {
    min-width: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.chat-gallery-item .item-title {
    padding: 8px;
    font-size: 12px;
    text-align: center;
    background: white;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar styles */
.chatbot-messages::-webkit-scrollbar,
.chat-gallery::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.chatbot-messages::-webkit-scrollbar-track,
.chat-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb,
.chat-gallery::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}
/* Responsive / M�vil */
@media screen and (max-width: 600px) {
    #rest-chatbot-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        position: fixed;
        z-index: 100000;
    }
    #rest-chatbot-toggle {
        bottom: 15px;
        right: 15px;
    }
    .chat-bubble {
        max-width: 90%;
    }
}

/* Responsive / Movil */
@media screen and (max-width: 600px) {
    #rest-chatbot-window {
        width: 100%;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
        position: fixed;
    }
    #rest-chatbot-toggle {
        bottom: 15px;
        right: 15px;
    }
}
