:root {
    --yoozly-chat-color-hover: #db3b15;
    --yoozly-chat-color: #db3b15;
    --yoozly-chat-cta-position: 30px;
    --yoozly-chat-cta-size: 60px;
    --yoozly-chat-height: 600px;
    --yoozly-chat-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --yoozly-chat-width: 400px;
}

.yoozly-chat {
    bottom: 0;
    display: flex;
    flex-direction: column;
    height: var(--yoozly-chat-height);
    position: fixed;
    right: var(--yoozly-chat-cta-position);
    transform: translateY(var(--yoozly-chat-height));
    transition: var(--yoozly-chat-transition);
    opacity: 0;
    width: var(--yoozly-chat-width);
    z-index: 1000;
    pointer-events: none;
}

.yoozly-chat.active {
    --cta-and-margin: calc(var(--yoozly-chat-cta-position) + 15px + var(--yoozly-chat-cta-size));
    opacity: 1;
    transform: translateY(calc(var(--cta-and-margin) * -1));
    pointer-events: auto;
}

.yoozly-chat__container {
    border-radius: 10px;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
    height: var(--yoozly-chat-height);
    overflow: hidden;
}

.yoozly-chat-cta {
    align-items: center;
    background-color: var(--yoozly-chat-color);
    border-radius: 50%;
    border: none;
    bottom: var(--yoozly-chat-cta-position);
    cursor: pointer;
    display: flex;
    font-weight: bold;
    height: var(--yoozly-chat-cta-size);
    justify-content: center;
    position: fixed;
    right: var(--yoozly-chat-cta-position);
    width: var(--yoozly-chat-cta-size);
    z-index: 1001;
}

.yoozly-chat-cta:hover,
.yoozly-chat-cta.active {
    background-color: var(--yoozly-chat-color-hover);
    transform: scale(1.1);
    transition: all 0.2s ease-out;
}

.yoozly-chat-cta .svg-close,
.yoozly-chat-cta .svg-open {
    height: 30px;
    margin: auto;
    opacity: 0;
    position: absolute;
    transform: translateY(10px);
    transition: var(--yoozly-chat-transition);
    width: 30px;
}

.yoozly-chat-cta .svg-open,
.yoozly-chat-cta.active .svg-close {
    opacity: 1;
    transform: translateY(0);
}

.yoozly-chat-cta.active .svg-open {
    opacity: 0;
    transform: translateY(-10px);
}
