
#webchat-guest {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
    border-radius: 5px 5px 15px 15px;
    overflow: hidden;
    display: inline-block;
}

#webchat-guest .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;
}

#webchat-guest .webchat-guest__desc {
    text-align: center;
    font-size: 16px;
    line-height: 23px;
    color: #515365;
    width: 80%;
    margin: 20px auto;
}

#webchat-guest .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;
}

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

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

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

#webchat-guest form {
    margin: 20px;
    padding: 20px;
    border: 1px solid lightgray;
    border-radius: 20px;
}

#webchat-guest form input {
    width: 100%;
    border: 1px solid lightgray;
    outline: none;
    border-radius: 45px;
    font-size: 14px;
    height: 45px;
    padding-left: 20px;
    margin-bottom: 15px;
    color: #000;
}

#webchat-guest form input:focus {
    border: 1px solid #96c8ff;
}

#webchat-guest form button {
    border: none;
    outline: none;
    cursor: pointer;
    padding-left: 0px;
    font-size: 18px;
    font-weight: 500;
    background: #007bff;
    color: #fff;
    width: 100%;
    height: 45px;
    border-radius: 45px;
}

#webchat-guest form input::placeholder {
    color: #ccc;
}

#webchat-iframe {
    width: 100%;
    max-height: 575px;
    min-height: 575px;
}

#webchat-talktoc {
    width: 100%;
    max-width: 370px;
    height: auto;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1000002;
}

#webchat-talktoc .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;
    z-index: 9999;
    cursor: pointer;
    display: none;
}

#webchat-talktoc .webchat-container {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 370px;
    min-width: 370px;
}

#webchat-talktoc .webchat-container.active {
    opacity: 1;
    animation: webchatOpen 0.2s ease-out 0s forwards;
}

@keyframes webchatOpen {
    0% {
        transform: translate(0, 100px);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0);
        opacity: 1;
        pointer-events: inherit;
    }
}

#webchat-talktoc .chatbox-icon {
    margin: 0;
    position: fixed;
    bottom: 20px;
    right: 20px;
    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;
}

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

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

#webchat-talktoc .chatbox-icon p svg path {
    fill: #FFFFFF;
}

#webchat-talktoc .chatbox-icon p.close-chatbox {
    opacity: 0;
    pointer-events: none;
}

#webchat-talktoc .chatbox-icon.active p.close-chatbox {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) rotate(180deg);
}

#webchat-talktoc .chatbox-icon.active p.open-chatbox {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(180deg);
}

@media (max-width: 768px) {
    #webchat-iframe {
        min-height: 75vh;
        max-height: 75vh;
    }
    #webchat-talktoc .webchat-container {
        right: 10px;
        bottom: 35vw;
        min-width: calc(100% - 20px);
    }
    #webchat-talktoc .chatbox-icon {
        bottom: 23vw;
        right: 5vw;
    }
}
