/* Chatbot Custom Styles */

/* Ensure widget button position */
#botmanWidgetRoot {
    z-index: 9999 !important;
}

/* Position the bubble to bottom left */
.botman-widget-chat-bubble-button {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
}

/* Override BotMan Widget styles for better integration */
.botman-container {
    height: 100% !important;
    width: 100% !important;
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 9999 !important;
}

.botman-widget-container {
    box-shadow: none !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.botman-widget {
    position: fixed !important;
    bottom: 90px !important;
    left: 20px !important;
    right: auto !important;
    width: 370px !important;
    height: 500px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure chat bubble appears on left side */
.botman-widget-chat-bubble-button {
    left: 20px !important;
    right: auto !important;
}

/* Style for the widget when open on the left side */
.botman-widget-opened {
    left: 0 !important;
    right: auto !important;
}

.botman-widget-header {
    background-color: #0c5adb !important;
    color: white !important;
}

.botman-widget-body {
    background-color: #f8f9fa !important;
}

.botman-widget-message-user {
    background-color: #0c5adb !important;
    color: white !important;
}

.botman-widget-message-bot {
    background-color: #e5e5ea !important;
    color: #333 !important;
}

/* Style for the widget buttons */
.botman-widget-action {
    border: 1px solid #0c5adb !important;
    background-color: white !important;
    color: #0c5adb !important;
    margin-bottom: 8px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    white-space: normal !important; /* Allow text wrapping */
    text-align: left !important;
    padding: 10px 15px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    display: block !important;
}

.botman-widget-action:hover {
    background-color: #0c5adb !important;
    color: white !important;
}

/* Special styling for the "Lainnya" button */
.botman-widget-action:last-child {
    background-color: #f0f0f0 !important;
    border-color: #d0d0d0 !important;
    color: #333 !important;
    text-align: center !important;
    font-weight: bold !important;
}

.botman-widget-action:last-child:hover {
    background-color: #d0d0d0 !important;
    color: #333 !important;
}

.botman-widget-input {
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    padding: 10px 15px !important;
}

.botman-widget-send {
    background-color: #0c5adb !important;
}

.desktop-closed-message-avatar {
    background-color: whitesmoke !important;
    border: 2px solid #43ffff !important;
    padding: 2px;
}