/* **********************************
Reset CSS
************************************** */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}


/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1.5;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/********************************
 Typography Style
******************************** */

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: hidden;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-family: Poppins;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    padding-left: 10px;
}

h3 {
    font-family: Poppins;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
}

p {
    font-size: 15px;
}

a {
    text-decoration: none;
    font-size: 15px;
}

* {
    margin-bottom: 0;
}


/* *******************************
message-area
******************************** */
#scroll {
    overflow-x: hidden;
}
.chat-area {
    position: relative;
    width: 100%;
    background-color: transparent;
    border-radius: 16px;
    border: 1px solid #D9D9D9;
    overflow: hidden;
    height: calc(100vh - 150px);
}

.chat-header {
    border-bottom: 1px solid #D9D9D9;
}

.chatlist {
    outline: 0;
    height: 100%;
    overflow: hidden;
    width: 240px;
    float: left;
}

.chatlist .modal-body {
    padding: 0 !important;
}

@media screen and (min-width: 768px) {
    .chatlist {
        border-right: none !important;
    }
}

@media screen and (max-width: 768px) {
    .chat-area {
        height: 65vh;
    }
}

.chat-area .modal-content {
    border: none;
    border-radius: 0;
    outline: 0;
    height: 100%;
    background-color: transparent;
}

.chat-area .modal-dialog-scrollable {
    height: 100% !important;
}

.chatbox {
    width: auto;
    overflow: hidden;
    height: 100%;
    border-left: 1px solid #D9D9D9;
}

.chatbox .modal-dialog,
.chatlist .modal-dialog {
    max-width: 100%;
    margin: 0;
}

.msg-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-area .form-control {
    display: block;
    width: 80%;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #222;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.chat-area .form-control:focus {
    outline: 0;
    box-shadow: inherit;
}

a.add img {
    height: 36px;
}

.chat-area .nav-tabs {
    border: none;
    /*
    border-bottom: 1px solid #dee2e6;
     */
    align-items: center;
    justify-content: space-between;
    flex-wrap: inherit;
}

.chat-area .nav-tabs .nav-item {
    width: 100%;
}

.chat-area .nav-tabs .nav-link {
    width: 100%;
    color: #180660;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
    margin-top: 5px;
    margin-bottom: -1px;
    background: 0 0;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.chat-area .nav-tabs .nav-item.show .nav-link,
.chat-area .nav-tabs .nav-link.active {
    color: #222;
    background-color: #fff;
    border-color: transparent transparent #000;
}

.chat-area .nav-tabs .nav-link:focus,
.chat-area .nav-tabs .nav-link:hover {
    border-color: transparent transparent #000;
    isolation: isolate;
}

.chat-list {
    padding: 1em;
}
.chat-list:hover,
.chat-list.active {
    background-color: #f6f7eb;
}

.chat-list h3 {
    color: #222;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}

.chat-list p {
    color: #343434;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}

.chat-list a.d-flex {
    margin-bottom: 15px;
    position: relative;
    text-decoration: none;
}

.msg-head h3 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0;
}

.msg-head p {
    color: #343434;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: capitalize;
    margin-bottom: 0;
}

.msg-head {
    padding: 15px 10px 15px 10px;
    border-bottom: 1px solid #D9D9D9;
    border-left: none;
}

.moreoption {
    display: flex;
    align-items: center;
    justify-content: end;
}

.moreoption .navbar {
    padding: 0;
}

.moreoption li .nav-link {
    color: #222;
    font-size: 16px;
}

.moreoption .dropdown-toggle::after {
    display: none;
}

.moreoption .dropdown-menu[data-bs-popper] {
    top: 100%;
    left: auto;
    right: 0;
    margin-top: 0.125rem;
}

.msg-body ul {
    overflow: hidden;
}

.msg-body ul li {
    list-style: none;
}

.msg-body ul li.recipient {
    display: flex;
    width: 100%;
    position: relative;
    flex-direction: row-reverse;
    justify-content: left;
    align-items: end;
}

.msg-body ul li.recipient .direct-chat-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 15px;
    margin-bottom: 10px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.msg-body ul li.recipient .message .direct-chat-img,
.msg-body ul li.me .message .direct-chat-img {
    display: block;
    max-width: 100%;
    width: fit-content;
    height: auto;
    border-radius: 0;
    margin: 0 auto;
}

.msg-body ul li.recipient .message.platform {
    margin: 15px 0;
}

.msg-body ul li.recipient  {
    display: flex;
    justify-content: flex-start;
    align-items: end;
    flex-direction: row;
}

.msg-body ul li.recipient .message,
.msg-body ul li.me .html .message {
    padding: 10px;
    display: inline-block;
    margin-bottom: 0;
    border: 1px solid #D9D9D9;
    border-radius: 16px 16px 16px 0px;
    font-family: 'Poppins';
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #1F1F1F;
    position: relative;
}
.msg-body ul li.recipient .html .message {
    padding-bottom: 20px;
}
.msg-body ul li.me .html .message {
    border-radius: 16px 16px 0px 16px !important;
    padding-bottom: 20px !important;
}

.msg-body ul li.recipient .message b {
    display: block;
    color: #180660;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;

}

.msg-body ul li.me {
    display: flex;
    width: 100%;
    text-align: right;
    position: relative;
    justify-content: flex-end;
    align-items: end;
}

.msg-body ul li.me .message {
    padding: 10px;
    display: inline-block;
    border-radius: 16px 16px 0 16px;
    margin-bottom: 0;
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #1F1F1F;
}

.msg-body ul li.me .chat .message {
    background: #F6F7EB;
}
.msg-body ul li .chat .message p,
.preview {
    word-wrap: anywhere;
}

.msg-body ul li.recipient .chat,
.msg-body ul li.me .chat {
    margin-bottom: 0.2em;
    max-width: 70%;
}

.text-green {
    color: #00a65a !important;
}

.msg-body ul li.me .message .btn-delete {
    width: 25px;
    height: 25px;
    font-size: 12px;
    top: -5px;
    left: -5px;
    border: 3px solid #F6F7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: #fff;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity linear 500ms;
}

.msg-body ul li.me .message:hover .btn-delete {
    opacity: 1;
    transition: opacity linear 500ms;
}

.messages-count {
    width: 20px;
    height: 20px;
    background-color: #1F1F1F;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-body ul li.recipient .message .btn-delete {
    width: 25px;
    height: 25px;
    font-size: 12px;
    top: -5px;
    right: -5px;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: #F6F7EB;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity linear 500ms;
}

.msg-body ul li.recipient .message:hover .btn-delete {
    opacity: 1;
    transition: opacity linear 500ms;
}

.msg-body ul li.recipient p,
.msg-body ul li.me p {
    font-size: 16px;
    white-space: pre-wrap;
}

.msg-body ul li.recipient .message.platform,
.msg-body ul li.me .message.platform,
.msg-body ul li.recipient .message.platform:before,
.msg-body ul li.me .message.platform:before {
    background-color: transparent;
    border: none;
}

.msg-body ul li.me .direct-chat-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-left: 15px;
    margin-bottom: 10px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.msg-body ul li.me .message b {
    display: block;
    color: #061061;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.msg-body ul li.me .message:after {
    display: block;
    content: '';
    clear: both;
}

.time {
    display: block;
    color: rgba(0, 0, 0, .5);
    font-size: 11px !important;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 0.3em;
}
li.me .time {
    text-align: right;
}
li.recipient .time {
    text-align: left;
}

li .message.platform .time {
    text-align: center;
    margin-bottom: 0;
}
li .message.platform .html {
    margin: 0 auto;
}
li .message.platform .html .content {
    font-weight: 500;
    max-width: 50%;
    margin: 0 auto;
}

.divider {
    position: relative;
    z-index: 1;
    text-align: center;
}

.msg-body h6 {
    text-align: center;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    background: #fff;
    display: inline-block;
    padding: 0 5px;
    margin-bottom: 0;
}

.divider:after {
    display: block;
    content: '';
    clear: both;
    position: absolute;
    top: 12px;
    left: 0;
    border-top: 1px solid #D9D9D9;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.send-box {
    padding: 15px;
    border-top: 1px solid #D9D9D9;
    border-left: none;
}

.send-box form {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.send-box .form-control {
    display: block;
    width: calc(100% - 80px);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #222;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    height: 42px;
    cursor: auto;
    padding: 5px !important;
}


.send-box button {
    height: 36px;
    width: 36px;
    background-color: #7458C5;
    color: white;
    border-radius: 50%;
    margin-left: 10px;
}

.send-btns .button-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    text-align: left;
    display: block;
    margin: 0 5px 0 auto;
    overflow: hidden;
}

.send-btns .button-wrapper span.label {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.send-btns .button-wrapper span.label img {
    width: 100%;
    height: 100%;
}

#upload {
    display: inline-block;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.send-btns .attach .form-control {
    display: inline-block;
    width: 120px;
    height: auto;
    padding: 5px 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #343945;
    background-color: #F6F7EB;
    background-clip: padding-box;
    border: 1px solid #F6F7EB;
    border-radius: 3px;
    margin-bottom: 5px;
}

.send-btns .button-wrapper span.label img {
    margin-right: 5px;
}

.button-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    text-align: center;
    margin: 0 auto;
}

textarea.border-red {
    border: 1px solid #1F1F1F !important;
}

button:focus {
    outline: 0;
}

.add-apoint {
    display: inline-block;
    margin-left: 5px;
}

.add-apoint a {
    text-decoration: none;
    background: #F6F7EB;
    border-radius: 8px;
    padding: 8px 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    color: #343945;
}

.add-apoint a svg {
    margin-right: 5px;
}

.chat-icon {
    display: none;
}

.closess i {
    display: none;
}


/*New styles*/

.new-offre {
    width: max-content;
    padding: 1em;
    border-radius: 10px;
    position: relative;
}

.new-offre .article {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.new-offre .article p {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #1F1F1F;
}

.new-offre .article-image {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.new-offre .article .article-content {
    margin-left: 1em;
    padding-left: 1em;
    border-left: 2px solid #1F1F1F;
}

.new-offre .article .article-content div {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.new-offre .article .article-content div p {
    margin-bottom: 0;
}

.new-offre .article p {
    margin-bottom: 0;
}

.new-offre .article .text-green {
    color: #00BF7A;
}

.new-offre .buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 1em;
}

.new-offre .custom-btn {
    height: 35px;
    width: max-content;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-size: 16px;
    line-height: 33px;
    display: block;
    padding: 0 1em;
    margin-top: .5em;
    text-decoration: none;
}

.new-offre .btn-black {
    background: #1F1F1F;
    color: #ffffff;
    border: 1px solid #1F1F1F;
}

.new-offre .btn-outline {
    border: 1px solid #1F1F1F;
    background-color: #FFFFFF;
    color: #1F1F1F;
}


.new-offre .article.refuser .price {
    color: #7B7B7B;
}

.new-offre .article.refuser .btn {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 23px;
    text-align: center;
    color: #7B7B7B;
}

.article strong {
    font-weight: bold !important;
}

.modal-body {
    padding: 0 0.5em !important;
}

textarea {
    resize: none;
}

.msg-body ul li.me .html,
.msg-body ul li.recipient .html {
    display: flex;
    align-items: end;
    max-width: 60%;
}

.msg-body ul li.recipient .html {
    padding: 10px 10px 10px 0;
    flex-direction: row-reverse;
}
.msg-body ul li.me .html {
    padding: 10px 0 10px 10px;
}

.chat_bouble .order_card {
    margin-bottom: 0;
}
.chat_bouble .html .message a {
    display: inline-block;
}

.last-message-time,
.preview {
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    color: #737373;
}

/*Responsive*/
@media screen and (max-width: 768px) {
    .chat-area {
        position: relative;
        width: 100%;
        background-color: transparent;
        border-radius: 16px;
        border: 1px solid #D9D9D9;
        overflow: hidden;
        height: calc(100vh - 150px);
    }

    .order_card .d-flex {
        flex-direction: column;
    }

    .chat_bouble .html .message {
        max-width: calc(100vh - 40px);
    }

    .msg-body ul li .direct-chat-img {
        width: 25px;
        height: 25px;
        margin: 0px !important;
    }

    .msg-body ul li.recipient .chat {
        margin-left: 5px;
    }
    .msg-body ul li.me .chat {
        margin-left: 5px;
    }

    .msg-body ul li.recipient .html,
    .msg-body ul li.me .html {
        gap: 5px;
        max-width: 100%;
    }

    .msg-body ul li.me .html {
        display: flex;
        align-items: flex-end;
        gap: 5px;
    }

    .msg-body ul li.recipient .html .message,
    .msg-body ul li.recipient .html .message .new-offre,
    .msg-body ul li.me .html .message,
    .msg-body ul li.me .html .message .new-offre {
        padding: 10px;
    }

    .msg-body ul li.recipient .html .message p,
    .msg-body ul li.me .html .message p {
        font-size: 14px;
        padding: 0;
    }

    .msg-body ul li.recipient .html .message p a,
    .msg-body ul li.me .html .message p a {
        margin-top: 3px;
    }

    .msg-body ul li.me .html .message:before {
        top: -10px;
        right: 0;
        border-color: transparent transparent #F6F7EB transparent;
        -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
        transform: rotate(0);
    }

    .new-offre .custom-btn {
        font-size: 12px;
        height: 25px;
        line-height: 22px;
    }

    .new-offre .article .article-content {
        margin-left: .5em;
        padding-left: .5em;
        border-left: 2px solid #1F1F1F;
    }

    .msg-body ul li .message.platform .col-md-2.col-sm-3 { 
        max-width: 40vw;
        margin: 0 auto;
    }
    .msg-body ul li .message.platform .col-md-10.col-sm-9 { 
        text-align: center;
        margin: 0 auto;
    }

    .msg-body ul li.recipient .message.platform,
    .msg-body ul li.me .message.platform,
    .msg-body ul li.recipient .message.platform:before,
    .msg-body ul li.me .message.platform:before {
        background-color: transparent;
        border: none;
        text-align: center;
    }

    .msg-head {
        border: 1px solid #ccc;
        border-right: none;
        border-left: none;
    }

    .chat-icon {
        display: block;
        padding: 10px;
        margin-right: 5px;
        cursor: pointer;
    }

    .chatlist {
        width: 100%;
    }

    .chatbox {
        width: 100%;
        position: absolute;
        left: 1000px;
        right: 0;
        background: white;
        transition: all 0.5s ease;
    }

    .showbox {
        left: 0 !important;
        transition: all 0.5s ease;
    }

    .msg-head h3 {
        font-size: 14px;
    }

    .msg-head p {
        font-size: 12px;
    }

    .msg-head .flex-shrink-0 img {
        height: 30px;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    .chat-list h3 {
        font-size: 14px;
    }

    .chat-list p {
        font-size: 12px;
    }

    .chat-list img {
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    .msg-body ul li.recipient p {
        font-size: 12px;
        padding: 8px;
        border-bottom-left-radius: 6px;
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
    }

    .msg-body ul li.me p {
        font-size: 12px;
        padding: 8px;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        border-bottom-left-radius: 6px;
    }

    .send-btns .button-wrapper {
        width: 40px;
    }

    .msg-body ul li.me .message,
    .msg-body ul li.recipient .message {
        padding: 0;
    }

    li .message.platform .html .content {
        max-width: 100%;
    }

    .chat-area {
        border-radius: 0;
    }
    .message-area .container-lg {
        padding: 0 !important;
    }
}

