#custom_chat_ii {
    position: fixed;
    bottom: 104px;
    right: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

#custom_chat_ii .circle {
    display: block;
    position: absolute;
    top: -10px;
    left: -8px;
    overflow: visible;
    width: 64px;
    height: 64px;
    font-size: 14px;
    font-weight: 500;
    fill: #121212;
}

#custom_chat_ii .circle path {
    fill: none;
}

@media (min-width: 1200px) {
    #custom_chat_ii {
        bottom: 195px;
    }
}

#custom_chat_ii img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

#custom_chat_form {
    left: 50%;
    width: 96%;
    transform: translatex(-50%);
    position: fixed;
    bottom: 104px;
    display: none;
    grid-template-columns: 8fr 1fr;
    grid-template-rows: 50px auto 54px;
    align-items: center;
    height: 416px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    transition: width .4s ease-in-out, height .4s ease-in-out, top .8s ease-in-out, left .8s ease-in-out;
    font-family: "Roboto", sans-serif;
}

@media (min-width: 1200px) {
    #custom_chat_form {
        bottom: 195px;
    }
}

.chat_bg {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 99999;
    background-color: #00000080;
}

#custom_chat_form.max {
    height: calc(100vh - 150px);
    width: calc(100vw - 20px);
    box-shadow: 0 0 20px 5px #747474;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 600px) {
    #custom_chat_form {
        right: 20px;
        width: 223px;
        left: auto;
        transform: translate(0, 0);
    }
}

@media (min-width: 796px) {
    #custom_chat_form {
        width: 28%;
    }
}

@media (min-width: 1024px) {
    #custom_chat_form.max {
        height: 70%;
    }
}

#custom_chat_form .header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    grid-area: 1/1/2/3;
    align-self: flex-start;
    min-height: 50px;
    background-color: rgb(0, 209, 195);
    box-shadow: 0 1px 2px 0 grey;
    padding: 13px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

#custom_chat_form .header .close_btn,
#custom_chat_form .header .size {
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#custom_chat_form .header .close_btn::after,
#custom_chat_form .header .close_btn::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 3px;
    background: #fff;
    top: 50%;
    border-radius: 20px;
}

#custom_chat_form .header .close_btn::after {
    rotate: 45deg;
}

#custom_chat_form .header .close_btn::before {
    rotate: -45deg;
}

#custom_chat_form #response {
    position: relative;
    grid-area: 2/1/3/3;
    overflow: scroll;
    height: 100%;
    padding: 10px 10px 25px;
}

#custom_chat_form .message_query,
#custom_chat_form .message_response {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 7px;
    width: fit-content;
    font-size: 14px;
    line-height: 1.3;
    color: #ffffff;
}

#custom_chat_form .message_query {
    background-color: rgb(0, 209, 195, 88%);
    border-bottom-right-radius: 0;
    margin-left: auto;
}

#custom_chat_form .message_response {
    position: relative;
    background-color: #e8e7e2e1;
    border-bottom-left-radius: 0;
    margin-right: auto;
    width: 90%;
    color: rgb(66, 63, 63);
}

.message_response .question,
.message_response .product {
    margin-bottom: 6px;
}

.message_response .question a,
.message_response .product a {
    text-decoration: underline !important;
    opacity: 0.5;
    font-size: 11px;
    color: #333;
}

.message_response .question a:hover,
.message_response .product a:hover {
    opacity: 1;
}

.message_response .product {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px #d5d5d5 solid;
    padding-bottom: 26px;
}

.message_response .city-product {
    border-bottom: 1px #d5d5d5 solid;
    padding-bottom: 14px;
}

.message_response .city-product {
    margin-top: 12px;
}

.message_response .product:last-child,
.message_response .city-product:last-child {
    border: none;
    padding-bottom: 0;
}

.message_response .product .title,
.message_response .city-product .title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.message_response .product .deckription {
    font-size: 0.9rem;
    height: 2.6em;
    overflow: hidden;
}

#recommendForm label,
.message_response label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.message_response select,
#recommendForm select,
#recommendForm input {
    display: block;
    padding: 6px 12px;
    width: 100%;
    border: none;
    border-radius: 3px;
    outline: none;
}

#city_submit {
    cursor: pointer;
}

#recommendForm button,
#city_submit {
    background-color: rgb(0, 209, 195);
    border: none;
    border-radius: 5px;
    color: #fff;
    padding: 8px 16px;
    height: auto;
    transition: .1s ease-in;
}

#recommendForm button:focus,
#recommendForm button:focus-visible,
#recommendForm button:focus-within,
#recommendForm button:active,
#recommendForm button:target {
    outline: none;
    border: none;
}

#recommendForm button:hover {
    background: #fff;
    color: rgb(0, 209, 195);
}

#custom_chat_form .pending {
    position: absolute;
    top: -25px;
    left: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 34px;
    height: 19px;
    border-radius: 20px;
    background-color: rgb(0, 209, 195);
}

#custom_chat_form .pending>div {
    border-radius: 50%;
    width: 5px;
    height: 5px;
    background-color: #f1f1f1;
    transition: transform 0.4s cubic-bezier(0.39, -0.06, 0.59, 1.04);
}

#custom_chat_form .pending>div:nth-child(2) {
    animation: go-up-down2 2s infinite alternate;
    /* animation-delay: 4s; */
}

#custom_chat_form .pending>div:nth-child(3) {
    animation: go-up-down3 2s infinite alternate;
    /* animation-delay: 6s; */
}

#custom_chat_form .input {
    position: relative;
    display: flex;
    grid-area: 3/1/4/3;
    box-shadow: none;
    border-top: 1px solid #d9d9d9;
    padding: 0;
    height: auto;
}

#custom_chat_form #query {
    border: none !important;
    box-shadow: none;
    border-radius: 10px;
    resize: none;
    height: 51px;
    max-height: 310px;
    padding: 0.825rem 1rem;
    width: 100%;
}

#custom_chat_form #query,
#custom_chat_form #query:focus,
#custom_chat_form #query:focus-visible,
#custom_chat_form #query:focus-within,
#custom_chat_form #query:active,
#custom_chat_form #query:target {
    background-color: #fff;
    border: none;
    outline: none;
    box-shadow: none !important;
}

#custom_chat_form #submit {
    position: relative;
    display: grid;
    align-content: center;
    justify-content: center;
    border: none;
    border-radius: 11px;
    width: 30px;
    height: 30px;
    margin: 10px;
    padding: 10px;
    background-color: rgb(0, 209, 195);
}

#custom_chat_form #submit.disabled {
    pointer-events: none;
    opacity: 0.2;
}

#custom_chat_form #city_submit {
    background-color: rgb(0, 209, 195);
    border: none;
    color: #fff;
    padding: 8px 16px;
    height: auto;
    text-align: center;
}