@import url("https://site-assets.fontawesome.com/releases/v6.0.0/css/all.css");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --black: #000;
    --white: #fff;
}

/* RESET CSS */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    padding: 0;
    margin: 0;
    text-decoration: none !important;
    list-style-type: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 16px;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg,
iframe {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

figure {
    margin: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    margin: 0;
}

#root,
#__next {
    isolation: isolate;
}

/* !@RESET CSS */

/* Firefox */

* {
    scrollbar-width: thin;
    scrollbar-color: #d8d8da transparent;
}

/* Chrome, Edge and Safari */

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: transparent;
}

*::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #d8d8da;
}


/* GLOBAL CSS CLASSES  */
.d-block {
    display: block;
}

.mt-1,
.mb-1 {
    margin-bottom: 0.25rem;
}

.ml-0 {
    margin-inline-start: 0 !important;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.text-center {
    text-align: center;
}

.text-black {
    color: var(--black);
}

[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled),
button:not(:disabled) {
    cursor: pointer;
}

.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn:focus {
    box-shadow: none;
}

.btn-light {
    background-color: var(--white);
}

.btn:hover {
    background-color: var(--light);
}

.border-0 {
    border: none !important;
}

.chat-modules-box,
.customization-chat-box {
    display: flex;
    flex-wrap: wrap;
}

.chat-module-list,
.chat-module-details {
    flex: 0 0 25%;
    max-width: 25%;
}

.chat-module-converstion {
    flex: 0 0 50%;
    max-width: 50%;
}

.customize-chat-widget-wrap {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.customize-chat-perview-wrap {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.chat-module-list,
.chat-module-converstion,
.chat-module-details,
.customize-chat-widget-wrap,
.customize-chat-perview-wrap {
    height: calc(100dvh);
    overflow: hidden;
}

/* !@GLOBAL CSS CLASSES  */



/* Header Alert */

.alert-header {
    background-color: #4384f5;
    padding: 0.75rem 1rem;
    margin: 0;
    border-radius: 0;
}

.alert-header .text-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    font-weight: 500;
    font-size: 1.125rem;
    user-select: none;
}

.text-flow .day-count {
    display: flex;
    gap: 5px;
}

.text-flow .day-count .count-item {
    display: block;
    padding: 5px 7px;
    background-color: #f1f6f8;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--black);
    font-weight: 500;
}

.text-flow .btn {
    font-weight: 500;
    padding: 0.35em 1.75em;
}

.text-flow .btn:hover {
    background-color: var(--white);
}

/* CHAT MODULE  */
.chat-module-header,
.customize-chat-header {
    padding: 1.375rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e6;
    max-height: 55px;
}

.chat-module-header .chat-module-header-title,
.customize-chat-header .customize-chat-header-title {
    font-size: 1.375rem;
    font-weight: 500;
    text-transform: capitalize;
}

.chat-module-list-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
}

.chat-module-list-filter .btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 500;
}

.chat-module--list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 105px);
    overflow: auto;
}

.chat-list--item {
    display: flex;
    align-items: center;
    padding: 1.125rem 2.75rem 1.125rem 1.125rem;
    border-radius: 12px;
    gap: 0.75rem;
    transition: 0.5s ease;
    user-select: none;
    cursor: pointer;
}

.chat-list--item+.chat-list--item {
    margin-top: 0.25rem;
}

.chat-list--item.active {
    background-color: #eeeeef;
}

.chat-list--item:not(.active):hover {
    background-color: #eeeeef8a;
}

.chat-list--item figure,
.chat-list--item figure img {
    width: 2.25rem;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eeeeef8a;
    display: grid;
    flex: 1;
    place-items: center;
    text-transform: uppercase;
    font-weight: 600;
}

.chat-list--item div {
    max-width: calc(100% - 3rem);
}

.chat-list--item div h5 {
    font-size: 1.125rem;
    font-weight: 500;
}

.chat-list--item div p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}


.chat-module-converstion,
.customize-chat-perview-wrap {
    border: 1px solid #e5e5e6;
    border-width: 0 1px;
}

.chat-module-conversational {
    padding: 10px;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 240px);
    overflow: auto;
}

.chat-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 50%;
    max-width: 500px;
}

.chat-item figure {
    width: 2rem;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    background-color: red;
    display: grid;
    place-items: center;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--white);
    transform: translateY(1.75rem);
}

.chat-item div {
    max-width: calc(100% - 2.5rem);
}

.chat-item div .user {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
    color: #71737b;
}

.chat-item div p {
    padding: 10px 20px;
    border-radius: 20px;
}

.chat-item.received {
    margin-right: auto;
}

.chat-item.received div p {
    background-color: #f5f5f5;
    border: 1px solid #e6e6e7;
}

.chat-item.sent {
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-item.sent div .user {
    text-align: end;
}

.chat-item.sent figure {
    background-color: #f3f7f9;
    color: #899198;
}

.chat-item.sent div p {
    background-color: #0059e1;
    color: var(--white);
}

.chat-separator-duration,
.chat-separator-status {
    text-align: center;
    margin: 20px 10px 5px;
    color: #525252;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.chat-separator-status {
    margin: 0;
}

.chat-separator-duration>div {
    display: inline;
    border: solid var(--white);
    border-width: 0 20px;
    background-color: var(--white);
}

.chat-separator-duration::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 1px;
    background-color: #e5e5e6;
    z-index: -1;
}

.btn-tag {
    display: inline-flex;
    width: fit-content;
    font-weight: 500;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    margin: 5px;
}


.chat-module-message {
    padding: 10px 20px;
}

.chat-module-message-box {
    border: 1px solid #c9c9cd;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
}

.chat-module-message-box textarea {
    width: 100%;
    height: 55px;
    border: 0;
    resize: none;
    outline: none;
    font-size: 15px;
}

.chat-module-message-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-module-message-more {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-module-message-more span {
    font-weight: 500;
    font-size: 15px;
}

.chat-module-message-more ul {
    list-style: none;
    padding: 0;
    padding-left: 10px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    border-left: 1px solid #e5e5e6;
    margin-left: 5px;
}

.chat-module-message-more .secure-chat {
    margin: 0;
}

.chat-module-message-more .secure-chat span {
    display: block;
    width: 50px;
    height: 22px;
    background-color: #ebebec;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.chat-module-message-more .secure-chat span i {
    font-size: 10px;
    position: absolute;
    top: 3px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--white);
    display: grid;
    place-items: center;
    transition: 0.5s ease;
}

.chat-module-message-more .secure-chat input:checked+span {
    background-color: #8cdc7f;
}

.chat-module-message-more .secure-chat input:checked+span i {
    left: 30px;
    color: var(--success);
}

.chat-module-message-more ul li .btn {
    color: #62626d;
    padding: 1px 8px;
}

.chat-module-message .btn-primary {
    background-color: #0059e1;
    border-radius: 10px;
    font-weight: 500;
    padding: 6px 1.25rem;
    color: var(--white);
}


.chat-module-message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #71737b;
    user-select: none;
    flex-wrap: wrap;
}

.chat-module-message-footer p span {
    background-color: #d8d8da;
    padding: 3px 8px;
    border-radius: 5px;
    line-height: 1;
}

.chat-module-details-card {
    border: 1px solid #e5e5e6;
    border-radius: 10px;
    margin: 10px 10px 20px;
    overflow: hidden;
}

.chat-module-details-card .card-content {
    padding: 1.125rem 1.5rem;
}

.chat-module-details-card .card-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1.125rem;
    font-weight: 500;
}

.chat-module-details-card iframe {
    display: block;
    width: 100%;
    height: 180px;
}

.user-detail-profile {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}


.user-detail-profile figure {
    width: 2rem;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    background-color: red;
    display: grid;
    place-items: center;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--white);
}


.user-detail-profile h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

.user-detail-profile p {
    font-size: 14px;
    color: #62626d;
}

.chat-module-details-card .card-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.chat-module-details-card .card-content ul li i {
    width: 30px;
    text-align: center;
}

.chat-module-details-card .card-content ul li+li {
    margin-top: 5px;
}

.chat-module-details-card .card-content p {
    color: #67646d;
}

.chat-module-details-card .card-content i,
.chat-module-details-card .card-content p span {
    color: var(--black);
}

/* !@CHAT MODULE  */

/* page */
.customize-chat-widget {
    padding: 3rem 1.5rem 7rem;
    max-height: calc(100dvh);
    overflow: auto;
}

.customize-chat-title {
    margin-block-end: 2rem;
}

.customize-chat-title h3,
.accordion-title h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-block-end: 0.5rem;
}

.customize-chat-title h3::first-letter,
.accordion-title h4::first-letter {
    text-transform: uppercase;
}

.customization-chat-box p,
.accordion-widget-form label {
    font-size: 1rem;
    color: #757575;
}

.customize-chat-accordion {
    width: 100%;
    max-width: 1050px;
}

.accordion-item {
    background-color: #fff;
    color: var(--black);
    border: 2px solid #EEEEEF;
    border-radius: 0.25rem;
    transition: border 0.2s ease-out;
    margin-block-start: 1.125rem;
}

.accordion-item.addBorder {
    border-color: #0052BD;
}

.accordion-item-header {
    padding-inline-start: 1.5rem;
    min-height: 4.25rem;
    line-height: 1.25rem;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-title img {
    width: 20px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.accordion-title h4 {
    margin-block-end: 0;
}

.accordion-title span {
    background-color: #D9EEFE;
    padding: 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
    color: #0052BD;
}

.accordion-item-header::after {
    content: "\f105";
    font-size: 1.75rem;
    font-family: "Font Awesome 6 Pro";
    position: absolute;
    right: 1.75rem;
    transition: all 300ms ease-in-out;
}

.accordion-item-header.active::after {
    rotate: 90deg;
}

.accordion-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.accordion-widget-content {
    padding: 3rem;
}

.accordion-widget-flex {
    gap: 2.5rem;
}

.accordion-widget-form {
    margin-block-start: 2rem;
    position: relative;
}

.accordion-widget-form input {
    width: 600px;
    border: 1px solid #BDC8D0;
    border-radius: 0.25rem 0 0 0.25rem;
    padding: 0.5rem 1rem;
    border-right: none;
    outline: none;
}

.accordion-widget-form button {
    padding: 0.5rem 1rem;
    border: 1px solid #3B8AF0;
    border-radius: 0 0.25rem 0.25rem 0;
    background-color: #3B8AF0;
    color: var(--white);
    outline: none;
}

.customize-chat-perview-wrap {
    background-color: #F6F6F7;
}

.accordion-appearance-content {
    padding: 2rem 3rem;
}

.minimize-window h6 {
    text-transform: uppercase;
    color: #959595;
    font-size: 0.85rem;
    font-weight: 500;
}

.minimize-window h6,
.theme-mode h6,
.theme-settings>label {
    margin-inline-start: -1.5rem;
    margin-block-end: 1.25rem;
}

.input-radio {
    gap: 2.5rem;
    margin-block-end: 3rem;
}

.input-radio label input,
.theme-colors label input {
    position: absolute;
    inset: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
}

.input-radio label,
.theme-settings label,
.position-options label,
.mbl-chatwidget-options label {
    cursor: pointer;
    position: relative;
}

.input-radio label figure {
    width: 120px;
    aspect-ratio: 1/1;
    border: 3px solid #B7C3CC;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.25s ease-out;
}

.input-radio label input:is(:hover, :checked)+figure {
    border-color: #3B8AF0;
}

.input-radio label figure::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Pro";
    width: 30px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: #3B8AF0;
    position: absolute;
    top: -12px;
    right: -12px;
    display: grid;
    place-items: center;
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: all 0.25s ease-out;
}

.input-radio label input:is(:hover, :checked)+figure::before,
.theme-colors label input:is(:hover, :checked)+.color-circle::before {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.input-radio label figure img {
    width: 60px;
}

.input-radio label span {
    font-size: 1.125rem;
    color: #959595;
    text-transform: capitalize;
}

.theme-mode h6 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--black);
}

.theme-settings>label span,
.position-options label span,
.mbl-chatwidget-options label span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--black);
    margin-block-end: 1.5rem;
    margin-inline-start: 0.75rem;
}

.theme-settings>label p,
.position-options label p,
.mbl-chatwidget-options label p {
    margin-inline-start: 1.75rem;
    margin-block-start: 0.65rem;
    width: 50%;
}

.theme-settings .theme-colors {
    margin-block: 2.5rem;
}

.theme-colors .color-circle {
    width: 48px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: #1925E9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-end: 0.5rem;
}

.theme-colors label:nth-child(2) .color-circle {
    background: #7026F7;
}

.theme-colors label:nth-child(3) .color-circle {
    background: #DF1A06;
}

.theme-colors label:nth-child(4) .color-circle {
    background: #008633;
}

.theme-colors label:nth-child(5) .color-circle {
    background: #007B6C;
}

.theme-colors label:nth-child(6) .color-circle {
    background-image: conic-gradient(from 360deg at 50% 50% in oklch longer hue, oklch(70% .3 0) 0%, oklch(70% 0.30 0) 100%);
}

.theme-colors .color-circle::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Pro";
    font-size: 1.75rem;
    color: var(--white);
    opacity: 1;
    visibility: hidden;
    transform: scale(0);
    transition: all 0.25s ease-out;
}

.accordion-position-content,
.accordion-mbl-chatwidget-content {
    padding: 0.5rem 2rem 2rem;
}

.accordion-position-content .position-title,
.accordion-mbl-chatwidget-content .mbl-chatwidget-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--black);
    margin-block-end: 1.125rem;
}

.widget-position-form,
.appearance-form {
    gap: 2.5rem;
    margin-block-end: 2.5rem;
}

.widget-position-form label>span,
.appearance-form label>span {
    font-size: 1rem;
    margin-block-end: 0.7rem;
    color: #757575;
}

.widget-position-form label :is(select, input),
.appearance-form label :is(select, input) {
    padding: 1rem;
    border: 1px solid #adadad;
    border-radius: 0.3rem;
}

.widget-position-form label select,
.appearance-form label select {
    width: 130px;
}

.mbl-widget-type label select {
    width: 180px;
}

.widget-position-form label input,
.appearance-form label input {
    width: 85px;
    margin-inline-end: 0.3rem;
}

.position-options label,
.mbl-chatwidget-options label {
    margin-block: 1.5rem;
}

.position-options label span i,
.mbl-chatwidget-options label span i,
.additional-tweaks-option p span {
    font-size: 1.25rem;
    color: #adadad;
    margin-inline-start: 0.5rem;
}

.accordion-position-content p a,
.accordion-mbl-chatwidget-content p a,
.additional-tweaks-option .upload-logo a {
    color: #3586EF;
}


.accordion-mbl-chatwidget-content :is(.mbl-chatwidget-title, .appearance-form, .mbl-chatwidget-para, .mbl-chatwidget-options) {
    margin-inline-start: 1.8rem;
}

.accordion-mbl-chatwidget-content .mbl-chatwidget-options label {
    margin-block: 1rem;
}

.toggle-wrap {
    gap: 0.5rem;
    margin-block-end: 1.75rem;
}

.toggle-btn {
    width: 44px;
    height: 28px;
    position: relative;
}
.toggle-btn .checkbox {
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
    position: absolute;
    inset: 0;
}

.toggle-btn .switch {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #e9e9eb;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-out;
}
.toggle-btn .slider {
    width: 20px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 20px/2);
    left: calc(50% - 20px/2 - 8px);
    background: var(--white);
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15), 0px 3px 1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-out;
    cursor: pointer;
}

.toggle-btn .checkbox:checked+.switch {
    background-color: #34C759;
}

.toggle-btn .checkbox:checked+.switch .slider {
    top: calc(50% - 20px/2);
    left: calc(50% - 20px/2 + 8px);
}

.accordion-additional-tweaks-content {
    padding: 0.5rem 2.25rem 4rem;
}

.additional-tweaks-option {
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #EFF1F2;
    width: min(100%, 550px);
}

.additional-tweaks-option p {
    color: #4b4646;
}

.additional-tweaks-option .upload-logo {
    gap: 3rem;
}

.additional-tweaks-option .toggle-wrap {
    margin-block-end: 0;
}

/* customize-chat-perview */
.customize-chat-perview {
    padding: 3rem 2.5rem;
}

.customize-chat-perview-img img {
    margin-inline-start: auto;
    width: 350px;
}

.customization-chat-icon {
    position: fixed;
    bottom: 15px;
    right: 15px;
}

.customization-chat-icon img {
    width: 66px;
    aspect-ratio: 1/1;
    object-fit: cover;
}