@import url('https://fonts.cdnfonts.com/css/outfit');

#web-chatbox * {
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

#web-chatbox {
    width: 100%;
    max-width: 370px;
    height: 100%;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 2147483644;
}

#web-chatbox .chatbox-title {
    background: #007bff;
    color: white;
    line-height: 2.5;
    border-radius: 5px 5px 0 0;
    text-align: center;
    font-size: 20px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    position: relative;
}

#web-chatbox .chatbox-title__logo {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 50%;
    overflow: hidden;
    padding: 5px;
    box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

#web-chatbox .chatbox-title__logo img {
    width: 80%;
    object-fit: contain;
}

#web-chatbox .chatbox-title__close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    cursor: pointer;
    font-size: 30px;
    font-weight: 200;
    height: 100%;
}

#web-chatbox .chatbox-title__name {
    font-size: 16px;
    text-align: left;
    line-height: 1;
}

#web-chatbox .chatbox-title__name p {
    font-size: 12px;
    margin: 10px 0 0;
}

#web-chatbox .chatbox-content {
    border: unset;
    padding: 10px 15px;
    overflow-y: scroll;
    min-height: calc(600px - 130px);
    max-height: calc(600px - 130px);
    background: #efefef;
}

#web-chatbox .chatbox-container.guest .chatbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    max-height: 550px;
    overflow-y: unset;
}

#web-chatbox .chatbox-container.guest .chatbox-content .chatbox-memo {
    padding: 0;
}

#web-chatbox .chatbox-container.guest .typing-area {
    /*pointer-events: none;*/
}

#web-chatbox .chatbox-content::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
    background-color: #F5F5F5;
}

#web-chatbox .chatbox-content::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
}

#web-chatbox .chatbox-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
}

#web-chatbox .chatbox-content .chatbox-item {
    display: flex;
    margin: 10px 0;
    align-items: start;
}

#web-chatbox .chatbox-content .chatbox-item .chatbox-avatar {
    color: white;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
    padding: 5px;
}

#web-chatbox .chatbox-content .chatbox-item .chatbox-avatar img {
    width: 100%;
}

#web-chatbox .chatbox-content .chatbox-item .chatbox-text {
    max-width: calc(100% - 45px);
    margin: 0 0 0 10px;
}

#web-chatbox .chatbox-content .chatbox-item .chatbox-msg {
    background: #efefef;
    color: #333;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 14px;
    margin: 0;
    display: inline-table;
    word-break: break-word;
    text-align: left;
}

#web-chatbox .chatbox-content .chatbox-item .chatbox-date {
    font-size: 12px;
    color: #b4b4b4;
    margin: 5px 0;
}

#web-chatbox .chatbox-content .chatbox-item.right {
    justify-content: end;
    text-align: right;
}

#web-chatbox .chatbox-content .chatbox-item.right .chatbox-msg {
    background: #007bff;
    color: white;
}

#web-chatbox .typing-area {
    width: 100%;
    background: #efefef;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

#web-chatbox .typing-area .input-field {
    width: calc(100% - 35px);
    position: relative;
}

#web-chatbox .typing-area .input-field #input-field-text {
    width: 100%;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 3px;
    outline: none;
    padding-right: 40px;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s all ease;
    height: 40px;
    font-size: 13px;
}

#web-chatbox .emojionearea .emojionearea-editor {
    width: 100%;
    padding: 10px;
    border-radius: 3px;
    outline: none;
    padding-right: 60px;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s all ease;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    font-size: 13px;
}

#web-chatbox .emojionearea .emojionearea-editor::-webkit-scrollbar {
    display: none;
}

#web-chatbox .emojionearea .emojionearea-button {
    top: 50%;
    transform: translateY(-50%);
    right: 35px;
}

#web-chatbox .emojionearea, .emojionearea.form-control {
    box-shadow: none;
}

#web-chatbox .typing-area .input-field .input-field-sent {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    outline: none;
    opacity: 1;
    transition: 0.3s all ease;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
}

#web-chatbox .typing-area .input-field .input-field-sent img {
    width: 100%;
}

#web-chatbox #form-send-message {
    position: relative;
}

#web-chatbox #form-send-message .preview_upload_file {
    position: absolute;
    bottom: 100%;
    left: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 10px;
}

#web-chatbox #form-send-message .preview_upload_file .ar-file {
    width: 50px;
    height: 50px;
    z-index: 9;
    position: relative;
}

#web-chatbox #form-send-message .preview_upload_file .ar-file img {
    width: 100%;
    height: auto;
}

#web-chatbox #form-send-message .preview_upload_file .img-uploadfile {
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

#web-chatbox #form-send-message .preview_upload_file .ar-file::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 33%;
    width: 0px;
    height: 0px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #a1a1a1;
}

#web-chatbox #form-send-message .preview_upload_file .remove-uploadfile {
    position: absolute;
    right: -7px;
    top: -6px;
    cursor: pointer;
    margin: 0;
    opacity: 0.5;
}

#web-chatbox #form-send-message .preview_upload_file .remove-uploadfile:hover {
    opacity: 1;
}

#web-chatbox .attachment-icon {
    width: 20px;
    height: auto;
    margin: 0 10px 0 0;
    opacity: 0.7;
}

#web-chatbox .attachment-icon img {
    cursor: pointer;
    width: 100%;
}

#web-chatbox .attachment-icon input#chatbox-attachment {
    display: none;
}

#web-chatbox .attachment-icon svg {
    fill: #909090;
}

#web-chatbox .attachment-icon label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#web-chatbox .chatbox-icon {
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: end;
}

#web-chatbox .chatbox-icon p {
    margin: 0;
}

#web-chatbox .chatbox-icon img {
    width: 50px;
    cursor: pointer;
}

#web-chatbox .chatbox-icon .close-chatbox {
    display: none;
}

#web-chatbox .chatbox-icon .close-chatbox.active {
    display: block;
    opacity: 1;
}

#web-chatbox .chatbox-icon .open-chatbox {
    /*position: relative;*/
    opacity: 1;
}

#web-chatbox .chatbox-icon .open-chatbox.active {
    display: none;
}


#web-chatbox .chatbox-icon .open-chatbox:after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    top: 0;
    right: 0;
}

#web-chatbox .chatbox-icon .close-chatbox img {
    opacity: 0.6;
    padding: 8px;
}

#web-chatbox .chatbox-memo {
    text-align: center;
    padding: 70px 0 30px;
}

#web-chatbox .chatbox-memo__logo {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#web-chatbox .chatbox-memo__logo img {
    width: 100%;
}

#web-chatbox .chatbox-memo__name {
    font-size: 16px;
    line-height: 1;
}

#web-chatbox .chatbox-memo__name p {
    font-size: 12px;
    margin: 10px 0 0;
}

/* #web-chatbox .chatbox-container,
#web-chatbox .chatbox-container.guest {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
}

#web-chatbox .chatbox-container.active,
#web-chatbox .chatbox-container.guest.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
} */

@keyframes webchatOpen {
    0% {
        transform: translate(0, 100px);
        opacity: 0;
        pointer-events: none;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
        pointer-events: inherit;
    }
}

@keyframes webchatClose {
    0% {
        transform: translate(0, 0px);
        opacity: 1;
        pointer-events: inherit;
    }
    100% {
        transform: translate(0, 100px);
        opacity: 0;
        pointer-events: none;
    }
}


#web-chatbox .chatbox-icon {
    margin: 0;
    position: fixed;
    bottom: 20px;
    /* right: 20px; */
    right: 0px;
    z-index: 9999;
    height: 55px;
    width: 55px;
    background: linear-gradient(to right, #3893ed, #9a93ee, #ef9bfd);
    text-align: center;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
}

#web-chatbox .chatbox-icon p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    width: 55%;
    height: 55%;
    margin: 0;
}

#web-chatbox .chatbox-icon p svg {
    fill: #FFFFFF;
    width: 100%;
    height: auto;
}

/* #web-chatbox .chatbox-container.guest {
    position: fixed;
    max-width: 400px;
    height: 600px;
    border: unset;
    background: #fff;
    z-index: 9999;
    right: 20px;
    bottom: 100px;
} */

#web-chatbox .webchat-start {
    background: url(https://ivy-s3-bucket.s3.amazonaws.com/prod/2024/07/bg-start_webchat.png) no-repeat top center;
    width: 120px;
    height: 60px;
    background-size: contain;
    text-align: center;
    line-height: 42px;
    color: #FFFFFF;
    text-transform: capitalize;
    font-size: 15px;
    position: fixed;
    bottom: 70px;
    /* right: 20px; */
    right: 370px;
    z-index: 9999;
    cursor: pointer;
    display: none;
}


#user-details-form .form-group {
    margin-bottom: 15px;
}

#user-details-form .form-group label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 14px;
}

#user-details-form .form-group input {
    width: 100%;
    display: block;
    border: unset;
    outline: 0;
    border-radius: 12px;
    font-size: 14px;
    height: 48px;
    color: #000;
    padding-left: 10px;
}

.btn-start-chatting {
    background-color: #FD7513;
    border-radius: 12px;
    color: #fff;
    border: none;
    padding: 10px 25px;
    width: 171px;
    font-size: 18px;
}
