/* CHAT WRAPPER */
.chat-wrapper {
    display: block;
    position: fixed;
    width: 350px;
    height: 470px;
    bottom: 0;
    right: 40px;
    background: transparent;
    margin: 0;
    z-index: 999999999 !important;
}

@media (max-width: 500px) {
    .chat-wrapper {
        right: 2px;
    }

    .dialog .chat-button {
        inset: auto 320px 480px auto !important;
    }
}

.chat-wrapper.agent-chat {
    z-index: 0 !important;
    width: 100%;
    height: 100%;
    position: static;
}

.chat-wrapper.minimized {
    height: 70px;
}

/* DIALOG */
.dialog {
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 14px 8px rgba(0,0,0,.17);
    border-top-left-radius: 8px;
    border-top-right-radius: 34px;
    font-family: Arial, Arial;
    font-size: 14px;
    font-style: normal;
    line-height: 16px;
    color: rgb(240, 241, 241);
    background: transparent;
}

.dialog:empty {
    box-shadow: none;
}

/* DIALOG HEADER */
.dialog .chat-button {
    display: block;
    border: none;
    position: fixed;
    cursor: pointer;
    z-index: 999999999 !important;
    inset: auto 400px 450px auto;
    width: 28px;
    height: 28px;
    opacity: .85;
    background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2028%2028%22%3E%0A%20%20%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20transform%3D%22translate(2%202)%22%3E%0A%20%20%20%20%20%20%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2212%22%20fill%3D%22%23FFF%22%20opacity%3D%221%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2212.75%22%20stroke%3D%22%23222D38%22%20stroke-width%3D%221.5%22%20opacity%3D%221%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cg%20fill%3D%22%23222D38%22%20opacity%3D%221%22%20transform%3D%22translate(6%206)%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20width%3D%221.611%22%20height%3D%2213.9%22%20x%3D%225.435%22%20y%3D%22-.941%22%20rx%3D%22.806%22%20transform%3D%22rotate(45%206.24%206.01)%22%2F%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20width%3D%221.611%22%20height%3D%2213.9%22%20x%3D%225.435%22%20y%3D%22-.941%22%20rx%3D%22.806%22%20transform%3D%22scale(-1%201)%20rotate(45%200%20-9.058)%22%2F%3E%0A%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A") no-repeat !important;
}

.dialog .dialog-header {
    display: flex;
    flex-direction: row;
    height: 70px;
    background: linear-gradient(95deg, rgb(56, 61, 69) 20%, rgb(56, 61, 69) 80%);
    border-top-left-radius: 8px;
    border-top-right-radius: 34px;
    align-items: center;
    padding-left: 15px;
    padding-right: 35px;
}

.dialog .dialog-header.pointer {
    cursor: pointer;
}

.dialog .dialog-header .dialog-header-corner {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2240%22%20viewBox%3D%220%200%2032%2040%22%3E%0A%20%20%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%23383d45%22%20d%3D%22M0%200h9.02L32%2033.196V40H0z%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%2318c139%22%20d%3D%22M9%200c3.581.05%2023%205.426%2023%2033.08v.03C18.922%2030.751%209%2019.311%209%205.554V0z%22%2F%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A");
    height: 34px !important;
    overflow: visible;
    position: absolute;
    right: 0;
    top: 0;
    width: 32px !important;
}

.chat-wrapper.agent-chat .dialog .dialog-header .dialog-header-corner {
    display: none;
}

.dialog .dialog-header .dialog-header-agent-image {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    flex-shrink: 0;
}

.dialog .dialog-header .dialog-header-info {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.dialog .dialog-header .dialog-header-info .dialog-header-agent {}

.dialog .dialog-header .dialog-header-info .dialog-header-agent-info {
    font-size: 12px;
    margin-top: 5px;
    color: #a6a4a4;
}

/* DIALOG BODY */
.dialog .dialog-body {
    height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    border-bottom: 1px solid #dedede;
    box-sizing: border-box;
}

.chat-wrapper.agent-chat .dialog .dialog-body {
    height: 500px;
}

.dialog .dialog-body .dialog-message {
    display: flex;
    flex-direction: column;
    padding-left: 13px;
    padding-right: 5px;
    margin-bottom: 16px;
}

.dialog .dialog-body .dialog-message.deleted {
    font-style: italic;
}

.dialog .dialog-body .dialog-message .dialog-message-author {
    display: flex;
    font-size: 13px;
    color: #9fabb7;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-word;
    margin-bottom: 5px;
    margin-left: 50px;
}

.dialog .dialog-body .dialog-message.my-message .dialog-message-author {
    justify-content: flex-end;
}

.dialog .dialog-body .dialog-message .dialog-message-content {
    display: flex;
    flex-direction: row;
}

.dialog .dialog-body .dialog-message.my-message .dialog-message-content {
    justify-content: flex-end;
}

.dialog .dialog-body .dialog-message .dialog-message-content .dialog-message-not-my-image {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    margin-right: 10px;
    align-self: flex-end;
    flex-shrink: 0;
}

.dialog .dialog-body .dialog-message .dialog-message-content .dialog-message-body {
    display: flex;
    flex-direction: column;
    padding: 12px 16px 5px 16px;
    background-color: #18c139;
    border-radius: 10px;
    line-height: 19.6px;
    color: white;
    max-width: 250px;
    min-width: 100px;
    position: relative;
}

.dialog .dialog-body .not-my-message .dialog-message-content .dialog-message-body {
    background-color: #f1f0f0;
    color: #000;
}

.dialog .dialog-body .dialog-message .dialog-message-content:hover .dialog-message-body .dialog-action {
    display: flex;
}

.dialog .dialog-body .dialog-message .dialog-message-content .dialog-message-body .dialog-action {
    display: none;
    flex-direction: row;
    position: absolute;
    top: 0;
    left: -90px;
}

.dialog .dialog-body .dialog-message .dialog-message-content .dialog-message-body .dialog-action .dialog-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: grey;
    border-radius: 5px;
    width: 10px;
    height: 10px;
    padding: 10px;
    cursor: pointer;
    border: 1px solid grey;
    margin-right: 10px;
}

.dialog .dialog-body .dialog-message .dialog-message-content .dialog-message-body .dialog-action .dialog-button.dialog-button-edit:hover {
    background-color: #4f739b;
    color: white;
    border-color: #4f739b;
}

.dialog .dialog-body .dialog-message .dialog-message-content .dialog-message-body .dialog-action .dialog-button.dialog-button-edit i {
    margin-bottom: 5px;
}

.dialog .dialog-body .dialog-message .dialog-message-content .dialog-message-body .dialog-action .dialog-button.dialog-button-delete:hover {
    background-color: #e95840;
    color: white;
    border-color: #e95840;
}

.dialog .dialog-body .dialog-message .dialog-message-content .dialog-message-body .dialog-message-text {
    word-wrap: break-word;
    padding-right: 20px;
}

.dialog .dialog-body .dialog-message .dialog-message-content .dialog-message-body .dialog-message-info {
    color: #fff9;
    white-space: nowrap;
    font-size: 12px;
    display: flex;
    justify-content: end;
    align-items: center;
    margin-right: -8px;
}

.dialog .dialog-body .not-my-message .dialog-message-content .dialog-message-body .dialog-message-info {
    color: #9d9e9f;
}

.dialog .dialog-body .dialog-message .dialog-message-content .dialog-message-body .dialog-message-info .dialog-message-status {
    background-position: 50%;
    background-repeat: no-repeat;
    height: 12px;
    margin-bottom: -5px;
    margin-left: 3px;
    width: 14px;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%229%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.25%206.433%201.818%204.001l-.829.822L4.25%208.084l7-7-.822-.822L4.25%206.433Z%22%20fill%3D%22%23FFF9%22%2F%3E%3C%2Fsvg%3E");
}

.dialog .dialog-body .dialog-message .dialog-message-content .dialog-message-body .dialog-message-info .dialog-message-status.delivered {
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2214%22%20height%3D%229%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%201.084%209.678.262%205.979%203.96l.823.823L10.5%201.084Zm2.473-.822L6.802%206.433%204.363%204.001l-.822.822L6.8%208.084l7-7-.828-.822ZM.24%204.823%203.5%208.084l.823-.822L1.068%204l-.829.822Z%22%20fill%3D%22%23ffffff%22%2F%3E%3C%2Fsvg%3E");
    color: white;
}

.dialog .dialog-body .agent-typing {
    display: flex;
    padding-left: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #7e7e7e;
}

/* DIALOG FORM */
.dialog-form {
    display: flex;
    flex-direction: row;
    height: 100px;
    align-items: center;
    background: white;
    padding-left: 16px;
    padding-top: 5px;
    position: relative;
}

.dialog-form .dialog-form-vocabulary {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    background: white;
    border: 1px solid grey;
    position: absolute;
    z-index: 1;
    bottom: 120px;
    left: 15px;
    min-width: 200px;
    max-width: 700px;
}

@media (max-width: 800px) {
    .dialog-form .dialog-form-vocabulary {
        max-width: 300px;
    }
}

.dialog-form .dialog-form-vocabulary:empty {
    border: none;
}

.dialog-form .dialog-form-vocabulary .dialog-form-vocabulary-hide {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid grey;
    border-radius: 5px;
    font-size: 16px;
    color: grey;
    bottom: 0px;
    left: -30px;
    width: 25px;
    height: 25px;
    z-index: 2;
}

.dialog-form .dialog-form-vocabulary .vocabulary-item {
    font-size: 14px;
    display: flex;
    flex-direction: row;
    padding: 10px;
    color: #000;
    cursor: pointer;
}

.dialog-form .dialog-form-vocabulary .vocabulary-item:hover {
    background-color: #d9d9d9;
}

.dialog-form .dialog-form-vocabulary .vocabulary-item .vocabulary-item-rate {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #9a9a9a;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    font-weight: bold;
}

.dialog-form .dialog-form-vocabulary .vocabulary-item .vocabulary-item-rate.three-digits {
    width: 30px;
}

.dialog-form .dialog-form-vocabulary .vocabulary-item .vocabulary-item-message {
    margin-left: 10px;
}

.dialog-form .dialog-form-input {
    font-family: Arial, Arial;
    font-style: normal;
    border: none;
    overflow: auto;
    outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    resize: none;
    padding: 0 20px 0 0;
    margin-bottom: 0 !important;
    width: 290px;
    color: #222d38;
    font-size: 15px;
    height: 70px;
}

.chat-wrapper.agent-chat .dialog .dialog-form .dialog-form-input {
    width: 70%;
}

.dialog-form .dialog-form-button {
    border-radius: 50%;
    cursor: pointer;
    border: none;
    width: 33px;
    height: 33px;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2234%22%20height%3D%2234%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Ccircle%20fill%3D%22%2318c139%22%20cx%3D%2217%22%20cy%3D%2217%22%20r%3D%2217%22%2F%3E%3Cg%20transform%3D%22translate(10%209)%22%20fill%3D%22%23FFF%22%3E%3Crect%20x%3D%226%22%20y%3D%222%22%20width%3D%222%22%20height%3D%2214%22%20rx%3D%221%22%2F%3E%3Crect%20transform%3D%22rotate(-45%209.879%204.879)%22%20x%3D%228.879%22%20y%3D%22-.121%22%20width%3D%222%22%20height%3D%2210%22%20rx%3D%221%22%2F%3E%3Crect%20transform%3D%22scale(-1%201)%20rotate(-45%200%2015.243)%22%20x%3D%223.293%22%20y%3D%22-.121%22%20width%3D%222%22%20height%3D%2210%22%20rx%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");
}

.dialog-form .dialog-form-button.disabled {
    cursor: auto;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2234%22%20height%3D%2234%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Ccircle%20fill%3D%22%23f1f0f0%22%20cx%3D%2217%22%20cy%3D%2217%22%20r%3D%2217%22%2F%3E%3Cg%20transform%3D%22translate(10%209)%22%20fill%3D%22%23FFF%22%3E%3Crect%20x%3D%226%22%20y%3D%222%22%20width%3D%222%22%20height%3D%2214%22%20rx%3D%221%22%2F%3E%3Crect%20transform%3D%22rotate(-45%209.879%204.879)%22%20x%3D%228.879%22%20y%3D%22-.121%22%20width%3D%222%22%20height%3D%2210%22%20rx%3D%221%22%2F%3E%3Crect%20transform%3D%22scale(-1%201)%20rotate(-45%200%2015.243)%22%20x%3D%223.293%22%20y%3D%22-.121%22%20width%3D%222%22%20height%3D%2210%22%20rx%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");
}

/* ADDITIONAL */
.pencil {
    display: inline-block;
    transform: rotate(130deg);
    font-size: 15px;
}
