.ialc-app{display:grid;grid-template-columns:minmax(220px,32%) 1fr;min-height:520px;border:1px solid #e3e7eb;border-radius:14px;overflow:hidden;background:#fff;color:#202a33;font-family:inherit;direction:rtl}
.ialc-sidebar{background:#f7f9fb;border-left:1px solid #e3e7eb;padding:16px;min-width:0}
.ialc-sidebar h3{margin:0 0 14px;font-size:18px}
.ialc-conversation-list{display:flex;flex-direction:column;gap:8px}
.ialc-conversation-item{position:relative;display:flex;flex-direction:column;gap:5px;width:100%;text-align:right;padding:12px;border:1px solid #e3e7eb;border-radius:10px;background:#fff;color:inherit;cursor:pointer}
.ialc-conversation-item.is-active{border-color:#2271b1;background:#eef6fc}
.ialc-conversation-title{font-weight:700}
.ialc-conversation-product,.ialc-conversation-preview{font-size:12px;color:#63717d;overflow-wrap:anywhere}
.ialc-unread{position:absolute;left:8px;top:8px;min-width:20px;padding:2px 5px;border-radius:20px;background:#2271b1;color:#fff;text-align:center;font-size:11px}
.ialc-main{display:flex;flex-direction:column;min-width:0;min-height:520px}
.ialc-chat-header{padding:16px;border-bottom:1px solid #e3e7eb;font-weight:700}
.ialc-messages{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:16px;background:#fff;max-height:520px}
.ialc-empty{color:#75818b;text-align:center;margin:auto}
.ialc-message{max-width:82%;align-self:flex-start;display:flex;flex-direction:column;gap:4px}
.ialc-message.is-mine{align-self:flex-end}
.ialc-message-body{white-space:pre-wrap;overflow-wrap:anywhere;background:#f0f2f4;border-radius:12px 12px 12px 3px;padding:10px 13px}
.ialc-message.is-mine .ialc-message-body{background:#e2f3e8;border-radius:12px 12px 3px 12px}
.ialc-message-time{font-size:10px;color:#7b8790;padding:0 4px}
.ialc-compose{display:flex;gap:8px;align-items:stretch;padding:12px;border-top:1px solid #e3e7eb}
.ialc-compose textarea{flex:1;min-width:0;resize:vertical;border:1px solid #cbd3da;border-radius:9px;padding:10px;font:inherit}
.ialc-compose button,.ialc-start-chat{border:0;border-radius:9px;background:#176b45;color:#fff;padding:10px 16px;font:inherit;cursor:pointer}
.ialc-compose button:disabled,.ialc-start-chat:disabled{opacity:.55;cursor:not-allowed}
.ialc-status,.ialc-inline-status{font-size:12px;color:#9b342e;padding:0 12px 8px}
.ialc-product-action{margin-top:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ialc-login-notice{padding:12px;border:1px solid #e3e7eb;border-radius:8px}
.ialc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:640px){.ialc-app{grid-template-columns:1fr;min-height:0}.ialc-sidebar{border-left:0;border-bottom:1px solid #e3e7eb}.ialc-conversation-list{max-height:220px;overflow:auto}.ialc-main{min-height:420px}.ialc-messages{max-height:420px}.ialc-message{max-width:92%}}

.ialc-chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ialc-chat-controls{display:flex;gap:6px;flex-wrap:wrap}
.ialc-control-button{font:inherit;font-size:12px;padding:7px 10px;border:1px solid #cbd3da;border-radius:8px;background:#fff;color:#33414d;cursor:pointer}
.ialc-control-danger{border-color:#e1b4b1;color:#9b342e}
.ialc-control-report{border-color:#e3c58c;color:#805400}
.ialc-control-button:disabled{opacity:.5;cursor:not-allowed}

.ialc-login-chat{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;line-height:1.4}
.ialc-login-chat:hover,.ialc-login-chat:focus{color:#fff;filter:brightness(.94)}
.ialc-inline-hint{font-size:12px;color:#63717d}

/* Placement inside the classifieds contact-information modal */
.ialc-contact-modal-action{margin:12px 0;padding:12px 0;border-top:1px solid #e5e7eb;display:flex;flex-direction:column;align-items:stretch;gap:7px;direction:rtl}
.ialc-contact-modal-action .ialc-start-chat{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;min-height:42px;text-decoration:none!important;line-height:1.4}
.ialc-contact-modal-action .ialc-inline-hint{display:block}


/* 1.2.6: compact marketplace-style conversation header and stable composer */
.ialc-app{direction:rtl;min-width:0}
.ialc-main{min-width:0;min-height:560px;background:#fff}
.ialc-chat-header.ialc-chat-header-modern{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;padding:14px 16px;background:#fff;border-bottom:1px solid #e3e7eb;flex-shrink:0}
.ialc-chat-heading{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;width:100%;text-align:right}
.ialc-chat-name{font-size:16px;font-weight:750;line-height:1.5;color:#202a33;overflow-wrap:anywhere}
.ialc-chat-product{font-size:12px;font-weight:400;line-height:1.5;color:#687783;overflow-wrap:anywhere;max-width:100%}
.ialc-chat-product[hidden]{display:none!important}
.ialc-chat-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;width:100%;padding-top:2px}
.ialc-control-button{min-height:34px;font-size:12px;white-space:nowrap}
.ialc-messages{min-height:280px;height:clamp(280px,52vh,560px);max-height:none;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth}
.ialc-compose{position:sticky;bottom:0;z-index:2;display:flex;flex-direction:row;direction:rtl;align-items:flex-end;gap:8px;background:#fff;padding:10px 12px;padding-bottom:max(10px,env(safe-area-inset-bottom));box-shadow:0 -2px 8px rgba(20,35,45,.04)}
.ialc-compose textarea{display:block;min-height:44px;max-height:120px;resize:vertical;line-height:1.5;box-sizing:border-box}
.ialc-compose button{flex:0 0 auto;min-width:76px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.ialc-status{flex-shrink:0;background:#fff}
@media(max-width:640px){
 .ialc-app{display:flex;flex-direction:column;border-radius:12px;overflow:hidden}
 .ialc-sidebar{padding:10px;border-left:0;border-bottom:1px solid #e3e7eb}
 .ialc-sidebar h3{font-size:15px;margin-bottom:8px}
 .ialc-conversation-list{display:flex;flex-direction:row;max-height:none;overflow-x:auto;overflow-y:hidden;padding-bottom:3px;gap:8px}
 .ialc-conversation-item{flex:0 0 min(78%,260px);width:auto;min-width:0}
 .ialc-main{min-height:0;height:auto}
 .ialc-chat-header.ialc-chat-header-modern{padding:12px;gap:9px}
 .ialc-chat-name{font-size:15px}
 .ialc-chat-controls{gap:5px}
 .ialc-control-button{padding:6px 8px;min-height:32px;font-size:11px}
 .ialc-messages{height:48vh;min-height:260px;max-height:460px;padding:12px}
 .ialc-message{max-width:88%}
 .ialc-compose{padding:8px;gap:6px}
 .ialc-compose textarea{padding:9px;font-size:14px;min-height:42px}
 .ialc-compose button{min-width:66px;min-height:42px;padding:8px 11px}
}

/* Chat opened from the contact modal is rendered above the page, never inside the modal DOM. */
.ialc-app.ialc-floating-app{position:fixed!important;z-index:999999!important;right:50%;bottom:16px;transform:translateX(50%);width:min(1000px,calc(100vw - 24px));max-height:82vh;min-height:0;box-shadow:0 12px 48px rgba(0,0,0,.28);}
.ialc-app.ialc-floating-app .ialc-messages{max-height:48vh;overflow-y:auto;}
@media(max-width:640px){.ialc-app.ialc-floating-app{right:8px;bottom:8px;transform:none;width:calc(100vw - 16px);max-height:88vh}.ialc-app.ialc-floating-app .ialc-messages{max-height:42vh}}


/* 1.2.9: remove decorative separators from contact modal and use a proper multi-line report form */
.ialc-contact-modal-action{margin:8px 0 0!important;padding:8px 0 0!important;border-top:0!important;border-bottom:0!important;gap:7px!important}
.ialc-contact-modal-action:before,.ialc-contact-modal-action:after{content:none!important;display:none!important}
.ialc-contact-modal-action hr{display:none!important}
.ialc-report-overlay{position:fixed;inset:0;z-index:1000005;background:rgba(20,28,35,.58);display:flex;align-items:center;justify-content:center;padding:16px;direction:rtl}
.ialc-report-dialog{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:14px;padding:20px;box-shadow:0 16px 55px rgba(0,0,0,.28);display:flex;flex-direction:column;gap:12px;color:#202a33}
.ialc-report-title{margin:0;font-size:19px;font-weight:750}
.ialc-report-intro,.ialc-report-help{margin:0;font-size:13px;line-height:1.8;color:#687783}
.ialc-report-label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:650}
.ialc-report-reason,.ialc-report-details{box-sizing:border-box;width:100%;border:1px solid #cbd3da;border-radius:9px;background:#fff;padding:10px;font:inherit;font-weight:400;color:#202a33}
.ialc-report-details{min-height:130px;resize:vertical;line-height:1.8}
.ialc-report-help.is-error{color:#b42318}
.ialc-report-actions{display:flex;justify-content:flex-start;gap:8px;flex-wrap:wrap}
.ialc-report-actions button{border-radius:8px;padding:10px 16px;font:inherit;cursor:pointer}
.ialc-report-submit{border:0;background:#176b45;color:#fff}
.ialc-report-cancel{border:1px solid #cbd3da;background:#fff;color:#33414d}
.ialc-report-actions button:disabled{opacity:.6;cursor:wait}
@media(max-width:640px){.ialc-report-dialog{padding:16px}.ialc-report-title{font-size:17px}}


/* 1.2.12: chat opened from contact information becomes a full-screen page-like experience */
html.ialc-chat-fullscreen-open, body.ialc-chat-fullscreen-open{overflow:hidden!important}
.ialc-app.ialc-floating-app{position:fixed!important;inset:0!important;z-index:2147483000!important;right:0!important;bottom:0!important;left:0!important;top:0!important;transform:none!important;width:100vw!important;width:100dvw!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;box-sizing:border-box!important;grid-template-columns:minmax(240px,30%) minmax(0,1fr)!important}
.ialc-app.ialc-floating-app .ialc-main{height:100%;min-height:0!important;max-height:none!important}
.ialc-app.ialc-floating-app .ialc-messages{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important}
.ialc-app.ialc-floating-app .ialc-sidebar{min-height:0;overflow-y:auto}
@media(max-width:640px){.ialc-app.ialc-floating-app{display:flex!important;flex-direction:column!important;inset:0!important;width:100vw!important;width:100dvw!important;height:100vh!important;height:100dvh!important;max-height:none!important;border-radius:0!important}.ialc-app.ialc-floating-app .ialc-sidebar{flex:0 0 auto;max-height:24dvh;overflow-y:auto}.ialc-app.ialc-floating-app .ialc-main{display:flex;flex:1 1 auto;height:auto!important;min-height:0!important;overflow:hidden}.ialc-app.ialc-floating-app .ialc-messages{flex:1 1 auto;height:auto!important;min-height:0!important;max-height:none!important;padding-bottom:14px}.ialc-app.ialc-floating-app .ialc-compose{flex:0 0 auto;position:relative;bottom:auto}}


/* 1.2.13 moderation controls and clear red exit button */
.ialc-close-chat-button,.ialc-close-chat-button:hover,.ialc-close-chat-button:focus{background:#c62828!important;border:1px solid #a51d1d!important;color:#fff!important;font-weight:750!important}
.ialc-close-chat-button{min-height:36px;padding:8px 13px!important}
.ialc-reports-table th,.ialc-reports-table td{box-sizing:border-box;overflow-wrap:anywhere;vertical-align:top}
.ialc-reports-table td form{max-width:100%}
.ialc-reports-table select,.ialc-reports-table textarea{max-width:100%;box-sizing:border-box}
@media(max-width:782px){.ialc-reports-table{table-layout:auto!important}.ialc-reports-table th,.ialc-reports-table td{min-width:110px}}

.ialc-block-chat-button{border-color:#c53030!important;color:#a61b1b!important;background:#fff5f5!important}
.ialc-block-chat-button:hover{background:#c53030!important;color:#fff!important}

/* 1.2.18: prebuilt report dialog opens immediately on click */
.ialc-report-overlay[hidden]{display:none!important}
.ialc-report-overlay{transition:none!important;animation:none!important}
.ialc-report-overlay.is-visible{display:flex}

/* 1.2.19: report reasons styled as selectable rows matching the supplied reference */
.ialc-report-reason-list{display:flex;flex-direction:column;gap:0;margin-top:8px;border-top:1px solid #e2e2e2}
.ialc-report-reason-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:right;direction:rtl;border:0;border-bottom:1px solid #dedede;border-radius:0;background:#fff;color:#292929;padding:16px 4px;font:inherit;font-size:16px;line-height:1.7;cursor:pointer;min-height:54px}
.ialc-report-reason-row:hover,.ialc-report-reason-row:focus{background:#f8f8f8;outline:2px solid transparent}
.ialc-report-reason-chevron{color:#777;font-size:27px;line-height:1;flex:0 0 auto}
.ialc-report-details-panel[hidden],.ialc-report-reason-list[hidden],.ialc-report-back[hidden]{display:none!important}
.ialc-report-intro{font-size:14px;line-height:1.8;color:#777;padding-bottom:12px;border-bottom:1px solid #ddd}
.ialc-chat-controls .ialc-control-button{white-space:nowrap}
