.wd-eur-chat-wrap{max-width:920px;margin:18px 0;padding:12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.wd-eur-order-meta{font-size:12px;color:#666;margin-bottom:8px}

.wd-eur-messages{height:400px;overflow:auto;border:1px solid #eee;border-radius:10px;padding:12px;background:#fafafa}
.wd-eur-msg{margin-bottom:10px}
.wd-eur-from{font-weight:600;font-size:12px;margin-bottom:2px}
.wd-eur-time{float:right;font-size:11px;color:#9aa0a6}
.wd-eur-bubble{display:inline-block;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:8px 10px;max-width:80%;word-wrap:break-word}

.wd-eur-img .wd-eur-bubble img{max-width:240px;height:auto;border-radius:8px;border:1px solid #e5e7eb}

.wd-eur-composer{margin-top:12px}
#wd-eur-text{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:10px}
.wd-eur-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:6px}
.wd-eur-upload{cursor:pointer;font-size:13px;color:#0366d6}

.wd-eur-gallery{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.wd-eur-gallery img{width:96px;height:96px;object-fit:cover;border-radius:8px;border:1px solid #e5e7eb}

.wd-eur-orders{list-style:none;padding:0;margin:0 0 14px 0}
.wd-eur-orders li{margin:6px 0}
.wd-eur-order-link{text-decoration:none}



/* Left/Right alignment */
.wd-eur-msg{display:flex;flex-direction:column;max-width:95%;margin:8px 0}
.wd-eur-msg.other{align-items:flex-start}
.wd-eur-msg.me{align-items:flex-end;text-align:right}
.wd-eur-msg.me .wd-eur-bubble{background:#e6f3ff;border-color:#cfe7ff}
.wd-eur-msg.other .wd-eur-bubble{background:#fff;border-color:#e5e7eb}

/* Better spacing on names/time */
.wd-eur-from{font-weight:600;font-size:12px;margin-bottom:2px}
.wd-eur-time{font-size:11px;color:#9aa0a6;margin-left:8px}

/* Tables (backend + frontend) */
.wd-eur-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;margin:10px 0;padding:15px;}
.wd-eur-table th,.wd-eur-table td{padding:10px 12px;border-bottom:1px solid #f1f5f9}
.wd-eur-table thead th{background:#f8fafc;font-weight:600}
.wd-eur-table tr:last-child td{border-bottom:none}
.wd-eur-order-link{text-decoration:none}


/* Action buttons in tables */
.wd-eur-table .wd-eur-btn{ white-space:nowrap; line-height:1.2; padding:6px 10px; }


/* Status badges */
.wd-eur-status{display:inline-block;padding:3px 8px;font-size:12px;border-radius:12px;font-weight:600;color:#fff;line-height:1.2;text-transform:capitalize}
.wd-eur-status-pending{background:#f59e0b}
.wd-eur-status-processing{background:#2563eb}
.wd-eur-status-on-hold{background:#9333ea}
.wd-eur-status-completed{background:#16a34a}
.wd-eur-status-cancelled{background:#6b7280}
.wd-eur-status-refunded{background:#14b8a6}
.wd-eur-status-failed{background:#dc2626}

/* Highlight active row */
.wd-eur-table tr.wd-eur-row-active{background:#e6f3ff!important}
.wd-eur-table tr.wd-eur-row-active td{font-weight:600}

.wd-eur-chat-opened {
  display:inline-block;
  background:#16a34a;
  color:#fff;
  font-weight:600;
  padding:5px 10px;
  border-radius:12px;
  font-size:12px;
}


