/* ============================================================
   Zupportly Frontend Styles — v5
   ============================================================ */

/* ============================================================
   CHAT BUBBLE BUTTON
   ============================================================ */
.et-bubble {
	position:fixed; bottom:24px; right:24px;
	background:linear-gradient(135deg,#4f46e5 0%,#2271b1 100%);
	color:#fff; width:58px; height:58px; border-radius:50%;
	display:flex; align-items:center; justify-content:center;
	cursor:pointer; box-shadow:0 4px 20px rgba(79,70,229,.45);
	z-index:99999; transition:transform .3s,box-shadow .3s;
	border:none; outline:none;
}
.et-bubble:hover { transform:scale(1.08); box-shadow:0 6px 28px rgba(79,70,229,.6); }
.et-bubble .dashicons { font-size:26px; width:26px; height:26px; }

/* ============================================================
   CHAT FORM CONTAINER
   ============================================================ */
.et-form-container {
	position:fixed; bottom:96px; right:24px;
	background:#fff; border-radius:18px;
	box-shadow:0 12px 48px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.06);
	width:350px; z-index:99999; overflow:hidden;
	opacity:0; transform:translateY(14px) scale(.97);
	transition:opacity .25s ease, transform .25s ease;
	pointer-events:none;
}
.et-form-container.visible {
	opacity:1; transform:translateY(0) scale(1);
	pointer-events:all;
}

/* ---- Header ---- */
.et-header {
	display:flex; align-items:center; gap:12px;
	background:linear-gradient(135deg,#1e1b4b 0%,#2271b1 100%);
	padding:15px 16px;
	position:relative;
}
.et-agent-thumbs {
	position:relative; width:70px; height:38px; flex-shrink:0;
}
.et-thumb {
	position:absolute; bottom:0;
	width:36px; height:36px; border-radius:50%;
	color:#fff; display:flex; align-items:center; justify-content:center;
	font-size:13px; font-weight:700;
	border:2px solid rgba(255,255,255,.8);
	box-shadow:0 2px 6px rgba(0,0,0,.2);
	overflow:hidden;
}
.et-header-text {
	flex:1; min-width:0;
}
.et-header-text h3 {
	margin:0 0 3px; font-size:15px; font-weight:700; color:#fff;
	display:flex; align-items:center; gap:6px; line-height:1;
}
/* ✅ Online dot — inline next to "Support" text */
.et-online-dot {
	display:inline-block; width:9px; height:9px;
	background:#4ade80; border-radius:50%;
	border:1.5px solid rgba(255,255,255,.6);
	box-shadow:0 0 6px rgba(74,222,128,.7);
	flex-shrink:0;
}
.et-header-sub {
	display:block; font-size:11px; color:rgba(255,255,255,.7); line-height:1;
}

/* ---- Close button ---- */
.et-close-btn {
	flex-shrink:0;
	width:30px; height:30px;
	background:rgba(255,255,255,.15);
	border:1px solid rgba(255,255,255,.25);
	color:#fff; border-radius:50%; cursor:pointer;
	font-size:20px; line-height:1;
	display:flex; align-items:center; justify-content:center;
	transition:background .2s; padding:0;
	/* Ensure it sits above everything */
	position:relative; z-index:2;
}
.et-close-btn:hover { background:rgba(255,255,255,.3); }

/* ---- Form body ---- */
.et-form-container form {
	display:flex; flex-direction:column;
	padding:16px 18px 18px;
	max-height:70vh; overflow-y:auto;
}
.et-form-container label {
	font-size:12px; font-weight:600; color:#374151; margin-top:10px; display:block;
}
.et-form-container label:first-child { margin-top:0; }
.et-form-container input,
.et-form-container select,
.et-form-container textarea {
	margin-top:5px; padding:10px 12px;
	border:1.5px solid #e5e7eb; border-radius:8px;
	font-size:13px; background:#f9fafb;
	transition:border-color .2s, box-shadow .2s; width:100%;
	box-sizing:border-box;
}
.et-form-container input:focus,
.et-form-container select:focus,
.et-form-container textarea:focus {
	border-color:#4f46e5; background:#fff; outline:none;
	box-shadow:0 0 0 3px rgba(79,70,229,.1);
}
.et-form-container textarea { min-height:80px; resize:none; }
.et-form-container button[type="submit"] {
	margin-top:16px; padding:12px; font-size:14px; font-weight:700;
	background:linear-gradient(135deg,#4f46e5,#2271b1); color:#fff;
	border:none; border-radius:10px; cursor:pointer; transition:opacity .2s;
}
.et-form-container button[type="submit"]:hover { opacity:.88; }
.et-form-container button[type="submit"]:disabled { opacity:.6; cursor:default; }

/* Response message */
#et-response { margin:0 18px 14px; padding:10px 14px; border-radius:8px; font-size:13px; display:none; }
#et-response.success { background:#f0fdf4; border:1px solid #a7f3d0; color:#065f46; display:block; }
#et-response.error   { background:#fef2f2; border:1px solid #fca5a5; color:#991b1b; display:block; }

/* Textarea + image upload */
.et-textarea-wrapper { position:relative; }
.et-upload-icon { position:absolute; bottom:9px; right:9px; cursor:pointer; color:#9ca3af; transition:color .2s; }
.et-upload-icon:hover { color:#4f46e5; }
.et-upload-icon .dashicons { font-size:20px; width:20px; height:20px; }

/* ============================================================
   CUSTOMER TICKET LOOKUP PAGE (shortcode)
   ============================================================ */
.ztv-lookup-wrap {
	max-width:680px; margin:40px auto; padding:0 20px; font-family:inherit;
}
.ztv-lookup-card {
	background:#fff; border-radius:18px; padding:42px 48px;
	box-shadow:0 4px 32px rgba(0,0,0,.1); text-align:center;
}
@media(max-width:600px){ .ztv-lookup-card{ padding:28px 22px; } }
.ztv-lookup-icon { margin-bottom:16px; }
.ztv-lookup-icon .dashicons {
	font-size:48px; width:48px; height:48px; color:#4f46e5;
	background:#ede9fe; border-radius:50%; padding:12px; box-sizing:content-box;
}
.ztv-lookup-card h2 { margin:0 0 8px; font-size:24px; font-weight:700; color:#1e1b4b; }
.ztv-lookup-card > p { margin:0 0 28px; font-size:15px; color:#6b7280; }

.ztv-lookup-form { text-align:left; }
.ztv-lookup-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:18px; }
@media(max-width:520px){ .ztv-lookup-fields{ grid-template-columns:1fr; } }
.ztv-field label {
	display:flex; align-items:center; gap:5px;
	font-size:12px; font-weight:700; color:#374151;
	text-transform:uppercase; letter-spacing:.05em; margin-bottom:7px;
}
.ztv-field label .dashicons { font-size:14px; width:14px; height:14px; color:#4f46e5; }
.ztv-field input {
	width:100%; padding:12px 14px; border:1.5px solid #e5e7eb; border-radius:10px;
	font-size:14px; background:#f9fafb; transition:border-color .2s; box-sizing:border-box;
}
.ztv-field input:focus { border-color:#4f46e5; background:#fff; outline:none; box-shadow:0 0 0 3px rgba(79,70,229,.1); }
.ztv-lookup-btn {
	width:100%; padding:14px; font-size:15px; font-weight:700;
	background:linear-gradient(135deg,#4f46e5,#2271b1);
	color:#fff; border:none; border-radius:11px; cursor:pointer;
	display:flex; align-items:center; justify-content:center; gap:8px;
	transition:opacity .2s;
}
.ztv-lookup-btn:hover { opacity:.88; }
.ztv-lookup-btn:disabled { opacity:.65; cursor:default; }
.ztv-lookup-btn .dashicons { font-size:18px; width:18px; height:18px; }
.ztv-error-msg {
	margin-top:16px; padding:12px 18px; background:#fef2f2;
	border:1px solid #fca5a5; border-radius:10px; color:#991b1b;
	font-size:14px; display:flex; align-items:center; gap:8px;
}
.ztv-error-msg .dashicons { font-size:18px; width:18px; height:18px; flex-shrink:0; }

/* ============================================================
   CUSTOMER TICKET VIEW — WIDER, BETTER UI
   ============================================================ */
.ztv-ticket-wrap {
	max-width:860px;   /* wider than before */
	margin:30px auto;
	font-family:inherit;
	padding:0 16px;
}

/* ---- Ticket header card ---- */
.ztv-header {
	background:linear-gradient(135deg,#1e1b4b 0%,#312e81 100%);
	color:#fff; border-radius:16px 16px 0 0; padding:26px 32px;
}
.ztv-header-top {
	display:flex; justify-content:space-between; align-items:flex-start;
	flex-wrap:wrap; gap:12px; margin-bottom:14px;
}
.ztv-subject { margin:0 0 6px; font-size:20px; font-weight:700; color:#fff; }
.ztv-ticket-id {
	display:inline-block; font-size:12px; font-family:monospace;
	background:rgba(255,255,255,.15); padding:3px 12px; border-radius:20px;
	color:rgba(255,255,255,.9); letter-spacing:.03em;
}
.ztv-status-pill {
	display:inline-flex; align-items:center; padding:6px 16px;
	border-radius:20px; font-size:12px; font-weight:700;
	text-transform:uppercase; letter-spacing:.05em; white-space:nowrap;
}
.ztv-status-new      { background:rgba(59,130,246,.9); color:#fff; }
.ztv-status-progress { background:rgba(245,158,11,.9); color:#fff; }
.ztv-status-solved   { background:rgba(16,185,129,.9); color:#fff; }
.ztv-status-closed   { background:rgba(107,114,128,.9); color:#fff; }

.ztv-meta-bar {
	display:flex; align-items:center; gap:20px;
	font-size:13px; color:rgba(255,255,255,.8); flex-wrap:wrap;
}
.ztv-meta-bar .dashicons { font-size:14px; width:14px; height:14px; vertical-align:middle; margin-right:3px; opacity:.8; }
.ztv-agent-av { width:22px; height:22px; border-radius:50%; object-fit:cover; vertical-align:middle; margin-right:5px; border:1.5px solid rgba(255,255,255,.4); }
.ztv-agent-initial {
	display:inline-flex; align-items:center; justify-content:center;
	width:22px; height:22px; border-radius:50%;
	background:rgba(255,255,255,.25); font-size:11px; font-weight:700;
	vertical-align:middle; margin-right:5px;
}

/* ---- Conversation ---- */
.ztv-conversation {
	background:#f4f4f8;
	border-left:1px solid #e2e3ec; border-right:1px solid #e2e3ec;
	padding:28px 32px 20px;
	display:flex; flex-direction:column; gap:20px;
}

/* Message rows */
.ztv-msg { display:flex; align-items:flex-start; gap:12px; }
.ztv-msg-customer { flex-direction:row; }
.ztv-msg-agent    { flex-direction:row-reverse; }

.ztv-msg-av {
	width:40px; height:40px; border-radius:50%; flex-shrink:0;
	display:flex; align-items:center; justify-content:center;
	overflow:hidden; font-size:18px; color:#fff;
}
.ztv-av-customer { background:linear-gradient(135deg,#4f46e5,#7c3aed); }
.ztv-av-agent    { background:linear-gradient(135deg,#0891b2,#0e7490); }
.ztv-av-customer .dashicons,
.ztv-av-agent .dashicons { font-size:20px; width:20px; height:20px; }

.ztv-msg-body { display:flex; flex-direction:column; max-width:72%; }
.ztv-msg-agent    .ztv-msg-body { align-items:flex-end; }
.ztv-msg-customer .ztv-msg-body { align-items:flex-start; }

.ztv-msg-author {
	font-size:11px; font-weight:700; text-transform:uppercase;
	letter-spacing:.05em; color:#9ca3af; margin-bottom:6px;
}
.ztv-msg-bubble {
	padding:14px 18px; border-radius:14px; font-size:14px;
	line-height:1.65; word-break:break-word;
	box-shadow:0 1px 4px rgba(0,0,0,.07);
}
.ztv-msg-customer .ztv-msg-bubble {
	background:#fff; border:1px solid #e5e7eb; border-top-left-radius:3px;
}
.ztv-msg-agent .ztv-msg-bubble {
	background:#dde9ff; border:1px solid #c3d4ff; border-top-right-radius:3px; color:#1e1b4b;
}
.ztv-attachment { display:block; margin-top:10px; }
.ztv-attachment img { max-width:220px; border-radius:10px; border:1px solid #e5e7eb; display:block; }

/* ---- Reply section ---- */
.ztv-reply-section {
	background:#fff;
	border:1px solid #e2e3ec; border-top:none;
	border-radius:0 0 16px 16px;
	padding:20px 32px 24px;
}
.ztv-reply-input-wrap {
	display:flex; align-items:flex-end; gap:10px;
	border:1.5px solid #e5e7eb; border-radius:14px;
	background:#f9fafb; padding:12px 16px;
	transition:border-color .2s, box-shadow .2s;
}
.ztv-reply-input-wrap:focus-within {
	border-color:#4f46e5; background:#fff;
	box-shadow:0 0 0 3px rgba(79,70,229,.1);
}
.ztv-reply-input-wrap textarea {
	flex:1; border:none !important; background:transparent !important;
	resize:none; padding:0 !important; font-size:14px; min-height:64px;
	outline:none !important; box-shadow:none !important; line-height:1.5;
}
.ztv-reply-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.ztv-attach-label { cursor:pointer; color:#9ca3af; transition:color .2s; }
.ztv-attach-label:hover { color:#4f46e5; }
.ztv-attach-label .dashicons { font-size:22px; width:22px; height:22px; }
.ztv-submit-btn {
	width:40px; height:40px; border-radius:50%; border:none;
	background:linear-gradient(135deg,#4f46e5,#2271b1);
	color:#fff; cursor:pointer;
	display:flex; align-items:center; justify-content:center;
	flex-shrink:0; transition:opacity .2s; box-shadow:0 2px 8px rgba(79,70,229,.35);
}
.ztv-submit-btn:hover { opacity:.85; }
.ztv-submit-btn:disabled { opacity:.5; cursor:default; }
.ztv-submit-btn .dashicons { font-size:18px; width:18px; height:18px; }

#et-reply-response { margin-top:12px; padding:10px 14px; border-radius:8px; font-size:13px; display:none; }
#et-reply-response.success { background:#f0fdf4; border:1px solid #a7f3d0; color:#065f46; display:block; }
#et-reply-response.error   { background:#fef2f2; border:1px solid #fca5a5; color:#991b1b; display:block; }

.ztv-close-btn {
	margin-top:14px; padding:10px 18px; font-size:13px; font-weight:600;
	background:#f9fafb; border:1.5px solid #e5e7eb; border-radius:9px;
	cursor:pointer; color:#6b7280;
	display:inline-flex; align-items:center; gap:6px;
	transition:border-color .2s, color .2s;
}
.ztv-close-btn:hover { border-color:#d63638; color:#d63638; }
.ztv-close-btn .dashicons { font-size:15px; width:15px; height:15px; }

.ztv-closed-notice {
	background:#fff; border:1px solid #e2e3ec; border-top:none;
	border-radius:0 0 16px 16px; padding:22px 32px;
	display:flex; align-items:center; gap:12px; color:#6b7280; font-size:14px;
}
.ztv-closed-notice .dashicons { font-size:22px; width:22px; height:22px; flex-shrink:0; color:#9ca3af; }

/* ============================================================
   MESSAGE TIMESTAMPS
   ============================================================ */
.ztv-msg-time {
	font-size:10px; font-weight:400; color:#9ca3af;
	margin-left:7px; letter-spacing:.02em; white-space:nowrap;
}
.ztv-msg-agent .ztv-msg-time { color:rgba(30,27,75,.45); }

/* ============================================================
   INLINE TICKET FORM  [zupportly_ticket_form]
   ============================================================ */
.ztv-inline-form-wrap {
	max-width:680px; margin:30px auto; padding:0 16px; font-family:inherit;
}
.ztv-inline-form-card {
	background:#fff; border-radius:18px;
	box-shadow:0 4px 32px rgba(0,0,0,.10);
	overflow:hidden;
}
.ztv-inline-form-header {
	display:flex; align-items:center; gap:16px;
	background:linear-gradient(135deg,#1e1b4b 0%,#2271b1 100%);
	padding:22px 28px;
}
.ztv-inline-form-header h3 {
	margin:0 0 3px; font-size:17px; font-weight:700; color:#fff;
	display:flex; align-items:center; gap:7px;
}
.ztv-inline-form-body {
	padding:24px 28px 28px; display:flex; flex-direction:column;
}
.ztv-inline-form-row {
	display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:14px;
}
@media(max-width:560px){ .ztv-inline-form-row{ grid-template-columns:1fr; } }
.ztv-inline-form-body .ztv-field label {
	display:flex; align-items:center; gap:5px;
	font-size:12px; font-weight:700; color:#374151;
	text-transform:uppercase; letter-spacing:.05em; margin-bottom:7px;
}
.ztv-inline-form-body .ztv-field label .dashicons {
	font-size:14px; width:14px; height:14px; color:#4f46e5;
}
.ztv-inline-form-body input,
.ztv-inline-form-body select,
.ztv-inline-form-body textarea {
	width:100%; padding:11px 14px; border:1.5px solid #e5e7eb;
	border-radius:10px; font-size:14px; background:#f9fafb;
	transition:border-color .2s; box-sizing:border-box;
}
.ztv-inline-form-body input:focus,
.ztv-inline-form-body select:focus,
.ztv-inline-form-body textarea:focus {
	border-color:#4f46e5; background:#fff; outline:none;
	box-shadow:0 0 0 3px rgba(79,70,229,.1);
}
.ztv-inline-form-body textarea { resize:none; min-height:110px; }
#et-inline-response { padding:11px 16px; border-radius:9px; font-size:13px; }
#et-inline-response.success { background:#f0fdf4; border:1px solid #a7f3d0; color:#065f46; }
#et-inline-response.error   { background:#fef2f2; border:1px solid #fca5a5; color:#991b1b; }

@keyframes spin { to { transform:rotate(360deg); } }
	.ztv-ticket-wrap { padding:0 10px; }
	.ztv-header { padding:18px 18px; }
	.ztv-conversation { padding:18px 16px; }
	.ztv-reply-section { padding:16px 16px 20px; }
	.ztv-msg-body { max-width:88%; }
	.ztv-closed-notice { padding:16px 18px; }
}

/* ============================================================
   v1.2 — PRIORITY PILLS (frontend ticket view header)
   ============================================================ */
.ztv-header-badges {
	display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.ztv-priority-pill {
	display:inline-flex; align-items:center; gap:5px;
	padding:5px 14px; border-radius:20px;
	font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap;
}
.ztv-priority-pill .dashicons { font-size:12px; width:12px; height:12px; }
.ztv-priority-pill-low    { background:rgba(107,114,128,.15); color:#374151; border:1px solid rgba(107,114,128,.3); }
.ztv-priority-pill-medium { background:rgba(59,130,246,.15);  color:#1e40af; border:1px solid rgba(59,130,246,.3); }
.ztv-priority-pill-high   { background:rgba(245,158,11,.18);  color:#92400e; border:1px solid rgba(245,158,11,.35); }
.ztv-priority-pill-urgent { background:rgba(239,68,68,.18);   color:#7f1d1d; border:1px solid rgba(239,68,68,.35); }

/* ============================================================
   v1.2 — PRIORITY BADGES (ticket list cards)
   ============================================================ */
.ztv-priority-badge {
	display:inline-flex; align-items:center;
	padding:3px 10px; border-radius:20px;
	font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; white-space:nowrap;
}
.ztv-priority-low    { background:#f3f4f6; color:#374151; border:1px solid #d1d5db; }
.ztv-priority-medium { background:#eff6ff; color:#1e40af; border:1px solid #bfdbfe; }
.ztv-priority-high   { background:#fffbeb; color:#92400e; border:1px solid #fcd34d; }
.ztv-priority-urgent { background:#fef2f2; color:#7f1d1d; border:1px solid #fca5a5; }

/* ============================================================
   v1.2 — TICKET LIST (email-only search results)
   ============================================================ */
.ztv-ticket-list-wrap {
	margin-top:24px;
}
.ztv-list-header {
	font-size:14px; color:#374151; font-weight:600;
	padding:10px 0 14px;
	display:flex; align-items:center; gap:8px;
}
.ztv-list-header .dashicons { color:#4f46e5; font-size:18px; width:18px; height:18px; }
.ztv-ticket-list {
	display:flex; flex-direction:column; gap:10px;
}
.ztv-list-item {
	background:#fff; border-radius:12px;
	border:1.5px solid #e5e7eb;
	border-left-width:4px;
	padding:16px 20px;
	display:flex; align-items:center; gap:16px;
	box-shadow:0 1px 4px rgba(0,0,0,.06);
	transition:box-shadow .15s, border-color .15s;
}
.ztv-list-item:hover { box-shadow:0 4px 14px rgba(0,0,0,.1); }
.ztv-list-priority-low    { border-left-color:#9ca3af; }
.ztv-list-priority-medium { border-left-color:#3b82f6; }
.ztv-list-priority-high   { border-left-color:#f59e0b; }
.ztv-list-priority-urgent { border-left-color:#ef4444; }

.ztv-list-item-left  { flex:1; min-width:0; }
.ztv-list-item-right { display:flex; align-items:center; gap:8px; flex-shrink:0; flex-wrap:wrap; }

.ztv-list-nr {
	display:inline-block; font-family:monospace; font-size:11px; font-weight:700;
	color:#4338ca; background:#eef2ff; border:1px solid #c7d2fe;
	border-radius:4px; padding:2px 8px; margin-bottom:5px;
}
.ztv-list-subject {
	font-size:15px; font-weight:600; color:#1d2327;
	white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
	margin-bottom:6px;
}
.ztv-list-meta {
	display:flex; align-items:center; gap:14px;
	font-size:12px; color:#9ca3af; flex-wrap:wrap;
}
.ztv-list-meta span { display:flex; align-items:center; gap:3px; }
.ztv-list-meta .dashicons { font-size:13px; width:13px; height:13px; }

.ztv-open-ticket-btn {
	padding:7px 16px; border-radius:8px; border:none; cursor:pointer;
	background:linear-gradient(135deg,#4f46e5,#2271b1);
	color:#fff; font-size:12px; font-weight:700;
	white-space:nowrap; transition:opacity .2s;
}
.ztv-open-ticket-btn:hover { opacity:.85; }

@media(max-width:560px) {
	.ztv-list-item { flex-direction:column; align-items:flex-start; gap:10px; }
	.ztv-list-item-right { width:100%; justify-content:flex-start; }
}

/* ============================================================
   v1.1 — TICKET SUBMIT SUCCESS BANNER
   ============================================================ */
.zt-submit-success {
	display:flex; align-items:flex-start; gap:12px;
	background:#f0fdf4; border:1.5px solid #86efac;
	border-left:4px solid #16a34a;
	border-radius:12px; padding:16px 20px;
	font-size:14px; line-height:1.5;
}
.zt-submit-success > .dashicons {
	font-size:24px; width:24px; height:24px;
	color:#16a34a; flex-shrink:0; margin-top:1px;
}
.zt-submit-success-body {
	display:flex; flex-direction:column; gap:6px;
}
.zt-submit-success-body strong {
	display:block; font-size:15px; font-weight:700; color:#14532d;
}
.zt-submit-success-body > span {
	display:flex; align-items:center; gap:8px; flex-wrap:wrap;
	font-size:13px; color:#166534;
}
.zt-track-link {
	display:inline-flex; align-items:center;
	font-size:13px; font-weight:700; color:#2271b1;
	text-decoration:none; margin-top:2px;
}
.zt-track-link:hover { text-decoration:underline; }

/* ============================================================
   v1.1 — COPYABLE TICKET NUMBER CHIP
   Used in: submit success banner, ticket view header
   ============================================================ */
.zt-copy-nr {
	display:inline-flex; align-items:center; gap:5px;
	background:#eef2ff; color:#3730a3;
	border:1.5px solid #c7d2fe; border-radius:6px;
	padding:3px 10px 3px 10px;
	font-size:12px; font-weight:700; font-family:monospace;
	cursor:pointer; transition:background .15s, border-color .15s;
	vertical-align:middle; line-height:1.4;
	/* reset button styles */
	outline:none; text-decoration:none;
}
.zt-copy-nr:hover {
	background:#e0e7ff; border-color:#a5b4fc;
}
.zt-copy-nr--copied {
	background:#f0fdf4 !important; border-color:#86efac !important; color:#15803d !important;
}
.zt-nr-icon {
	font-size:13px !important; width:13px !important; height:13px !important;
	opacity:.65; transition:opacity .15s;
}
.zt-copy-nr:hover .zt-nr-icon,
.zt-copy-nr--copied .zt-nr-icon { opacity:1; }

/* Make ztv-ticket-id in view header also a copy chip */
.ztv-ticket-id.zt-copy-nr {
	background:rgba(255,255,255,.18); color:rgba(255,255,255,.95);
	border-color:rgba(255,255,255,.3); font-family:monospace;
}
.ztv-ticket-id.zt-copy-nr:hover {
	background:rgba(255,255,255,.28); border-color:rgba(255,255,255,.5);
}
.ztv-ticket-id.zt-copy-nr--copied {
	background:rgba(134,239,172,.25) !important;
	border-color:rgba(134,239,172,.5) !important;
	color:#fff !important;
}

/* ============================================================
   TICKET VIEW — REFRESH BUTTON
   ============================================================ */
.ztv-header-right {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ztv-refresh-btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: rgba(255,255,255,.15); color: #fff;
	border: 1.5px solid rgba(255,255,255,.35); border-radius: 8px;
	padding: 6px 12px; font-size: 13px; font-weight: 600;
	cursor: pointer; transition: background .15s, border-color .15s;
	white-space: nowrap;
}
.ztv-refresh-btn:hover:not(:disabled) {
	background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.6);
}
.ztv-refresh-btn:disabled { opacity: .6; cursor: not-allowed; }
.ztv-refresh-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* Pulsing "New reply!" state */
.ztv-refresh-btn--new {
	background: #16a34a !important; border-color: #15803d !important;
	animation: ztv-pulse 1.8s ease-in-out infinite;
}
@keyframes ztv-pulse {
	0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.4); }
	50%      { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}
.ztv-new-badge {
	display: none; align-items: center; gap: 4px;
	font-size: 12px; font-weight: 700;
}

/* Spin animation for refresh icon */
.ztv-spin {
	animation: ztv-spin .7s linear infinite !important;
}
@keyframes ztv-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* ============================================================
   PRIORITY PILLS — fix readability (stronger contrast)
   ============================================================ */
.ztv-priority-pill-low    { background: #e5e7eb; color: #1f2937; border-color: #9ca3af; }
.ztv-priority-pill-medium { background: #dbeafe; color: #1e3a8a; border-color: #60a5fa; }
.ztv-priority-pill-high   { background: #fef3c7; color: #78350f; border-color: #f59e0b; font-weight:700; }
.ztv-priority-pill-urgent { background: #fee2e2; color: #7f1d1d; border-color: #f87171; font-weight:700; }
