html,
body, * {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    box-sizing: border-box;
}

body {
    background: white;
}

#live-chat-body {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.modal__join-chat {
    background-color: white;
    border-radius: 4px;
    min-width: 361px;
    box-shadow: 0px 2px 20px 0px #00000026;
    display: none;
    flex-direction: column;
    position: absolute;
    padding: 0 24px;
    left: calc(50% - 180px);
    top: calc(50% - 88px);
    z-index: 2;
}

.modal__join-chat h3 {
    margin: 18px 0;
    text-align: center;
    color: #0F21A1;
    font-weight: 500;
}

.modal__join-chat input {
    height: 40px;
    padding: 8px 12px 8px 12px;
    border-radius: 4px;
    border: 1px solid #C2C6E7;
}

.modal__join-chat input {
    outline: none;
}

.modal__join-chat input::placeholder {
    color: #C2C6E7;
    font-size: 16px;
}

.modal__join-chat input:last-of-type {
    margin: 10px 0;
}

.btn--action {
    padding: 0 16px;
    border-radius: 4px;
    background: #3F55EE;
    color: white;
    border: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    height: 40px;
    margin-bottom: 18px;
}

.btn--action[disabled] {
    opacity: 0.5;
    cursor: unset;
}

.btn--cancel {
    cursor: pointer;
    color: #3F55EE;
    border: none;
    font-weight: 500;
    font-size: 12px;
    margin: 12px 0;
}

.input--error {
    border: 1px solid red !important;
}

.message-item:not(:first-of-type) {
    margin-top: 12px;
}

.container__message-sender {
    display: inline-flex;
    align-items: baseline;
}

.message-item .avatar {
    font-size: 10px;
    line-height: 24px;
    min-width: 16px;
    height: 16px;
    background: #C7D6FE;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    margin-right: 8px;
    transform: translate(0px, -2px);
}

.container__message-content {
    display: flex;
    flex-direction: column;
}

.message__content {
    color: #585D83;
    word-break: break-all;
}

.message__content--deleted {
    color: #C2C6E7;
}

.message__content, .message__sent-at {
    font-weight: 400;
    font-size: 14px; 
}

.message__sent-at {
    margin-right: 8px;
    color: #C2C6E7;
}

.message__username {
    font-weight: 500;
    color: #585D83;
    margin-right: 8px;
    font-size: 14px;
}

.message__username--you {
    font-weight: 500;
    color: white;
    margin-right: 8px;
    font-size: 14px;
    background-color: #3F55EE;
    border-radius: 2px;
    padding: 0 4px;
}

.chat__messages {
    padding: 12px;
    max-height: 100%;
    height: 100vh;
}

.container__messages-list {
    overflow-x: auto;
    margin: 24px 0 32px 0;
    height: 100%;
    max-height: calc(100% - 108px);
}

.container__messages-list::-webkit-scrollbar {
    width: 2px;
}
  
.container__messages-list::-webkit-scrollbar-thumb {
    background-color: #E6E8F8;
    border-radius: 2px; 
}

.chat__messages header {
    display: flex;
    justify-content: space-between;
}

.chat__messages header h3 {
    color: #0F21A1;
    font-size: 16px;
    font-weight: 500;
}

.btn__header--close {
    height: 24px;
    border: none;
    width: 24px;
    cursor: pointer;
    background: white;
}

.container__input--type-message {
    display: flex;
    align-items: flex-end;
    border: 1px solid #C2C6E7;
    border-radius: 4px;
    padding: 8px 10px;
    width: calc(100% - 30px);
    background-color: white;
}

.container__input--type-message .input__typing-message {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 14px;
    height: 20px;
    resize: none;
    width: 100%;
    min-height: 20px;
    overflow-y: auto;
    box-sizing: border-box;
    color: #373B54;
}

.container__input--type-message .input__typing-message::-webkit-scrollbar {
    width: 2px;
}
  
.container__input--type-message .input__typing-message::-webkit-scrollbar-thumb {
    background-color: #E6E8F8;
    border-radius: 2px; 
}

.container__input--type-message .input__typing-message::placeholder {
    color: #C2C6E7;
}

.container__chat-actions {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.container__chat-actions span {
    background-color: #232536;
    border-radius: 2px;
    color: white;
    font-size: 12px;
    display: none;
}

.send-button {
    background-color: transparent;
    border: none; 
    padding: 0;
    display: flex;
    align-items: flex-end;
    color: #585D83;
    height: fit-content;
    padding-bottom: 8px;
} 

.container__input--type-message .send-icon {
    fill: #007bff;
}

main.blurred .blur-wall{
    display: block;
}

.blur-wall {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background: transparent;
    backdrop-filter: blur(2px);
    left: 0;
    z-index: 1;
}

.container__emoji-picker {
    height: 19px;
    position: relative;
}

.container__emoji-picker div {
    cursor: pointer;
}

.over-texting {
    color: #C2C6E7;
}

emoji-picker {
    position: absolute;
    display: none; 
    top: -411px;
    display: none;
    left: -285px;
}

.error-message {
    display: none;
    color: #f44336;
    margin-bottom: 18px;
}

footer {
    position: fixed;
    bottom: 0px;
    display: flex;
    background: #F8F8FF;
    width: 100%;
    left: 0;
    padding: 16px;
}