/** OOm Floating Widgets Main Style **/
.oom-widget-popup {
    width: 300px;
    overflow: hidden;
    border-radius: 10px;
    position: fixed;
    max-height: min(calc(90vh - (2rem + 75px)),500px);
    right: 20px;
    bottom: 100px;
    will-change: transform;
    display: flex;
    flex-direction: column;
    box-shadow: #64646f33 0 7px 29px;
    transition: opacity .2s ease,transform,.2s ease;
    transform-origin: bottom right;
    z-index: 999;
}

.oom-widget-popup.is-hidden {
    opacity: 0;
    transform: scale(.4);
    visibility: hidden;
}

.oom-widget-chat-content {
    background-color: #e5ddd5;
    padding: 20px;
    order: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.oom-widget-chat-content .oom-widget-chat-pattern {
    background: url('/wp-content/plugins/oom-floating-widgets/frontend/assets/img/whatsapp-pattern.png');
    opacity: .06;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.oom-widget-chat-content-message {
    padding: 10px;
    background: white;
    font-size: 12px;
    position: relative;
    border-radius: 6px;
    display: inline-flex;
    flex-direction: column;
    margin-right: auto;
}

.oom-widget-chat-content-message .message-op {
    font-weight: 500;
    font-size: 14px;
    color: #808080;
}

.oom-widget-chat-content-message .message-content {
    margin-top: 8px;
    line-height: 1.3;
}

.oom-widget-chat-content-cta {
    margin-top: 12px;
    position: relative;
    font-size: 14px;
    border-radius: 6px;
    background: white;
    color: var(--waba-blue);
    padding: 12px;
    text-align: center;
}

.oom-widget-chat-header {
    order: 1;
    position: relative;
    padding: 4px 20px;
    display: flex;
    align-items: center;
    background: #0a5f54;
    color: #5c5c5c;
}

.oom-widget-chat-header-text {
    display: flex;
    flex-direction: column;
    margin-left: 6px;
}

.oom-widget-chat-header-title {
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
    overflow: hidden;
    max-width: 200px;
    color: #fff;
    display: flex;
    align-content: center;
    margin: 10px 0px;
}

.oom-widget-chat-header-title img {
    background: #ffffff;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 100%;
}

.oom-widget-chat-minimize-button {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transform: rotate(45deg);
}

.oom-widget-chat-minimize-button:hover,
.oom-widget-chat-minimize-button:focus {
    outline: none!important;
    border: none;
}

.oom-widget-chat-minimize-button svg {
    fill: #cfcfcf;
    color: #fff;
    width: 10px;
    cursor: pointer;
}

.oom-widget-chat-header button {
    background: none!important;
    background-color: transparent!important;
    border: none!important;
    right: 20px;
    margin: 0px;
    padding: 0px!important;
    position: absolute!important;
}


.oom-widget-popup-wrapper .oom-widget-chat-button {
    cursor: pointer;
    bottom: 20px;
    background-color: #27D366!important;
    padding: 16px;
    width: 60px;
    height: 60px;
    right: 20px;
    position: fixed;
    padding: 15px;
    border: none;
    text-align: center;
    border-radius: 30px;
    z-index: 99;
    font-weight: 300;
    line-height: 0px;
}

.oom-widget-popup-wrapper .oom-widget-chat-button:hover {
    color: #fff;
    background-color: #118C7E;
    bottom: 22px;
    transition: bottom 0.2s ease-in-out;
}

.oom-widget-chat-button svg {
    fill: #ffffff;
    width: 30px;
    height: 30px;
}