img {
    image-rendering: -webkit-optimize-contrast;
}

.supportContainer {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
}

.attentionGrabber {
    position: absolute;
    right: 0;
    bottom: 75px;
    display: none;
}

.attentionGrabber .msgBox {
    background-color: #fff;
    max-width: min(250px, 50vw);
    width: max-content;
    padding: 18px;
    border-radius: 12px 12px 0 12px;
    font-size: 15px;
    cursor: pointer;
}

.attentionGrabber .closeIcon {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    position: absolute;
    top: -36px;
    right: 0;
    border-radius: 50px;
    cursor: pointer;
}

.attentionGrabber .closeIcon i {
    opacity: 0.7;
}

.supportIcon {
    background-color: rgb(26, 94, 181);
    border-radius: 30px;
    height: 60px;
    font-size: 34px;
    cursor: pointer;
    position: absolute;
    right: 0;
    bottom: 0;
    
    color: white;
    
    display: flex;
    align-items: center;
    justify-content: center;

    padding-left: 11px;
    padding-right: 24px;
    transition: 200ms;
    overflow: hidden;
}

.supportIcon.active {
    padding: 0;
}

.supportIcon .text {
    opacity: 1;
    display: inline-block;
    font-size: 17px;
    font-family: 600;
    width: 95px;
    transition: 200ms;
    white-space: nowrap;
    font-family: Roboto;
}

.supportIcon.active .text {
    width: 0px;
    opacity: 0;
}

.supportIcon .icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: inline-block;
}

.supportIcon i {
    transition: 300ms;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.unseenCounter {
    color: white;
    background-color: rgb(207, 62, 62);
    border-radius: 50%;
    height: 22px;
    width: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    position: fixed;
    right: 17px;
    bottom: 61px;
    z-index: 101;

    /*display: flex;*/
}

.unseenCounter .val {
    font-weight: 500;
    transform: translateY(-1px);
}


.supportBox {
    position: fixed;
    bottom: 100px;
    right: 20px;
    height: 560px;
    width: 390px;
    border-radius: 10px;
    
    flex-direction: column;
    overflow: hidden;

    display: flex;
    transition: 200ms;

    opacity: 0;
    transform: translateY(40px);
    z-index: 350;
}

.supportBox.active {
    display: flex;
    opacity: 1;
    transform: translateY(0px);
}




.supportBox .messageInput {
    background-color: white;
    position: relative;
    max-height: 150px;
    min-height: 60px;
    flex-shrink: 0;

    box-sizing: border-box;
    border-top: 4px solid rgb(26, 94, 181);
}

.supportBox .messageInput.hide {
    display: none;
}

.supportBox .messageInput .filler {
    box-sizing: border-box;
    padding: 18px 80px 18px 29px;
    width: 100%;
    height: 100%;
    font-size: 14px;
    line-height: 18px;
    background-color: rgb(255, 255, 255);
    white-space: pre-wrap;
    overflow-wrap: break-word;
    display: block;
    visibility: hidden;
}

.supportBox .messageInput textarea {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0px;
    resize: none;
    border: none;
    outline: none;
    padding: 18px 80px 18px 29px;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: normal;
    line-height: 18px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.supportBox .messageInput .buttonWrapper {
    position: absolute;
    right: 5px;
    padding: 0 20px;
    top: 0;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.supportBox .messageInput .buttonWrapper .sendIcon {
    height: 20px;
    cursor: pointer;
}

.supportBox .messageInput .buttonWrapper .sendIcon path {
    fill: rgb(68, 63, 63);
}



.supportBox .optionsInput {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    box-sizing: border-box;
    height: 60px;
    background-color: white;
    padding: 0px 20px 0px 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.supportBox .optionsInput.hide {
    display: none;
}

.supportBox .optionsInput button {
    outline: none;
    border: none;
    border-radius: 5px;
    background-color: rgb(230, 232, 253);
    color: rgb(19, 29, 104);
    padding: 10px 20px;
    margin: 0 6px;
    font-size: 14px;

    transform: translateY(60px);
    transition: 500ms;
    transition-property: transform;
}

.supportBox .optionsInput button.show {
    transform: translateY(0px);
}

.supportBox .optionsInput button:hover {
    background-color: rgb(48, 71, 236);
    color: white;
    cursor: pointer;
}






.supportBox .header {
    background-color: rgb(26, 94, 181);
    display: flex;
    align-items: center;
    padding: 17px 30px;
}

.supportBox .header .profileImage {
    height: 45px;
    border-radius: 50%;
}

.supportBox .header .userInfo {
    color: white;
    margin-left: 20px;
}

.supportBox .header .userInfo .status {
    display: flex;
    align-items: center;
}

.supportBox .header .userInfo .status .statusColor{
    background-color: rgb(60, 223, 109);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.supportBox .header .userInfo .status .val {
    margin-left: 4px;
    font-size: 15px;
    display: flex;
    align-items: flex-end;
}

.supportBox .header .userInfo .status .val .text {
    opacity: 0.8;
}

.supportBox .header .userInfo .status .val .dots {
    margin-left: 3px;
    font-size: 4px;
    transform: translateY(-5px);
    color: #e6e6e6;
    display: none;

}

.supportBox .header .userInfo .status .val .dots i{
    margin-right: 3px;
    display: inline-block;
    animation-name: dot-keyframes;
    animation-duration: 1500ms;
    animation-iteration-count: infinite;
    opacity: .4;
}

.supportBox .header .userInfo .status .val .dots i:nth-child(2){
    animation-delay: 150ms;
}

.supportBox .header .userInfo .status .val .dots i:nth-child(3){
    animation-delay: 300ms;
}

@keyframes dot-keyframes {
    0% {
        opacity: .4;
        transform: scale(1, 1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2, 1.2);
    }

    100% {
        opacity: .4;
        transform: scale(1, 1);
    }
}

.supportBox .header .downIcon {
    color: white;
    font-size: 25px;
    cursor: pointer;
    margin-left: auto;
}



.supportBox .chat {
    background-color: white;
    flex-grow: 1;

    overflow: hidden scroll;
}

.supportBox .chat .scrollWrapper {
    overflow: hidden;
}

.supportBox .chat .scrollWrapper .scrollWrapper2 {
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
}

.supportBox .chat .messageSection {
    margin: 0 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.supportBox .chat .messageSection.fromSelf {
    align-items: flex-end;
}

.supportBox .chat .messageSection.fromPartner {
    align-items: flex-start;
}

.supportBox .chat .messageSection .message {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.supportBox .chat .messageSection .message .text {
    background-color: rgb(46, 44, 44);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: block;
    width: auto;

    white-space: pre-line;
    overflow-wrap: break-word;
    transition: 300ms;
}

.supportBox .chat .messageSection .message .text img {
    border-radius: 6px;
    cursor: pointer;
    max-width: 100%;
}

.supportBox .chat .messageSection.fromSelf .message{
    margin-left: 30px;
}

.supportBox .chat .messageSection.fromPartner .message{
    margin-right: 20px;
    margin-left: 50px;
}

.supportBox .chat .messageSection.fromPartner .message .text {
    background-color: rgb(232, 234, 235);
    color: black;
}

.supportBox .chat .messageSection.fromPartner .message .button {
    background-color: #264A82;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
    text-align: center;
    margin-top: 8px;
    box-shadow: 3px 3px 5px #595959c7;
    transition: 200ms;
}

.supportBox .chat .messageSection.fromPartner .message .button:active {
    transform: scale(0.97);
}


.supportBox .chat .messageSection .profileImage {
    padding: 3px;
    border: 2px solid rgb(218, 218, 218);
    border-radius: 50%;
    position: absolute;
    left: 0;
    bottom: 5px;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
}

.supportBox .chat .messageSection .profileImage img {
    height: 32px;
    border-radius: 50%;
}

@media (max-width: 450px) {    
    .supportIcon.active {
        padding-left: 11px;
        padding-right: 24px;
        opacity: 0;
    }

    .supportIcon.active.disable {
        display: none;
    }
    
    .supportIcon.active .text {
        width: 95px;
        opacity: 1;
    }

    .supportBox {
        width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .supportBox.active {

    }
}

.imgFullScreenModal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 400;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
}

.imgFullScreenModal .closeIcon {
    position: absolute;
    cursor: pointer;
    height: 60px;
    top: 30px;
    right: 40px;
}

.imgFullScreenModal .mainImg {
    max-width: 80%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}