#csd1 {
    padding: 0px !important;
    overflow: hidden !important;
    height: 440px;
    z-index: 10000;
    position: fixed;
    right: 0.5em;
    bottom: 0.5em;
    border-radius: 0.5em 0.5em 0 0;
    background-color: var(--bg);
}

#csi1 {
    border: 2px solid #007bff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#goto_chat {
    position: fixed;
    right: calc(2em + 58px);
    bottom: 16px;
    width: 58px;
    height: 58px;
    z-index: 999;
    background-image: var(--customer_service_btn);
    display: inline-block;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
}

#goto_chat_tip {
    position: fixed;
    right: calc(3em + 58px + 58px);
    bottom: 16px;
    width: 158px;
    height: 60px;
    z-index: 999;
    background: linear-gradient(to bottom, #209cff 0%, #2472ec 100%);
    color: #fff;
    display: none;
    font-size: 14px;
    border-radius: 0.4em;
    line-height: 22px;
}

#goto_chat_unread {
    position: fixed;
    width: 23px;
    height: 23px;
    border-radius: 999em;
    background-color: red;
    right: calc(1em + 58px + 58px);
    bottom: 58px;
    z-index: 999;
    text-align: center;
    font-size: 14px;
    color: #fff;
    display: none;
}

#goto_chat_tip div span {
    color: #ffff00;
}

#goto_chat_tip div {
    width: 91%;
    margin: 7px auto;
}

#goto_chat_tip div:after {
    content: '';
    position: absolute;
    right: 0;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-left-color: #2188f6;
    ;
    border-right: 0;
    margin-top: 0;
    margin-right: -8px;
}

@media (max-width: 767px) {
    #goto_chat {
        right: 3px;
        background-repeat: no-repeat;
        background-size: 45px;
        bottom: 0;
    }
    #goto_chat_tip {
        right: 75px;
        bottom: 10px;
    }
    #goto_chat_tip div:after {
        margin-top: -2px;
    }
}

@media (max-width: 480px) {
    #goto_chat {
        bottom: 0;
    }
    #goto_chat_tip {
        bottom: 10px;
    }
}

@media (max-width: 356px) {
    #goto_chat {
        background-size: 40px;
        right: 0;
    }
    #goto_chat_tip {
        background-size: 40px;
        right: 60px;
    }
    #csd1 {
        height: 410px;
        width: 95%;
    }
}

@media (min-width: 768px) and (max-width: 979px) {
    #goto_chat,
    #goto_chat_tip {
        bottom: 16px;
    }
}

@media (min-width: 980px) and (max-width: 1199px) {
    #goto_chat {
        transition: 0.4s;
    }
    #goto_chat:hover {
        opacity: 0.9;
    }
}

.cadtitle {
    background-image: linear-gradient(360deg, #007bff 0%, #24b8ff 100%);
    color: #fff;
    padding: 8px 0;
    text-align: center;
}

#csd1-title_close {
    display: inline-flex;
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.8;
    color: #fff;
    float: right;
}

#csd1-title_close:hover {
    opacity: 1;
}

.error-block {
    position: absolute;
}

.has-error {
    border-bottom: 1px solid red !important;
}