/* STYLE V2 */
.im-mobile-quick-actions {display:none;}
.im-mobile-item-link {display:none;}
.im-file-messages .im-mobile-item-link {display:flex !important;align-items:center;}
@media screen and (min-width: 768px) {
  .im-file-messages .im-mobile-item-link {display:none !important;}
}
.im-mobile-toggle-info {display:none;}
.im-mobile-toggle-item {display:none;}
.im-table-row .im-del-mes-box {position:absolute;width:32px;height:28px;right:-32px;left:auto;top:0px;margin:0;padding:0 0 0 4px;}
.im-table-row.im-from .im-del-mes-box {left:-32px;right:auto;padding:0 4px 0 0;}
.im-table-row .im-del-mes-box > a {width:28px;height:28px;padding:0;text-align:center;font-size:16px;color:#888;border-radius:5px;transition:0.1s;display:none;}
.im-table-row .im-del-mes-box > a i {line-height:28px;}
.im-table-row .im-del-mes-box > a:hover {background:rgba(0,0,0,0.1);}
.im-table-row:hover .im-del-mes-box > a {display:block;}
.im-limits-info {display:inline-block;width:100%;margin:0 0 16px 0;padding:10px;border:1px solid #ccc;border-radius:5px;border-left:4px solid #895bae;background:#ffffff;}

/* Threads list: search by order id / username */
.im-threads-search {width:100%;margin:0 0 16px 0;padding:12px 14px;border:1px solid rgba(15,23,42,0.10);border-radius:12px;background:#f8fafc;box-sizing:border-box;}
.im-threads-search-row {display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;}
.im-threads-search-field {display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 160px;}
.im-threads-search-label {font-size:11px;font-weight:800;letter-spacing:0.04em;text-transform:uppercase;color:rgba(15,23,42,0.55);}
.im-threads-search-field input[type="text"] {width:100%;max-width:100%;box-sizing:border-box;padding:9px 11px;border:1px solid rgba(15,23,42,0.14);border-radius:10px;font-size:14px;line-height:1.2;background:#fff;}
.im-threads-search-field input[type="text"]:focus {outline:none;border-color:rgba(59,130,246,0.45);box-shadow:0 0 0 3px rgba(59,130,246,0.12);}
.im-threads-search-actions {display:flex;flex-wrap:wrap;align-items:center;gap:10px;flex:0 0 auto;}
.im-threads-search-btn {padding:9px 16px;border:none;border-radius:10px;background:#111827;color:#fff;font-size:14px;font-weight:700;cursor:pointer;line-height:1.2;}
.im-threads-search-btn:hover {filter:brightness(1.06);}
.im-threads-search-clear {font-size:14px;font-weight:700;color:#3b49df;text-decoration:none;}
.im-threads-search-clear:hover {text-decoration:underline;}
@media screen and (max-width: 520px) {
  .im-threads-search-actions {width:100%;}
  .im-threads-search-btn {flex:1 1 auto;}
}

/* PAGINATION */
.im-pagination {float:left;clear:both;width:100%;background:transparent;padding:15px 0;margin:15px 0 0 0;border-top:none;position:relative;z-index:2;text-align:center;}
.im-pagination a {text-decoration:none;display:inline-block;float:none;margin:0 2px;text-decoration:none;background:#fff;padding:6px 3px;min-width:32px;height:32px;line-height:18px;color:#444;font-weight:normal;border-radius:4px;border:1px solid rgba(0,0,0,0.15);font-size:14px;text-align:center;}
.im-pagination span {display:inline-block;text-decoration:none;float:none;margin:0 4px;padding:6px 3px;height:32px;line-height:18px;color:#999;font-weight:normal;font-size:14px;text-align:center;}
.im-pagination a:hover, .im-pagination a.im-active {background:#333;color:#fff;text-decoration:none;}


.im-html {float:left;clear:both;width:100%;}
@media screen and (max-width: 767px) {
  body.file-messages.eps-chat-modal-open .im-html.im-file-messages {background: #111827 !important;}
  body.file-messages.eps-chat-modal-open #user-main, body.file-messages.eps-chat-modal-open .user-custom-box, body.file-messages.eps-chat-modal-open .container.primary {background: #111827 !important;}
}
body.plugin-instant_messenger.file-messages.eps-chat-modal-open #flashbox, body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #flashbox {display:none !important;}
body.plugin-instant_messenger.file-messages.eps-chat-modal-open .vrool-footer, body.plugin-instant_messenger.file-messages.eps-chat-modal-open #footer-mobile-toggle, body.plugin-instant_messenger.file-messages.eps-chat-modal-open footer {display:none !important;}
@media screen and (min-width: 768px) {
  body.plugin-instant_messenger.file-messages #flashbox, body.body-ua.plugin-instant_messenger.file-messages #flashbox {display:block !important;}
}
@media screen and (max-width: 767px) {
  body.plugin-instant_messenger.file-messages.eps-chat-modal-open #vrool-input-shell {background: #111827 !important; margin: 0 !important; padding: 8px 12px 12px 12px !important;}
  body.plugin-instant_messenger.file-messages.eps-chat-modal-open .im-table.im-messages {margin-bottom: 0 !important; max-height: none !important; min-height: calc(100vh - 130px) !important; border-radius: 0 !important; padding-bottom: 200px !important;}
  body.plugin-instant_messenger.file-messages.eps-chat-modal-open #user-main {background: #111827 !important;}
  body.plugin-instant_messenger.file-messages.eps-chat-modal-open .user-custom-box {background: #111827 !important;}
}
body .im-threads .im-table-row.im-unread:before {display:none;}
body .im-threads .im-table-row.im-unread {border-left: 3px solid #4182c3; background: #f0f5fb;padding-left:10px;}
body .im-threads-exist a .im-title, body .im-threads-exist a .im-from-to strong {font-weight:600;}
body .im-threads-exist a .im-pms, body .im-threads-exist a .im-time {font-style:normal;font-size:14px;}
body .im-threads-exist a .im-title, body .im-threads-exist a .im-from-to, body .im-threads-exist a .im-from-to strong {font-size:14px;}
body .im-threads-exist a {border-radius:6px;padding:13px 15px;border:none;background:#1d1c1c;box-shadow:0 1px 0 rgba(0,0,0,0.1);margin:0 0 5px 0;}
body .im-file-create-thread h2.im-head {display: block; text-align: left; width: 70%; float: left; margin: 5px 3% 20px 0; font-weight: 600; font-size: 28px; line-height: 32px; color: #111;}
body form#im-create-thread-form {float:left;clear:none;box-shadow: 0 1px 3px rgba(0,0,0,0.2); display: block; border-radius: 6px; padding: 20px 25px 30px 25px; margin: 0px 0 20px; background: #f7f7f7;width:70%;margin-right:3%;}
body .im-theme-alpha form#im-create-thread-form {box-shadow:none;border:none;}
body .im-file-create-thread .im-error-list.error-list {float:left;clear:left;width:70%;margin:0 3% 0 0;}
body .im-file-create-thread .im-label {margin:0 0 2px 0;font-size:14px;}
body #im-create-thread-form .im-input {max-width:320px;margin-bottom:8px;padding: 10px 8px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.15); box-shadow: none; line-height: 18px;height:38px;}
body #im-create-thread-form  #im-message  {padding: 10px 8px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.15); box-shadow: none; line-height: 18px;overflow-y:auto;}
body #im-create-thread-form .im-textarea {height:120px;}
body #im-create-thread-form button.im-button-green {height:38px;padding:9px 16px;border:none!important;line-height:22px;font-size:14px;font-weight:bold;border-radius:5px;}
body #im-create-thread-form .im-attachment {margin:0 0 0 10px;}
body #im-create-thread-form .im-attachment .im-att-box .im-wrap {height:38px;padding:11px 14px;}
body .im-file-create-thread h3.im-head {margin:10px 0 5px 0;font-size:14px;font-weight:600;}
body .im-messages .im-message-extra.im-box-gray .im-col-10 {width:100%;}
body .im-messages .im-message-extra.im-box-gray {position:relative;padding:10px 44px 10px 0!important;margin:0;border:none;background:transparent;text-align:left;}
body .im-messages .im-message-extra.im-box-gray .im-col-10 {width:100%;}
body .im-messages .im-message-extra a.im-download {float:left;width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:14px;}
body .im-messages .im-message-extra a.im-download .im-att-icon {display:none;}
body .im-messages .im-message-extra a.im-download > i {display:inline-block!important;margin-right:6px;float:left;line-height:14px;}
body .im-messages .im-message-extra a.im-hide > span {display:none!important;}
body .im-messages .im-message-extra a.im-hide > i {display:block!important;}
body .im-messages .im-message-extra a.im-hide {transition:0.1s;position:absolute;width:32px;height:32px;padding:6px;text-align:center;font-size:14px;color:#666;border-radius:4px;top:1px;right:0;}
body .im-messages .im-message-extra a.im-hide i {line-height:20px;}
body .im-messages .im-message-extra a.im-hide:hover {background:#f0f0f0;}
body .im-messages .im-message-extra .im-col-14.im-align-right {position:initial;}

body .im-table-row > div.no-img {padding-left:56px;}

body .im-block .im-table-row {background:#fff;padding:1px 0;margin:0;border-radius:0px;box-shadow:none;overflow:hidden;border:none;border-bottom:1px solid #ddd;}
body .im-block .im-table-row .im-col-22 {padding-left:3px;}
body .im-block .im-table-head + .im-table-row {border-top:1px solid #ddd;font-size:14px;}
body .im-block .im-table-row .im-align-left {font-size:14px;font-weight:600;}
body .im-table-head {border-bottom:none;font-weight:bold;}
body .im-block .im-remove-block {padding:8px;height:32px;width:32px;line-height:16px;text-align:center;border-radius:4px;font-size:14px;margin:-8px 0;transition:0.1s;display:inline-block;color:#666;}
body .im-block .im-remove-block i {line-height:16px;}
body .im-block .im-remove-block:hover {background:#e0e0e0;}
body .im-block .im-table-head {padding:0;white-space:nowrap;}
body .im-threads .im-line {float:left;clear:both;}
body .im-threads .im-title a {float:left;}
body .im-threads .im-title.im-recipient a {float:none;color:#484747;text-decoration:underline;display:inline;font-size:13px;}
body .im-threads .im-title.im-recipient a:hover {color:#000;text-decoration:none;}
body .im-threads .im-table-head {font-weight:bold;color:#555;font-size:13px;border:none;padding:0;white-space:nowrap;}
body .im-threads .im-table-head > div, body .im-block .im-table-head > div {padding-left:3px;padding-right:3px;}
body .im-block .im-table-head {font-weight:bold;color:#555;font-size:13px;border:none;padding:0;white-space:nowrap;}
body .im-threads .im-title a.im-block-thread {padding:2px;line-height:16px;}
body .im-threads .im-table-row {margin:0 0 10px 0;border-radius:0px;border:none;overflow:hidden;padding:0 0 10px 0;background:#fff;border-bottom:1px solid #ddd;}
body .im-threads .im-table-head + .im-table-row {padding-top:10px;border-top:1px solid #ddd;}
body .im-block .im-table-head strong {line-height: 18px;}
body .im-threads .im-special i {font-size:16px;}
body .im-threads .im-special a {transition:0.1s;display:inline-block;width:34px;height:34px;text-align:center;padding:8px 5px;border-radius:4px;margin:-8px 0;}
body .im-threads .im-special a:hover {background:#e0e0e0;color:#666;}
body .im-threads .im-special a:hover i {color:#666;}
body .im-threads .im-title a {font-weight:600;font-size:14px;}
body .im-threads .im-time {font-style:normal;}
body .im-vertical {display:none;}
body .im-messages .im-message-content .im-align-left {font-size:14px;}
/* Generic .im-table-row > div.im-line uses text-align:center — keep chat body left-aligned and wrapping */
body .im-messages .im-message-content,
body .im-messages .im-message-content .im-col-24.im-align-left,
body .im-messages .im-message-content .im-align-left {
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.im-messages .im-msg-empty-placeholder {
  display: inline-block;
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
  color: #64748b;
  opacity: 0.95;
}
body .im-table-row .im-horizontal {top: -6px; right: auto; left: -70px; width: 56px; height: 56px;margin:0;display:none !important;}
body .im-table-row .im-horizontal .right {width: 56px; height: auto; padding: 0; border: none; border-radius: 8px; background: #f6f6f6; box-shadow: 0 2px 8px rgba(0,0,0,0.25);}
body .im-table-row .im-horizontal .right img {opacity:1;border-radius:6px;width:100%;height:auto;}
body .im-table-row.im-from .im-horizontal {right:-70px;border-radius:6px;left:auto;padding:0;display:none !important;}
body .im-table-row.im-from .im-horizontal .right {left:auto;border-radius:6px;}
body .im-messages .im-table-row {min-width:100px;max-width:85%;background: #99f6e4 !important; border-radius: 8px;margin:0 0 28px 8px; width: auto; border: none; box-shadow: 0 1px 2px rgba(0,0,0,0.15);padding:8px 14px 2px 14px;border-top-left-radius:0;}
@media screen and (min-width: 768px) {
  body .im-messages .im-table-row {background: #ccfbf1 !important; border: 1px solid rgba(0,0,0,0.1) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;}
  body .im-messages .im-table-row.im-from {background: #fff !important; border: 1px solid rgba(0,0,0,0.1) !important;}
}
body .im-messages .im-table-row.im-incoming-unread {
  border-left: 4px solid #ad6dee;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.18), 0 0 0 1px rgba(16, 185, 129, 0.12);
  background: #f0fdfa !important;
}
body .im-messages .im-table-row.im-from {margin-left:0;margin-right:8px;border: none;border-radius:8px;border-top-right-radius:0;background: rgba(255,255,255,0.92) !important;}
body .im-messages .im-date {font-style:normal;font-size:10px;line-height:14px;color:#aaa;position: absolute; top: calc(100% + 5px); right: 2px;width:auto;}
body .im-messages .im-date > span {font-size:10px;}
body .im-messages .im-from .im-date {right:auto;left:2px;}
body .im-messages .im-date:before {display:none;}
body .im-messages .im-date > i.fa-check {margin-left:2px;display:inline-block;line-height:14px;font-size:11px;}
body .im-table-row > div.im-line {padding:0;margin:0 0 10px 0;}
body .im-table-row > div.im-line.im-box-empty {display:none;}
body .im-table-row > div.im-line.im-name-top {margin:0;padding:0;display:initial;}
body .im-table-row > div.im-line.im-name-top .im-name {display:none;}
body .im-table-row > div.im-line br + br {display:none;}
body .im-file-messages > h2.im-head {display:none;}
body .im-alt-head {display:block!important;float:left;clear:both;width:100%;padding:0;margin:0 0 30px 0;}
body .im-alt-head .im-head2 {width: 100%;float:left;margin:0;font-weight: 400;font-size: 22px; line-height: 26px; color: #111;position:relative;padding-right:110px;}
body .im-alt-head .im-head2 > span {display:inline-block;width:100%;}
body .im-alt-head .im-head2 > em {margin:4px 0 0 0;display:inline-block;width:100%;font-size:11px;line-height:14px;color:#888;font-weight:400;}
a.im-remove-thread {position:absolute;right:0;top:0;font-size:14px;padding:6px 8px;text-decoration:none;line-height:18px;font-weight:bold;color:#444;background:#e0e0e0;border-radius:4px;transition:0.1s;max-height:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
a.im-remove-thread i {margin-right:4px;display:inline-block;}
a.im-remove-thread:hover {background:#d0d0d0;color:#333;text-decoration:none;}
body .im-alt-head .im-subhead2 {width: 100%;float:left; clear:both;font-size:11px;color:#999;line-height:14px;margin:5px 0 0 0;}

body.body-ua.plugin-instant_messenger.file-messages .im-head-row h2.im-head {
  font-size: 22px !important;
  line-height: 26px !important;
  font-weight: 400 !important;
}

body.body-ua.plugin-instant_messenger.file-messages #vrool-chat-meta {
  font-size: 9px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}

body.body-ua.plugin-instant_messenger.file-messages #vrool-chat-meta strong,
body.body-ua.plugin-instant_messenger.file-messages #vrool-chat-meta span {
  font-weight: 400 !important;
}

body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-status {
  font-size: 9px !important;
  font-weight: 400 !important;
}

body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-status > div:first-child {
  font-size: 8px !important;
  font-weight: 400 !important;
}

body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-status span {
  font-size: 9px !important;
  font-weight: 400 !important;
}
.im-table.im-messages {float:none;width:100%;margin:0;}
body .im-file-messages #im-error-list {float:none;width:100%;margin:0;}
body .im-row.im-item-related {float:none;width:100%;background:#fff;border:none;padding:0;border-radius:6px;margin:0;}
body #im-message-form {padding:0;background:transparent;border:none;position:relative;width:calc(100% - 296px);margin:20px 0 20px 0;}
body #im-message {padding:15px 115px 15px 15px;overflow-y:hidden;font-size:14px;border-radius:6px;border:1px solid rgba(0,0,0,0.1);max-height:455px;box-shadow:0 1px 5px rgba(0,0,0,0.1);line-height:18px;height:50px;min-height:50px;width:100%;max-width:100%;min-width:100%;}
body #im-message-form button:not(.im-button-alt) {display:none;}
body #im-message-form button.im-button-alt {display:block!important;position:absolute;right:7px;top:7px;height:36px;line-height:18px;border:none!important;border-radius:6px;padding:9px 5px;width:44px;text-align:center;font-size:15px;font-weight:bold;}
body #im-message-form button.im-button-alt i {text-align:center;line-height:16px;font-size:16px;}
body #im-message-form button.im-button-alt i:before {font-weight:400;}
body #im-message-form button.im-button-alt.btn-disabled, body #im-message-form button.im-button-alt:disabled {opacity:0.5;cursor:wait;}
body #im-message-form button.im-button-alt.btn-disabled i:before {content:"\f1ce";}
body #im-message-form .im-attachment {position:absolute;right:58px;top:7px;height:36px;margin:0;overflow:hidden;width:auto;}
body .im-attachment .im-att-box .im-status .im-wrap span {max-width: 100px; overflow: hidden; display: inline-block; white-space: nowrap; text-overflow: ellipsis;}
body .im-attachment .im-att-box .im-status .im-wrap span .im-def-text {display:none;}
body .im-attachment .im-att-box .im-wrap {padding:10px 10px;background:#ddd;border-radius:6px;color:#444;transition:0.1s;height:36px;}
body .im-attachment .im-att-box .im-wrap:hover {background:#d0d0d0;}
body .im-attachment .im-att-box .im-status i {font-size:16px;line-height:16px;text-align:center;margin:0;}
body .im-attachment .im-att-box .im-status {color:#666;}

body #vrool-safety-note {width:68%;margin:16px 5% 10px 0;}

body .im-item-related {box-shadow: 0 1px 3px 0 rgba(0,0,0,0.20);width:100%;}
body .im-item-related .im-item-resource {width:100%;max-width:100%;padding:0;position:relative;margin: 0; overflow: hidden; border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom: 1px solid #eee;}
body .im-item-related .im-item-resource img {background-size: cover; width: 100%; max-height: 100%; padding:0;border:none;max-width: 100%; transition: 0.2s; overflow: hidden; background-position: center center;}
body .im-item-related .im-item-resource img:hover {transform: scale(1.1); max-height: 100%; overflow: hidden;}
body .im-item-related .im-item-resource + div.im-col-21 {box-shadow: 0 0px 1px 0 rgba(0,0,0,0.2); float: left; width: 100%; padding: 14px 2px; margin-top: -10px; z-index: 3; position: relative; background: #fff; border-radius: 6px;}
body .im-item-related .im-line {float: left; font-size: 14px; clear: both; font-weight: normal; color: #363433; margin: 0px 0 8px 0; padding: 0 10px 0 10px; height: 18px; white-space: nowrap; width: 100%; overflow: hidden; word-break: break-all; text-overflow: ellipsis;}
body .im-item-related .im-line a {color: #363433;font-weight:normal;font-size:14px;}
body .im-item-related .im-item-price {max-width: 100%; float: left; clear: both; font-weight: bolder; color: #000; margin: 0; padding: 0 5px 0 10px; position: relative; font-size: 17px; line-height: 20px;}
body .im-item-related .im-line.im-item-location {display:none;}

body .im-item-related .im-line.im-vrool-actions {height:auto;overflow:visible;white-space:normal;}

/* Two-column layout: messages left, sidebar right — using wrapper div */
@media screen and (min-width: 768px) {
  .im-html.im-file-messages > .im-sidebar-wrap {
    float: right;
    width: 280px;
    margin: 0 0 16px 16px;
    padding: 0;
  }
  .im-html.im-file-messages > .im-sidebar-wrap > * {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .im-html.im-file-messages > .im-sidebar-wrap > .im-row.im-item-related {
    margin: 0 !important;
    border-radius: 12px;
    overflow: hidden;
  }
  .im-html.im-file-messages > .im-sidebar-wrap > #vrool-dispute-note {
    margin: 0 0 8px 0 !important;
    width: 100% !important;
  }
  /* Messages and input take remaining width */
  .im-table.im-messages,
  body .im-file-messages #im-error-list,
  body #vrool-safety-note {
    width: calc(100% - 296px) !important;
    float: none !important;
    box-sizing: border-box !important;
  }
}
@media screen and (max-width: 767px) {
  .im-html.im-file-messages > .im-sidebar-wrap {
    width: 100%;
    float: none;
  }
}

.im-show-older {cursor:pointer;float:left;font-weight:bolder;clear:both;width:100%;padding:12px;font-size:14px;line-height:16px;background:#e4e4e4;border-radius:8px;color:#444;text-align:center;margin:-20px 0 20px 0;transition:0.1s;}
.im-show-older:hover {background:#e8e8e8;}

#im-message {scrollbar-width:thin;scrollbar-color: #9e9e9e rgba(0,0,0,0.05);}
#im-message::-webkit-scrollbar {box-shadow: none;height: 5px;background:rgba(0,0,0,0.05);}
#im-message::-webkit-scrollbar-thumb {border-radius:100px;background-color: rgba(0,0,0,0.3);background-clip: initial;box-shadow: none;}
#im-message::-webkit-scrollbar-thumb:hover {background-color: rgba(0,0,0,0.6);}
#im-message::-webkit-scrollbar-corner {background: rgba(0,0,0,0.05);}
#im-message::-webkit-scrollbar-track { background: transparent; }

.im-threads .im-table-head > div {padding-top:6px;padding-bottom:6px;}
.im-empty-v2 {float:left;clear:both;width:100%;margin:0 0 10px 0;padding:30px 20px;background:#eee;border-radius:5px;text-align:center;font-size:15px;color:#888;}

body .im-empty.flashmessage {
  display: inline-block;
  float: none;
  clear: both;
  width: auto;
  max-width: 100%;
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 16px;
  box-shadow: none;
}

@media screen and (max-width: 1200px) {
  .im-messages .im-message-extra a.im-download {max-width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
  .im-threads .im-col-2.c3 {color: transparent; overflow: hidden;}
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .im-messages .im-table-row {width:85%;margin-bottom:35px;}
  .im-vertical {display:none;}
}

@media screen and (min-width: 768px) {
  body .im-html.im-file-messages .im-table.im-messages {
    height: auto;
    max-height: 650px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.35) rgba(0,0,0,0.06);
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 16px;
    padding: 14px 14px 18px 14px;
    box-sizing: border-box;
  }

  body .im-html.im-file-messages .im-table.im-messages::-webkit-scrollbar {
    width: 10px;
    background: rgba(0,0,0,0.06);
  }

  body .im-html.im-file-messages .im-table.im-messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 3px solid rgba(0,0,0,0.06);
    background-color: rgba(0,0,0,0.35);
  }

  body .im-html.im-file-messages .im-table.im-messages::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,0.55);
  }

  body .im-html.im-file-messages #im-message-form {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 16px;
    padding: 12px;
    box-sizing: border-box;
  }

  body .im-html.im-file-messages #im-message-form textarea#im-message {
    max-height: 140px;
    overflow-y: auto;
  }

  body.body-ua.plugin-instant_messenger.file-messages #user-main {min-height:calc(100vh - 120px);}
  body.body-ua.plugin-instant_messenger.file-messages .im-table.im-messages {height:auto;overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 180px);min-height:0;}
  body.body-ua.plugin-instant_messenger.file-messages #vrool-input-shell {margin-top:0 !important;}
  body.body-ua.plugin-instant_messenger.file-messages .user-custom-box {}
  body.body-ua.plugin-instant_messenger.file-messages #im-message-form {position:sticky;bottom:16px;z-index:5;background:transparent;margin-top:20px;}

  body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-toggle-row {display:none !important;}
  body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-status {display:block !important;}

  /* Desktop IM: tighten title → chat; float dispute so the message column can start beside it */
  body.body-ua.plugin-instant_messenger.file-messages #vrool-chat-meta {
    margin: 6px 0 8px 0 !important;
    padding: 8px 10px !important;
  }
  body .im-html.im-file-messages .im-alt-head {
    overflow: hidden;
    margin: 0 0 2px 0;
  }
  body .im-html.im-file-messages .im-alt-head .im-subhead2 {
    display: block !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-safety-note {
    display: flex !important;
  }
  body .im-html.im-file-messages #vrool-dispute-note {
    float: right;
    clear: both;
    margin: 53px 0 4px 16px !important;
  }
  body .im-html.im-file-messages .im-row.im-item-related.im-body {
    float: right;
    clear: right;
    margin-top: 0 !important;
    margin-bottom: 2px !important;
  }
  html[dir="rtl"] body .im-html.im-file-messages #vrool-dispute-note {
    float: left;
    clear: both;
    margin: 53px 16px 8px 0 !important;
  }
  html[dir="rtl"] body .im-html.im-file-messages .im-row.im-item-related.im-body {
    float: left;
    clear: left;
  }
}

@media screen and (max-width: 767px) {
  /* Compact account menu on IM mobile view (reduces large empty header/menu block) */
  body.body-ua.plugin-instant_messenger.file-messages #user-menu {
    margin-bottom: 4px;
  }
  body.body-ua.plugin-instant_messenger.file-messages #epsUaMenuToggle,
  body.body-ua.plugin-instant_messenger.file-messages .eps-ua-menu-toggle {
    margin: 0 0 4px 0;
    padding: 7px 11px;
    min-height: 36px;
    border-radius: 10px;
    font-size: 12px;
  }
  body.body-ua.plugin-instant_messenger.file-messages #user-menu .eps-ua-menu {
    gap: 2px;
    max-height: 30vh;
    overflow-y: auto;
  }
  body.body-ua.plugin-instant_messenger.file-messages #user-menu .eps-ua-section-title {
    margin: 8px 0 4px 0;
    padding: 0 8px;
    font-size: 10px;
    line-height: 12px;
  }
  body.body-ua.plugin-instant_messenger.file-messages #user-menu a {
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 10px;
    gap: 8px;
  }
  body.body-ua.plugin-instant_messenger.file-messages #user-menu a .eps-ua-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 8px;
  }
  body.body-ua.plugin-instant_messenger.file-messages #user-menu a .eps-ua-icon i {
    font-size: 12px;
  }
  body.body-ua.plugin-instant_messenger.file-messages #user-menu a .counter,
  body.body-ua.plugin-instant_messenger.file-messages #user-menu a .im-user-account-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
  }

  /* Compact IM top chrome so messages start higher */
  body.body-ua.plugin-instant_messenger.file-messages .im-head-row {
    margin: 0 0 4px 0 !important;
    gap: 8px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages .im-head-row h2.im-head {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages a.im-remove-thread {
    width: 30px !important;
    height: 30px !important;
    padding: 8px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-chat-meta {
    margin: 4px 0 6px 0 !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-chat-meta > div {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-toggle-row {
    margin-top: 6px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-toggle {
    padding: 5px 9px !important;
    font-size: 11px !important;
    line-height: 11px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-status {
    margin-top: 6px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-status > div:first-child {
    margin-bottom: 4px !important;
    font-size: 11px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-status > div:last-child {
    gap: 6px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-status > div:last-child > span {
    width: 18px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages .im-row.im-item-related {
    margin-bottom: 6px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-dispute-note {
    width: 100% !important;
    max-width: 100% !important;
    margin: 2px 0 8px 0 !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    gap: 8px !important;
    box-sizing: border-box;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-dispute-note span {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    font-size: 11px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-dispute-note strong,
  body.body-ua.plugin-instant_messenger.file-messages #vrool-dispute-note div {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  /* Conversation view (mobile): show last ~7 messages area and scroll older messages */
body .im-file-messages .im-table.im-messages{
  float:none;
  clear:both;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  max-height:52vh;
  padding-bottom:6px;
}

  body.body-ua.plugin-instant_messenger.file-messages{
    height:100dvh;
    overflow:hidden;
  }

  body.body-ua.plugin-instant_messenger.file-messages .container.primary{
    height:100%;
    overflow:hidden;
  }

  body.body-ua.plugin-instant_messenger.file-messages .im-alt-head .im-head2 {
    font-size:18px;
    line-height:22px;
  }

  body.body-ua.plugin-instant_messenger.file-messages .im-alt-head .im-subhead2 {
    font-size:12px;
    line-height:14px;
    margin-top:4px;
  }

  body.body-ua.plugin-instant_messenger.file-messages .im-messages .im-message-content .im-align-left {font-size:13px;}
  body.body-ua.plugin-instant_messenger.file-messages .im-messages .im-table-row {padding:10px 14px 2px 14px;margin-bottom:26px;}

  body.body-ua.plugin-instant_messenger.file-messages .im-table-row .im-horizontal {left:-58px;width:46px;height:46px;}
  body.body-ua.plugin-instant_messenger.file-messages .im-table-row .im-horizontal .right {width:46px;border-radius:8px;}
  body.body-ua.plugin-instant_messenger.file-messages .im-table-row.im-from .im-horizontal {right:-58px;left:auto;}

  body.body-ua.plugin-instant_messenger.file-messages .im-table.im-messages .im-table-row:last-child {
    scroll-margin-bottom: 320px;
    margin-bottom: 50px !important;
  }

  body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-toggle-row {display:block !important;}
  body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-toggle {width:100%;justify-content:space-between;box-sizing:border-box;}
  body.body-ua.plugin-instant_messenger.file-messages #vrool-delivery-status {display:none;}

/* Keep composer visible near bottom (above mobile bottom navigation) */
body .im-file-messages #im-message-form{
  position:sticky;
  bottom:62px;
  z-index:5;
  background:#ffffff;
  border-top:1px solid rgba(0,0,0,0.06);
  padding-top:10px;
  margin-top:8px;
}

body .im-file-messages #im-message-form textarea#im-message{
  max-height:120px;
  overflow-y:auto;
}

body.body-ua.plugin-instant_messenger.file-messages #user-main{
  height:calc(100vh - 140px);
  height:calc(100dvh - 140px);
  overflow:hidden;
}

body.body-ua.plugin-instant_messenger.file-messages .im-html.im-file-messages{
  height:100%;
  overflow:hidden;
  float:none !important;
  clear:both;
  width:100%;
}

body.body-ua.plugin-instant_messenger.file-messages #vrool-chat-meta{flex:0 0 auto;}
body.body-ua.plugin-instant_messenger.file-messages .im-alt-head{flex:0 0 auto;}

body.body-ua.plugin-instant_messenger.file-messages .im-file-messages .im-table.im-messages{
  flex:1 1 auto;
  min-height:0;
  height:calc(100vh - 280px);
  height:calc(100dvh - 280px);
  max-height:none !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action:pan-y;
  float:none !important;
  clear:both;
  padding-bottom:calc(340px + env(safe-area-inset-bottom, 0px));
}

body.body-ua.plugin-instant_messenger.file-messages .im-file-messages #im-message-form{
  flex:0 0 auto;
  margin-top:auto;
  position:fixed !important;
  left:16px;
  right:16px;
  bottom:calc(26px + env(safe-area-inset-bottom, 0px)) !important;
  z-index:9999;
  background:transparent;
  border-top:0;
  padding-top:0;
  padding-bottom:0;
  box-sizing:border-box;
  max-width:423px;
  margin-left:auto;
  margin-right:auto;
}

body.body-ua.plugin-instant_messenger.file-messages #vrool-safety-note{display:none;}
  body .im-alt-head .im-head2 {padding-right:36px;}
  a.im-remove-thread {width:32px;height:32px;padding:9px;text-align:center;}
  a.im-remove-thread span {display:none;}
  a.im-remove-thread i {margin:0;}
  
  body #im-create-thread-form button.im-button-green {width:auto;}
  body .im-file-create-thread h2.im-head {width:100%;float:none;margin:0 0 16px 0;}
  body form#im-create-thread-form {width:100%;float:none;margin:0 0 20px 0;box-sizing:border-box;}
  body #im-create-thread-form .im-input {max-width:100%;width:100%;box-sizing:border-box;}
  body .im-file-create-thread .im-error-list.error-list {width:100%;float:none;margin:0 0 12px 0;}
  .im-threads-exist a .im-pms, .im-threads-exist a .im-time {display:none;}
  .im-threads-exist a .im-title {width:60%;}
  .im-threads-exist a .im-from-to {width:40%;}
  .im-table-head {display:none;}
  .im-threads .im-special {display:none;}
  .im-table-row .im-from-to {width:40%;}
  body .im-table-row > div.im-col-12 {width:60%;}
  .im-row.im-item-related {display:none;}

  /* ── Threads list: compact mobile redesign ── */
  .im-file-threads .im-alt-head {display:none !important;}
  .im-file-threads .im-limits-info {margin:0 0 10px 0 !important;padding:10px 12px !important;border-radius:10px !important;font-size:12px !important;}
  .im-file-threads .im-threads-search {margin:0 0 10px 0 !important;padding:8px 10px !important;border-radius:10px !important;}
  .im-file-threads .im-threads-search-label {font-size:10px !important;}
  .im-file-threads .im-threads-search-field input[type="text"] {padding:7px 10px !important;font-size:13px !important;border-radius:8px !important;}
  .im-file-threads .im-threads-search-btn {padding:7px 14px !important;font-size:13px !important;border-radius:8px !important;}
  .im-file-threads .im-table-head {display:none !important;}

  /* Thread rows: compact card style */
  body .im-file-threads .im-threads .im-table-row {
    display:flex !important;
    flex-wrap:wrap;
    align-items:center;
    gap:0;
    padding:10px 12px !important;
    margin:0 0 6px 0 !important;
    border-radius:12px !important;
    border:1px solid rgba(0,0,0,0.06) !important;
    background:#fff !important;
    box-shadow:0 1px 3px rgba(0,0,0,0.04) !important;
    position:relative;
  }
  body .im-file-threads .im-threads .im-table-row.im-unread {
    border-left:3px solid #ad6dee !important;
    background:#f0fdfa !important;
  }
  body .im-file-threads .im-threads .im-table-row.im-unread:before,
  body .im-file-threads .im-threads .im-table-row.im-unread:after {display:none !important;}

  /* Thread title + from/to in one row */
  body .im-file-threads .im-threads .im-table-row > .im-col-12 {
    width:100% !important;
    padding:0 !important;
    display:flex;
    flex-direction:column;
    gap:2px;
  }
  body .im-file-threads .im-threads .im-table-row > .im-col-12 > .im-line.im-title {
    display:flex;
    align-items:center;
    gap:6px;
    padding:0 !important;
    margin:0 !important;
  }
  body .im-file-threads .im-threads .im-title a.im-mes-title {
    font-size:14px !important;
    font-weight:700 !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:70%;
  }
  body .im-file-threads .im-threads .im-table-row > .im-col-6 {
    width:100% !important;
    padding:0 !important;
    margin-top:2px;
  }
  body .im-file-threads .im-threads .im-table-row > .im-col-6 .im-title.im-recipient {
    padding:0 !important;
    margin:0 !important;
  }
  body .im-file-threads .im-threads .im-table-row > .im-col-6 .im-title.im-recipient a,
  body .im-file-threads .im-threads .im-table-row > .im-col-6 .im-title.im-recipient strong {
    font-size:12px !important;
    font-weight:600 !important;
    color:#64748b !important;
    text-decoration:none !important;
  }
  body .im-file-threads .im-threads .im-table-row > .im-col-6 .im-time {
    position:absolute !important;
    top:10px;
    right:12px;
    padding:0 !important;
    margin:0 !important;
    font-size:11px !important;
    color:#94a3b8 !important;
  }

  /* Item thumbnail: small inline */
  body .im-file-threads .im-threads .im-line.im-item-with-thumb {
    padding:4px 0 0 0 !important;
    margin:0 !important;
  }
  body .im-file-threads .im-threads .im-item-combo-link {
    gap:8px !important;
  }
  body .im-file-threads .im-threads .im-thread-item-thumb,
  body .im-file-threads .im-threads .im-line.im-item img.im-item-thumb {
    width:36px !important;
    height:36px !important;
    border-radius:6px !important;
  }
  body .im-file-threads .im-threads .im-item-title-wrap {
    font-size:12px !important;
    color:#64748b !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  /* Hide profile images on mobile threads (item thumb is enough) */
  body .im-file-threads .im-threads .im-profile-img {display:none !important;}
  body .im-file-threads .im-threads .im-table-row > .im-col-12.no-img {padding-left:0 !important;}

  /* Block thread icon: smaller */
  body .im-file-threads .im-threads .im-block-thread {display:none !important;}

  /* Offer/order badges: compact */
  body .im-file-threads .im-threads .im-title span[style*="border-radius:999px"] {
    font-size:10px !important;
    padding:1px 6px !important;
    margin-left:4px !important;
  }
  body .im-file-messages #im-error-list, body .im-table.im-messages, body #im-message-form {width:100%;margin-right:0;}

  body #vrool-safety-note {width:100%;margin-right:0;}


  .im-button-green {width:100%;clear:both;}
  .im-messages .im-table-row {width:80%;margin-bottom:35px;}
  .im-vertical {display:none;}
  .im-table-row .im-horizontal, .im-table-row.im-from .im-horizontal {padding:0;top:-1px;background:transparent;}
  .im-table-row .im-horizontal .right {-webkit-border-radius: 30px; -webkit-border-top-left-radius: 0px; -moz-border-radius: 30px; -moz-border-radius-topleft: 0px; border-radius: 30px; border-top-left-radius: 0px;}
  .im-table-row.im-from .im-horizontal .right {-webkit-border-radius: 30px; -webkit-border-top-right-radius: 0px; -moz-border-radius: 30px; -moz-border-radius-topright: 0px; border-radius: 30px; border-top-right-radius: 0px;}
  .im-messages .im-table-row {padding:6px 0;margin:0 0 10px 0;}
  .im-item-related .im-item-resource {width:20%;max-width:20%;}
  .im-item-related .im-col-21 {width:80%;}

  .im-messages {padding:0;}
  .im-messages .im-message-extra a.im-hide {display:block;position:absolute;left:0;bottom:0;}
  .im-table-row .im-align-right, .im-table-head > div.im-align-right, .im-align-right {position:initial;}
  .im-messages .im-message-extra a.im-hide {margin:0;color:transparent;text-shadow:none;font-size:1px;overflow:hidden;width:24px;height:24px;top:55px;}
  .im-messages .im-message-extra a.im-hide:before {font-size:14px;text-align:center;width:24px;height:24px;line-height:24px;border-radius:3px;background:#00BCD4;color:#fff;font-family:"FontAwesome","Font Awesome 5 Free";text-indent:0;float:left;display:block;}
  .im-messages .im-message-extra a.im-hide:last-child {left:-29px;}
  .im-messages .im-message-extra a.im-hide:first-child {left:-55px;}
  .im-messages .im-message-extra a.im-hide:first-child:last-child {left:-40px;}
  .im-messages .im-message-extra a.im-hide:last-child:before {content:"\f127";}
  .im-messages .im-message-extra a.im-hide:first-child:before {content:"\f014";}
  .im-messages .im-message-extra.im-box-gray {padding:5px 8px!important}
  .im-messages .im-message-extra.im-box-gray .im-col-10 {width:100%;}
  .im-messages .im-message-extra a.im-download {max-width:100%;}
  .im-textarea {margin-bottom:10px;height:90px;}

  body h2.im-head {margin:-16px -16px 20px -16px;width:calc(100% + 32px);}
}

@media screen and (max-width: 490px) {
  body #im-create-thread-form button.im-button-green {width:100%;margin-bottom:10px;}
  body #im-create-thread-form .im-attachment {width:100%;margin:0}
  body #im-create-thread-form .im-attachment .im-att-box .im-wrap {width:100%;text-align:center;}
  body .im-attachment .im-att-box .im-status i {float: none; display: inline-block; vertical-align: -1px;}
  body .im-attachment .im-att-box .im-status {width:100%;}

  .im-table-row .im-from-to {display:none;}
  body .im-table-row > div.im-col-12 {width:100%;}
  body .im-messages .im-message-extra a.im-download {width:110px;}
}

@media screen and (max-width: 420px) {
  .im-threads-exist a .im-title {width:100%;}
  .im-threads-exist a .im-from-to {display:none;}

}

@media screen and (max-width: 360px) {
  body #im-message {height:85px;}
}

/* ------------ END OF STYLE V2 --------------- */


/* BLOCKS */
.im-block {float:left;clear:both;width:100%;margin-top:25px;}
.im-block .im-remove-block {font-size:16px;}
.im-block .im-remove-block:hover {color:#222;}
.im-block .im-table-row.im-empty {background:#f9f9f9;padding:20px;color:#999;}
.im-block .im-table-head strong {float:left;line-height:34px;}
.im-block .im-table-head form {float:left;margin-left:15px;}
.im-block .im-table-head form input[type="text"] {float: left; height: 34px!important; padding: 0 6px!important; line-height: 24px; margin: 0px 5px; width: 180px;}
.im-block .im-table-head form button[type="submit"] {float:left;height:24px!important;padding:0 6px!important;line-height:24px;margin:-3px 0 -3px 4px;border: 1px solid #03a9f4; background: #03a9f4; color: #fff;}
.im-block .im-table-head form button[type="submit"]:hover {background: #0695d6; border-color: #0695d6;}
.im-block .im-table-head form button i {font-size:14px;color:#fff;}
.im-threads .im-title a.im-block-thread {margin-left:3px;color:#888;font-weight:500;display:none;}
.im-threads .im-title a.im-block-thread:hover, .im-threads .im-title a.im-block-thread.active {color:#D32F2F;}
.im-threads .im-title a.im-block-thread.active, .im-table-row:hover .im-title a.im-block-thread {display:inline-block;}


.im-profile-img {position:absolute;left:3px;width:43px;height:auto;-webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px;}
.im-profile-img.im-img-def {opacity:0.6;}
.im-profile-img.im-is-offer {opacity:1;color:#fff;font-weight:bold;letter-spacing:-0.5px;font-size:11px;line-height:12px;height:43px;padding:9px 1px;text-align:center;background:#1eb87a;}
.im-profile-img.im-is-offer.im-offer-badge-accepted {background:#ad6dee;}
.im-profile-img.im-is-offer.im-offer-badge-declined {background:#64748b;}
.im-vertical {position:absolute;left:50%;margin-left:-1px;height:100%;width:2px;background:#eee;top:0;display:block;}
.im-vertical .bot {position:absolute;bottom:-3px;left:-9px;background:#fff;border:3px solid #ddd;width:20px;height:20px;-webkit-border-radius: 12px; -moz-border-radius: 12px; border-radius: 12px;}
.im-table-row .im-horizontal {padding:3px 0;position:absolute;top:-28px;right:-55px;width:50px;display:block;overflow:visible;background:#fff;-webkit-border-radius: 30px; -webkit-border-bottom-left-radius: 0; -moz-border-radius: 30px; -moz-border-radius-bottomleft: 0; border-radius: 30px; border-bottom-left-radius: 0;}
.im-table-row .im-horizontal .right {float:left;display:block;width:50px;height:50px;border:1px solid #ddd;background:#fff;padding:2px;-webkit-border-radius: 30px; -webkit-border-bottom-left-radius: 0; -moz-border-radius: 30px; -moz-border-radius-bottomleft: 0; border-radius: 30px; border-bottom-left-radius: 0;}
.im-table-row .im-horizontal .right img {opacity:0.5;float:left;width:100%;height:100%;-webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px;}
.im-table-row .im-horizontal span {padding:0;}
.im-table-row.im-from .im-horizontal {left:-55px;right:auto;-webkit-border-radius: 30px; -webkit-border-bottom-right-radius: 0; -moz-border-radius: 30px; -moz-border-radius-bottomright: 0; border-radius: 30px; border-bottom-right-radius: 0;}
.im-table-row.im-from .im-horizontal .right {border-color:#2196F3;left:-55px;right:auto;-webkit-border-radius: 30px; -webkit-border-bottom-right-radius: 0; -moz-border-radius: 30px; -moz-border-radius-bottomright: 0; border-radius: 30px; border-bottom-right-radius: 0;}
.im-table-row.im-from .im-horizontal .right img {opacity:0.75;}

.im-attachment {float:left;width:auto;clear:both;margin:4px 0 0 12px;clear:none!important;}
.im-attachment .im-att-box {float:left;width:100%;clear:both;margin:0;position:relative;}
.im-attachment .im-att-box input {cursor:pointer;opacity:0;padding:5px;position:absolute;top:0;left:0;z-index:0;background:transparent;}
.im-attachment .im-att-box .im-status {float:left;width:auto;cursor:pointer;padding:0;color:#00BCD4;position:relative;z-index:2;}
.im-attachment .im-att-box:hover .im-status .im-wrap span {text-decoration:underline;}
.im-attachment .im-att-box .im-wrap {float:left;width:auto;cursor:pointer;padding:5px 0 5px 2px;position:relative;z-index:2;}
.im-attachment .im-att-box .im-status i {float:left;cursor:pointer;font-size:16px;line-height:16px;width:18px;text-align:left;}
.im-attachment .im-att-box .im-status .im-wrap span {font-size:13px;cursor:pointer;line-height:16px;font-weight:500;}
.im-attachment .im-text {float:left;width:100%;clear:both;margin:1px 0;font-size:12px;color:#999;line-height:13px;}

.im-user-account-count {position: absolute; font-size: 9px; padding: 2px 4px; line-height: 12px; text-align: center; font-weight: bold; height: 16px; min-width: 16px; margin-left: 3px; border-radius: 5px; color: #fff; background: #333;}


/* CONTACT BUTTON */
.im-contact {float:left;display:inline-block;width:auto;margin:10px 15px 10px 0;color:#fff;padding:10px 46px 10px 10px;height:52px;background:#1eb377;border:1px solid #1eb377;position:relative;overflow:hidden;-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;}
.im-contact:hover {color:#fff;text-decoration:none;}
.im-contact:after {position:absolute;display:block;background:#fff;content:".";text-indent:-9999px;width:50px;height:100px;right:-15px;top:-20px;-ms-transform: rotate(7deg); -webkit-transform: rotate(7deg); transform: rotate(7deg);}
.im-contact .im-top {float:left;clear:both;width:100%;font-weight:bold;font-size:14px;line-height:15px;}
.im-contact:hover .im-top {text-decoration:underline;}
.im-contact .im-bot {float:left;clear:both;width:100%;font-weight:500;font-size:11px;line-height:15px;}
.im-contact i {position: absolute; top: 15px; right: 7px; font-size: 20px; color: #1eb377; z-index: 2;}
.im-contact:hover i {color:#229869;}


/* ERROR LIST FOR VALIDATION */
.im-error-list.error-list {padding:0px;list-style-type:none;color:#D27C82;font-size:13px;position:relative;margin:0;}
.im-error-list.error-list li { background:#FFE2E4;padding:8px 10px 8px 30px;margin:0 0 3px 0;clear:both;border-left:1px solid #FFE2E4;border-right:1px solid #FFE2E4;position:relative;border-left: solid 3px #D27C82;-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;overflow:hidden;}
.im-error-list.error-list li:before { position: absolute; top: 50%; margin-top: -10px; display: block; height: 20px; line-height: 20px; width: 20px; color: #D27C82; left: 8px; font-family: "FontAwesome","Font Awesome 5 Free"; content: "\f059"; font-size: 18px; }
.im-error-list.error-list li:last-child {margin-bottom:10px;}
.im-error-list.error-list li label {margin:0;font-size:14px;}


/* PAGINATION */
#im-pagination {width:100%;display:inline-block;margin:50px 0 10px 0;text-align:center;}
#im-pagination .im-pagination-inside > span {font-size:12px;line-height:13px;display:inline-block;margin-right:15px;font-weight:500;color:#999;}
#im-pagination .im-pagination-inside > a.im-page-active {font-weight:bold;border:1px solid #008abd;text-align:center;line-height:28px;width:30px;height:30px;display:inline-block;color: #fff; background-color: #00aff0; -webkit-box-shadow: none; box-shadow: none;text-decoration:none;-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;}
#im-pagination .im-pagination-inside > a {border:1px solid #ddd;text-decoration:none;text-align:center;line-height:28px;width:30px;height:30px;display:inline-block;-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;}
#im-pagination .im-pagination-inside > a:hover {color: #fff; background-color: #00aff0; border-color: #008abd; -webkit-box-shadow: none; box-shadow: none;text-decoration:none;}


/* HEADER LINK */
#im-link {position:relative;}
#im-link > a {font-weight:bold;}
#im-link #im-thread-wrap {display:none;position:absolute;top:calc(100% - 3px);left:0;width:300px;min-height:100px;}
#im-link:hover #im-thread-wrap {display:block;}
#im-link .im-t-unread {display:inline-block;margin-left:4px;margin-right:8px;text-decoration:none;padding:0 3px;background:#F44336;color:#fff;font-weight:bold;-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;}
#im-link .im-thread-list {z-index:9999;color:#333;position:absolute;top:7px;left:0;width:300px;border:1px solid #ddd;background:#fff;font-size:12px;-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;}
#im-link .im-thread-list:before {content: ""; border:6px solid;border-color: transparent transparent #ddd transparent; position: absolute; top: -12px; left: 15px;}
#im-link .im-thread-list .im-entry {position:relative;margin:0;padding:4px 6px;background:#fff;border-bottom:1px solid #eee;border-top:1px solid #fff;}
#im-link .im-thread-list .im-entry:after {font-family:"FontAwesome","Font Awesome 5 Free";content:"\f1db";position:absolute;right:6px;top:4px;color:#ccc;font-size:8px;}
#im-link .im-thread-list .im-entry:hover {background:#E2EBF3!important;}
#im-link .im-thread-list .im-entry.im-unread {background:#f8f8f8;}
#im-link .im-thread-list .im-entry.im-unread:after {content:"\f111";color:#aaa;}
#im-link .im-thread-list .im-row {margin:0;}
#im-link .im-thread-list .im-img {padding-right:8px;}
#im-link .im-thread-list .im-img img {border:1px solid #ddd;padding:1px;background:#fff;width:auto;height:auto;max-width:100%;max-height:56px;}
#im-link .im-thread-list .im-name {margin-top:1px;font-size:12px;color:#000;font-weight:bold;height:18px;line-height:17px;overflow:hidden;}
#im-link .im-thread-list .im-text {font-size:11px;font-weight:500;color:#333;line-height:13px;margin:1px 0;height:14px;overflow:hidden;}
#im-link .im-thread-list .im-text .fa {color:#bbb;margin-right:2px;font-size:9px;}
#im-link .im-thread-list .im-time {font-size:10px;font-weight:500;color:#999;font-style:italic;height:18px;overflow:hidden;line-height:17px;}
#im-link .im-show-all {font-size:12px;padding:8px 0;text-align:center;}
#im-link .im-show-all a {color:#999!important;text-decoration:none!important;line-height:16px!important;font-size:12px;}
#im-link .im-show-all a:hover {text-decoration:underline;color:#00BCD4!important;}



/* ITEM RELATED TO THREAD */
.im-row.im-item-related {margin:5px 0 30px 0;padding-bottom:20px;border-bottom:1px solid #ddd;background:#f0f0f0;padding:10px;-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;}
.im-item-related, .im-item-related *:not(i) {box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box;}
.im-item-related a {color:#2EACCE;font-size:12px;font-weight:bold;text-decoration:none;}
.im-item-related a:hover {text-decoration:underline;}
.im-item-related .im-line {padding:2px 8px;font-size:12px;color:#999;}
.im-item-related .im-item-price {font-weight:bold;font-size:14px;color:#000;}
.im-item-related .im-item-resource {width:auto;max-width:12.5%;padding-right:5px;}
.im-item-related .im-item-resource img {width:auto;height:auto;max-width:100%;max-height:66px;border:1px solid #ddd;padding:2px;background:#fff;-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;}


/* OFFER */
.im-row.im-offer {margin:0 0 20px 0;padding:15px 40px 15px 15px;position:relative;background:#e2f7ff;color:#333;border:1px solid #007ea7;border-left-width:5px;font-size:14px;border-radius:6px;text-decoration:none;}
.im-row.im-offer:hover {background:#d6eff9}
.im-row.im-offer:after {position:absolute;right:10px;transition:0.15s;top:calc(50% - 12px);width:24px;text-align:center;line-height:24px;font-family:"FontAwesome","Font Awesome 5 Free";content:"\f105";font-weight:900;font-size:24px;color:#007ea7;}
.im-row.im-offer:hover:after {right:6px;}

.im-row.im-offer.im-offer-card {
  margin: 0 0 12px 0;
  padding: 10px 12px 11px;
  display: block;
  background: #e8f6fc;
  border: 1px solid rgba(0, 126, 167, 0.32);
  border-left: 4px solid #007ea7;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
  box-sizing: border-box;
}
.im-row.im-offer.im-offer-card:hover { background: #dff2fb; }
.im-row.im-offer.im-offer-card:after { display: none !important; }
.im-offer-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.im-offer-card .im-offer-summary { margin: 0; flex: 1; min-width: 0; }
.im-offer-details {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: #007ea7;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.im-offer-details:hover { text-decoration: underline; color: #005f7a; }
.im-offer-card-actions {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(0, 126, 167, 0.2);
}
.im-offer-seller-note {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 126, 167, 0.18);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
  word-break: break-word;
}
.im-offer-seller-note strong {
  font-weight: 800;
  margin-right: 4px;
}
.im-offer-chat-form.im-mo-respond-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
}
.im-offer-card-actions .im-mo-respond-note-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 5px 0;
  color: rgba(15, 23, 42, 0.55);
}
.im-offer-card-actions .im-mo-respond-note-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.3;
  margin: 0 0 10px 0;
  background: #fff;
}
.im-offer-card-actions .im-mo-respond-note-input:focus {
  outline: none;
  border-color: rgba(0, 126, 167, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 126, 167, 0.12);
}
.im-mo-respond-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.im-offer-chat-form .im-mo-respond-btn.im-offer-btn {
  margin: 0;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}
.im-offer-chat-form .im-offer-btn-accept {
  border: none;
  background: linear-gradient(145deg, #ad6dee, #ad6dee);
  color: #fff;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.22);
}
.im-offer-chat-form .im-offer-btn-decline {
  background: #fff;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.14);
}
.im-offer-card-actions {
  position: relative;
  z-index: 9995;
}

.im-mo-new-offer-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.im-mo-new-offer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  color: #ad6dee;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.35);
  box-sizing: border-box;
}
.im-mo-new-offer-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #064e3b;
  text-decoration: none;
}
.im-mo-new-offer-btn .fa {
  font-size: 14px;
  opacity: 0.9;
}

.im-mo-pending-notice .im-mo-pending-text {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 600;
}


/* THREADS LIST */
.im-threads {font-size:13px;}
.im-threads .im-table-row {padding:8px 0;position:relative;}
/* Offer threads: pending = soft mint; accepted = clear green; declined = neutral slate (not alarm red) */
.im-threads .im-table-row.im-is-offer.im-offer-row-pending { background: #f0fdfa; }
.im-threads .im-table-row.im-is-offer.im-offer-row-accepted {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(5, 150, 105, 0.12), 0 1px 3px rgba(0,0,0,0.06);
  padding: 14px 14px;
  box-sizing: border-box;
}
@media screen and (max-width: 767px) {
  .im-threads .im-table-row.im-is-offer.im-offer-row-accepted {
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    background: #fff !important;
  }
  .im-threads .im-offer-row-actions-accepted {
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(0,0,0,0.06) !important;
  }
  .im-threads .im-offer-row-actions-accepted .im-offer-cta {
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
  /* Make the thread container full-width */
  body.plugin-instant_messenger.file-threads .user-custom-box,
  body.plugin-instant_messenger.file-threads #user-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.plugin-instant_messenger.file-threads .im-threads {
    margin: 0 !important;
    padding: 0 !important;
  }
  body.plugin-instant_messenger.file-threads .im-threads .im-table-row {
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  }
  /* Compact offer card on mobile */
  body.plugin-instant_messenger.file-threads .im-offer-card-top {
    gap: 8px !important;
  }
  body.plugin-instant_messenger.file-threads .im-item-resource {
    max-width: 50px !important;
    max-height: 50px !important;
  }
  body.plugin-instant_messenger.file-threads .im-item-resource img {
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 6px !important;
  }
}
body .im-threads .im-table-row.im-is-offer.im-offer-row-declined {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 10px;
  padding: 10px 8px;
  box-sizing: border-box;
}
body .im-threads .im-table-row.im-offer-row-declined .im-title a.im-mes-title,
body .im-threads .im-table-row.im-offer-row-declined .im-title a.im-mes-title-offer.im-mes-title-declined {
  color: #334155;
  font-weight: 800;
}
body .im-threads .im-table-row.im-offer-row-declined .im-title a.im-mes-title:hover {
  color: #0f172a;
}
body .im-threads .im-table-row.im-offer-row-accepted .im-title a.im-mes-title-offer.im-mes-title-accepted {
  color: #ad6dee;
  font-weight: 800;
}
body .im-threads .im-table-row.im-offer-row-accepted .im-title a.im-mes-title-offer.im-mes-title-accepted:hover {
  color: #ad6dee;
}
body .im-threads .im-table-row.im-offer-row-pending .im-title a.im-mes-title-offer.im-mes-title-pending {
  color: #ad6dee;
  font-weight: 800;
}
body .im-threads .im-table-row.im-offer-row-declined:hover {
  background: #f1f5f9;
}
body .im-threads .im-table-row.im-unread.im-offer-row-declined:hover {
  background: #eef2f7;
}
body .im-threads .im-table-row.im-unread.im-offer-row-pending {
  background: #e0f2ec;
  border-left: 3px solid #ad6dee;
  padding-left: 10px;
}
/* Seller logged in: pending buyer offer — visible even when last message is marked read */
body .im-threads .im-table-row.im-offer-needs-action.im-is-offer.im-offer-row-pending {
  background: #fef3c7;
  border-left: 4px solid #d97706;
  padding-left: 10px;
  box-shadow: inset 4px 0 0 rgba(217, 119, 6, 0.25);
}
body .im-threads .im-table-row.im-unread.im-offer-row-accepted {
  background: #c6f6d5;
  border-left: 3px solid #ad6dee;
  padding-left: 10px;
}

.im-threads .im-offer-row-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.im-threads .im-offer-row-actions-accepted {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(5, 150, 105, 0.28);
  width: 100%;
  box-sizing: border-box;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
.im-threads .im-offer-row-actions-accepted .im-offer-cta {
  flex: 1 1 auto;
  min-width: 148px;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 10px;
  justify-content: center;
}
.im-threads .im-offer-row-actions-accepted .im-offer-await-pay {
  flex: 1 1 100%;
  order: -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 2px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(5, 150, 105, 0.45);
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  box-sizing: border-box;
}
.im-threads .im-offer-cta .fa {
  margin-right: 6px;
}
.im-threads .im-offer-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
  box-sizing: border-box;
}
.im-threads .im-offer-cta-pay {
  background: #ad6dee;
  color: #fff;
  border-color: #ad6dee;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.2);
}
.im-threads .im-offer-cta-pay:hover {
  background: #ad6dee;
  color: #fff;
  text-decoration: none;
}
.im-threads .im-offer-cta-chat {
  background: rgba(16, 185, 129, 0.08);
  color: #ad6dee;
  border-color: rgba(5, 150, 105, 0.22);
}
.im-threads .im-offer-cta-chat:hover {
  background: rgba(16, 185, 129, 0.14);
  color: #064e3b;
  text-decoration: none;
}
.im-threads .im-offer-row-actions-accepted .im-offer-cta-chat {
  background: #ad6dee;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  font-weight: 800;
}
.im-threads .im-offer-row-actions-accepted .im-offer-cta-chat:hover {
  background: #ad6dee;
  color: #fff;
  border: none;
  text-decoration: none;
}
.im-threads .im-offer-await-pay {
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.65);
}
@media screen and (max-width: 520px) {
  .im-threads .im-offer-row-actions-accepted {
    flex-direction: column;
  }
  .im-threads .im-offer-row-actions-accepted .im-offer-cta {
    width: 100%;
    min-width: 0;
  }
}
body .im-threads .im-table-row.im-unread.im-offer-row-declined {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-left: 3px solid #64748b;
  border-radius: 10px;
  padding: 10px 8px 10px 10px;
  box-sizing: border-box;
}
.im-threads .im-table-row.im-unread:before {color:#fff;font-size:13px;line-height:24px;text-align:center;display:block;font-family:"FontAwesome","Font Awesome 5 Free";content:"\f070";position:absolute;left:-24px;width:24px;height:24px;background:#F44336;top:0;}
.im-threads .im-table-row.im-unread:after {display:block;font-family:"FontAwesome","Font Awesome 5 Free";content:".";text-indent:-9999px;position:absolute;left:0px;width:1px;height:70%;background:#F44336;top:0;}
.im-threads .im-line {padding:2px;}
.im-threads .im-title a {font-size:13px;font-weight:bold;}
.im-threads .im-item a {font-size:12px;text-decoration:none;color:#888;}
.im-threads .im-item a:hover {color:#333;}
/* Thread list: one listing thumb + title (52×82 portrait) */
.im-threads .im-table-row > div.im-line.im-item-with-thumb {
  display: block;
  padding: 6px 8px 4px;
  text-align: left;
  overflow: visible;
}
.im-threads .im-item-with-thumb .im-item-combo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  text-decoration: none;
  color: #888;
  font-size: 12px;
}
.im-threads .im-item-with-thumb .im-item-combo-link:hover {
  color: #333;
}
.im-threads .im-item-with-thumb .im-item-thumb-wrap {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e6ea;
  background: #f4f6f8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.im-threads .im-item-with-thumb .im-thread-item-thumb,
.im-threads .im-line.im-item img.im-item-thumb {
  width: 52px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  display: block;
}
.im-threads .im-item-with-thumb .im-item-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
@media (max-width: 520px) {
  .im-threads .im-item-with-thumb .im-item-combo-link {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .im-threads .im-item-with-thumb .im-thread-item-thumb,
  .im-threads .im-line.im-item img.im-item-thumb {
    width: 48px;
    height: 76px;
  }
}
html[dir="rtl"] .im-threads .im-table-row > div.im-line.im-item-with-thumb {
  text-align: right;
}
html[dir="rtl"] .im-threads .im-item-with-thumb .im-item-combo-link {
  flex-direction: row-reverse;
}
html[dir="rtl"] .im-threads .im-item-with-thumb .im-item-title-wrap {
  text-align: right;
}
.im-threads .im-from-to {font-size:13px;color:#000;}
.im-threads .im-time {font-size:12px;color:#888;font-style:italic;}
.im-threads .im-special {padding:20px 5px;line-height:18px;}
.im-threads .im-special i {font-size:14px;line-height:18px;}
.im-threads .im-small {font-size:9px;}
.im-threads .im-flag-yes i {color:#F44336;}
.im-threads .im-flag-no i {color:#bbb;}
.im-threads .im-notify-yes i {color:#e55b51;}
.im-threads .im-notify-no i {color:#bbb;}



/* CREATE THREAD */
#im-create-thread-form {padding:12px;border:1px solid #eee;background:#f0f0f0;display:inline-block;-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;}
#im-create-thread-form .im-input {clear:both;}
#im-create-thread-form .im-textarea {margin-top:0px;}

/* List of existing threads - on CREATE THREAD page */
.im-threads-exist {margin:0 0 15px 0;display:inline-block;width:100%;clear:both;}
.im-threads-exist a {font-size:12px;padding:10px;background:#fff;border:1px solid #ddd;-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;margin:0 0 8px 0;}
.im-threads-exist a:hover {background:#f4f8fb;}
.im-threads-exist a .im-title {color:#7c7c7c;text-decoration:none;line-height:18px;font-size:12px;}
.im-threads-exist a .im-title:hover {color:#2EACCE;text-decoration:underline;}
.im-threads-exist a .im-from-to {color:#1eb87a;font-weight:500;line-height:18px;font-size:12px;}
.im-threads-exist a .im-pms {color:#999;font-weight:500;font-style:italic;font-size:11px;line-height:18px;}
.im-threads-exist a .im-time {color:#999;font-weight:500;font-style:italic;font-size:11px;line-height:18px;}



/* LIST OF MESSAGES */
.im-messages {font-size:14px;position:relative;padding-top:20px;}
.im-messages .im-table-row {position:relative;font-size:13px;background:#fdfdfd!important;margin:0 0 25px 0;padding:12px 8px;width:47%;float:left;border:1px solid #e8e8e8;box-shadow:1px 1px 5px rgba(0,0,0,0.08);-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;-webkit-border-top-right-radius: 0px; -moz-border-radius-topright: 0px; border-top-right-radius: 0px;}
.im-messages .im-table-row.hidden {display:none;}
.im-messages .im-table-row.im-from {background:#fff!important;border-color:#2196F3;float:right;-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;-webkit-border-top-left-radius: 0px; -moz-border-radius-topleft: 0px; border-top-left-radius: 0px;}
.im-messages .im-table-row.im-from:before {color:#2EACCE;right:16px;left:auto;line-height:18px;}
.im-messages .im-name {line-height:18px;color:#111;}
.im-messages .im-name span.im-identifier {font-size:11px;color:#fff;background:#555;padding:0 3px;line-height:16px;display:inline-block;font-weight:600;}
.im-messages .im-table-row.im-from .im-name span.im-identifier {background:#F44336;}
.im-messages .im-date {font-size:10px;line-height:18px;color:#bbb;}
.im-messages .im-message-content {margin:8px 0;}
.im-messages .im-message-extra {text-align:right;margin-bottom:-3px;margin-top:8px;height:18px;}
.im-messages .im-message-extra.im-box-gray {padding:10px 8px 4px 8px!important;margin-top:15px;height:auto;background:#fdfdfd;border-top:1px solid #eee;-webkit-border-bottom-right-radius: 3px; -webkit-border-bottom-left-radius: 3px; -moz-border-radius-bottomright: 3px; -moz-border-radius-bottomleft: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
.im-messages .im-message-extra a.im-hide {color:#F44336;font-size:11px;font-weight:500;text-decoration:underline;display:none;float:right;margin-left:10px;}
.im-messages .im-message-extra a.im-hide:hover {text-decoration:none;}
.im-messages .im-table-row:hover .im-message-extra a.im-hide {display:block;}
.im-messages .im-message-extra a.im-download {font-size:11px;text-decoration:none;float:left;}
.im-messages .im-message-extra a.im-download:hover {text-decoration:underline;}
.im-messages .im-att-icon {margin-right:5px;vertical-align:-3px;}

/* New message form - on MESSAGE LIST page */
#im-message-form {float:left;width:100%;margin:20px 0 30px 0;clear:both;width:100%;padding:12px;border:1px solid #eee;background:#f0f0f0;-webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;}
body.file-messages #im-message-form {background:transparent !important;border:none !important;padding:0 !important;margin:0 !important;}
#im-message-form .im-file, #im-create-thread-form .im-file {background: #fff;width:auto;max-width:100%;min-width:0; border: 1px solid #ddd; padding: 3px; float: right; font-size: 12px; margin: 2px 0 1px 0; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px;}
.im-textarea {color:#333;margin:0 0 15px 0;height:175px;outline:none;width:100%;padding:5px;font-size:13px;line-height:16px;border:1px solid #ddd;background:#fff;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none; border-radius: 0px;}
.im-textarea:focus, .im-textarea:active {border-color:#eaa867;}
.im-input {color:#333;margin:0;outline:none;width:100%;max-width:220px;padding:5px;font-size:13px;line-height:16px;border:1px solid #ddd;background:#fff;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none; border-radius: 0px;}
.im-input:focus, .im-input:active {border-color:#eaa867;}
.im-label {margin:5px 0 2px 0;font-size:13px;color:#fff;width:100%;clear:both;display:inline-block;}



/* TABLE */
.im-table {display:inline-block;width:100%;clear:both;}
.im-table-head {display:inline-block;width:100%;clear:both;border: none; font-weight: normal; vertical-align: top; border-bottom: solid 1px #a0d0eb;color:#555;font-size:12px;}
.im-table-head > div {padding:8px;text-align:center;}
.im-table-row {display:block;width:100%;clear:both;float:left;background:#fff;font-size:12px;border-bottom:1px solid #EAEDEF;padding:4px 0;}
.im-table-row:nth-child(odd) {background:#FCFDFE;}
.im-table-row:hover {background:#f4f8fb;}
.im-table-row > div {overflow:hidden;padding:8px;text-align:center;}
.im-table-row > div.no-img {padding-left:56px;}
.im-table-row > div.im-line {overflow:hidden;padding:2px 8px;text-align:center;}
.im-table-row > div a {text-decoration:underline;color:#1eb377;}
.im-table-row > div a:hover {text-decoration:none;}
.im-table-row > div.im-red {color:#F44336;}
.im-table-row .im-align-left, .im-table-head > div.im-align-left, .im-align-left {text-align:left;}
.im-table-row .im-align-right, .im-table-head > div.im-align-right, .im-align-right {text-align:right;}
.im-table-row .im-align-center, .im-table-head > div.im-align-center, .im-align-center {text-align:center;}
.im-table-row.im-table-row-summary {font-weight:bold;background:#E3F0FD;color:#000;border-bottom-color:#DDE2E4;}
.im-table-row.im-table-row-summary:nth-child(odd) {background:#EDF4FB}
.im-row-empty {text-align:center;padding:30px 25px 20px 25px;}
.im-row-empty i {color: #dedede; display: block; clear: both; font-size: 80px; text-shadow: #fff 1px 1px 0;}
.im-row-empty span {text-align: center; display: block; color: #999;font-size:14px;}


@media screen and (max-width: 767px) {
  .im-table-head > div.im-col-2 {display:none;}
}



/* BASE STYLES */
.im-i {font-style:italic;}
.im-u {text-decoration:underline;}
.im-b {font-weight:bold;}
.im-gray {color:#888;}
.im-row {width:100%;display:inline-block;margin:5px 0;clear:both;}
h2.im-head {font-size:20px;color:#363A41;display:inline-block;width:100%;padding:0;margin:0 0 25px 0;font-weight:bold;}
h3.im-head {font-size:16px;color:#484848;display:inline-block;width:100%;padding:0;margin:50px 0 15px 0;font-weight:bold;}
.im-body {box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box;font-size:14px;line-height:18px;}


/* Buttons */
.im-button-white {outline:none;box-shadow:none;display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 6px 8px; font-size: 13px; line-height: 17px; height:31px;border-radius: 3px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;color: #363A41!important; background-color: #fff; border-color: #DEDEDE;}
.im-button-white:hover {color: #fff; background-color: #00aff0; border-color: #008abd; -webkit-box-shadow: none; box-shadow: none;}
.im-button-green, .im-body #uniform-undefined {text-shadow:none;background-position:0;float:left;outline:none;box-shadow:none;display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; font-weight:600;cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 8px 10px; font-size: 13px; line-height: 16px; height:34px;border-radius: 3px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;color: #ffffff!important; background-color: #1eb87a; border-color: #1eb87a;}
.im-button-green:hover, .im-body #uniform-undefined:hover {color: #fff; background-position:0;background-color:#1b7ac5; border-color: #1b7ac5; -webkit-box-shadow: none; box-shadow: none;}
.im-button-red {outline:none;box-shadow:none;display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 6px 8px; font-size: 13px; line-height: 17px; height:31px;border-radius: 3px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;color: #ffffff!important; background-color: #E08F95; border-color: #da7b82;}
.im-button-red:hover {color: #fff; background-color: #d5676f; border-color: #cd4b55; -webkit-box-shadow: none; box-shadow: none;}
.im-body .uploader {float:right;margin:1px 0 0 0;width:auto;display:none;}



div[class^="im-col-"] {float:left;position:relative;}
.im-col-1 {width:4.16667%}
.im-col-2 {width:8.33333%}
.im-col-3 {width:12.5%}
.im-col-4 {width:16.66667%}
.im-col-5 {width:20.83333%}
.im-col-6 {width:25%}
.im-col-7 {width:29.16667%}
.im-col-8 {width:33.33333%}
.im-col-9 {width:37.5%}
.im-col-10 {width:41.66667%}
.im-col-11 {width:45.83333%}
.im-col-12 {width:50%}
.im-col-13 {width:54.16667%}
.im-col-14 {width:58.33333%}
.im-col-15 {width:62.5%}
.im-col-16 {width:66.66667%}
.im-col-17 {width:70.83333%}
.im-col-18 {width:75%}
.im-col-19 {width:79.16667%}
.im-col-20 {width:83.33333%}
.im-col-21 {width:87.5%}
.im-col-22 {width:91.66667%}
.im-col-23 {width:95.83333%}
.im-col-24 {width:100%}



/* RTL */
html[dir="rtl"] .im-body, html[dir="rtl"] .im-html, html[dir="rtl"] .im-table, html[dir="rtl"] .im-messages, html[dir="rtl"] .im-threads {direction:rtl;}
html[dir="rtl"] div[class^="im-col-"] {float:right;}
html[dir="rtl"] .im-button-green, html[dir="rtl"] .im-body #uniform-undefined {float:right;}
html[dir="rtl"] body #im-create-thread-form button.im-button-green {clear:none;}
html[dir="rtl"] body #im-create-thread-form .im-attachment {margin-right:10px;margin-left:0;margin-bottom:10px;}
html[dir="rtl"] body form#im-create-thread-form {float:right;clear:none;margin-left:20px;margin-right:0;}
html[dir="rtl"] body .im-row.im-item-related {float:left;}
html[dir="rtl"] body .im-file-create-thread .im-error-list.error-list {float:right;clear:right;}
html[dir="rtl"] #user-main .user-custom-box h2 {float:right;text-align:right;width:100%;}
html[dir="rtl"] body .im-attachment .im-att-box .im-status i {float:right;margin-left:2px;transform:scaleX(-1);}
html[dir="rtl"] .im-contact {float:right;margin-left:15px;margin-right:0;padding-left:46px;padding-right:10px;text-align:right;}
html[dir="rtl"] .im-contact .im-top, html[dir="rtl"] .im-contact .im-bot {float:right;}
html[dir="rtl"] .im-contact i {left:7px;right:auto;}
html[dir="rtl"] .im-contact:after {left:-15px;right:auto;transform:rotate(-7deg);}
html[dir="rtl"] .im-input, html[dir="rtl"] body .im-input, html[dir="rtl"] .im-input, html[dir="rtl"] #im-create-thread-form .im-input, html[dir="rtl"] body #im-message {float:right;}
html[dir="rtl"] body .im-file-create-thread h2.im-head, html[dir="rtl"] h2.im-head {text-align:right;}
html[dir="rtl"] body .im-file-messages #im-error-list, html[dir="rtl"] .im-table.im-messages, html[dir="rtl"] body #im-message-form {float:right;clear:right;margin-left:5%;margin-right:0;}
html[dir="rtl"] body .im-messages .im-table-row {margin-left:0;margin-right:70px;}
html[dir="rtl"] body .im-messages .im-table-row.im-from {margin-left:70px;margin-right:0;}
html[dir="rtl"] .im-messages .im-table-row {float:right;border-radius:2px 0 2px 2px;}
html[dir="rtl"] .im-messages .im-table-row.im-from {float:left;border-radius:0 2px 2px 2px;}
html[dir="rtl"] body .im-table-row .im-horizontal {left:auto;right:-70px;}
html[dir="rtl"] body .im-table-row.im-from .im-horizontal {left:-70px;right:auto;}
html[dir="rtl"] body #im-message {padding-left:115px;padding-right:15px;}
html[dir="rtl"] body #im-message-form button {float:left;}
html[dir="rtl"] body #im-message-form button.im-button-alt {float:left;left:7px;right:auto;}
html[dir="rtl"] body #im-message-form button.im-button-alt i {transform:scaleX(-1);}
html[dir="rtl"] body .im-messages .im-from .im-date {right:2px;left:auto;}
html[dir="rtl"] .im-table-row .im-del-mes-box {left:-32px;right:auto;padding-right:4px;padding-left:0;}
html[dir="rtl"] .im-table-row.im-from .im-del-mes-box {right:-32px;left:auto;padding-left:4px;padding-right:0;}
html[dir="rtl"] .im-attachment .im-att-box .im-status {float:right;}
html[dir="rtl"] body #im-message-form .im-attachment {left:58px;right:auto;}
html[dir="rtl"] .im-table-row .im-align-left, html[dir="rtl"] .im-table-head > div.im-align-left, html[dir="rtl"] .im-align-left {text-align:right;}
html[dir="rtl"] body .im-messages .im-message-extra.im-box-gray {padding-right:0px!important;padding-left:44px!important;text-align:right;}
html[dir="rtl"] body .im-messages .im-message-extra a.im-download {float:right;}
html[dir="rtl"] body .im-messages .im-message-extra a.im-download > i {float:right;margin-left:6px;margin-right:0;}
html[dir="rtl"] body .im-messages .im-message-extra a.im-hide {left:0;right:auto;}
html[dir="rtl"] body .im-alt-head .im-head2 {padding-left:110px;padding-right:0;}
html[dir="rtl"] body .im-threads .im-line, html[dir="rtl"] body .im-threads .im-title a, html[dir="rtl"] .im-block .im-table-head strong {float:right;}
html[dir="rtl"] body .im-table-row > div.no-img {padding-right:56px;padding-left:8px;}
html[dir="rtl"] .im-profile-img {right:3px;left:auto;}
html[dir="rtl"] .im-threads .im-title a.im-block-thread {margin-right:3px;margin-left:0;}
html[dir="rtl"] body .im-block .im-table-row .im-col-22 {padding-left:8px;padding-right:3px;text-align:right;}
html[dir="rtl"] .im-table.im-body {direction:ltr;}
html[dir="rtl"] .im-table.im-body > div, html[dir="rtl"] .im-table.im-body > span {direction:rtl;}
html[dir="rtl"] .im-table-head > div.im-align-left {text-align:right;}
html[dir="rtl"] .im-user-account-count {margin-left:0;margin-right:3px;}
html[dir="rtl"] .im-limits-info {border:1px solid #ccc;border-right:4px solid #2196F3;}

/* Buy now tab — cart CTA matches Vrool emerald / slate (overrides Vrool Pay blue) */
#im-panel-buy .im-buy-now-cart-wrap .osp-product {
  float: none !important;
  clear: both;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

#im-panel-buy .im-buy-now-cart-wrap .osp-product-to-cart {
  float: none !important;
  clear: none !important;
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 140px;
  min-height: 48px;
  margin: 0 !important;
  padding: 12px 16px 12px 44px !important;
  border: 1px solid rgba(5, 46, 22, 0.12) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ad6dee 0%, #ad6dee 55%, #ad6dee 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#im-panel-buy .im-buy-now-cart-wrap .osp-product-to-cart.osp-has-quantity {
  border-radius: 14px 0 0 14px !important;
  border-right: none !important;
  margin-right: 0 !important;
}

#im-panel-buy .im-buy-now-cart-wrap .osp-product-to-cart:not(.osp-has-quantity) {
  width: 100%;
  max-width: 100%;
}

#im-panel-buy .im-buy-now-cart-wrap .osp-product-to-cart:not(.osp-disabled):hover {
  background: linear-gradient(180deg, #14b8a6 0%, #ad6dee 50%, #ad6dee 100%) !important;
  color: #fff !important;
  text-decoration: none !important;
  filter: brightness(1.02);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.28);
  transform: translateY(-1px);
}

#im-panel-buy .im-buy-now-cart-wrap .osp-product-to-cart.osp-disabled {
  background: #e2e8f0 !important;
  color: #64748b !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.9;
}

#im-panel-buy .im-buy-now-cart-wrap .osp-product-to-cart svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  fill: #fff !important;
}

#im-panel-buy .im-buy-now-cart-wrap .osp-product-quantity {
  float: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 48px;
  margin: 0 !important;
  padding: 8px 14px !important;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.2) !important;
  border-left: none !important;
  border-radius: 0 14px 14px 0 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#im-panel-buy .im-buy-now-cart-wrap .osp-product-quantity strong {
  font-weight: 800;
  font-size: 15px;
  color: #fff !important;
}

#im-panel-buy .im-buy-now-cart-wrap .osp-product-quantity span {
  font-size: 11px !important;
  font-weight: 600;
  opacity: 0.75;
  color: #cbd5e1 !important;
}

#im-panel-buy .im-buy-now-cart-wrap .osp-product-quantity strong.osp-sold-out {
  margin: 0;
  color: #fecaca !important;
}

#im-panel-buy .im-buy-panel-listing-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 800;
  font-size: 13px;
  color: #ad6dee !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

#im-panel-buy .im-buy-panel-listing-link:hover {
  color: #ad6dee !important;
  border-bottom-color: rgba(6, 95, 67, 0.35);
}

@media (max-width: 520px) {
  #im-panel-buy .im-buy-now-cart-wrap .osp-product {
    flex-direction: column;
  }
  #im-panel-buy .im-buy-now-cart-wrap .osp-product-to-cart.osp-has-quantity {
    border-radius: 14px 14px 0 0 !important;
    border-right: 1px solid rgba(5, 46, 22, 0.12) !important;
    border-bottom: none !important;
    width: 100%;
  }
  #im-panel-buy .im-buy-now-cart-wrap .osp-product-quantity {
    border-radius: 0 0 14px 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.2) !important;
    border-top: none !important;
    width: 100%;
    min-width: 0;
  }
}

html[dir="rtl"] #im-panel-buy .im-buy-now-cart-wrap .osp-product-to-cart {
  padding: 12px 44px 12px 16px !important;
}
html[dir="rtl"] #im-panel-buy .im-buy-now-cart-wrap .osp-product-to-cart.osp-has-quantity {
  border-radius: 0 14px 14px 0 !important;
  border-right: 1px solid rgba(5, 46, 22, 0.12) !important;
  border-left: none !important;
}
html[dir="rtl"] #im-panel-buy .im-buy-now-cart-wrap .osp-product-quantity {
  border-radius: 14px 0 0 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.2) !important;
  border-right: none !important;
}
html[dir="rtl"] #im-panel-buy .im-buy-now-cart-wrap .osp-product-to-cart svg {
  left: auto;
  right: 12px;
}

/* Thread view: force visible message scroller and taller pane */
@media screen and (min-width: 768px) {
  body.body-ua.plugin-instant_messenger.file-messages .im-html.im-file-messages .im-table.im-messages {
    height: auto !important;
    max-height: calc(100vh - 300px) !important;
    min-height: 200px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #f8fafc !important;
    background-image: none !important;
    border: 1px solid rgba(15,23,42,0.10) !important;
    border-radius: 16px !important;
  }
  #im-messages-container {
    background: #f8fafc !important;
    background-image: none !important;
  }
  #vrool-chat-bar {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
  }
  #vrool-input-shell {
    background: transparent !important;
  }
  #im-message {
    color: #1a1a1a !important;
  }
}

@media screen and (max-width: 767px) {
  body.body-ua.plugin-instant_messenger.file-messages .im-mobile-quick-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
    margin: 0 0 8px 0;
    width: 100%;
    box-sizing: border-box;
  }
  body.body-ua.plugin-instant_messenger.file-messages .im-mobile-item-link {
    display: flex !important;
    align-items: center;
  }
  body.body-ua.plugin-instant_messenger.file-messages .im-mobile-toggle-info,
  body.body-ua.plugin-instant_messenger.file-messages .im-mobile-toggle-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 10px 10px;
    border: 1px solid rgba(15,23,42,0.14);
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }
  body.body-ua.plugin-instant_messenger.file-messages .im-mobile-toggle-item {
    gap: 5px;
  }
  body.body-ua.plugin-instant_messenger.file-messages .im-mo-new-offer-row {
    width: 100%;
  }
  body.body-ua.plugin-instant_messenger.file-messages .im-mo-new-offer-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  body.body-ua.plugin-instant_messenger.file-messages.im-mobile-info-hidden #vrool-chat-meta,
  body.body-ua.plugin-instant_messenger.file-messages.im-mobile-info-hidden .im-alt-head,
  body.body-ua.plugin-instant_messenger.file-messages.im-mobile-info-hidden #vrool-dispute-note,
  body.body-ua.plugin-instant_messenger.file-messages.im-mobile-info-hidden .im-head-row {
    display: none !important;
  }

  body.body-ua.plugin-instant_messenger.file-messages.im-mobile-info-hidden .im-file-messages .im-table.im-messages {
    height: auto !important;
    max-height: 340px !important;
    min-height: 220px !important;
  }

  body.body-ua.plugin-instant_messenger.file-messages .im-file-messages .im-table.im-messages{
    height:auto !important;
    max-height:300px !important;
    min-height:220px !important;
  }

  body.body-ua.plugin-instant_messenger.file-messages .im-html.im-file-messages .im-table.im-messages {
    max-height: 100vh !important;
    min-height: 260px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
  }

  /* Mobile item image card: hidden by default, expandable on demand */
  body.body-ua.plugin-instant_messenger.file-messages .im-row.im-item-related {
    display: none !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages.im-mobile-item-open .im-row.im-item-related {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    border-radius: 10px !important;
    overflow: hidden;
  }
  body.body-ua.plugin-instant_messenger.file-messages.im-mobile-item-open .im-row.im-item-related .im-col-3.im-item-resource {
    width: 74px !important;
    max-width: 74px !important;
    min-width: 74px !important;
    float: left;
    margin: 0 !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages.im-mobile-item-open .im-row.im-item-related .im-col-21 {
    width: calc(100% - 74px) !important;
    float: left;
    padding: 8px 8px 8px 10px !important;
    box-sizing: border-box;
  }
  body.body-ua.plugin-instant_messenger.file-messages.im-mobile-item-open .im-row.im-item-related .im-line {
    height: auto !important;
    margin-bottom: 4px !important;
    white-space: normal !important;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
}

/* ══ Mobile IM conversation: tighten layout, remove empty gaps ══ */
@media screen and (max-width: 767px) {

  /* Back to messages link */
  .eps-im-back-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 0 6px 0;
    font-size: 13px;
    font-weight: 800;
    color: #ad6dee;
    text-decoration: none;
  }
  .eps-im-back-link:hover {
    color: #ad6dee;
  }
  .eps-im-back-link i {
    font-size: 12px;
  }

  /* Purchase success card: compact on mobile */
  .eps-im-purchase-card {
    margin: 6px 0 8px 0 !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    font-size: 13px;
  }
  .eps-im-purchase-card .eps-im-purchase-header {
    gap: 8px !important;
  }
  .eps-im-purchase-card .eps-im-purchase-header > div:first-child {
    font-size: 13px;
  }

  /* Collapsed by default on mobile — uses class toggle */
  .eps-im-purchase-card .eps-im-purchase-body:not(.eps-expanded) {
    display: none;
  }
  .eps-im-purchase-card .eps-im-toggle-arrow {
    transform: rotate(-90deg);
  }
  .eps-im-purchase-card.eps-expanded .eps-im-toggle-arrow {
    transform: rotate(0deg);
  }

  /* Purchase grid: 2 columns on mobile instead of 4 */
  .eps-im-purchase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 12px !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
  }
  .eps-im-purchase-grid > div {
    font-size: 12px;
  }

  /* Location + meeting point: full width, no float */
  .eps-im-location-wrap {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 6px !important;
  }

  /* Location text: compact */
  .eps-im-location-wrap > div:first-child {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }

  /* Meeting point toggle: compact */
  .eps-im-location-wrap #mpToggleBtn {
    padding: 8px 10px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
  }

  /* Meeting point panel: tighter */
  .eps-im-location-wrap #mpPanel {
    margin-top: 6px !important;
    border-radius: 8px !important;
    padding: 10px !important;
  }

  /* Safety note: tighter */
  body.body-ua.plugin-instant_messenger.file-messages #vrool-safety-note {
    margin: 0 0 6px 0 !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    gap: 8px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #vrool-safety-note div[style*="font-size:13px"] {
    font-size: 12px !important;
  }

  /* Chat-buy tabs: compact */
  body.body-ua.plugin-instant_messenger.file-messages .im-chat-buy-tabs {
    margin: 0 0 6px 0 !important;
    border-radius: 10px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages .im-chat-buy-tabs button {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  /* Error list: no extra space */
  body.body-ua.plugin-instant_messenger.file-messages #im-error-list {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ── Allow page to scroll on mobile so chat input is reachable ── */
  body.body-ua.plugin-instant_messenger.file-messages {
    height: auto !important;
    overflow: auto !important;
    overflow-x: hidden !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages .container.primary {
    height: auto !important;
    overflow: visible !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #user-main {
    height: auto !important;
    overflow: visible !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages .im-html.im-file-messages {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    margin-top: 0 !important;
  }

  /* Chat messages: natural height, scrollable within */
  body.body-ua.plugin-instant_messenger.file-messages .im-file-messages .im-table.im-messages {
    height: auto !important;
    max-height: 55vh !important;
    min-height: 200px !important;
    overflow-y: auto !important;
    padding-bottom: 16px !important;
  }

  /* Chat input: sticky at bottom of scroll, above mobile nav */
  body.body-ua.plugin-instant_messenger.file-messages .im-file-messages #im-message-form {
    position: sticky !important;
    bottom: 60px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99 !important;
    background: #111827 !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    padding: 8px 0 !important;
    margin: 8px 0 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ══ Mobile Chat Modal (Airbnb-style) ══ */

/* Hidden on desktop */
.eps-chat-fab { display: none !important; }
.eps-chat-modal-header { display: none !important; }

@media screen and (max-width: 767px) {

  /* ── Floating Chat Bubble ── */
  .eps-chat-fab {
    display: flex !important;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    height: 48px;
    padding: 0 18px 0 14px;
    border-radius: 24px;
    background: #ad6dee;
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(16,185,129,0.4), 0 2px 6px rgba(0,0,0,0.15);
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .eps-chat-fab:active {
    transform: translateX(-50%) scale(0.95);
  }
  .eps-chat-fab svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }
  .eps-chat-fab-label {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    color: #fff;
    letter-spacing: -0.01em;
  }

  /* Unread badge */
  .eps-chat-fab-badge {
    display: none;
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    align-items: center;
    justify-content: center;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  }

  /* ── Hide chat elements by default on mobile, show details page ── */
  body.body-ua.plugin-instant_messenger.file-messages .im-table.im-messages,
  body.body-ua.plugin-instant_messenger.file-messages #vrool-input-shell,
  body.body-ua.plugin-instant_messenger.file-messages #imImgPreview,
  body.body-ua.plugin-instant_messenger.file-messages .im-empty.flashmessage {
    display: none !important;
  }

  /* ── Chat Modal (when open) ── */
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .eps-chat-fab {
    display: none !important;
  }

  /* Push FAB higher when offer actions are visible to avoid overlap */
  .im-offer-card-actions ~ .eps-chat-fab,
  body.body-ua.plugin-instant_messenger.file-messages .eps-chat-fab {
    bottom: 140px;
  }

  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .eps-chat-modal-header {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    background: #111827;
    border-bottom: none;
    box-shadow: none;
    padding: 0;
  }

  .eps-chat-modal-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .eps-chat-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #e5e7eb;
    flex: 0 0 36px;
    transition: background 0.15s;
  }
  .eps-chat-modal-close:active {
    background: rgba(255,255,255,0.2);
  }

  .eps-chat-modal-title {
    flex: 1;
    min-width: 0;
  }
  .eps-chat-modal-name {
    font-weight: 900;
    font-size: 15px;
    color: #f9fafb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .eps-chat-modal-status {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    margin-top: 1px;
  }

  /* Full-screen overlay for chat */
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: #111827;
    z-index: 10001;
  }

  /* Show messages container as full-screen chat */
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .im-table.im-messages {
    display: block !important;
    position: fixed !important;
    top: 64px;
    top: calc(64px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10003;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #1e293b url(/images/vrool-chat-background.png) center/cover fixed !important;
    padding: 12px 12px 100px 12px !important;
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
  }

  /* Show input shell as fixed bottom bar */
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #vrool-input-shell {
    display: block !important;
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10004;
    margin: 0 !important;
    padding: 4px 12px !important;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    background: #111827 !important;
    border-top: none !important;
    box-shadow: none !important;
    float: none !important;
    width: auto !important;
    box-sizing: border-box !important;
  }

  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #imImgPreview {
    position: fixed !important;
    bottom: 56px;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 10005;
    margin: 0 !important;
    padding: 10px 12px !important;
    background: #1f2937 !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: 80px;
    overflow: hidden;
  }
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #imImgPreview:empty {
    display: none !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #imImgPreview:not(:empty) {
    display: block !important;
  }

  /* Hide the page content behind the modal */
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .eps-im-purchase-card,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .im-mobile-quick-actions,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #vrool-chat-meta,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .im-head-row,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .im-chat-buy-tabs,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #vrool-safety-note,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .eps-im-location-wrap,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #vrool-dispute-note,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .im-row.im-item-related,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #im-error-list,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .im-alt-head,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #vrool-dispute-alert,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #vrool-refund-box {
    visibility: hidden !important;
    position: relative;
    z-index: 0;
  }

  /* Hide header, category nav, and footer behind the chat modal */
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open header,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .vrool-catnav,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open footer,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #user-menu,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .eps-mobile-nav {
    display: none !important;
  }

  /* Prevent body scroll when modal is open */
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open {
    overflow: hidden !important;
    background: #111827 !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .container,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #user-main,
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .user-custom-box {
    background: #111827 !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .im-table.im-messages {
    border: none !important;
    border-radius: 0 !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open #im-wait-notice {
    position: fixed !important;
    bottom: 56px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10005 !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  /* Message bubbles: spacious in modal */
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .im-table.im-messages .im-table-row {
    max-width: 82% !important;
    margin-bottom: 20px !important;
    padding: 10px 14px 4px 14px !important;
    border-radius: 16px !important;
    font-size: 14px;
  }
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .im-table.im-messages .im-table-row.im-from {
    border-radius: 16px !important;
    border-bottom-right-radius: 4px !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages.eps-chat-modal-open .im-table.im-messages .im-table-row:not(.im-from) {
    border-top-left-radius: 4px !important;
  }
}

/* Hide Remove thread button — threads should only be archived, not deleted (dispute evidence) */
.im-remove-thread { display: none !important; }

/* WhatsApp button: match phone tab dashed border style */
.item-whatsapp-row .wac-box .wac-btn[class*="wac-item"],
.item-whatsapp-row a.wac-btn.wac-item,
a.wac-btn.wac-item.wac-button-rounded,
a.wac-btn.wac-item.wac-button-square,
a.wac-btn.wac-item.wac-button-bubble {
  background: rgba(16,185,129,0.06) !important;
  border: 1px dashed rgba(16,185,129,0.40) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  padding: 10px 14px !important;
}
.item-whatsapp-row a.wac-btn.wac-item:hover,
a.wac-btn.wac-item:hover {
  background: rgba(16,185,129,0.06) !important;
  border: 1px dashed rgba(16,185,129,0.40) !important;
}
.item-whatsapp-row .wac-icon,
a.wac-btn.wac-item .wac-icon {
  background: rgba(16,185,129,0.12) !important;
  border-radius: 10px !important;
}
.item-whatsapp-row .wac-text span,
a.wac-btn.wac-item .wac-text span {
  color: #ad6dee !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  text-decoration: none !important;
}


/* ── Padding below chat messages and reply-wait notice spacing ── */
body.body-ua.plugin-instant_messenger.file-messages .im-table.im-messages {
  padding-bottom: 20px !important;
}

body.body-ua.plugin-instant_messenger.file-messages #flashbox {
  margin: 10px 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

body.body-ua.plugin-instant_messenger.file-messages #flashbox .flashmessage {
  margin: 0 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  width: fit-content !important;
}

body.body-ua.plugin-instant_messenger.file-messages #flashbox .flashmessage::before {
  display: none !important;
  content: none !important;
}


/* ── Sender messages: light green background for easy distinction ── */
body .im-messages .im-table-row.im-from {
  background: #f0fdfa !important;
  border-color: rgba(5, 150, 105, 0.15) !important;
}


/* Constrain flash messages to same width as chat area on desktop */
@media (min-width: 768px) {
  body.body-ua.plugin-instant_messenger.file-messages #flashbox {
    width: calc(100% - 380px) !important;
    max-width: calc(100% - 380px) !important;
  }
  body.body-ua.plugin-instant_messenger.file-messages #flashbox .flashmessage {
    font-size: 12px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    width: fit-content !important;
    max-width: 100% !important;
  }
}

/* Cancelled order thread — red styling */
body .im-threads .im-table-row.im-cancelled-order {
  border-left: 3px solid #dc2626 !important;
  background: #fef2f2 !important;
  padding-left: 10px !important;
}
body .im-threads .im-table-row.im-cancelled-order .im-title a.im-mes-title {
  color: #991b1b !important;
}
body .im-threads .im-table-row.im-cancelled-order .im-from-to,
body .im-threads .im-table-row.im-cancelled-order .im-time {
  color: #b91c1c !important;
}
body .im-threads .im-table-row.im-cancelled-order:hover {
  background: #fee2e2 !important;
}

/* Fix: Remove forced min-height on mobile IM that causes white gap */
@media(max-width:767px){
body.plugin-instant_messenger.file-messages #user-main{min-height:auto!important}
body.plugin-instant_messenger.file-messages .im-table.im-messages{min-height:auto!important;max-height:none!important;height:auto!important}
}

/* Fix: Remove white gap on mobile IM page caused by body min-height + flex column */
@media(max-width:980px){
body.plugin-instant_messenger.file-messages{min-height:auto!important;height:auto!important}
body.plugin-instant_messenger.file-messages .container.primary{min-height:auto!important;height:auto!important;justify-content:flex-start!important}
body.plugin-instant_messenger.file-messages #user-main{min-height:auto!important;height:auto!important;flex:0 1 auto!important}
body.plugin-instant_messenger.file-messages .user-custom-box{min-height:auto!important}
body.plugin-instant_messenger.file-messages .im-html.im-file-messages{float:none!important;clear:none!important}
}
/* Fix: Aggressive gap removal on mobile IM messages page */
@media(max-width:980px){
body.plugin-instant_messenger.file-messages .eps-im-back-link{display:none!important}
body.plugin-instant_messenger.file-messages .user-custom-box{padding:0!important;margin:0!important}
body.plugin-instant_messenger.file-messages .im-html{margin:0!important;padding:0!important;float:none!important}
}

/* Fix: Force hide user menu items on mobile IM pages */
@media(max-width:980px){
body.body-ua.plugin-instant_messenger #user-menu .vrool-ua-menu{display:none!important;height:0!important;overflow:hidden!important;padding:0!important;margin:0!important}
body.body-ua.plugin-instant_messenger #user-menu{padding:0!important;margin:0 0 4px 0!important;border:none!important;background:transparent!important;width:100%!important;max-width:100%!important;position:relative!important;top:auto!important;height:auto!important;flex:none!important}
body.body-ua.plugin-instant_messenger #epsUaMenuToggle.vrool-ua-menu-toggle{display:flex!important;width:100%!important;margin:0!important;padding:10px 14px!important;border:1px solid rgba(15,23,42,0.14)!important;border-radius:12px!important;background:#fff!important}
}
