.thread-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
}

.thread-wrapper .thread-header {
    display: flex;
    align-items: center;
    background: var(--gray-color);
    padding: 5px;
    flex-shrink: 0;
}
.thread-wrapper .thread-header .other-user-infos {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.thread-wrapper .thread-header .other-user-infos .other-user-introduction {
    color: var(--anthracite-color);
    font-size: 12px;
    margin-bottom: 2px;
}
.thread-wrapper .thread-header .other-user-infos .other-user-nick {
    display: inline-block;
    font-weight: bold;
}
.thread-wrapper .thread-header .other-user-infos .other-user-nick .other-user-stars {
    width: 100px;
    height: 0;
    position: relative;
    top: -5px;
    left: 4px;
}
.thread-wrapper .thread-header .other-user-infos .other-user-suspended {
    margin-top: 5px;
    color: var(--red-color);
}
.thread-wrapper .thread-header .other-user-infos .other-user-ending {
    color: var(--anthracite-color);
    font-size: 12px;
}
.thread-wrapper .thread-header .auction-infos {
    width: 100%;
    display: flex;
    align-items: center;
}
.thread-wrapper .thread-header .auction-infos .auction-title {
    max-height: 28px;
    overflow: hidden;
    line-height: 14px;
}
.thread-wrapper .thread-header .auction-infos .auction-id {
    font-size: 12px;
    color: var(--anthracite-color);
}
.thread-wrapper .thread-header .auction-infos .title-and-state-container {
    text-align: right;
    margin-right: 5px;
    width: 100%;
}
.thread-wrapper .thread-header .auction-infos .auction-state {
    padding: 2px 15px;
    color: white;
    display: none;
    border-radius: 5px;
}
.thread-wrapper .thread-header .auction-infos .auction-state[data-state="not-paid"], .thread-wrapper .thread-header .auction-infos .auction-state[data-state="paid"]  { background: var(--anthracite-light-color); display: inline-block; }
.thread-wrapper .thread-header .auction-infos .auction-state[data-state="to-send"], .thread-wrapper .thread-header .auction-infos .auction-state[data-state="to-pay"]  { background: var(--orange-color); display: inline-block; }
.thread-wrapper .thread-header .auction-infos .auction-state[data-state="sent"], .thread-wrapper .thread-header .auction-infos .auction-state[data-state="received"]  { background: var(--green-color); display: inline-block; }
.thread-wrapper .thread-header .auction-infos .auction-state[data-state="refund"] { background: var(--blue-color); display: inline-block; }
.thread-wrapper .thread-header .auction-infos .auction-state[data-state="canceled"]  { background: var(--red-color); display: inline-block; }

.thread-wrapper .thread-header .auction-infos .auction-pict {
    border: 1px solid var(--anthracite-color);
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.thread-wrapper .thread-commands-header {
    background: var(--gray-color);
    padding-left: 10px;
    padding-top: 10px;
    padding-right: 10px;
}

.thread-wrapper .thread-commands-header .commands-header-seller-closure {
    color: var(--orange-color);
}

.thread-wrapper .thread-commands {
    display: flex;
    background: var(--gray-color);
    padding: 5px 0;
    align-items: center;
    flex-shrink: 0;

    position: relative;
}
.thread-wrapper .thread-commands .thread-command-button {
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    overflow: hidden;
    fill: var(--anthracite-color);
    padding: 5px;
    cursor: pointer;
}

.thread-command-button-sender {
    position: absolute;
    right: 20px;
    bottom: 7px;

}

.thread-wrapper .thread-commands .thread-command-button:hover {
    background: var(--gray-color);
    border-radius: 50%;
}
.thread-wrapper .thread-commands .thread-command-text {
    flex-grow: 1;
    min-height: 36px;
    max-height: 30vh;
    resize: none;
    margin: 0 5px 0 5px;
    padding: 5px 40px 5px 5px;

    overflow-wrap: break-word;
    overflow-y: scroll;
}

.thread-wrapper .thread-commands .attachment-file {
    background: var(--blue-color);
    padding: 3px 5px;
    margin: 5px 0 5px 5px;
    border-radius: 5px;
    color: white;
    text-overflow: ellipsis;
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.thread-wrapper .thread-commands .attachment-file .remove-attachment-btn {
    display: none;
    position: absolute;
    right: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    fill: white;
    cursor: pointer;
    border-radius: 2px;
}
.thread-wrapper .thread-commands .attachment-file:hover {
    padding-right: 22px;
}
.thread-wrapper .thread-commands .attachment-file:hover .remove-attachment-btn {
    display: block;
}
.thread-wrapper .thread-commands .attachment-file .remove-attachment-btn:hover {
    display: block;
    background: white;
    fill: var(--blue-color);
}

.cant-post-explanation {
    padding: 10px;
    text-align: center;
    color: var(--anthracite-color);
    width: 100%;
}

.thread {
    padding: 0 10px;
    position: relative;
    overflow-y: auto;
    height: 100%;
}

.thread > div {
    clear: both;
}

.thread .time-marker {
    color: gray;
    font-size: 12px;
    text-align: center;
    padding: 10px 0;
}

.thread .thread-empty-message {
    color: gray;
    font-size: 12px;
    text-align: center;
    padding: 10px 0;
}

.thread .new-messages-delimiter {
    text-align: center;
    color: var(--orange-color);
    position: relative;
    font-size: 12px;
    padding: 10px 0;
}
.thread .new-messages-delimiter::before {
    border-bottom: 1px solid var(--orange-color);
    content: " ";
    width: 30%;
    margin-right: 30px;
    display: inline-block;
    vertical-align: middle;
}
.thread .new-messages-delimiter::after {
    border-bottom: 1px solid var(--orange-color);
    content: " ";
    width: 30%;
    margin-left: 30px;
    display: inline-block;
    vertical-align: middle;
}

.thread .thread-message {
    border-radius: 5px;
    padding: 10px;
    margin: 5px;
    margin-bottom: 15px;
    max-width: 80%;
    position: relative;
}
.thread .thread-message .message-time {
    position: absolute;
    color: var(--anthracite-light-color);
    bottom: -15px;
    font-size: 11px;
    white-space: nowrap;
}
.thread .thread-message.his-message {
    background-color: var(--gray-light-color);
    float: left;
    color: var(--anthracite-color);
}
.thread .thread-message.his-message .message-time {
    left: 5px;
}
.thread .thread-message.my-message {
    background-color: var(--green-color);
    color: white;
    float: right;
}
.thread .thread-message.my-message a {
    color: white;
    text-decoration: underline;
}

.thread .thread-message.my-message .message-time {
    right: 5px;
}
.thread .thread-message.my-message .message-time.message-error {
    color: var(--red-color);
}
.thread .thread-message.deleted {
    border-radius: 5px;
    border: 1px solid var(--red-color);
}
.thread .thread-message.deleted::after {
    content: "supprim\000E9";
    color: var(--red-color);
    position: absolute;
    top: 5px;
}
.thread .thread-message.deleted.my-message::after {
    left: -65px;
}
.thread .thread-message.deleted.his-message::after {
    right: -65px;
}
.thread .delete-message-button {
    position: absolute;
    width: 35px;
    height: 35px;
    fill: var(--red-color);
    top: 0px;
    right: -35px;
    padding: 5px;
    cursor: pointer;
    display: none;
}

.thread .thread-message:hover .delete-message-button {
    display: block;
}

.thread .delete-message-button:hover {
    background: #FCE1E4;
    border-radius: 20px;
}

.thread .event {
    text-align: center;
    padding: 10px 0;
}
.thread .event .event-title {
    position: relative;
    margin: 0 40px;
}
.thread .event .event-title::before {
    border-bottom: 1px solid var(--anthracite-light-color);
    content: " ";
    display: block;
    vertical-align: middle;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 4px;
}
.thread .event .event-title span {
    color: var(--anthracite-color);
    background: white;
    position: relative;
    padding: 0 10px;
    font-weight: bold;
    font-style: italic;
}
.thread .event .event-date {
    font-size: 11px;
    color: var(--anthracite-light-color);
}
.thread .event .event-extra {
    font-size: 12px;
    margin: 5px 40px 0 40px;
    background: var(--gray-light-color);
    padding: 10px;
    border-radius: 5px;
    color: #666;
}

.thread .thread-message .message-attachment {
    text-align: center;
    display: block;
    color: white;
}
.thread .thread-message.his-message .message-attachment {
    color: var(--anthracite-color);
}
.thread .thread-message .message-attachment:hover {
    color: var(--orange-color);
}
.thread .thread-message .message-attachment .attachment-file-img {
    width: 60px;
    height: 60px;
}
