/*
#chat {
    position: fixed;
    bottom: -560px;
    right: 40px;
    z-index: 5;
    width: 280px;
    max-width: 100%;
    transition: width 100ms linear 0ms;
    transition-property: bottom, width;
    will-change: bottom, width;
}

#chat.visible {
    width: 400px;
    bottom: 0 !important;
}

#chat .chat-header {
    !*background: linear-gradient(125deg, rgba(174, 253, 131, 1) 0%, rgba(114, 230, 65, 1) 100%);*!
    background: linear-gradient(125deg, rgb(17, 18, 22) 0%, rgb(26, 29, 44) 100%);
    height: 48px;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    width: 100%;
    font-size: 16px;
    box-shadow: 0 0 12px 4px rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 20px;
    color: #fff;
    transition: box-shadow 200ms linear 0ms;
    cursor: pointer;
    padding: 8px 20px;
    position: relative;
    user-select: none;
}

#chat.move .chat-header {
    cursor: move;
}

#chat .chat-header > .chat-status {
    width: 8px;
    height: 8px;
    background-color: #50e43c;
    border-radius: 50%;
    animation: chat-status-pulse 1.8s infinite;
    display: block;
    position: absolute;
    top: calc(50% - 4px);
    right: 20px;
}


#chat .chat-header > .chat-status.offline {
    background-color: #42424b;
    animation: none;
}

@keyframes chat-status-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(80, 228, 60, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(80, 228, 60, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(80, 228, 60, 0);
    }
}

#chat .chat-header > .name {
    display: flex;
    gap: 8px;
    align-items: center;
}

#chat .chat-header > .name .lni {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

#chat .chat-content {
    background-color: #fff;
    width: 100%;
    max-width: 100%;
    padding: 8px;
    height: 560px;
    color: #3c556c;
}

#chat.visible .chat-content {
}

#chat .chat-content > .chat-content-wrapper {
    height: 450px;
    display: flex;
    align-items: end;
    scrollbar-color: #383f46 #1e262d;
    scrollbar-width: thin;
    overflow: auto;
}

#chat .chat-content > .chat-content-wrapper::-webkit-scrollbar{
    width: 12px;
    height: 12px;
    background-color: #383f46;
    border-radius: 2px;
    left: 5px;
}

#chat .chat-content > .chat-content-wrapper::-webkit-scrollbar-track{
    border-radius: 2px;
}

#chat .chat-content > .chat-content-wrapper::-webkit-scrollbar-thumb{
    background-color: #383f46;
    border-radius: 2px;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
    height: 100%;
    width: 100%;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id {
    background-color: #f5f6fb;
    border-radius: 20px 20px 20px 0;
    padding: 20px;
    line-height: 20px;
    font-size: 15px;
    max-width: 90%;
    position: relative;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id-none {
    width: 100%;
    text-align: center;
    color: rgba(0,0,0,0.4);
    padding: 20px;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id:before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    left: -8px;
    display: block;
    border-top: 4px solid transparent;
    border-right: 8px solid #f5f6fb;
    border-bottom: 4px solid transparent;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id.message-answer {
    border-radius: 20px 20px 0 20px;
    margin-left: auto;
    color: #000;
    background-color: #e4e8f8;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id.message-answer:before {
    left: auto;
    right: -8px;
    border-right: unset;
    border-left: 8px solid #e4e8f8;
}


#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id > .message-footer {
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 4px;
    align-items: center;
    justify-content: end;
    opacity: 0.6;
    padding-top: 8px;
}






#chat .chat-form {
    position: relative;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.04);
    width: 100%;
    margin-top: 8px;
}

#chat .chat-form textarea {
    border: 0;
    outline: none;
    width: 100%;
    font-size: 16px;
    max-width: 100%;
    height: 80px;
    max-height: 80px;
    padding-right: 72px;
    padding-left: 12px;
    box-sizing: border-box;
    scrollbar-color: #383f46 #1e262d;
    scrollbar-width: thin;
    color: #333;
}

#chat .chat-form textarea::-webkit-scrollbar{
    width: 12px;
    height: 12px;
    background-color: #383f46;
    border-radius: 2px;
    left: 5px;
}

#chat .chat-form textarea::-webkit-scrollbar-track{
    border-radius: 2px;
}

#chat .chat-form textarea::-webkit-scrollbar-thumb{
    background-color: #383f46;
    border-radius: 2px;
}

#chat .chat-form #chat-form-attach,
#chat .chat-form #chat-form-submit {
    position: absolute;
    top: 8px;
    right: 0;
    padding: 0;
    outline: none;
    background: none;
    border: 0;
    color: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 1;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
}

#chat .chat-form #chat-form-attach {
    right: 40px;
}

#chat .chat-form #chat-form-attach > input[type="file"] {
    position: fixed;
    top: -9999%;
    left: -9999%;
    opacity: 0;
    pointer-events: none;
}

#chat .chat-form #chat-form-attach.active {
    color: #50e43c;
}

#chat .chat-form #chat-form-attach-remove {
    width: 12px;
    height: 12px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #de3838;
    z-index: 1;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 44px;
    cursor: pointer;
}*/






#chat {
    position: fixed;
    bottom: -560px;
    right: 40px;
    z-index: 5;
    width: 280px;
    max-width: 100%;
    transition: width 100ms linear 0ms;
    transition-property: bottom, width;
    will-change: bottom, width;

    border-radius: 14px 14px 0 0;
    padding: 2px 2px 0 2px;
    background: #41CB51;
    background: linear-gradient(90deg, rgba(65, 203, 81, 1) 0%, rgba(23, 89, 74, 1) 20%, rgba(33, 80, 64, 1) 40%, rgba(22, 61, 59, 1) 60%, rgba(25, 52, 56, 1) 80%, rgba(24, 48, 60, 1) 96%, rgba(17, 100, 52, 1) 100%);
}

#chat.visible {
    width: 400px;
    bottom: 0 !important;
}

#chat > .chat-wrappper {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background-color: #08090d;
    position: relative;
    padding: 0 16px;
}

#chat .chat-header {
    /*background: linear-gradient(125deg, rgba(174, 253, 131, 1) 0%, rgba(114, 230, 65, 1) 100%);*/
    background: #091018;
    background: linear-gradient(0deg, rgba(9, 16, 24, 1) 0%, rgba(6, 22, 24, 1) 100%);
    height: 52px;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    width: 100%;
    font-size: 16px;
    box-shadow: 0 0 12px 4px rgba(255,255,255,0.04);
    color: #fff;
    transition: box-shadow 200ms linear 0ms;
    cursor: pointer;
    padding: 8px 16px 8px 52px;
    position: relative;
    user-select: none;
}

#chat.move .chat-header {
    cursor: move;
}

#chat .chat-header > .chat-status {
    position: absolute;
    top: calc(50% - 6px);
    right: 40px;
    font-size: 10px;
    font-weight: normal;
    color: #71f84a;
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transition: opacity 100ms linear 0ms;
}

#chat .chat-header > .chat-status:before {
    display: inline-flex;
    width: 8px;
    height: 8px;
    background: #58E139;
    background: linear-gradient(0deg, rgba(88, 225, 57, 1) 0%, rgba(130, 255, 83, 1) 100%);
    border-radius: 50%;
    content: "";
    margin-right: 6px;
    animation: chat-status-pulse 1.8s infinite;
}

#chat.visible .chat-header > .chat-status {
    opacity: 1;
}


#chat .chat-header > .chat-status.offline {
    color: #aaa;
    display: none;
}

#chat .chat-header > .chat-status.offline:before {
    animation: none;
    background: rgba(255,255,255,0.4);
}

@keyframes chat-status-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(80, 228, 60, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(80, 228, 60, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(80, 228, 60, 0);
    }
}

#chat .chat-header > .chat-icon {
    font-size: 24px;
    color: #64ff4a;
    position: absolute;
    top: 12px;
    left: 15px;
    height: 24px;
}

#chat .chat-header > .name {
    font-size: 15px;
}

#chat .chat-header > .text {
    font-size: 10px;
    font-weight: normal;
    padding-top: 3px;
    color: #a1b3d4;
}

#chat .chat-header > .chat-close {
    position: absolute;
    font-size: 20px;
    top: calc(50% - 10px);
    right: 10px;
    color: #a4b9cd;
    cursor: pointer;
    transform: rotate(45deg);
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 100ms linear 0ms;
}

#chat.visible .chat-header > .chat-close {
    opacity: 1;
}





#chat .chat-content {
    background-color: #070e16;
    width: 100%;
    max-width: 100%;
    height: 560px;
    color: #d7efeb;
    border-top: 1px solid #141b23;
}

#chat.visible .chat-content {
}

#chat .chat-content > .chat-content-wrapper {
    height: 450px;
    display: flex;
    align-items: end;
    scrollbar-color: #383f46 #1e262d;
    scrollbar-width: thin;
    overflow: auto;
}

#chat .chat-content > .chat-content-wrapper::-webkit-scrollbar{
    width: 12px;
    height: 12px;
    background-color: #383f46;
    border-radius: 2px;
    left: 5px;
}

#chat .chat-content > .chat-content-wrapper::-webkit-scrollbar-track{
    border-radius: 2px;
}

#chat .chat-content > .chat-content-wrapper::-webkit-scrollbar-thumb{
    background-color: #383f46;
    border-radius: 2px;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
    height: 100%;
    width: 100%;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id-none {
    text-align: center;
    padding: 20px;
    opacity: 0.2;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id {
    position: relative;
    padding-bottom: 12px;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id:first-child {
    padding-top: 12px;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id > .message-id-wrapper {
    display: flex;
    gap: 8px;
    align-items: start;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id.message-author > .message-id-wrapper {
    flex-direction: row-reverse;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id > .message-id-wrapper > .block-avatar {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #afbed0;
    background-color: #032010;
    border: 1px solid #3ea33e;
    padding: 3px;
    border-radius: 50%;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id > .message-id-wrapper > .block-avatar img {
    max-width: 100%;
    height: 100%;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id.message-author > .message-id-wrapper > .block-avatar {
    background-color: #24323d;
    border: 1px solid #253240;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id > .message-id-wrapper > .block-content {
    border-radius: 10px;
    background-color: #082920;
    color: #e9e9ec;
    border: 1px solid #113c2b;
    line-height: 18px;
    font-size: 12px;
    max-width: calc(80% - 36px);
    padding: 0 12px;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id.message-author > .message-id-wrapper > .block-content {
    background-color: #1a2a37;
    color: #dce1e6;
    border: 1px solid #284053;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id > .message-id-wrapper > .block-content > .message-text {
    padding-top: 8px;
}

#chat .message-id .message-text > .message-attachments {
    padding-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#chat .message-id .message-text > .message-attachments > .attachment-id {
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    display: block;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

#chat .message-id .message-text > .message-attachments > .attachment-id > .attachment-icon {
    font-size: 28px;
    display: block;
    min-width: 80px;
}

#chat .message-id .message-text > .message-attachments > .attachment-id > .attachment-icon img {
    max-width: 100%;
    border-radius: 4px;
}

#chat .message-id .message-text > .message-attachments > .attachment-id > .extension {
    display: block;
    padding-top: 4px;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id > .message-id-wrapper > .block-content > .message-footer {
    font-size: 10px;
    color: #798ea5;
    padding-bottom: 4px;
}

#chat .chat-content > .chat-content-wrapper > .chat-messages > .message-id.message-author > .message-id-wrapper > .block-content > .message-footer {
    text-align: right;
}





#chat .chat-form {
    position: relative;
    padding: 12px 8px 28px 8px;
    border-top: 1px solid #111e26;
    width: 100%;
    background: #030E14;
    background: linear-gradient(0deg, rgba(3, 14, 20, 1) 0%, rgba(6, 12, 18, 1) 100%);
}

#chat .chat-form textarea {
    border: 2px solid #1e3544;
    outline: none;
    width: 100%;
    font-size: 16px;
    max-width: 100%;
    height: 60px;
    min-height: 60px;
    padding: 16px 40px;
    box-sizing: border-box;
    scrollbar-color: #383f46 #1e262d;
    scrollbar-width: thin;
    color: #9cadc1;
    background-color: #101a23;
    border-radius: 10px;
    min-width: 100%;
}

#chat .chat-form textarea::-webkit-scrollbar{
    width: 12px;
    height: 12px;
    background-color: #383f46;
    border-radius: 2px;
    left: 5px;
}

#chat .chat-form textarea::placeholder{
    color: #778c9c;
}

#chat .chat-form textarea::-webkit-scrollbar-track{
    border-radius: 2px;
}

#chat .chat-form textarea::-webkit-scrollbar-thumb{
    background-color: #383f46;
    border-radius: 2px;
}


#chat .chat-form #chat-form-attach {
    font-size: 24px;
    position: absolute;
    top: 28px;
    left: 20px;
    color: #c5deef;
    z-index: 1;
    height: 24px;
    width: 24px;
    padding: 0;
    outline: none;
    background: none;
    border: 0;
    cursor: pointer;
    box-sizing: border-box;
}

#chat .chat-form #chat-form-submit {
    position: absolute;
    top: 26px;
    right: 20px;
    padding: 0;
    outline: none;
    background-color: #6fec51;
    border: 0;
    border-radius: 50%;
    color: #041a24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 1;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
}

#chat .chat-form #chat-form-attach > input[type="file"] {
    position: fixed;
    top: -9999%;
    left: -9999%;
    opacity: 0;
    pointer-events: none;
}

#chat .chat-form #chat-form-attach.active {
    color: #50e43c;
}

#chat .chat-form #chat-form-attach-remove {
    width: 12px;
    height: 12px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #de3838;
    z-index: 1;
    border-radius: 50%;
    position: absolute;
    top: 24px;
    left: 32px;
    cursor: pointer;
}


#chat .chat-form > .chat-form-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    height: 28px;
    font-size: 9px;
    color: #7d90a5;
}

#chat .chat-form > .chat-form-footer .lni {
    color: #64ff4a;
    font-size: 12px;
}




#chat .email-form {
    position: absolute;
    top: 64px;
    left: 16px;
    width: calc(100% - 32px);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #6fec51;
    background: linear-gradient( 135deg, rgba(7, 15, 18, 0.88), rgba(7, 14, 20, 0.4) );
    backdrop-filter: blur(4px);
    z-index: 2;
    display: none;
    flex-direction: column;
    gap: 12px;
}

#chat .email-form.visible {
    display: flex;
}

#chat .email-form > #email-from-close {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    cursor: pointer;
    padding: 4px 4px 0 0;
}

#chat .email-form .input-prepend {
    position: relative;
    width: 100%;
}

#chat .email-form .input-prepend input {
    margin: 0;
    width: 100%;
    background-color: #101a23;
    color: #ccc;
    border-radius: 8px;
    outline: none;
    height: 48px;
    padding: 0 16px 0 48px;
    border: 0;
}

#chat .email-form .input-prepend > .prepend {
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

#chat .email-form .btn {
    height: 48px;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
}