* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*, html {
    --primaryGradient: linear-gradient(93.12deg, #17a2b8 0.52%, #2dd4ee 100%);
    --secondaryGradient: linear-gradient(268.91deg, #17a2b8 -2.14%, #2dd4ee 99.69%);
    --primaryBoxShadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    --secondaryBoxShadow: 0px -10px 15px rgba(0, 0, 0, 0.1);
    --light: 300;
    --regular: 400;
    --semiBold: 600;
    --extraLight: 300;
    --italic: 300;
    --primary: #17a2b8;
}

.chatbox__support {
    background: #f9f9f9;
    height: 450px;
    width: 350px;
    margin: auto;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* HEADER */
.chatbox__header {
    background: var(--primaryGradient);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: var(--primaryBoxShadow);
}

.chatbox__image--header {
    margin-right: 10px;
}

.chatbox__heading--header {
    font-size: 1.2rem;
    color: white;
}

.chatbox__description--header {
    font-size: .9rem;
    color: white;
}

/* Messages */
.chatbox__messages {
    padding: 0 20px;
}

.messages__item {
    margin-top: 10px;
    background: #E0E0E0; 
    padding: 8px 12px;
    max-width: 70%;
}

.messages__item--admin,
.messages__item--typing {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.messages__item--user {
    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__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;
}

/* CHATBOX
=============== */
.chatbox {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* CONTENT IS CLOSE */
.chatbox__support {
    position: fixed;
    display: flex;
    flex-direction: column;
    background: #eee;
    /* width: 300px;
    height: 350px; */
    z-index: -123456;
    opacity: 0;
    transition: all .5s ease-in-out;
    bottom: 2em;
    right: 1em; 
    border-radius: 20px;
}
/* .d-none{
    display: none!important;
} */
/* CONTENT ISOPEN */
.chatbox--active {
    transform: translateY(-40px);
    z-index: 123456;
    opacity: 1;
    
}

/* BUTTON */
.chatbox__button {
    /* text-align: right; */
    position: fixed;
    bottom: 1em; 
    right: 1em; 
    z-index: 999;
}


/* HEADER */
.chatbox__header {
    position: sticky;
    top: 0;
    /* background: orange; */
}

/* MESSAGES */
.chatbox__messages {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    flex-direction: column-reverse;
}

.messages__item {
    /* background: orange; */
    max-width: 95%;
    width: fit-content;
}

.messages__item--user {
    text-align: right;
    margin-left: auto;
}

.messages__item--admin {
    text-align: left;
    margin-right: auto;
}
.timestamp{
    color: #6c757d;
    font-size: 11px;
    width: 100%;
}
.timestamp-user {
    text-align: right;
    margin-left: auto;
}

.timestamp-admin {
    text-align: left;
    margin-right: auto;
}

/* FOOTER */
.chatbox__footer {
    position: sticky;
    bottom: 0;
}

.chatbox__footer textarea{
    border: none;
    outline: none;
    background-color: #fff;
    border: 1.0px solid #17a2b8;
    border: 1.0px solid var(--color-secondary);
    background-color: var(--btn-secondary);
    width: 100%;
    border-radius: 30px;
    text-align: left;
    font-weight: normal;
    font-size: unset;
    border-radius: 25px 0 0 25px;
    padding: 10px 40px 10px 30px
}

.chatbox__footer .send_message {
    position: absolute;
    background-color:#fff;
    color: #757575;
    outline: none;
    bottom: 20px;
    right: 15px;
    height: 40px;
    width: 40px;
    border-radius: 20px;
    border: none;
    text-transform: uppercase;
    font-weight: bolder;
    cursor: pointer;
}