/* =========================================================
   WEDSPARK AI CHATBOT
   Brand Colors:
   Primary: #550923
   Hover/Golden: #D4AF37
   ========================================================= */

.wedspark-ai-widget {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 99999;
    font-family: "Poppins", sans-serif;
}

/* =========================================================
   FLOATING CHAT BUTTON
   ========================================================= */

.wedspark-ai-button {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;

    background: #550923;
    color: #ffffff;

    font-size: 25px;
    cursor: pointer;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.20);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s ease;
}

.wedspark-ai-button:hover {
    background: #D4AF37;
    color: #550923;
    transform: translateY(-3px);
}

.wedspark-ai-button i {
    line-height: 1;
}


/* =========================================================
   CHAT WINDOW
   ========================================================= */

.wedspark-ai-window {
    position: absolute;
    right: 0;
    bottom: 78px;

    width: 360px;
    max-width: calc(100vw - 30px);

    height: 520px;
    max-height: calc(100vh - 120px);

    background: #ffffff;

    border-radius: 18px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.20);

    overflow: hidden;

    display: none;
    flex-direction: column;
}

.wedspark-ai-window.active {
    display: flex;
}


/* =========================================================
   HEADER
   ========================================================= */

.wedspark-ai-header {
    background: #550923;
    color: #ffffff;

    padding: 16px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wedspark-ai-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wedspark-ai-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #D4AF37;
    color: #550923;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
}

.wedspark-ai-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.wedspark-ai-status {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
}

.wedspark-ai-close {
    background: transparent;
    border: none;

    color: #ffffff;

    font-size: 20px;

    cursor: pointer;

    padding: 5px;

    transition: all 0.2s ease;
}

.wedspark-ai-close:hover {
    color: #D4AF37;
}


/* =========================================================
   MESSAGE AREA
   ========================================================= */

.wedspark-ai-messages {
    flex: 1;

    overflow-y: auto;

    padding: 18px;

    background: #faf8f9;
}

.wedspark-ai-message {
    display: flex;
    margin-bottom: 13px;
}

.wedspark-ai-message.bot {
    justify-content: flex-start;
}

.wedspark-ai-message.user {
    justify-content: flex-end;
}

.wedspark-ai-bubble {
    max-width: 82%;

    padding: 11px 14px;

    border-radius: 14px;

    font-size: 13px;
    line-height: 1.55;

    word-wrap: break-word;
}


/* =========================================================
   BOT MESSAGE
   ========================================================= */

.wedspark-ai-message.bot .wedspark-ai-bubble {
    background: #ffffff;

    color: #333333;

    border: 1px solid #eeeeee;

    border-left: 3px solid #D4AF37;

    border-bottom-left-radius: 4px;
}


/* =========================================================
   USER MESSAGE
   ========================================================= */

.wedspark-ai-message.user .wedspark-ai-bubble {
    background: #550923;

    color: #ffffff;

    border-bottom-right-radius: 4px;
}


/* =========================================================
   TYPING INDICATOR
   ========================================================= */

.wedspark-ai-typing {
    display: none;
    margin-bottom: 13px;
}

.wedspark-ai-typing.active {
    display: flex;
}

.wedspark-ai-typing .wedspark-ai-bubble {
    background: #ffffff;
    border: 1px solid #eeeeee;
}

.wedspark-ai-dots span {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin: 0 2px;

    background: #D4AF37;

    border-radius: 50%;

    animation: wedsparkAiTyping 1.2s infinite;
}

.wedspark-ai-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.wedspark-ai-dots span:nth-child(3) {
    animation-delay: 0.30s;
}

@keyframes wedsparkAiTyping {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }
}


/* =========================================================
   INPUT AREA
   ========================================================= */

.wedspark-ai-input-area {
    padding: 12px;

    background: #ffffff;

    border-top: 1px solid #eeeeee;

    display: flex;

    gap: 8px;
}

.wedspark-ai-input {
    flex: 1;

    border: 1px solid #dddddd;

    border-radius: 24px;

    padding: 10px 14px;

    font-size: 13px;

    outline: none;

    transition: border-color 0.2s ease;
}

.wedspark-ai-input:focus {
    border-color: #D4AF37;
}

.wedspark-ai-send {
    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: #550923;
    color: #ffffff;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s ease;
}

.wedspark-ai-send:hover {
    background: #D4AF37;
    color: #550923;
}

.wedspark-ai-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.wedspark-ai-messages::-webkit-scrollbar {
    width: 5px;
}

.wedspark-ai-messages::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.wedspark-ai-messages::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 10px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .wedspark-ai-widget {
        right: 15px;
        bottom: 15px;
    }

    .wedspark-ai-window {
        right: -5px;
        bottom: 72px;

        width: calc(100vw - 30px);

        height: 500px;
        max-height: calc(100vh - 100px);

        border-radius: 16px;
    }

    .wedspark-ai-button {
        width: 58px;
        height: 58px;
    }
}
/* =========================================================
   WEDSPARK AI VENDOR RESULTS
   ========================================================= */

.chatbot-vendor-results {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-vendor-card {
    background: #fff;
    border: 1px solid #eadde2;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(85, 9, 35, 0.08);
}

.chatbot-vendor-name {
    color: #550923;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.chatbot-vendor-category {
    color: #666;
    font-size: 12px;
    margin-bottom: 2px;
}

.chatbot-vendor-city {
    color: #777;
    font-size: 12px;
    margin-bottom: 5px;
}

.chatbot-vendor-price {
    color: #550923;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
}

.chatbot-vendor-button {
    display: inline-block;
    background: #550923;
    color: #fff !important;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.chatbot-vendor-button:hover {
    background: #d4af37;
    color: #fff !important;
}
