.chat * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.chat body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 100%;
    background: #F1F1F1;
}

.chat *, 
.chat html {
    --primaryGradient: linear-gradient(93.12deg, #0D5CC7 0.52%, #B40EAA 100%);
    --secondaryGradient: linear-gradient(268.91deg, #0D5CC7 -2.14%, #B40EAA 99.69%);
    --primaryBoxShadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    --secondaryBoxShadow: 0px -10px 15px rgba(0, 0, 0, 0.1);
    --primary: #0D5CC7;
}

.chat ul {
    padding-left: 20px;
}


/* CHATBOX
=============== */
.chatbox {
  position: fixed;
  bottom: 5vh; /* Adjust the distance from the bottom as needed */
  right: 5vw; /* Adjust the distance from the right as needed */
  z-index: 9999;
}

/* CONTENT IS CLOSE */
.chatbox__support {
    display: none; /* Add this */
    flex-direction: column;
    background: #eee;
    width: 300px;
    height: 350px;
    z-index: -123456;
    opacity: 0;
}

.chatbox--transition {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* CONTENT ISOPEN */
.chatbox--active {
    display: flex; /* Add this */
    transform: translateY(-40px);
    z-index: 123456;
    opacity: 1;
}


/* BUTTON */
.chatbox__button {
    text-align: right;
}

.send__button {
    padding: 6px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}


/* HEADER */
.chatbox__header {
    position: sticky;
    top: 0;
    background: orange;
}

/* MESSAGES */
.chatbox__messages {
    margin-top: auto;
    display: flex;
    overflow-y: scroll;
    flex-direction: column-reverse;

}

.chatbox__messages a {
    color: blue;
}

.messages__item {
    background: orange;
    max-width: 60.6%;
    width: fit-content;
}

.messages__item--operator {
    margin-left: auto;
}

.messages__item--visitor {
    margin-right: auto;
}

/* FOOTER */
.chatbox__footer {
    position: sticky;
    bottom: 0;
}

.chatbox__support {
    background: #f9f9f9;
    height: 750px;
    width: 750px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* HEADER */
.chatbox__header {
    background: var(--primaryGradient);
    display: flex;
    flex-direction: row;
    align-items: left;
    justify-content: left;
    padding: 15px 15px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: var(--primaryBoxShadow);
}

.chatbox__image--header {
    margin-top: 6px;
    margin-right: 2px;
    margin-right: 10px;
}

.chatbox__heading--header {
    font-size: 0.8rem;
    color: white;
    padding-top: 0px;
    margin-top: 0px;
    line-height: 0; /* Adjust the value as needed, e.g., 1.2, 1.5, etc. */
    font-family: 'Nunito', sans-serif;
    font-weight: 100;
    /*font-size: 0.8rem;  Adjust the font size as desired */
    /*color: white;*/
}

.chatbox__description--header {
    font-size: 0.7rem;
    color: white;
    padding-top: 0px;
    margin-top: 0px;
    line-height: 0; /* Adjust the value as needed, e.g., 1.2, 1.5, etc. */
    font-family: 'Nunito', sans-serif;
    font-weight: 100;
    /*font-size: 0.7rem;  Adjust the font size as desired */
    /*color: white;*/
}

/* Messages */
.chatbox__messages {
    padding: 0 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: 100;
    font-size: 0.65rem; /* Adjust the font size as desired */
}

.messages__item {
    margin-top: 10px;
    background: #E0E0E0;
    padding: 8px 12px;
    max-width: 70%;
    font-family: 'Nunito', sans-serif;
    line-height: 1.1; /* Adjust the value as needed, e.g., 1.2, 1.5, etc. */
}

.messages__item--visitor,
.messages__item--typing {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.messages__item--operator {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    background: var(--primary);
    color: white;
}

/* FOOTER */
.chatbox__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    background: var(--secondaryGradient);
    box-shadow: var(--secondaryBoxShadow);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-top: 20px;
}

.chatbox__footer input {
    width: 80%;
    border: none;
    padding: 10px 10px;
    border-radius: 30px;
    text-align: left;
}

.chatbox__send--footer {
    color: white;
}

.chatbox__button button,
.chatbox__button button:focus,
.chatbox__button button:visited {
    padding: 10px;
    background: white;
    border: none;
    outline: none;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

