/* Customer support dialog */
.shop-modal-panel.report-modal{width:min(700px,100%);height:min(820px,calc(100dvh - 36px));max-height:calc(100dvh - 36px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #e5ebf3;box-shadow:0 25px 75px rgba(11,29,52,.24)}
.shop-modal-panel.report-modal .modal-head{flex:none;padding:15px 20px;background:#fff;border-bottom:1px solid #e9edf4}
.shop-modal-panel.report-modal .modal-title{font-size:17px;line-height:1.35;color:#1c2d45}
.shop-modal-panel.report-modal .modal-body{padding:0;flex:1;min-height:0;overflow:hidden}
.customer-report-chat{height:100%;min-height:0;display:flex;flex-direction:column;background:#f5f8fc;color:#23334a}
.customer-report-live{flex:none;padding:8px 20px;background:#fff;color:#0d907b;font-size:11px;text-align:right;border-bottom:1px solid #edf0f5}
.customer-report-messages{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:24px 23px;background:linear-gradient(160deg,#f4f8fc 0%,#edf3f9 100%);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7d3e1 transparent}
.customer-report-bubble{position:relative;align-self:flex-start;max-width:min(76%,460px);padding:10px 14px;border:1px solid #e5ebf2;border-radius:17px 17px 17px 5px;background:#fff;box-shadow:0 2px 9px rgba(28,49,77,.055);overflow-wrap:anywhere}
.customer-report-bubble.mine{align-self:flex-end;max-width:min(76%,460px);border-color:#bfe5df;border-radius:17px 17px 5px 17px;background:#dff4f0}
.customer-report-bubble.sending{opacity:.7}
.customer-report-bubble-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:16px}
.customer-report-bubble-header strong{font-size:11px;font-weight:600;color:#547087}
.customer-report-bubble.mine .customer-report-bubble-header strong{color:#176b61}
.customer-report-body{white-space:pre-wrap;font-size:13px;line-height:1.62;color:#24364c;margin-top:4px}
.customer-report-bubble-header+.customer-report-body:empty{display:none}
.customer-report-meta{display:flex;justify-content:flex-start;align-items:center;gap:6px;margin-top:6px;color:#75849a;font-size:10px;white-space:nowrap}
.customer-report-meta time{font-size:10px}
.customer-report-meta small,.customer-report-send-state{font-size:10px;color:#087e71;font-weight:500}
.customer-report-bubble.mine .customer-report-meta{position:absolute;right:calc(100% + 8px);bottom:1px;min-width:86px;display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.customer-report-send-state{display:block;margin-top:6px;text-align:right}
.customer-report-delete{border:0;background:transparent;color:#8997a9;padding:1px 3px;font-size:11px;line-height:1;white-space:nowrap}
.customer-report-delete:hover{color:#bd4852}
.customer-report-image-button{display:block;padding:7px 0 2px;border:0;background:transparent;cursor:zoom-in;max-width:100%}
.customer-report-image-button img{display:block;max-width:min(260px,100%);max-height:230px;object-fit:contain;border-radius:11px;background:#e6edf5}
.customer-report-file-link{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;padding:5px 0 0;font-size:11px;color:#0a746b;overflow-wrap:anywhere;text-align:left}
.customer-report-file-link:hover{text-decoration:underline}
.customer-report-empty{margin:auto;text-align:center;color:#708198;display:grid;justify-items:center;gap:7px;font-size:12px}
.customer-report-empty i{display:grid;place-items:center;width:52px;height:52px;border-radius:18px;background:#fff;color:#0d9488;font-size:24px;box-shadow:0 3px 12px rgba(31,66,89,.06)}
.customer-report-empty strong{font-size:15px;color:#2a3a50}
.customer-report-composer{flex:none;padding:14px 18px 16px;background:#fff;border-top:1px solid #e6ebf2;box-shadow:0 -5px 18px rgba(24,43,67,.035)}
.customer-report-composer textarea{display:block;width:100%;min-height:55px;max-height:118px;resize:vertical;padding:11px 13px;border:1px solid #d9e2ed;border-radius:13px;background:#fafcff;color:#213149;font-size:13px;line-height:1.5;outline:0}
.customer-report-composer textarea:focus{border-color:#0d9488;box-shadow:0 0 0 3px rgba(13,148,136,.12);background:#fff}
.customer-report-compose-actions{display:flex;align-items:center;gap:10px;margin-top:10px}
.customer-report-attach{display:inline-flex;align-items:center;gap:6px;flex:none;padding:8px 11px;border:1px solid #c9dfdf;border-radius:10px;color:#087f75;background:#f9fdfc;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.customer-report-attach:hover{background:#e9f7f4}
.customer-report-file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#74849a}
.customer-report-send{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;border:0;border-radius:10px;padding:9px 15px;background:#0d9488;color:white;font-size:12px;font-weight:600;cursor:pointer;min-height:38px}
.customer-report-send:hover{background:#087f75}
.customer-report-send:disabled{opacity:.55;cursor:wait}
.customer-report-hint{font-size:10px;color:#8a97a8;margin-top:8px}
.customer-report-closed{font-size:12px;color:#845d16;background:#fff7e8;border:1px solid #f4e6c9;padding:12px;border-radius:10px}
@media(max-width:600px){.modal-wrap:has(.report-modal){padding:7px}.shop-modal-panel.report-modal{width:100%;height:calc(100dvh - 14px);max-height:calc(100dvh - 14px);border-radius:17px}.shop-modal-panel.report-modal .modal-head{padding:14px 16px}.customer-report-messages{padding:17px 14px;gap:10px}.customer-report-bubble{max-width:89%}.customer-report-bubble.mine{max-width:72%}.customer-report-composer{padding:11px 13px 14px}.customer-report-live{padding:7px 14px}}
