/* Floating chat widget */

.chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    font-family: "Poppins", Arial, sans-serif;
}

.chat-toggle-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: #ff6b00;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-toggle-btn i {
    font-size: 16px;
}

.chat-window {
    position: absolute;
    right: 0;
    bottom: 60px;
    width: 340px;
    max-width: 90vw;
    height: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    display: none;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-header {
    background: #151948;
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-title {
    font-size: 14px;
    font-weight: 600;
}

.chat-header-subtitle {
    font-size: 11px;
    opacity: 0.8;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

.chat-body {
    padding: 10px 12px;
    height: 260px;
    overflow-y: auto;
    background: #f7f8fc;
}

.chat-message {
    margin-bottom: 8px;
    display: flex;
}

.chat-message.chat-bot .chat-bubble {
    background: #ffffff;
    color: #151948;
    border-radius: 14px 14px 14px 4px;
    margin-right: auto;
}

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

.chat-message.chat-user .chat-bubble {
    background: #ff6b00;
    color: #ffffff;
    border-radius: 14px 14px 4px 14px;
    margin-left: auto;
}

.chat-bubble {
    padding: 8px 10px;
    font-size: 12px;
    max-width: 80%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.chat-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 10px;
    background: #ffffff;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-input-row input[type="text"] {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #d0d4e4;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
}

.chat-input-row button {
    border-radius: 999px;
    border: none;
    padding: 6px 12px;
    background: #151948;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.chat-input-row button:disabled {
    opacity: 0.6;
    cursor: default;
}
