﻿.chat {
    background-image: url(imgs/bg-chat-tile-dark_a4be512e7195b6b733d9110b408f075d.png);
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chat-header {
    width: 100%;
    background: white;
    padding: 10px 15px;
    border: 1px solid gainsboro;
    border-radius: 5px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-body {
    flex: 1;
    flex-grow: 1;
    padding: 0 10px;
    padding-bottom: 15px;
    min-height: 350px;
    max-height: 350px;
    overflow: auto;
    scroll-behavior: smooth;
}

.chat-footer {
    background: white;
    border-top: 1px solid gainsboro;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.chat-header .customer-info {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.chat-header .avatar {
    border: 1px solid #f7cdcd;
    background: #f7dada;
    border-radius: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inbound .message-avatar {
    border: 1px solid #f7cdcd;
    background: #f7dada;
}

.outbound.bot .message-avatar {
    background: #7cdaff;
    border: 1px solid gainsboro;
}

.outbound.toyota .message-avatar {
    background: #eb0a1e;
    border: 1px solid gainsboro;
}

.message-bubble-wrapper {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .message-bubble-wrapper.outbound {
        align-items: flex-end;
    }

    .message-bubble-wrapper.inbound {
        align-items: flex-start;
    }

.message-bubble, .action-buttons-wrapper .action-button {
    padding: 5px 10px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 1px 0px 0px #d0d0d0;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

    .message-bubble.img-message {
        flex-direction: column;
        align-items: flex-end;
    }

.outbound .message-bubble {
    border: 1px solid #f7cdcd;
    background: #f7dada;
}

.outbound.bot .message-bubble, .action-buttons-wrapper .action-button {
    border: 1px solid #ace8ff;
    background: #beeafb;
}

.outbound .message-bubble.local-message {
    opacity: 0.6;
    background: #f9f9f9;
    border: 1px solid gainsboro;
}

.inbound .message-bubble {
    border: 1px solid #d7d7d7;
    background: #dbffe2;
}

.message-bubble .message-date {
    font-size: 10px;
    opacity: 0.4;
    font-weight: bold;
}

.message-bubble .message-status {
    display: flex;
    opacity: 0.6;
}

.message-bubble .message-img {
    max-width: 400px;
}

.chat-footer .chat-input {
    height: 50px;
    outline: none;
    padding: 0px 10px;
    flex-grow: 1;
}

.action-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    justify-items: center;
}

    .action-buttons-wrapper .action-button {
        display: block;
        padding: 5px;
        min-width: 200px;
        text-align: center;
    }

.spin-icon .mud-chip-icon, .spin-icon.mud-icon-root {
    -webkit-animation: spin 1.3s ease-in-out infinite;
    -moz-animation: spin 1.3s ease-in-out infinite;
    animation: spin 1.3s ease-in-out infinite;
}

@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
