.rs-product-box-3 {
    flex-direction: row;
}
.rs-product-box-3 img{
    width: 208px;
    height: 136px;
    border-radius: 8px 0 0 8px;
}
.rs-product-details-btn-3 {
    flex: auto !important;
    justify-content: center !important;
    height: 40px;
}
.rs-product-details-btn-4 {
    flex: auto !important;
}

.rs-product-btn-2 .rs-product-offer-btn {
    flex: auto !important;
}

.rs-product-price-menu ul > li .rs-product-price-dropdown ul li a {
    cursor: pointer;
}

.rs-header-main-menu nav ul li.active {
    color: var(--tp-red-color);
    border-bottom: 2px solid var(--tp-red-color);
}

#message-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#product-box {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 12px !important;
}

#product-box:empty {
    display: none;
}

#product-box .chat-product-card {
    width: 100% !important;
    height: 104px !important;
    min-height: 104px;
    margin: 0 !important;
    overflow: hidden;
    flex-wrap: nowrap !important;
    gap: 12px !important;
}

#product-box .chat-product-card .rs-product-thumb {
    flex: 0 0 128px;
    width: 128px;
    height: 100%;
}

#product-box .chat-product-card .rs-product-thumb img {
    width: 128px !important;
    height: 100% !important;
    border-radius: 8px 0 0 8px !important;
    object-fit: cover;
}

#product-box .chat-product-card .rs-product-content {
    justify-content: center;
    min-width: 0;
    padding: 8px 12px !important;
}

#product-box .chat-product-card .rs-product-location a,
#product-box .chat-product-card .rs-product-condition {
    font-size: 11px;
    line-height: 16px;
    margin-bottom: 4px !important;
}

#product-box .chat-product-card .rs-product-title {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 4px !important;
}

#product-box .chat-product-card .rs-product-price b {
    font-size: 16px;
    line-height: 20px;
}

#chat-box {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    clear: both;
    height: auto !important;
    position: relative;
}

#chat-box .chat-avatar {
    border-radius: 50% !important;
    flex: 0 0 36px;
    height: 36px !important;
    object-fit: cover;
    width: 36px !important;
}

#chat-box .media-only {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#chat-box .media-only .chat-image {
    margin: 0;
}

#chat-box .chat-media {
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    cursor: pointer;
    display: block;
    height: 150px !important;
    object-fit: cover;
    outline: 0 !important;
    width: 150px !important;
}

.chat-attachment-preview {
    align-items: center;
    background: var(--tp-white-color);
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 8px 10px;
}

.chat-attachment-thumb {
    border-radius: 8px;
    flex: 0 0 64px;
    height: 64px;
    overflow: hidden;
    position: relative;
    width: 64px;
}

.chat-attachment-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.chat-attachment-remove {
    align-items: center;
    background: rgba(23, 24, 29, 0.72);
    border: 0;
    border-radius: 999px;
    color: var(--tp-white-color);
    display: flex;
    font-size: 18px;
    height: 22px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 22px;
}

.chat-attachment-info {
    min-width: 0;
}

.chat-attachment-info strong,
.chat-attachment-info span {
    display: block;
}

.chat-attachment-info strong {
    color: var(--tp-heading-color);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-attachment-info span {
    color: var(--tp-grey-color-4);
    font-size: 11px;
    line-height: 16px;
}

.chat-attachment-change {
    background: transparent;
    border: 0;
    color: var(--tp-red-color);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    padding: 4px 0;
}

@media (max-width: 575px) {
    .chat-attachment-info strong {
        max-width: 150px;
    }
}
