/* تیکتینگ پشتیبانی در حساب کاربری — بر پایه‌ی استایل zk-storefront. */
.zk-support{display:flex;flex-direction:column;gap:16px}
.zk-support-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.zk-support-head h3{margin:0;font-size:16px;font-weight:700}

.zk-newticket{display:none;flex-direction:column;gap:12px;padding:16px}
.zk-newticket:target,.zk-newticket.is-open{display:flex}
.zk-newticket-row{display:flex;gap:12px}
.zk-newticket-row .zk-field{flex:1;min-width:0}

/* جدول تیکت‌ها (نمای ستونی) */
.zk-tt{display:flex;flex-direction:column;gap:10px}
.zk-tt-head,.zk-tt-row{display:grid;grid-template-columns:140px 110px 1.4fr 1fr 150px 130px;align-items:center;gap:12px}
.zk-tt-head{padding:0 16px;color:var(--zk-muted,#8a8f98);font-size:12px}
.zk-tt-row{padding:14px 16px;text-decoration:none;color:inherit}
.zk-tt-cell{min-width:0}
.zk-tt-subject{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zk-tt-num,.zk-tt-date{color:var(--zk-muted,#8a8f98);font-size:13px;white-space:nowrap}
.zk-tt-dept{font-size:13px}
.zk-tt-actions{justify-self:start}

/* موبایل: هر ردیف یک کارت با برچسب‌ها */
@media (max-width:767px){
	.zk-tt-head{display:none}
	.zk-tt-row{grid-template-columns:1fr;gap:8px}
	.zk-tt-cell[data-label]::before{content:attr(data-label) "：";color:var(--zk-muted,#8a8f98);font-size:12px;margin-inline-end:6px}
	.zk-tt-subject{white-space:normal}
	.zk-tt-actions{justify-self:stretch}
	.zk-tt-actions .zk-btn{width:100%;justify-content:center}
}

.zk-back{display:inline-block;font-size:13px;color:var(--zk-muted,#8a8f98);text-decoration:none}
.zk-back:hover{text-decoration:underline}

.zk-thread{display:flex;flex-direction:column;gap:10px}
.zk-msg{padding:12px 14px;border-radius:14px;max-width:85%}
.zk-msg-who{font-size:11px;color:var(--zk-muted,#8a8f98);margin-bottom:4px}
.zk-msg-body{font-size:14px;line-height:1.9;white-space:pre-wrap;word-break:break-word}
.zk-msg--me{align-self:flex-start;background:var(--zk-primary-50,#eef2ff);border:1px solid var(--zk-primary-100,var(--zk-line,#e5e7eb))}
.zk-msg--team{align-self:flex-end;background:var(--zk-bg,#f6f7f9);border:1px solid var(--zk-line,#e5e7eb)}

.zk-reply{display:flex;flex-direction:column;gap:10px;padding:16px}
.zk-empty{color:var(--zk-muted,#8a8f98);text-align:center;padding:24px 0}

/* برچسب وضعیت تیکت با توکن‌های تم خودمان */
.zk-chip--open{background:var(--zk-info-50,#e0edff);color:var(--zk-primary-600,var(--zk-primary,#1d4ed8))}
.zk-chip--pending{background:var(--zk-warning-50,#fff4e0);color:var(--zk-warning,#b45309)}
.zk-chip--answered{background:var(--zk-success-50,#e3f6e8);color:var(--zk-success,#15803d)}
.zk-chip--closed{background:var(--zk-line,#eceef1);color:var(--zk-muted,#52525b)}
