/** ---------- Chat ----------**/
/* publish icon button */
.chat-icon-btn {
    background: #eee url("../../cms/images/chat.svg") center no-repeat;
    background-size: 52%;
}
.chat-icon-btn:hover {
    border-color: #1b9581;
}

.chat {
    width: 80%;
    margin: auto;
    position: relative;
    padding: 0 1.5rem;
    padding-bottom: 11.2rem;
    overflow: hidden;
    color: #666666;
}
@media only screen and (max-width: 768px) {
    .chat {
        width: 100%;
    }
}
.chat .chat-item {
    position: relative;
    max-width: 80%;
    padding: 2rem 0;
    display: flex;
}
@media only screen and (max-width: 768px) {
    .chat .chat-item {
        max-width: 90%;
    }
}
@media only screen and (max-width: 576px) {
    .chat .chat-item {
        max-width: 100%;
    }
}
.chat .chat-text {
    box-shadow: 0 0.5px 5px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border-top-left-radius: 1px;
    line-height: 1;
    font-size: 1rem;
    padding: 1rem;
}
.chat .chat-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.chat .chat-user,
.chat .chat-time {
    display: inline-block;
    padding: 5px 0;
    font-size: 1rem;
    color: #177f6f;
}
.chat .chat-user {
    font-size: 1rem;
    font-weight: bold;
}
.chat .chat-time {
    padding: 0 5px;
    color: #aaa;
}
.chat .option {
    position: absolute;
    bottom: -0.8rem;
    left: 10rem;
    display: none;
}
.chat .option .icon-btn {
    background-color: transparent;
    background-size: 40%!important;
    width: 2rem;
    height: 2rem;
}
.chat .chat-out {
    width: 100%;
    text-align: right;
}
.chat .chat-out .chat-item {
    float: right;
}
.chat .chat-out .chat-avatar {
    order: 2;
    margin-right: 0;
    margin-left: 2rem;
}
.chat .chat-out .chat-text {
    text-align: left;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
    border-radius: 15px;
    border-top-right-radius: 1px;
}
.chat .chat-out .chat-user {
    color: #315595;
}
.chat .chat-out .option {
    right: 8rem;
}
.chat .chat-out .option .icon-btn {
    background-color: rgba(0, 0, 0, 0.1);
}

.chat-out::after {
    content: "";
    clear: both;
    display: table;
}

.chat-item:hover .delete-icon-btn {
    display: block;
}
.chat-item:hover .option {
    display: block;
}

.chat-from {
    height:30%;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    padding: 3rem 0;
    padding-left: 19%;
    padding-right: 2rem;
    background-color: #ffffff;
}
@media only screen and (max-width: 992px) {
    .chat-from {
        padding-left: 26%;
    }
}
.chat-from .form {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.chat-from .form .form-group {
    width: 100%;
    padding: 0;
    margin-bottom: 0;
}
.chat-from .form .form-textarea {
    padding: 1.2rem;
    padding-bottom: 0;
}
.chat-from .form .button {
    margin: 0;
    margin-left: 1rem;
}

.side-menu-collapes ~ .main-dashboard .chat-from {
    padding-left: 7%;
}
@media only screen and (max-width: 992px) {
    .side-menu-collapes ~ .main-dashboard .chat-from {
        padding-left: 10%;
    }
}
@media only screen and (max-width: 768px) {
    .side-menu-collapes ~ .main-dashboard .chat-from {
        padding-left: 8rem;
    }
}
@media only screen and (max-width: 576px) {
    .side-menu-collapes ~ .main-dashboard .chat-from {
        padding-left: 7rem;
    }
}

.dark-mode .chat {
    color: #bbb;
}

.dark-mode .chat-from {
    background-color: #2a2a35;
}

/** ---------- end Chat ----------**/

/** ---------- Order ----------**/
.order-clip {
    padding: 2rem 1.5rem;
    font-size: 1.5rem;
    line-height: 1.5;
}
.order-clip .order-clip-item {
    padding: 0.8rem 0;
    display: flex;
}
.order-clip .order-clip-head {
    flex-shrink: 0;
}
.order-clip .order-clip-body {
    font-weight: 600;
    padding-left: 3rem;
}
.order-clip .order-id {
    color: #1eab94;
}
.order-clip .badge {
    margin: 0 !important;
    margin-left: 3rem !important;
}
.order-clip .order-clip-amount .order-clip-item {
    margin: 1rem 0;
    padding: 2rem 0;
    border-top: 1px solid #ddd;
    font-weight: 600;
}
.order-clip .order-clip-address {
    font-weight: 600;
}
.order-clip .order-clip-address .order-clip-item {
    display: block;
}
.order-clip .order-clip-address .order-clip-head {
    display: block;
    padding-bottom: 0.5rem;
}
.order-clip .order-clip-address .order-clip-body {
    display: block;
    padding: 0.5rem 0;
    font-weight: 400;
}
