/* Damteq AI Chat widget */

#dmtq-chat-root {
	--dmtq-ink: #0F1A2B;
	--dmtq-body: #45566F;
	--dmtq-muted: #5B6B82;
	--dmtq-accent: #0762CB;
	--dmtq-pale: #E7F0FB;
	--dmtq-grey: #F3F5F7;
	--dmtq-line: #E1E6EC;
	--dmtq-radius: 8px;
	--dmtq-font: "tt-commons-pro", "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-family: var(--dmtq-font);
	font-size: 16px;
	line-height: 1.45;
	color: var(--dmtq-ink);
	position: fixed;
	z-index: 99999;
	bottom: 20px;
	right: 20px;
	-webkit-font-smoothing: antialiased;
}
#dmtq-chat-root[data-position="left"] { right: auto; left: 20px; }
#dmtq-chat-root *, #dmtq-chat-root *::before, #dmtq-chat-root *::after { box-sizing: border-box; }

/* Launcher */
.dmtq-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 20px 0 16px;
	border: 0;
	border-radius: 26px;
	background: var(--dmtq-accent);
	color: #fff;
	font: inherit;
	font-weight: 500;
	font-size: 16px;
	letter-spacing: -0.01em;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(15, 26, 43, 0.18);
	transition: transform 160ms ease, box-shadow 160ms ease;
}
.dmtq-launcher:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(15, 26, 43, 0.22); }
.dmtq-launcher:focus-visible, .dmtq-send:focus-visible, .dmtq-close:focus-visible, .dmtq-restart:focus-visible {
	outline: 3px solid var(--dmtq-pale);
	outline-offset: 2px;
}
.dmtq-launcher svg { width: 22px; height: 22px; flex: none; }
#dmtq-chat-root.is-open .dmtq-launcher { display: none; }

/* Panel */
.dmtq-panel {
	display: none;
	flex-direction: column;
	width: 380px;
	max-width: calc(100vw - 40px);
	height: 600px;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(15, 26, 43, 0.22), 0 0 0 1px rgba(15, 26, 43, 0.06);
	overflow: hidden;
}
#dmtq-chat-root.is-open .dmtq-panel { display: flex; }

@media (prefers-reduced-motion: no-preference) {
	#dmtq-chat-root.is-open .dmtq-panel { animation: dmtq-in 200ms ease-out; }
	@keyframes dmtq-in {
		from { opacity: 0; transform: translateY(12px); }
		to   { opacity: 1; transform: translateY(0); }
	}
}

.dmtq-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 16px 14px 20px;
	border-bottom: 1px solid var(--dmtq-line);
}
.dmtq-avatar {
	width: 40px; height: 40px; flex: none;
	border-radius: 50%;
	background: var(--dmtq-pale);
	color: var(--dmtq-accent);
	display: grid; place-items: center;
}
.dmtq-avatar svg { width: 22px; height: 22px; }
.dmtq-head-text { flex: 1; min-width: 0; }
.dmtq-head-name {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.022em;
	line-height: 1.2;
	color: var(--dmtq-ink);
}
.dmtq-head-sub { margin: 2px 0 0; font-size: 13px; color: var(--dmtq-muted); }
.dmtq-close, .dmtq-restart {
	border: 0; background: transparent; color: var(--dmtq-muted);
	width: 36px; height: 36px; border-radius: var(--dmtq-radius);
	display: grid; place-items: center; cursor: pointer; font: inherit;
}
.dmtq-close:hover, .dmtq-restart:hover { background: var(--dmtq-grey); color: var(--dmtq-ink); }
.dmtq-close svg, .dmtq-restart svg { width: 18px; height: 18px; }

/* Messages */
.dmtq-log {
	flex: 1;
	overflow-y: auto;
	padding: 20px 20px 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scroll-behavior: smooth;
}
.dmtq-bubble {
	max-width: 86%;
	padding: 11px 14px;
	border-radius: var(--dmtq-radius);
	font-size: 15.5px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}
.dmtq-bubble.assistant {
	align-self: flex-start;
	background: var(--dmtq-grey);
	color: var(--dmtq-ink);
	border-bottom-left-radius: 2px;
}
.dmtq-bubble.user {
	align-self: flex-end;
	background: var(--dmtq-accent);
	color: #fff;
	border-bottom-right-radius: 2px;
}
.dmtq-bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dmtq-bubble.assistant a { color: var(--dmtq-accent); }
.dmtq-bubble.error { background: #FFF4F1; color: #8A2E1A; }

.dmtq-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--dmtq-grey); border-radius: var(--dmtq-radius); border-bottom-left-radius: 2px; }
.dmtq-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dmtq-muted); opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
	.dmtq-typing i { animation: dmtq-dot 1.1s infinite ease-in-out; }
	.dmtq-typing i:nth-child(2) { animation-delay: 0.15s; }
	.dmtq-typing i:nth-child(3) { animation-delay: 0.3s; }
	@keyframes dmtq-dot { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
}

.dmtq-lead-note {
	align-self: center;
	font-size: 13px;
	color: var(--dmtq-accent);
	background: var(--dmtq-pale);
	padding: 6px 12px;
	border-radius: 20px;
}

/* Composer */
.dmtq-form { padding: 10px 14px 6px; border-top: 1px solid var(--dmtq-line); }
.dmtq-row { display: flex; align-items: flex-end; gap: 8px; }
.dmtq-input {
	flex: 1;
	resize: none;
	min-height: 44px;
	max-height: 120px;
	padding: 11px 12px;
	border: 1px solid var(--dmtq-line);
	border-radius: var(--dmtq-radius);
	font: inherit;
	font-size: 15.5px;
	line-height: 1.4;
	color: var(--dmtq-ink);
	background: #fff;
}
.dmtq-input::placeholder { color: var(--dmtq-muted); }
.dmtq-input:focus { outline: none; border-color: var(--dmtq-accent); box-shadow: 0 0 0 3px var(--dmtq-pale); }
.dmtq-send {
	flex: none;
	width: 44px; height: 44px;
	border: 0; border-radius: var(--dmtq-radius);
	background: var(--dmtq-accent); color: #fff;
	display: grid; place-items: center; cursor: pointer;
}
.dmtq-send:disabled { opacity: 0.45; cursor: default; }
.dmtq-send svg { width: 20px; height: 20px; }
.dmtq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dmtq-privacy {
	margin: 8px 2px 4px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--dmtq-muted);
}
.dmtq-privacy a { color: var(--dmtq-muted); }

/* Turns, agents, cards */
.dmtq-turn { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.dmtq-turn.user { align-items: flex-end; }
.dmtq-turn.assistant { align-items: flex-start; }
.dmtq-agent-name { font-size: 12px; color: var(--dmtq-muted); margin-left: 4px; }
.dmtq-turn .dmtq-quick { margin-top: 2px; }
.dmtq-typing.has-label { align-items: center; }
.dmtq-typing span { font-size: 13px; color: var(--dmtq-muted); margin-left: 6px; }
.dmtq-card { align-self: flex-start; width: 100%; max-width: 100%; border: 1px solid var(--dmtq-line); border-radius: var(--dmtq-radius); padding: 12px 14px; background: #fff; font-size: 14px; }
.dmtq-card p { margin: 6px 0 0; color: var(--dmtq-body); }
.dmtq-card a { color: var(--dmtq-accent); }
.dmtq-card-ok { border-color: #BFE3CC; background: #F3FBF5; }
.dmtq-card-title { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--dmtq-ink); }
.dmtq-card-title svg { width: 16px; height: 16px; color: var(--dmtq-accent); }
.dmtq-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.dmtq-slot { border: 1px solid var(--dmtq-accent); background: #fff; color: var(--dmtq-accent); border-radius: var(--dmtq-radius); padding: 8px 10px; font: inherit; font-size: 13.5px; cursor: pointer; }
.dmtq-slot:hover { background: var(--dmtq-accent); color: #fff; }
.dmtq-slot:disabled { opacity: 0.45; cursor: default; }
.dmtq-snap-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dmtq-snap-score { width: 48px; height: 48px; border-radius: 50%; background: var(--dmtq-pale); color: var(--dmtq-accent); display: grid; place-items: center; font-size: 20px; font-weight: 500; flex: none; }
.dmtq-snap-copy strong { display: block; font-weight: 500; }
.dmtq-snap-copy span { font-size: 13px; color: var(--dmtq-muted); }
.dmtq-snap-bar { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dmtq-body); margin-top: 5px; }
.dmtq-snap-bar i { display: block; height: 6px; background: var(--dmtq-grey); border-radius: 3px; overflow: hidden; }
.dmtq-snap-bar b { display: block; height: 100%; background: var(--dmtq-accent); border-radius: 3px; }
.dmtq-snap-bar em { font-style: normal; text-align: right; color: var(--dmtq-ink); }

/* Rating */
.dmtq-rate { align-self: center; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dmtq-muted); padding: 4px 0; flex-wrap: wrap; justify-content: center; }
.dmtq-rate-btn { width: 32px; height: 32px; border: 1px solid var(--dmtq-line); background: #fff; border-radius: 50%; display: grid; place-items: center; color: var(--dmtq-muted); cursor: pointer; }
.dmtq-rate-btn:hover { border-color: var(--dmtq-accent); color: var(--dmtq-accent); }
.dmtq-rate-btn svg { width: 16px; height: 16px; }
.dmtq-rate-why { width: 100%; resize: none; border: 1px solid var(--dmtq-line); border-radius: var(--dmtq-radius); padding: 8px 10px; font: inherit; font-size: 14px; }

/* Quick replies */
.dmtq-quick { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; margin-top: 2px; }
.dmtq-chip {
	border: 1px solid var(--dmtq-accent);
	background: #fff;
	color: var(--dmtq-accent);
	border-radius: 20px;
	padding: 8px 14px;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	transition: background 120ms ease, color 120ms ease;
}
.dmtq-chip:hover, .dmtq-chip:focus-visible { background: var(--dmtq-accent); color: #fff; outline: none; }

/* Nudge bubble */
.dmtq-nudge {
	display: none;
	position: absolute;
	bottom: 66px;
	right: 0;
	width: 300px;
	max-width: calc(100vw - 40px);
	padding: 16px 18px 14px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 14px 40px rgba(15, 26, 43, 0.2), 0 0 0 1px rgba(15, 26, 43, 0.06);
}
#dmtq-chat-root[data-position="left"] .dmtq-nudge { right: auto; left: 0; }
.dmtq-nudge::after {
	content: "";
	position: absolute;
	bottom: -7px;
	right: 28px;
	width: 14px; height: 14px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: 3px 3px 6px rgba(15, 26, 43, 0.06);
}
#dmtq-chat-root[data-position="left"] .dmtq-nudge::after { right: auto; left: 28px; }
#dmtq-chat-root.has-nudge:not(.is-open) .dmtq-nudge { display: block; }
@media (prefers-reduced-motion: no-preference) {
	#dmtq-chat-root.has-nudge:not(.is-open) .dmtq-nudge { animation: dmtq-in 240ms ease-out; }
}
.dmtq-nudge-text {
	margin: 0 24px 10px 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--dmtq-ink);
	cursor: pointer;
}
.dmtq-nudge-cta {
	border: 0;
	background: var(--dmtq-pale);
	color: var(--dmtq-accent);
	border-radius: var(--dmtq-radius);
	padding: 8px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.dmtq-nudge-cta:hover { background: var(--dmtq-accent); color: #fff; }
.dmtq-nudge-x {
	position: absolute;
	top: 8px; right: 8px;
	width: 28px; height: 28px;
	border: 0; background: transparent;
	color: var(--dmtq-muted);
	border-radius: 6px;
	display: grid; place-items: center;
	cursor: pointer;
}
.dmtq-nudge-x:hover { background: var(--dmtq-grey); color: var(--dmtq-ink); }
.dmtq-nudge-x svg { width: 14px; height: 14px; }

/* Inline shortcode button */
.dmtq-chat-open-inline {
	display: inline-block;
	padding: 12px 22px;
	border: 0;
	border-radius: 8px;
	background: #0762CB;
	color: #fff;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

/* Mobile: full screen */
@media (max-width: 520px) {
	#dmtq-chat-root.is-open { inset: 0; bottom: 0; right: 0; left: 0; }
	#dmtq-chat-root.is-open .dmtq-panel {
		width: 100vw; max-width: 100vw;
		height: 100vh; height: 100dvh; max-height: none;
		border-radius: 0;
	}
	.dmtq-launcher span { display: none; }
	.dmtq-launcher { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
}

/* Team faces */
.dmtq-face { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--dmtq-pale); color: var(--dmtq-accent); font-size: 12px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; flex: none; box-shadow: 0 0 0 2px #fff; }
.dmtq-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dmtq-faces { display: inline-flex; align-items: center; }
.dmtq-faces .dmtq-face + .dmtq-face { margin-left: -10px; }
.dmtq-head-avatar { flex: none; display: flex; align-items: center; }
.dmtq-head-avatar .dmtq-face { width: 40px; height: 40px; }
.dmtq-head-avatar .dmtq-faces .dmtq-face { width: 34px; height: 34px; }
.dmtq-head-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmtq-agent-name { display: inline-flex !important; align-items: center; gap: 6px; }
.dmtq-agent-name .dmtq-face { width: 20px; height: 20px; font-size: 9px; box-shadow: none; }
.dmtq-nudge-faces { display: flex; align-items: center; gap: 10px; margin: 0 24px 10px 0; }
.dmtq-nudge-faces .dmtq-face { width: 30px; height: 30px; font-size: 11px; }
.dmtq-nudge-who { font-size: 12.5px; color: var(--dmtq-muted); line-height: 1.3; }

/* Inline contact form */
.dmtq-form-card label { display: block; margin-top: 8px; }
.dmtq-form-card label span { display: block; font-size: 12px; color: var(--dmtq-muted); margin-bottom: 3px; }
.dmtq-form-card label em { font-style: normal; opacity: 0.75; }
.dmtq-form-card input[type=text], .dmtq-form-card input[type=email], .dmtq-form-card input[type=tel] { width: 100%; padding: 9px 11px; border: 1px solid var(--dmtq-line); border-radius: var(--dmtq-radius); font: inherit; font-size: 15px; color: var(--dmtq-ink); background: #fff; }
.dmtq-form-card input:focus { outline: none; border-color: var(--dmtq-accent); box-shadow: 0 0 0 3px var(--dmtq-pale); }
.dmtq-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dmtq-form-send { margin-top: 12px; width: 100%; min-height: 42px; border: 0; border-radius: var(--dmtq-radius); background: var(--dmtq-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.dmtq-form-send:disabled { opacity: 0.6; }
.dmtq-form-note { margin: 8px 0 0 !important; font-size: 11.5px; color: var(--dmtq-muted) !important; }
.dmtq-form-err { margin: 8px 0 0 !important; font-size: 13px; color: #8A2E1A !important; }
.dmtq-form-card.is-done { border-color: #BFE3CC; background: #F3FBF5; }

/* Screenshots and typing */
.dmtq-clip { flex: none; width: 36px; height: 44px; border: 0; background: transparent; color: var(--dmtq-muted); display: grid; place-items: center; cursor: pointer; border-radius: var(--dmtq-radius); }
.dmtq-clip:hover { color: var(--dmtq-accent); background: var(--dmtq-grey); }
.dmtq-clip svg { width: 20px; height: 20px; }
.dmtq-bubble.dmtq-shot { padding: 4px; background: var(--dmtq-accent); }
.dmtq-bubble.dmtq-shot img { display: block; max-width: 220px; max-height: 220px; border-radius: 6px; }
.dmtq-bubble.dmtq-shot.is-pending { opacity: 0.55; }
.dmtq-agent-typing { gap: 5px; }
.dmtq-agent-typing span { font-size: 12.5px; color: var(--dmtq-muted); margin-left: 4px; }
.dmtq-agent-typing[hidden] { display: none !important; }

/* ---------- Bigger view ---------- */
.dmtq-expand { border: 0; background: transparent; color: var(--dmtq-muted); width: 36px; height: 36px; border-radius: var(--dmtq-radius); display: grid; place-items: center; cursor: pointer; }
.dmtq-expand:hover { background: var(--dmtq-grey); color: var(--dmtq-ink); }
.dmtq-expand svg { width: 17px; height: 17px; }
.dmtq-scrim, .dmtq-context { display: none; }
#dmtq-chat-root.is-open.is-wide { inset: 0; }
#dmtq-chat-root.is-open.is-wide .dmtq-scrim { display: block; position: fixed; inset: 0; background: rgba(15, 26, 43, 0.18); }
#dmtq-chat-root.is-open.is-wide .dmtq-panel { position: fixed; top: 16px; right: 16px; bottom: 16px; width: min(640px, calc(100vw - 32px)); height: auto; max-height: none; border-radius: 18px; box-shadow: 0 30px 80px rgba(15, 26, 43, 0.28), 0 0 0 1px rgba(15, 26, 43, 0.06); }
#dmtq-chat-root[data-position="left"].is-open.is-wide .dmtq-panel { right: auto; left: 16px; }
#dmtq-chat-root.is-open.is-wide .dmtq-head { padding: 18px 20px 16px 24px; }
#dmtq-chat-root.is-open.is-wide .dmtq-head-name { font-size: 20px; }
#dmtq-chat-root.is-open.is-wide .dmtq-context { display: block; padding: 12px 24px 14px; border-bottom: 1px solid var(--dmtq-line); background: var(--dmtq-grey); }
.dmtq-context-who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--dmtq-body); }
.dmtq-context-who .dmtq-face { width: 28px; height: 28px; font-size: 10px; box-shadow: 0 0 0 2px var(--dmtq-grey); }
.dmtq-context-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dmtq-context-acts .dmtq-chip { background: #fff; font-size: 13px; padding: 7px 12px; }
#dmtq-chat-root.is-open.is-wide .dmtq-log { padding: 24px 28px 12px; gap: 12px; }
#dmtq-chat-root.is-open.is-wide .dmtq-bubble { font-size: 16px; line-height: 1.55; max-width: 80%; padding: 12px 16px; }
#dmtq-chat-root.is-open.is-wide .dmtq-form { padding: 12px 20px 10px; }
#dmtq-chat-root.is-open.is-wide .dmtq-input { font-size: 16px; min-height: 48px; }
@media (prefers-reduced-motion: no-preference) {
	#dmtq-chat-root.is-open.is-wide .dmtq-scrim { animation: dmtq-fade 200ms ease-out; }
	#dmtq-chat-root.is-open.is-wide .dmtq-panel { animation: dmtq-slide 240ms cubic-bezier(0.2, 0.8, 0.2, 1); }
	@keyframes dmtq-fade { from { opacity: 0; } to { opacity: 1; } }
	@keyframes dmtq-slide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
}
.dmtq-wide-offer { align-self: center; }
.dmtq-wide-offer .dmtq-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.dmtq-wide-offer svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .dmtq-expand, .dmtq-wide-offer { display: none !important; } }

/* ---------- Video invitation ---------- */
.dmtq-video-card { border-color: var(--dmtq-accent); }
.dmtq-video-top { display: flex; align-items: center; gap: 12px; }
.dmtq-video-top .dmtq-face { box-shadow: none; }
.dmtq-video-copy strong { display: block; font-weight: 600; color: var(--dmtq-ink); }
.dmtq-video-copy span { font-size: 13px; color: var(--dmtq-muted); }
.dmtq-video-join { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; min-height: 44px; border-radius: var(--dmtq-radius); background: var(--dmtq-accent); color: #fff !important; text-decoration: none !important; font-weight: 600; }
.dmtq-video-join svg { width: 18px; height: 18px; }
.dmtq-video-join:hover { filter: brightness(1.08); }

/* ---------- In-page video call ---------- */
.dmtq-call { flex: none; background: #0B1220; }
.dmtq-call[hidden] { display: none !important; }
.dmtq-call-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 220px; max-height: 50vh; max-height: 50dvh; background: #0B1220; overflow: hidden; }
.dmtq-call-remote { display: block; width: 100%; height: 100%; object-fit: cover; }
.dmtq-call-local { position: absolute; right: 10px; top: 10px; width: 28%; max-width: 150px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 2px solid rgba(255,255,255,0.8); background: #1B2740; transform: scaleX(-1); z-index: 2; }
.dmtq-call.is-waiting .dmtq-call-local { inset: 0; width: 100%; max-width: none; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; opacity: 0.55; }
.dmtq-call-state { position: absolute; inset: 0 0 80px; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 16px 24px; color: #fff; font-size: 14px; line-height: 1.45; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.dmtq-call-state strong { font-size: 16px; font-weight: 600; }
.dmtq-call-state[hidden] { display: none; }
.dmtq-call-ctrls { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 14px 10px 14px; background: linear-gradient(to top, rgba(11,18,32,0.9), rgba(11,18,32,0)); }
.dmtq-cbtn { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,0.2); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-tap-highlight-color: transparent; }
.dmtq-cbtn svg { width: 22px; height: 22px; }
.dmtq-cbtn.is-off { background: #fff; color: #0F1A2B; }
.dmtq-cbtn-end { width: 62px; border-radius: 25px; background: #D93A25; }
.dmtq-cbtn-end svg { width: 26px; height: 26px; }
.dmtq-call-min { position: absolute; z-index: 4; left: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(11,18,32,0.55); color: #fff; cursor: pointer; }
.dmtq-call-min svg { width: 16px; height: 16px; }
.dmtq-call.is-mini .dmtq-call-stage { aspect-ratio: auto; height: 140px; min-height: 0; }
.dmtq-call.is-mini .dmtq-call-local { width: 64px; }
.dmtq-call.is-mini .dmtq-call-state { inset: 0 0 60px; font-size: 13px; }
.dmtq-call.is-mini .dmtq-call-state strong { font-size: 14px; }
.dmtq-call.is-mini .dmtq-cbtn { width: 40px; height: 40px; }
.dmtq-call.is-mini .dmtq-cbtn-end { width: 52px; }
.dmtq-call-steps { margin: 12px 0 0; padding: 0 0 0 20px; font-size: 14px; line-height: 1.5; color: var(--dmtq-body); }
.dmtq-call-steps li { margin: 0 0 4px; }
.dmtq-call-steps strong { color: var(--dmtq-ink); }
.dmtq-call-help { margin: 10px 0 0 !important; padding: 10px 12px; border-radius: var(--dmtq-radius); background: #FFF6E5; color: #6B4700 !important; font-size: 13.5px; line-height: 1.5; }
.dmtq-call-help[hidden] { display: none; }
.dmtq-call-choice { display: grid; gap: 8px; margin-top: 12px; }
.dmtq-call-choice .dmtq-video-join { margin-top: 0; border: 0; width: 100%; font: inherit; font-weight: 600; cursor: pointer; }
.dmtq-call-choice .dmtq-video-join:disabled { opacity: 0.7; cursor: default; }
.dmtq-call-choice .dmtq-chip { width: 100%; justify-content: center; }
#dmtq-chat-root.is-open.is-wide .dmtq-call-stage { max-height: 52vh; }
@media (max-width: 520px) {
	.dmtq-call-stage { aspect-ratio: 3 / 4; max-height: 46vh; max-height: 46dvh; }
	.dmtq-cbtn { width: 54px; height: 54px; }
	.dmtq-cbtn-end { width: 66px; }
}

/* ---------- Chat now buttons from the shortcode ---------- */
/* style="brand": the plugin's own button, proportioned like damteq.co.uk's buttons */
.dmtq-chat-btn { display: inline-flex; align-items: center; gap: 10px; padding: 1rem 1.5rem; border-radius: 8px; border: 1px solid var(--dmtq-accent, #0762CB); background: var(--dmtq-accent, #0762CB); color: #fff !important; font: inherit; font-weight: 400; line-height: 1; text-decoration: none !important; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.dmtq-chat-btn:hover { filter: brightness(1.08); }
.dmtq-chat-btn svg { width: 1em; height: 1em; }
.dmtq-chat-btn.is-secondary { background: transparent; color: var(--dmtq-accent, #0762CB) !important; }
.dmtq-chat-btn.is-link { background: none; border: 0; padding: 0; color: var(--dmtq-accent, #0762CB) !important; text-decoration: underline !important; }
/* the theme's own buttons: only the extras the theme does not know about */
.dmtq-theme-btn .dmtq-ico { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 0.5em; }
.dmtq-chat-btn-faces { display: inline-flex; vertical-align: middle; margin-right: 0.6em; }
.dmtq-chat-btn .dmtq-chat-btn-faces { margin-right: 0; }
/* inside the theme's button the photos must not make it taller than its neighbours */
.dmtq-theme-btn .dmtq-chat-btn-faces { height: 1em; align-items: center; vertical-align: top; line-height: 1; }
.dmtq-theme-btn .dmtq-chat-btn-faces img { box-shadow: 0 0 0 2px currentColor; }
/* keep the theme's sentence case when photos or an icon come first */
.dmtq-theme-btn .dmtq-btn-text { display: inline-block; }
.dmtq-theme-btn .dmtq-btn-text::first-letter { text-transform: uppercase; }
.dmtq-chat-btn-faces img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.dmtq-chat-btn-faces img + img { margin-left: -8px; }
