/* ==========================================================================
   Chatbot (roocwidget) & MuiCardMedia-root
   Diambil dari CSS asli, urutan dipertahankan
   ========================================================================== */

/* Variabel yang dipakai oleh aturan roocwidget di bawah */
:root {
    --background-chat: #f5ae16;
    --text-chat: #FFFFFF;
    --hover-background-chat: #FFFFFF;
    --hover-text-chat: #f5ae16;
    --href-text-chat: #f5ae16;
}

.roocwidget .custom .cw-chat-window.login {
    background: var(--background-chat) !important;
}

.roocwidget .cw-chat-window > .menu-background {
    background-color: var(--background-chat) !important;
}

.roocwidget .custom .cw-launcher {
    right: 30px !important;
    bottom: 30px !important;
}

.roocwidget .custom .cw-launcher .cw-closed-icon {
    width: 90px !important;
    height: 90px !important;
}

.roocwidget .custom .MuiButton-textPrimary {
    color: var(--text-chat);
}

.roocwidget .chat-header--team-name {
    color: var(--text-chat);
}

.roocwidget .custom .MuiButton-root {
    text-transform: none;
}

.roocwidget .custom .MuiButtonBase-root {
    background: var(--background-chat) !important;
    border-color: var(--text-chat) !important;
}

.roocwidget .custom .chat-header {
    background: var(--background-chat) !important;
}

.roocwidget .custom .chat-header--team-name:hover {
    background: var(--background-chat) !important;
}

.roocwidget .custom .chat-header--close-button:hover {
    background: var(--background-chat) !important;
}

.roocwidget .custom .chat-bubble.from-me {
    background: var(--background-chat) !important;
    color: var(--text-chat) !important;
}

.roocwidget .custom .chat-bubble.from-them a {
    color: var(--href-text-chat) !important;
}

.roocwidget .custom .from-me.end::before {
    border-right-color: var(--background-chat) !important;
}

.roocwidget .custom #assetchatbot-12 {
    fill: var(--background-chat);
}

.roocwidget .custom .cw-chat-window.login {
    background: #042254 !important;
}

.roocwidget .custom .MuiButton-label {
    background: #042254 !important;
}

.roocwidget .custom .MuiButtonBase-root {
    background: #042254 !important;
}

.roocwidget .custom .menu-background {
    background: #042254 !important;
}

.roocwidget .custom .chat-header {
    background: #1427d9 !important;
    color: black !important;
}

.roocwidget .custom .chat-header--team-name:hover {
    background: #1427d9 !important;
}

.roocwidget .custom .chat-bubble.from-me {
    background: #1427d9 !important;
    color: black !important;
}

.roocwidget .custom .from-me.end::before {
    border-right-color: #1427d9 !important;
}

.roocwidget .custom #assetchatbot-12 {
    fill: #1427d9;
}

.roocwidget .custom .cw-launcher {
    background: #1427d9 center no-repeat !important;
}

body .roocwidget .cw-chat-window {
    z-index: 9999999999999;
}

.roocwidget .cw-launcher .cw-closed-icon,
.roocwidget .cw-launcher .cw-open-icon,
.roocwidget .cw-launcher {
    bottom: 10px !important;
    right: 40px !important;
}

body .roocwidget .custom .cw-launcher .cw-closed-icon {
    width: auto !important;
    height: auto !important;
}

body .roocwidget .custom .cw-launcher {
    background: transparent !important;
}

@media screen and (min-width: 1300px) {
    body .roocwidget .cw-chat-window {
        height: calc(80% - 120px) !important;
    }

    body .roocwidget .custom .menu-background {
        margin: 10% auto !important;
    }

    body .roocwidget .custom .menu-background .menu-layout--wrapper,
    body .roocwidget .custom .menu-background .menu-layout--wrapper .menu-layout {
        padding: 0 !important;
    }
}

@media screen and (max-width: 992px) {
    body .roocwidget .cw-launcher .cw-closed-icon,
    body .roocwidget .cw-launcher .cw-open-icon,
    body .roocwidget .cw-launcher {
        right: 0 !important;
    }
}

body .roocwidget .custom .cw-chat-window.login {
    background: #042254 !important;
}

body .roocwidget .menu-background .menu-layout--wrapper .menu-layout .menu-main .the-box {
    box-shadow: none !important;
}

body .roocwidget .custom .MuiButton-label,
body .roocwidget .custom .MuiButtonBase-root,
body .roocwidget .custom .chat-header,
body .roocwidget .custom .chat-bubble.from-me,
.roocwidget .custom .chat-header--team-name:hover {
    background: #042254 !important;
}

body .roocwidget .custom .from-me.end::before {
    border-right-color: #042254 !important;
}

body .roocwidget .MuiTypography-h6,
body .roocwidget .custom .chat-bubble.from-me p {
    color: white;
}

body .roocwidget .custom #assetchatbot-12 {
    fill: #042254;
}

body .roocwidget .custom .chat-carousel-wrapper > div > div:nth-child(3) .MuiButtonBase-root:nth-child(1) {
    padding: 0;
    left: -30px;
}

body .roocwidget .custom .chat-carousel-wrapper > div > div:nth-child(3) .MuiButtonBase-root:nth-child(2) {
    padding: 0;
    right: -30px;
}

body .MuiCardMedia-root {
    background-image: url("/wp-content/uploads/2024/10/Button-Chatbot-2024_smile.png") !important;
}
