/**
 * AUTOBOSS Chat frontend.
 * data-mode on .abch: popup (desktop) | sheet (tablet/portrait) | phone (bottom sheet). Set by frontend.js.
 * Hidden states use visibility/opacity, never display:none, so Fluent Forms and page translators
 * can initialise content inside the closed panel.
 */
.abch {
	--abch-ink: #1a1a1a;
	--abch-muted: #6b7480;
	--abch-line: #e6eaec;
	--abch-soft: #f4f5f7;
	--abch-radius: 16px;
	--abch-ease: cubic-bezier(.3, 0, 0, 1);
	font-size: 14px;
	line-height: 1.45;
	color: var(--abch-ink);
}
.abch[hidden] { display: none !important; }
.abch *, .abch *::before, .abch *::after { box-sizing: border-box; }
.abch .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.abch button { font: inherit; }
.abch .abch-ico { width: 22px; height: 22px; flex: none; }

/* Launcher */
.abch-launcher {
	position: fixed;
	right: calc(var(--abch-x) + var(--abch-side, 0px));
	bottom: calc(var(--abch-y) + var(--abch-lift, 0px) + env(safe-area-inset-bottom));
	z-index: 9991;
	width: var(--abch-launcher);
	height: var(--abch-launcher);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--abch-accent);
	color: var(--abch-accent-text);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .12);
	cursor: pointer;
	transition: transform .2s var(--abch-ease), box-shadow .2s;
}
.abch.has-launcher .abch-launcher { display: inline-flex; }
.abch-launcher .abch-ico { width: 28px; height: 28px; }
.abch-launcher-open, .abch-launcher-close { display: inline-flex; transition: transform .25s var(--abch-ease), opacity .2s; }
.abch-launcher-close { position: absolute; opacity: 0; transform: rotate(-90deg); }
.abch.is-open .abch-launcher-open { opacity: 0; transform: rotate(90deg); }
.abch.is-open .abch-launcher-close { opacity: 1; transform: none; }
.abch-launcher:focus-visible, .abch button:focus-visible, .abch a:focus-visible, .abch textarea:focus-visible, .abch input:focus-visible { outline: 2px solid var(--abch-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
	.abch-launcher:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
}
.abch-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border: 2px solid #fff;
	border-radius: 10px;
	background: #e02d2d;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}
.abch-badge[hidden], .abch-tab-badge[hidden] { display: none; }

/* Panel shell */
.abch-panel {
	position: fixed;
	z-index: 99970;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 12px 48px rgba(0, 0, 0, .22), 0 2px 8px rgba(0, 0, 0, .08);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s var(--abch-ease), transform .25s var(--abch-ease), visibility 0s linear .25s;
}
.abch.is-open .abch-panel {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: none;
	transition: opacity .25s var(--abch-ease), transform .25s var(--abch-ease), visibility 0s;
}
.abch-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99969;
	background: rgba(0, 0, 0, .4);
	opacity: 0;
	transition: opacity .25s var(--abch-ease);
}
.abch.is-open .abch-backdrop { opacity: 1; }

/* Desktop: non-modal pop-up above the launcher */
.abch[data-mode="popup"] .abch-panel {
	right: calc(var(--abch-x) + var(--abch-side, 0px));
	bottom: calc(var(--abch-y) + var(--abch-launcher) + 16px);
	width: min(var(--abch-w), calc(100vw - 48px));
	height: min(var(--abch-h), calc(100dvh - var(--abch-y) - var(--abch-launcher) - 40px));
	min-height: min(480px, calc(100dvh - 48px));
	border-radius: var(--abch-radius);
	transform: translateY(12px) scale(.98);
	transform-origin: bottom right;
}
.abch[data-mode="popup"].is-open .abch-panel,
.abch[data-mode="phone"].is-open .abch-panel { transform: none; }
.abch[data-mode="popup"]:not(.has-launcher) .abch-panel {
	bottom: var(--abch-y);
	height: min(var(--abch-h), calc(100dvh - var(--abch-y) * 2));
}

/* Tablet / portrait: bottom sheet */
.abch[data-mode="sheet"] .abch-panel {
	left: 50%;
	bottom: 0;
	width: min(560px, 100vw);
	height: min(85dvh, 760px);
	border-radius: var(--abch-radius) var(--abch-radius) 0 0;
	transform: translate(-50%, 24px);
	padding-bottom: env(safe-area-inset-bottom);
}
.abch[data-mode="sheet"].is-open .abch-panel { transform: translate(-50%, 0); }
.abch[data-mode="sheet"] .abch-panel.is-tall { height: calc(100dvh - 24px); }
.abch[data-mode="sheet"] .abch-head::before,
.abch[data-mode="phone"] .abch-head::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 50%;
	width: 36px;
	height: 4px;
	margin-left: -18px;
	border-radius: 2px;
	background: currentColor;
	opacity: .35;
}

/* Phone: bottom sheet (~85% of the visible height, page and backdrop stay visible above it).
   Anchored to the visual viewport, and grows to the space above the keyboard while typing. */
.abch[data-mode="phone"] .abch-panel {
	--abch-ph: min(calc(var(--abch-vh, 100dvh) * .85), calc(var(--abch-vh, 100dvh) - 64px));
	left: 0;
	top: calc(var(--abch-vtop, 0px) + var(--abch-vh, 100dvh) - var(--abch-ph));
	width: 100%;
	height: var(--abch-ph);
	border-radius: var(--abch-radius) var(--abch-radius) 0 0;
	transform: translateY(24px);
	padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.abch[data-mode="phone"].is-keyboard .abch-panel { --abch-ph: calc(var(--abch-vh, 100dvh) - 8px); padding-bottom: 0; }
@media (orientation: landscape) and (max-height: 500px) {
	.abch[data-mode="phone"] .abch-panel { --abch-ph: calc(var(--abch-vh, 100dvh) - 16px); }
}
.abch[data-mode="phone"] .abch-panel.is-tall { --abch-ph: calc(var(--abch-vh, 100dvh) - 24px); }
.abch .abch-panel.is-dragging { transition: none; }
.abch[data-mode="popup"] .abch-backdrop { display: none; }
html.abch-lock, html.abch-lock body { overflow: hidden !important; overscroll-behavior: none; }

/* Header */
.abch-head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 8px 12px 16px;
	background: var(--abch-accent);
	color: var(--abch-accent-text);
	flex: none;
}
.abch[data-mode="sheet"] .abch-head,
.abch[data-mode="phone"] .abch-head { padding-top: 18px; touch-action: none; }
.abch-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; object-fit: cover; flex: none; }
.abch-head-text { flex: 1; min-width: 0; }
.abch .abch-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abch-status { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 12px; opacity: .85; }
.abch-status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abch-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); flex: none; }
.abch.is-away .abch-dot { background: #9ca3af; }
.abch-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	flex: none;
}
@media (hover: hover) and (pointer: fine) {
	.abch-icon-btn:hover { background: rgba(0, 0, 0, .07); }
}

/* Tabs */
.abch-tabs { display: flex; border-bottom: 1px solid var(--abch-line); background: #fff; flex: none; }
.abch-tab {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 4px 7px;
	border: 0;
	background: none;
	color: var(--abch-muted);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
.abch-tab span:not(.abch-tab-badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abch-tab::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.abch-tab[aria-selected="true"] { color: var(--abch-ink); }
.abch-tab[aria-selected="true"]::after { background: var(--abch-accent); }
.abch-tab-badge { position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: #e02d2d; }

/* Body / panes */
.abch-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.abch-pane { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.abch-pane[hidden] { display: none; }
.abch-pane-chat { display: flex; flex-direction: column; overflow: hidden; }
.abch-pane-chat[hidden] { display: none; }

/* Chat */
.abch-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.abch-banner { padding: 8px 16px; background: #fff7e0; color: #6b4e00; font-size: 13px; border-bottom: 1px solid #f5e3a8; }
.abch-banner.is-error { background: #fdecec; color: #8a1f1f; border-color: #f4c7c7; }
.abch-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px 12px 4px; background: var(--abch-soft); }
.abch-earlier { display: block; margin: 0 auto 8px; padding: 4px 12px; border: 1px solid var(--abch-line); border-radius: 14px; background: #fff; color: var(--abch-muted); font-size: 12px; cursor: pointer; }
.abch-earlier[hidden] { display: none; }
.abch-messages { margin: 0; padding: 0; list-style: none; }
.abch-msg { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 8px; }
.abch-msg.is-me { align-items: flex-end; }
.abch-msg.is-activity { align-items: center; }
.abch-bubble {
	max-width: 82%;
	padding: 8px 12px;
	border-radius: 16px 16px 16px 4px;
	background: #fff;
	color: var(--abch-ink);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}
.abch-msg.is-me .abch-bubble { border-radius: 16px 16px 4px 16px; background: var(--abch-accent); color: var(--abch-accent-text); }
.abch-msg.is-activity .abch-bubble { max-width: 90%; padding: 2px 10px; background: transparent; box-shadow: none; color: var(--abch-muted); font-size: 12px; text-align: center; }
.abch-bubble a { color: inherit; text-decoration: underline; }
.abch-meta { margin: 2px 4px 0; font-size: 11px; color: var(--abch-muted); }
.abch-msg.is-failed .abch-meta { color: #c62828; cursor: pointer; }
.abch-msg.is-pending .abch-bubble { opacity: .7; }
.abch-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.abch-files img { display: block; max-width: 180px; max-height: 180px; border-radius: 10px; object-fit: cover; background: #fff; }
.abch-files a.abch-file { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .06); color: inherit; font-size: 13px; }
.abch-typing { display: inline-flex; gap: 4px; margin: 0 0 8px; padding: 10px 12px; border-radius: 16px; background: #fff; }
.abch-typing[hidden] { display: none; }
.abch-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--abch-muted); animation: abch-dot 1.2s infinite ease-in-out; }
.abch-typing span:nth-child(2) { animation-delay: .15s; }
.abch-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes abch-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.abch-email-card { margin: 0; padding: 10px 12px; background: #fffbea; border-top: 1px solid #f5e3a8; flex: none; }
.abch-email-card[hidden] { display: none; }
.abch-email-label { display: block; margin-bottom: 6px; font-size: 13px; }
.abch-email-row { display: flex; gap: 8px; }
.abch-email-row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--abch-line); border-radius: 10px; font-size: 16px; background: #fff; }
.abch-email-error { margin: 6px 0 0; color: #c62828; font-size: 12px; }
.abch-email-error[hidden] { display: none; }
.abch-consent { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; font-size: 12px; border-top: 1px solid var(--abch-line); flex: none; }
.abch-consent[hidden] { display: none; }
.abch-consent a { color: inherit; text-decoration: underline; }

.abch-composer { display: flex; align-items: flex-end; gap: 4px; padding: 8px; border-top: 1px solid var(--abch-line); background: #fff; flex: none; }
.abch-composer textarea {
	flex: 1;
	min-width: 0;
	min-height: 40px;
	max-height: 120px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid var(--abch-line);
	border-radius: 20px;
	background: var(--abch-soft);
	color: var(--abch-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.35;
	resize: none;
}
.abch-composer textarea:focus { background: #fff; border-color: #c5ccd3; outline: none; }
.abch-attach { color: var(--abch-muted); }
.abch-send { background: var(--abch-accent); color: var(--abch-accent-text); }
.abch-send:disabled { opacity: .45; cursor: default; }
.abch-chat.is-locked .abch-composer textarea { opacity: .6; }

.abch-prechat { padding: 10px 12px 2px; background: #fff; border-top: 1px solid var(--abch-line); flex: none; }
.abch-prechat[hidden], .abch-prechat label[hidden] { display: none; }
.abch-prechat-intro { margin: 0 0 6px; font-size: 12px; color: var(--abch-muted); }
.abch-prechat-row { display: flex; gap: 8px; }
.abch-prechat-row label { flex: 1 1 0; min-width: 0; }
.abch .abch-prechat-row input { width: 100%; height: 38px; min-height: 38px; padding: 0 10px; border: 1px solid var(--abch-line); background: var(--abch-soft); font-size: 16px; box-shadow: none; }
.abch .abch-prechat-row input:focus { background: #fff; border-color: #c5ccd3; }
.abch[data-mode="phone"] .abch-prechat-row { flex-direction: column; gap: 6px; }
.abch .abch-attach.is-disabled { opacity: .4; }
.abch-hours { white-space: pre-line; }

/* Cards (WhatsApp, Email, Phone) */
.abch-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 24px; text-align: center; }
.abch .abch-card h3 { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--abch-ink); }
.abch-card p { margin: 0; color: var(--abch-muted); }
.abch-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--abch-soft); }
.abch-card-icon .abch-ico { width: 28px; height: 28px; }
.abch-wa-icon { background: #e7f8ee; color: #128c4b; }
.abch-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 22px;
	background: var(--abch-accent);
	color: var(--abch-accent-text);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.abch-btn .abch-ico { width: 18px; height: 18px; }
.abch-btn-wa { background: #25d366; color: #0b2e18; }
.abch .abch-btn:hover { text-decoration: none; filter: brightness(.96); }
.abch-qr { margin: 8px 0 0; }
.abch-qr-code { width: 168px; height: 168px; margin: 0 auto; padding: 8px; border: 1px solid var(--abch-line); border-radius: 12px; background: #fff; }
.abch-qr-code svg, .abch-qr-code img { display: block; width: 100%; height: 100%; }
.abch-qr figcaption { margin-top: 6px; font-size: 12px; color: var(--abch-muted); }
.abch:not([data-mode="popup"]) .abch-qr { display: none; }
.abch-mail-row { display: flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 14px; border: 1px solid var(--abch-line); border-radius: 22px; }
.abch-mail-address { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Form */
.abch-form { padding: 16px; }
.abch-form-intro { margin: 0 0 12px; color: var(--abch-muted); }
.abch-form .ff-el-group:last-child { margin-bottom: 0; }

/* Toast */
.abch-toast {
	position: absolute;
	left: 50%;
	bottom: 72px;
	max-width: calc(100% - 32px);
	padding: 8px 14px;
	border-radius: 8px;
	background: rgba(26, 26, 26, .92);
	color: #fff;
	font-size: 13px;
	transform: translateX(-50%);
	z-index: 2;
}
.abch-toast[hidden] { display: none; }

/* Promo bubble (positioned by frontend.js next to the visible Chat entry).
   Every look is a set of variables; themes (admin "Style"): dark = AUTOOL-style charcoal glass (default),
   light = white frosted glass, white = solid card, custom = values from the admin (inline CSS).
   --n-tail matches the bubble edge as seen on screen: the tail sits outside the bubble, over the page
   and the edge of the bubble's shadow, so translucent themes use a slightly lower alpha (measured:
   within ±3/255 of the edge on white pages). Shadows are centred so little of them falls under the tail. */
.abch-nudge,
.abch-nudge--dark {
	--n-bg: linear-gradient(165deg, rgba(30, 32, 36, .55), rgba(13, 14, 16, .68));
	--n-tail: rgba(14, 15, 17, .59);
	--n-solid: rgba(17, 18, 20, .94);
	--n-blur: blur(14px) saturate(1.12);
	--n-edge: color-mix(in srgb, var(--abch-accent) 45%, rgba(255, 255, 255, .12));
	--n-radius: 4px;
	--n-title: var(--abch-accent);
	--n-text: rgba(255, 255, 255, .82);
	--n-shadow: 0 2px 14px rgba(17, 18, 20, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
	--n-close-bg: rgba(255, 255, 255, .12);
	--n-close: rgba(255, 255, 255, .8);
}
.abch-nudge--light {
	--n-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(255, 255, 255, .6) 0%, rgba(255, 250, 238, .38) 55%, rgba(253, 176, 22, .14) 100%);
	--n-tail: rgba(255, 246, 228, .55);
	--n-solid: rgba(255, 255, 255, .96);
	--n-blur: blur(20px) saturate(180%);
	--n-edge: rgba(255, 255, 255, .7);
	--n-radius: 14px;
	--n-title: #111;
	--n-text: #2b3138;
	--n-shadow: 0 2px 18px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255, 255, 255, .8);
	--n-close-bg: rgba(0, 0, 0, .05);
	--n-close: #6b7480;
}
.abch-nudge--white {
	--n-bg: #fff;
	--n-tail: #fff;
	--n-solid: #fff;
	--n-blur: none;
	--n-edge: #e6eaec;
	--n-radius: 14px;
	--n-title: var(--abch-ink);
	--n-text: var(--abch-muted);
	--n-shadow: 0 2px 16px rgba(0, 0, 0, .13), 0 1px 4px rgba(0, 0, 0, .05);
	--n-close-bg: transparent;
	--n-close: var(--abch-muted);
}
.abch-nudge {
	position: fixed;
	z-index: 9992;
	width: min(300px, calc(100vw - 24px));
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .25s ease, transform .25s ease;
	pointer-events: none;
}
.abch-nudge[hidden] { display: none; }
.abch-nudge.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.abch-nudge.is-left { transform: translateX(6px); }
.abch-nudge.is-left.is-visible { transform: none; }
.abch .abch-nudge-body {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 10px 32px 10px 10px;
	border: 1px solid var(--n-edge);
	border-radius: var(--n-radius);
	background: var(--n-bg);
	-webkit-backdrop-filter: var(--n-blur);
	backdrop-filter: var(--n-blur);
	color: var(--n-text);
	box-shadow: var(--n-shadow);
	text-align: left;
	font-size: 12.5px;
	line-height: 1.3;
	cursor: pointer;
	transition: filter .2s ease;
}
.abch .abch-nudge-body:hover { background: var(--n-bg); color: var(--n-text); filter: brightness(1.06); }
.abch-nudge-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: min(var(--n-radius), 16px); background: var(--abch-accent); color: var(--abch-accent-text); }
.abch-nudge-icon .abch-ico { width: 17px; height: 17px; }
.abch-nudge-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.abch-nudge-text strong,
.abch-nudge-text span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.abch-nudge-text strong { color: var(--n-title); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.abch-nudge-text span { color: var(--n-text); }
.abch-nudge-cta { flex: none; align-self: center; padding: 5px 10px; border-radius: min(var(--n-radius), 14px); background: var(--abch-accent); color: var(--abch-accent-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.abch .abch-nudge-close {
	position: absolute;
	top: 50%;
	right: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	min-height: 0;
	margin-top: -9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--n-close-bg);
	color: var(--n-close);
	box-shadow: none;
	cursor: pointer;
}
.abch .abch-nudge-close:hover { filter: brightness(1.4); }
.abch-nudge-close .abch-ico { width: 11px; height: 11px; }
/* Tail: a rotated square clipped to its outer half, so nothing overlaps the bubble (overlapping
   translucent layers used to show a darker diamond) and its colour equals the bubble edge. */
.abch-nudge::after {
	content: "";
	position: absolute;
	top: 100%;
	left: clamp(14px, var(--abch-tail, 50%), calc(100% - 14px));
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	/* No backdrop blur here: it would pick up the bubble's own dark edge and look darker than it. */
	background: var(--n-tail);
	border-right: 1px solid var(--n-edge);
	border-bottom: 1px solid var(--n-edge);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	transform: rotate(45deg);
}
.abch-nudge.is-left::after {
	top: clamp(14px, var(--abch-tail, 50%), calc(100% - 14px));
	left: 100%;
	transform: rotate(-45deg);
}
/* Compact pill (later pages after a close) and the phone layout: one line — icon, title, CTA. */
.abch-nudge.is-compact,
.abch[data-mode="phone"] .abch-nudge { width: auto; max-width: calc(100vw - 24px); }
.abch-nudge.is-compact .abch-nudge-body,
.abch[data-mode="phone"] .abch-nudge .abch-nudge-body { padding: 5px 30px 5px 5px; gap: 8px; }
.abch-nudge.is-compact .abch-nudge-icon,
.abch[data-mode="phone"] .abch-nudge .abch-nudge-icon { width: 26px; height: 26px; }
.abch-nudge.is-compact .abch-nudge-icon .abch-ico,
.abch[data-mode="phone"] .abch-nudge .abch-nudge-icon .abch-ico { width: 14px; height: 14px; }
.abch-nudge.is-compact .abch-nudge-text strong,
.abch[data-mode="phone"] .abch-nudge .abch-nudge-text strong { display: block; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; -webkit-line-clamp: 1; }
.abch-nudge.is-compact .abch-nudge-text span,
.abch-nudge.is-compact .abch-nudge-cta,
.abch[data-mode="phone"] .abch-nudge .abch-nudge-text span { display: none; }
.abch[data-mode="phone"] .abch-nudge .abch-nudge-cta { padding: 4px 9px; font-size: 11.5px; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.abch .abch-nudge-body { background: var(--n-solid); }
	.abch-nudge::after { background: var(--n-solid); }
}

@media (prefers-reduced-motion: reduce) {
	.abch *, .abch *::before, .abch *::after { transition: none !important; animation: none !important; }
}
@media print {
	.abch { display: none !important; }
}

/* Theme guards: Blocksy styles bare textarea / button[type=submit] / figcaption with higher specificity. */
.abch .abch-composer textarea#abch-input {
	height: 40px;
	min-height: 40px;
	max-height: 120px;
	padding: 9px 14px;
	border: 1px solid var(--abch-line);
	border-radius: 20px;
	background: var(--abch-soft);
	box-shadow: none;
	font-size: 16px;
	line-height: 1.35;
}
.abch .abch-composer textarea#abch-input:focus { background: #fff; border-color: #c5ccd3; box-shadow: none; }
.abch .abch-icon-btn,
.abch button.abch-icon-btn[type="submit"] {
	width: 40px;
	min-width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	background: transparent;
	color: inherit;
}
.abch .abch-composer button.abch-send[type="submit"],
.abch .abch-composer button.abch-send[type="submit"]:hover { background: var(--abch-accent); color: var(--abch-accent-text); }
.abch .abch-composer button.abch-send[type="submit"]:disabled { opacity: .45; }
.abch .abch-attach { color: var(--abch-muted); cursor: pointer; }
.abch .abch-btn,
.abch button.abch-btn[type="submit"] {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 22px;
	background: var(--abch-accent);
	color: var(--abch-accent-text);
	font-size: 14px;
	font-weight: 700;
	box-shadow: none;
}
.abch .abch-email-row .abch-btn { min-height: 40px; padding: 0 16px; border-radius: 10px; }
.abch .abch-btn-wa { background: #25d366; color: #0b2e18; }
.abch .abch-email-row input { height: 40px; min-height: 40px; border-radius: 10px; box-shadow: none; }
.abch .abch-qr figcaption { font-family: inherit; font-size: 12px; font-style: normal; color: var(--abch-muted); }
.abch .abch-form .ff-btn-submit:not(.ff_btn_no_style) { background-color: var(--abch-accent); border-color: var(--abch-accent); color: var(--abch-accent-text); border-radius: 22px; font-weight: 700; }
