.embeddedMessagingConversationButtonWrapper .embeddedMessagingConversationButton:has(.embeddedMessagingIconMinimize) div.embeddedMessagingIconContainer::after {
    display: none;
}

.embeddedMessagingConversationButtonWrapper .embeddedMessagingConversationButton div.embeddedMessagingIconContainer>svg.embeddedMessagingIconChat {
    display: none;
}

.embeddedMessagingConversationButtonWrapper .embeddedMessagingLoadingSpinner {
    display: none;
}

.embeddedMessagingConversationButtonWrapper .embeddedMessagingConversationButton.eswExperienceSite {
    box-shadow: 0 0 12px 0 rgb(0 0 0 / 50%);
    width: 188px;
    height: 48px;
    background-color: #d74012;
    border-radius: 17.5px;
    position: fixed;
    right: 94px;
    bottom: 61px;
    font-weight: bold;
    font-size: 16px;
}

.embeddedMessagingConversationButton {
  --eswButtonHoverColor: #B1340D !important;
}

.embeddedMessagingIconContainer {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.embeddedMessagingIconContainer::before {
    content: 'Chat Now';
    font-size: 14px;
    font-family: 'Avenir Medium';
    color: white;
    font-weight: 500;
}

.embeddedMessagingConversationButtonWrapper .embeddedMessagingConversationButton div.embeddedMessagingIconContainer::after {
    display: flex;
    content: "";
    color: white;
    background-image: url("/resource/NF_bot/img/botAvatar.png");
    height: 32px;
    width: 32px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    vertical-align: middle;
}

.embedded-messaging>.embeddedMessagingFrame[class~="isMinimized"] {
    border-radius: 4px !important;
    height: 32px;
    width: 32px;
    right: 94px !important;
    bottom: 61px !important;
}

.embedded-messaging>.embeddedMessagingFrame[class~="hasMinimizedNotification"]:not(.isMaximized) {
    height: 32px;
    width: 32px;
}

/* SPINNER CSS */
.lds-roller {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -40px;
    margin-top: -40px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(126, 126, 126);
    margin: -4px 0 0 -4px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 63px;
    left: 63px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 68px;
    left: 56px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 71px;
    left: 48px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 71px;
    left: 32px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 68px;
    left: 24px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 63px;
    left: 17px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.embeddedMessagingFrame {
    border-radius: 10px 10px 0 10px !important;
}

/* Desktop/laptop framing only (fine pointer + hover) */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .embedded-messaging>.embeddedMessagingFrame[class~="isMaximized"] {
        bottom: 20px !important;
        right: 20px !important;
    }

    .embeddedMessagingFrame {
        border-radius: 10px 10px 0 10px !important;
    }
}

.embedded-messaging > .embeddedMessagingFrame[class~="isMinimized"]{
    background-color: #d74012 !important;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.5) !important;
    width: 200px !important;
    border-radius: 17px !important;
    height: 46px !important;
}

/* Mobile/touch full-screen maximized chat (no gray gutters / no rounded frame) */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        /*overflow: hidden !important;*/
    }

    .embedded-messaging > .embeddedMessagingFrame[class~="isMaximized"],
    #embeddedMessagingFrame.embeddedMessagingFrame.isMaximized {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #embeddedMessagingModalOverlay.isMaximized,
    .embedded-messaging > #embeddedMessagingModalOverlay.isMaximized {
        position: fixed !important;
        inset: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}
