/*!
 * Artsun Smart Contact Widget — public styles.
 * Physical side (left/right) follows the admin's position choice; everything
 * inside the panel uses logical properties so Persian/Arabic (RTL) and English
 * (LTR) both lay out correctly.
 *
 * Theme shield: themes and page builders often style every `button` and `a`
 * (for example Elementor's `.elementor-kit-N button` or Hello Elementor's
 * `[type=button]:hover`), which would override the widget's colors and shape.
 * Rules for the widget's buttons, links and WooCommerce button therefore end in
 * `:not(#asw-shield)`. It matches every element and adds one ID level of
 * specificity, so theme class rules cannot win while these rules keep their
 * order among themselves. Add it to any new rule for those elements.
 */

.asw {
	--asw-ease: cubic-bezier(.2, .8, .2, 1);
	--asw-ease-pop: cubic-bezier(.34, 1.56, .64, 1);
	--asw-ico-box: 40px;
	--asw-ico-glyph: 22px;
	--asw-ring: 0 0 0 3px rgba(255, 255, 255, .95), 0 0 0 5px var(--asw-focus, #155eef);
	box-sizing: border-box;
	font-family: var(--asw-font, inherit);
	font-size: var(--asw-font-size, 15px);
	line-height: var(--asw-lh, 1.45);
	color: var(--asw-text, #101828);
	text-align: start;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	letter-spacing: var(--asw-ls, normal);
	text-transform: none;
}

.asw *,
.asw *::before,
.asw *::after {
	box-sizing: border-box;
}

.asw[hidden],
.asw [hidden] {
	display: none !important;
}


.asw button,
.asw a {
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
}

.asw .asw-ico {
	display: block;
	width: var(--asw-ico-glyph);
	height: var(--asw-ico-glyph);
	flex: 0 0 auto;
}

.asw-sr,
.asw-sr-only-block {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---------- Floating container ---------- */

.asw--floating {
	position: fixed;
	z-index: var(--asw-z, 99990);
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: calc(100vw - 16px);
	pointer-events: none;
}
.asw--floating > *:not(#asw-shield) { pointer-events: auto; }
.asw--floating.asw--right { right: calc(var(--asw-ox) + env(safe-area-inset-right, 0px)); align-items: flex-end; }
.asw--floating.asw--left { left: calc(var(--asw-ox) + env(safe-area-inset-left, 0px)); align-items: flex-start; }
/* Physical auto margins keep the button and panel on the side the admin chose, whatever direction the theme forces. */
.asw--floating.asw--right > *:not(#asw-shield) { margin-left: auto; margin-right: 0; }
.asw--floating.asw--left > *:not(#asw-shield) { margin-right: auto; margin-left: 0; }
/* Themes sometimes force `direction` on every element; the widget's own dir attributes win. */
.asw[dir="rtl"], .asw [dir="rtl"] { direction: rtl; }
.asw[dir="ltr"], .asw [dir="ltr"] { direction: ltr; }
.asw *:not([dir]) { direction: inherit; }
.asw--floating.asw--bottom { bottom: calc(var(--asw-oy) + env(safe-area-inset-bottom, 0px)); }
.asw--floating.asw--top { top: calc(var(--asw-oy) + env(safe-area-inset-top, 0px)); flex-direction: column-reverse; }
body.admin-bar .asw--floating.asw--top { top: calc(var(--asw-oy) + 32px); }

/* ---------- Toggle button ---------- */

.asw__toggle:not(#asw-shield) {
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	min-height: 0;
	font-family: inherit;
	line-height: 1;
	white-space: nowrap;
	box-shadow: none;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: var(--asw-btn-size);
	height: var(--asw-btn-size);
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: var(--asw-btn-radius);
	background: var(--asw-button-bg);
	color: var(--asw-button-text);
	cursor: pointer;
	text-decoration: none;
	transition: transform .2s var(--asw-ease), box-shadow .2s var(--asw-ease), filter .2s;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.asw__toggle-gloss:not(#asw-shield) {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(150deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .06) 45%, rgba(0, 0, 0, .08) 100%);
	pointer-events: none;
}
.asw__toggle:hover:not(#asw-shield) { filter: brightness(1.07) saturate(1.05); color: var(--asw-button-text); }
.asw__toggle:hover .asw__toggle-icon:not(#asw-shield) { animation: asw-wiggle .6s ease-in-out; }
@keyframes asw-wiggle {
	0%, 100% { transform: rotate(0); }
	25% { transform: rotate(-12deg) scale(1.06); }
	50% { transform: rotate(9deg) scale(1.06); }
	75% { transform: rotate(-4deg); }
}
.asw__toggle:active:not(#asw-shield) { transform: scale(.95); }
.asw__toggle:focus:not(#asw-shield) { outline: none; }
.asw__toggle:focus-visible:not(#asw-shield) { box-shadow: var(--asw-ring); }
.asw__toggle .asw-ico:not(#asw-shield) { --asw-ico-glyph: var(--asw-icon-size); }
.asw--has-label .asw__toggle:not(#asw-shield) { padding-inline: 16px 20px; border-radius: 999px; }
.asw__toggle-label:not(#asw-shield) { font-weight: var(--asw-label-weight, 600); font-size: var(--asw-btn-text, 15px); white-space: nowrap; }
.asw-label--never .asw__toggle-label:not(#asw-shield) {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

.asw__toggle-icon:not(#asw-shield),
.asw__toggle-x:not(#asw-shield) {
	display: grid;
	place-items: center;
	transition: transform var(--asw-speed, 260ms) var(--asw-ease), opacity var(--asw-speed, 260ms) var(--asw-ease);
}
.asw__toggle-icon img:not(#asw-shield) {
	width: calc(var(--asw-icon-size) * 1.45);
	height: calc(var(--asw-icon-size) * 1.45);
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.asw__toggle-x:not(#asw-shield) {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: calc(var(--asw-btn-size) / 2);
	transform: translate(-50%, -50%) rotate(-90deg) scale(.6);
	opacity: 0;
}
[dir="rtl"] .asw__toggle-x:not(#asw-shield) { transform: translate(50%, -50%) rotate(90deg) scale(.6); }
.asw.is-open .asw__toggle-icon:not(#asw-shield) { transform: rotate(90deg) scale(.6); opacity: 0; }
.asw.is-open .asw__toggle-x:not(#asw-shield) { transform: translate(-50%, -50%) rotate(0) scale(1); opacity: 1; }
[dir="rtl"].asw.is-open .asw__toggle-x:not(#asw-shield) { transform: translate(50%, -50%) rotate(0) scale(1); }
.asw.is-open .asw__toggle-label:not(#asw-shield) { opacity: 0; }
.asw--has-label.is-open .asw__toggle:not(#asw-shield) { padding-inline: 0; min-width: var(--asw-btn-size); width: var(--asw-btn-size); border-radius: var(--asw-btn-radius); }
.asw--has-label.is-open .asw__toggle-label:not(#asw-shield) { display: none; }

.asw__dot {
	position: absolute;
	inset-block-start: 3px;
	inset-inline-end: 3px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--asw-success);
	box-shadow: 0 0 0 2px #fff;
}
.asw__toggle-badge:not(#asw-shield) {
	position: absolute;
	inset-block-start: -6px;
	inset-inline-end: -6px;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--asw-accent);
	color: var(--asw-on-accent);
	font-size: 11px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
	white-space: nowrap;
}
.asw.is-open .asw__dot,
.asw.is-open .asw__toggle-badge:not(#asw-shield) { opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s; }

.asw-btnshadow--soft .asw__toggle:not(#asw-shield) { box-shadow: 0 4px 14px -2px rgba(var(--asw-shadow-rgb, 16, 24, 40), .18); }
.asw-btnshadow--medium .asw__toggle:not(#asw-shield) { box-shadow: 0 12px 28px -8px rgba(var(--asw-shadow-rgb, 16, 24, 40), .38), 0 4px 10px -4px rgba(var(--asw-shadow-rgb, 16, 24, 40), .2); }
.asw-btnshadow--strong .asw__toggle:not(#asw-shield) { box-shadow: 0 20px 44px -10px rgba(var(--asw-shadow-rgb, 16, 24, 40), .55), 0 6px 14px -6px rgba(var(--asw-shadow-rgb, 16, 24, 40), .3); }
.asw-btnshadow--soft .asw__toggle:focus-visible:not(#asw-shield),
.asw-btnshadow--medium .asw__toggle:focus-visible:not(#asw-shield),
.asw-btnshadow--strong .asw__toggle:focus-visible:not(#asw-shield) { box-shadow: var(--asw-ring); }

.asw-hover--lift .asw__toggle:hover:not(#asw-shield) { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(var(--asw-button-bg-rgb), .55), 0 6px 14px -6px rgba(var(--asw-shadow-rgb, 16, 24, 40), .3); }
.asw-hover--scale .asw__toggle:hover:not(#asw-shield) { transform: scale(1.08); }
.asw-hover--glow .asw__toggle:hover:not(#asw-shield) { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 0 6px rgba(var(--asw-button-bg-rgb), .18), 0 0 0 12px rgba(var(--asw-button-bg-rgb), .08), 0 16px 32px -10px rgba(var(--asw-button-bg-rgb), .6); }
.asw.is-open .asw__toggle:hover .asw__toggle-icon:not(#asw-shield) { animation: none; }

/* Tooltips (pointer devices only; the same text is always available to assistive tech). */
.asw [data-tip]::after {
	content: attr(data-tip);
	position: absolute;
	z-index: 3;
	inset-block-start: 50%;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--asw-tooltip-bg);
	color: var(--asw-tooltip-text);
	font-size: var(--asw-tip-size, 13px);
	font-weight: 500;
	line-height: 1.35;
	white-space: nowrap;
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-50%) scale(.96);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.asw [data-tip=""]::after { display: none; }
.asw--right .asw__toggle[data-tip]:not(#asw-shield)::after { right: calc(100% + 12px); }
.asw--left .asw__toggle[data-tip]:not(#asw-shield)::after { left: calc(100% + 12px); }
@media (hover: hover) {
	.asw:not(.is-open) .asw__toggle[data-tip]:hover:not(#asw-shield)::after { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
}
.asw:not(.is-open) .asw__toggle[data-tip]:focus-visible:not(#asw-shield)::after { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
.asw__link:not([data-tip]):not(#asw-shield)::after,
.asw__link[data-tip]:not(#asw-shield)::after { display: none; }

/* ---------- Welcome bubble ---------- */

.asw__bubble {
	position: relative;
	max-width: min(300px, calc(100vw - 32px));
	padding: 12px 14px;
	padding-inline-end: 42px;
	border-radius: 16px;
	background: var(--asw-notify-bg, #fff);
	color: var(--asw-notify-text, #101828);
	box-shadow: 0 16px 36px -12px rgba(var(--asw-shadow-rgb, 16, 24, 40), .35), 0 2px 6px rgba(var(--asw-shadow-rgb, 16, 24, 40), .08);
	font-size: .94em;
	animation: asw-bubble-in var(--asw-speed, 260ms) var(--asw-ease) both;
}
.asw__bubble-text { margin: 0; white-space: pre-line; }
.asw__bubble-close:not(#asw-shield) {
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	min-height: 0;
	font-family: inherit;
	line-height: 1;
	box-shadow: none;
	position: absolute;
	inset-block-start: 6px;
	inset-inline-end: 6px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	opacity: .65;
	cursor: pointer;
}
.asw__bubble-close:hover:not(#asw-shield) { opacity: 1; background: rgba(var(--asw-shadow-rgb, 16, 24, 40), .06); }
.asw__bubble-close:focus-visible:not(#asw-shield) { opacity: 1; outline: 2px solid currentColor; outline-offset: 1px; }
.asw__bubble-close .asw-ico:not(#asw-shield) { --asw-ico-glyph: 16px; }
@keyframes asw-bubble-in { from { opacity: 0; transform: translateY(8px); } }
.asw--top .asw__bubble { animation-name: asw-bubble-in-top; }
@keyframes asw-bubble-in-top { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Panel ---------- */

.asw__panel {
	--asw-panel-room: calc(var(--asw-btn-size) + var(--asw-oy) + 40px);
	display: flex;
	flex-direction: column;
	width: min(var(--asw-panel-w), calc(100vw - (var(--asw-ox) * 2) - 8px));
	max-height: min(var(--asw-panel-h), calc(100vh - var(--asw-panel-room)));
	max-height: min(var(--asw-panel-h), calc(100dvh - var(--asw-panel-room)));
	overflow: hidden;
	border: var(--asw-border-w) solid var(--asw-border);
	border-radius: var(--asw-radius);
	background: var(--asw-main-bg);
	color: var(--asw-text);
}
.asw--floating .asw__panel {
	opacity: 0;
	transition: opacity var(--asw-speed) ease, transform var(--asw-speed) var(--asw-ease);
}
.asw--floating.asw--right.asw--bottom .asw__panel { transform-origin: bottom right; }
.asw--floating.asw--left.asw--bottom .asw__panel { transform-origin: bottom left; }
.asw--floating.asw--right.asw--top .asw__panel { transform-origin: top right; }
.asw--floating.asw--left.asw--top .asw__panel { transform-origin: top left; }
.asw-anim--slide .asw__panel { transform: translateY(14px); }
.asw-anim--slide.asw--top .asw__panel { transform: translateY(-14px); }
.asw-anim--scale .asw__panel { transform: scale(.92) translateY(6px); }
.asw-anim--pop .asw__panel { transform: scale(.78); transition-timing-function: ease, var(--asw-ease-pop); }
.asw-anim--none .asw__panel { transition: none; }
.asw.is-open .asw__panel { opacity: 1; transform: none; }

.asw-shadow--soft .asw__panel { box-shadow: 0 8px 24px -8px rgba(var(--asw-shadow-rgb, 16, 24, 40), .18); }
.asw-shadow--medium .asw__panel { box-shadow: 0 24px 48px -16px rgba(var(--asw-shadow-rgb, 16, 24, 40), .32), 0 4px 12px -4px rgba(var(--asw-shadow-rgb, 16, 24, 40), .1); }
.asw-shadow--strong .asw__panel { box-shadow: 0 32px 64px -16px rgba(var(--asw-shadow-rgb, 16, 24, 40), .5), 0 8px 18px -6px rgba(var(--asw-shadow-rgb, 16, 24, 40), .18); }

/* Automatic theme: swap to the dark palette when the website or the visitor's system is dark. */
@media (prefers-color-scheme: dark) {
	.asw-theme--auto:not(.asw-site-light) > * {
		--asw-primary: var(--asw-d-primary);
		--asw-on-primary: var(--asw-d-on-primary);
		--asw-secondary: var(--asw-d-secondary);
		--asw-accent: var(--asw-d-accent);
		--asw-on-accent: var(--asw-d-on-accent);
		--asw-main-bg: var(--asw-d-main-bg);
		--asw-panel-bg: var(--asw-d-panel-bg);
		--asw-button-bg: var(--asw-d-button-bg);
		--asw-button-text: var(--asw-d-button-text);
		--asw-text: var(--asw-d-text);
		--asw-muted: var(--asw-d-muted);
		--asw-border: var(--asw-d-border);
		--asw-hover: var(--asw-d-hover);
		--asw-focus: var(--asw-d-focus);
		--asw-shadow: var(--asw-d-shadow);
		--asw-tooltip-bg: var(--asw-d-tooltip-bg);
		--asw-tooltip-text: var(--asw-d-tooltip-text);
		--asw-notify-bg: var(--asw-d-notify-bg);
		--asw-notify-text: var(--asw-d-notify-text);
		--asw-success: var(--asw-d-success);
		--asw-warning: var(--asw-d-warning);
		--asw-error: var(--asw-d-error);
		--asw-shadow-rgb: var(--asw-d-shadow-rgb);
		--asw-button-bg-rgb: var(--asw-d-button-bg-rgb);
		--asw-focus-rgb: var(--asw-d-focus-rgb);
		--asw-primary-rgb: var(--asw-d-primary-rgb);
	}
}
.asw-theme--auto.asw-site-dark > * {
	--asw-primary: var(--asw-d-primary);
	--asw-on-primary: var(--asw-d-on-primary);
	--asw-secondary: var(--asw-d-secondary);
	--asw-accent: var(--asw-d-accent);
	--asw-on-accent: var(--asw-d-on-accent);
	--asw-main-bg: var(--asw-d-main-bg);
	--asw-panel-bg: var(--asw-d-panel-bg);
	--asw-button-bg: var(--asw-d-button-bg);
	--asw-button-text: var(--asw-d-button-text);
	--asw-text: var(--asw-d-text);
	--asw-muted: var(--asw-d-muted);
	--asw-border: var(--asw-d-border);
	--asw-hover: var(--asw-d-hover);
	--asw-focus: var(--asw-d-focus);
	--asw-shadow: var(--asw-d-shadow);
	--asw-tooltip-bg: var(--asw-d-tooltip-bg);
	--asw-tooltip-text: var(--asw-d-tooltip-text);
	--asw-notify-bg: var(--asw-d-notify-bg);
	--asw-notify-text: var(--asw-d-notify-text);
	--asw-success: var(--asw-d-success);
	--asw-warning: var(--asw-d-warning);
	--asw-error: var(--asw-d-error);
	--asw-shadow-rgb: var(--asw-d-shadow-rgb);
	--asw-button-bg-rgb: var(--asw-d-button-bg-rgb);
	--asw-focus-rgb: var(--asw-d-focus-rgb);
	--asw-primary-rgb: var(--asw-d-primary-rgb);
}

.asw__header {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	padding: calc(var(--asw-pad) + 4px) var(--asw-pad);
	background: var(--asw-primary);
	color: var(--asw-on-primary);
}
.asw__header:has(.asw__close):not(#asw-shield) { padding-inline-end: calc(var(--asw-pad) + 40px); }
.asw-align--center .asw__header { flex-direction: column; text-align: center; padding-inline: calc(var(--asw-pad) + 36px); }
.asw__logo {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	object-fit: cover;
	background: rgba(255, 255, 255, .95);
}
.asw__heading { min-width: 0; flex: 1 1 auto; }
.asw__title {
	margin: 0;
	font-size: var(--asw-title-size);
	font-weight: var(--asw-title-weight);
	line-height: 1.25;
	color: inherit;
}
.asw__subtitle { margin-block-start: 3px; font-size: .9em; opacity: .86; }
.asw__status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-block-start: 8px;
	padding: 3px 10px 3px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	font-size: 12.5px;
	font-weight: 500;
}
.asw__status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--asw-warning);
}
.asw__status.is-open .asw__status-dot { background: var(--asw-success); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }

.asw__close:not(#asw-shield) {
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	min-height: 0;
	font-family: inherit;
	line-height: 1;
	box-shadow: none;
	position: absolute;
	inset-block-start: 12px;
	inset-inline-end: 12px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: inherit;
	cursor: pointer;
	transition: background .15s;
}
.asw__close:hover:not(#asw-shield) { background: rgba(255, 255, 255, .28); }
.asw__close:focus-visible:not(#asw-shield) { outline: 2px solid currentColor; outline-offset: 2px; }
.asw__close .asw-ico:not(#asw-shield) { --asw-ico-glyph: 18px; }

.asw__body {
	flex: 1 1 auto;
	min-height: 0;
	padding: var(--asw-pad);
	overflow-y: auto;
	background: var(--asw-panel-bg);
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.asw__campaign {
	margin-block-end: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--asw-campaign-bg);
	color: var(--asw-campaign-fg);
	font-size: .92em;
	font-weight: 500;
	white-space: pre-line;
}
.asw__welcome { margin: 0 0 12px; color: var(--asw-muted); white-space: pre-line; }
.asw__closed:not(#asw-shield) {
	margin: 0 0 12px;
	padding: 9px 12px;
	border-radius: 10px;
	border-inline-start: 3px solid var(--asw-warning);
	background: rgba(247, 144, 9, .1);
	font-size: .92em;
	white-space: pre-line;
}
.asw__empty { margin: 8px 0; color: var(--asw-muted); text-align: center; }

/* ---------- Items (shared) ---------- */

.asw__list {
	display: flex;
	flex-direction: column;
	gap: var(--asw-gap, 8px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.asw__item { position: relative; margin: 0; padding: 0; list-style: none; }
.asw__item::before,
.asw__item::marker { content: none; }

.asw__link:not(#asw-shield) {
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	min-height: 0;
	font-family: inherit;
	height: auto;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	white-space: normal;
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: var(--asw-item-radius);
	background: var(--asw-secondary);
	color: var(--asw-text);
	text-align: start;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .16s ease, transform .16s var(--asw-ease), box-shadow .16s ease;
	-webkit-tap-highlight-color: transparent;
}
.asw__link:hover:not(#asw-shield),
.asw__link:focus:not(#asw-shield) { color: var(--asw-text); text-decoration: none; }
.asw__link:hover:not(#asw-shield) { background: var(--asw-hover); }
.asw__link:focus:not(#asw-shield) { outline: none; }
.asw__link:focus-visible:not(#asw-shield) { outline: 2px solid var(--asw-focus); outline-offset: 2px; }
.asw__link:active:not(#asw-shield) { transform: scale(.985); }
.asw-hover--lift .asw__link:hover:not(#asw-shield) { transform: translateY(-1px); }
.asw-hover--scale .asw__link:hover .asw__icon:not(#asw-shield) { transform: scale(1.08); }
.asw-hover--glow .asw__link:hover:not(#asw-shield) { box-shadow: 0 0 0 3px rgba(var(--asw-focus-rgb), .18); }

.asw__icon {
	position: relative;
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: var(--asw-ico-box);
	height: var(--asw-ico-box);
	border-radius: 12px;
	background: var(--asw-brand);
	color: var(--asw-ico-fg);
	transition: transform .18s var(--asw-ease);
}
.asw__icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
/* Official app logos: the image is the whole icon, no colored bubble. */
.asw__item.has-logo .asw__icon { background: transparent; border-radius: 0; }
.asw__item.has-logo .asw__icon img { object-fit: contain; border-radius: 0; }
.asw-layout--compact .asw__item.has-logo .asw__icon { box-shadow: none; filter: drop-shadow(0 8px 14px rgba(var(--asw-shadow-rgb, 16, 24, 40), .28)); }
.asw__platform-badge.is-logo { background: transparent; }
.asw__platform-badge.is-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
/* Agent photo: the photo replaces the icon and a small platform badge keeps the channel recognizable. */
.asw__item.has-photo .asw__icon { background: var(--asw-secondary); border-radius: 50%; }
.asw__platform-badge {
	position: absolute;
	inset-block-end: -3px;
	inset-inline-start: -3px;
	display: grid;
	place-items: center;
	width: 45%;
	height: 45%;
	min-width: 16px;
	min-height: 16px;
	border-radius: 50%;
	background: var(--asw-brand);
	color: var(--asw-ico-fg);
	box-shadow: 0 0 0 2px var(--asw-panel-bg);
}
.asw .asw__platform-badge .asw-ico { width: 62%; height: 62%; }
.asw__presence {
	position: absolute;
	inset-block-end: -2px;
	inset-inline-end: -2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--asw-success);
	box-shadow: 0 0 0 2px var(--asw-panel-bg);
}
.asw__item.is-away .asw__presence { background: #98a2b3; }
.asw__item.is-away .asw__icon { filter: saturate(.55); }

.asw__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; gap: 1px; }
.asw__label { font-size: var(--asw-label-size, 15px); font-weight: var(--asw-label-weight, 600); line-height: 1.3; overflow-wrap: anywhere; }
.asw__desc { color: var(--asw-muted); font-size: var(--asw-small-size, 13px); line-height: 1.35; overflow-wrap: anywhere; }
.asw__desc[dir="ltr"] { unicode-bidi: isolate; }
[dir="rtl"] .asw__desc[dir="ltr"] { text-align: right; }
.asw__avail { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-block-start: 2px; font-size: calc(var(--asw-small-size, 13px) - 1px); }
.asw__avail-state { color: var(--asw-success); font-weight: 600; }
.asw__item.is-away .asw__avail-state { color: var(--asw-muted); }
.asw__avail-note { color: var(--asw-muted); }

.asw__badge {
	flex: 0 0 auto;
	margin-inline-start: auto;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--asw-brand);
	color: var(--asw-ico-fg);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}
.asw__copy { flex: 0 0 auto; margin-inline-start: auto; opacity: .55; }
.asw__copy .asw-ico { --asw-ico-glyph: 16px; }
.asw__link:hover .asw__copy:not(#asw-shield) { opacity: .9; }
.asw__item.is-copied .asw__link:not(#asw-shield) { box-shadow: inset 0 0 0 2px var(--asw-success); }

.asw-shape--circle .asw__icon,
.asw-shape--pill .asw__icon { border-radius: 50%; }
.asw-shape--pill .asw__link:not(#asw-shield) { border-radius: 999px; padding-inline: 8px 16px; }
.asw-shape--square .asw__icon { border-radius: 6px; }
.asw-shape--square .asw__link:not(#asw-shield) { border-radius: 6px; }

.asw-size--sm { --asw-ico-box: 32px; --asw-ico-glyph: 18px; }
.asw-size--sm .asw__link:not(#asw-shield) { padding: 7px 10px; gap: 10px; }
.asw-size--lg { --asw-ico-box: 50px; --asw-ico-glyph: 27px; }
.asw-size--lg .asw__link:not(#asw-shield) { padding: 12px 14px; gap: 14px; }
.asw__toggle .asw-ico:not(#asw-shield) { width: var(--asw-icon-size); height: var(--asw-icon-size); }

.asw-dividers .asw__list { gap: 0; }
.asw-dividers .asw__item + .asw__item { border-block-start: 1px solid var(--asw-border); }
.asw-dividers .asw__link:not(#asw-shield) { background: transparent; border-radius: 8px; }
.asw-dividers .asw__link:hover:not(#asw-shield) { background: var(--asw-hover); }

/* Items rise in one after another when the panel opens. */
.asw--floating:not(.asw-layout--compact):not(.asw-anim--none) .asw__item { opacity: 0; transform: translateY(8px); transition: opacity calc(var(--asw-speed) * 1.1) ease, transform calc(var(--asw-speed) * 1.1) var(--asw-ease); }
.asw--floating.is-open:not(.asw-layout--compact) .asw__item { opacity: 1; transform: none; }
.asw--floating.is-open .asw__item:nth-child(2) { transition-delay: 40ms; }
.asw--floating.is-open .asw__item:nth-child(3) { transition-delay: 80ms; }
.asw--floating.is-open .asw__item:nth-child(4) { transition-delay: 120ms; }
.asw--floating.is-open .asw__item:nth-child(5) { transition-delay: 160ms; }
.asw--floating.is-open .asw__item:nth-child(n+6) { transition-delay: 200ms; }

/* ---------- Layout: vertical list ---------- */
.asw-layout--list .asw__list { gap: 2px; }
.asw-layout--list .asw__link:not(#asw-shield) { background: transparent; }
.asw-layout--list .asw__link:hover:not(#asw-shield) { background: var(--asw-hover); }
.asw-layout--list .asw__item + .asw__item { border-block-start: 1px solid var(--asw-border); }

/* ---------- Layout: cards ---------- */
.asw-layout--cards .asw__list {
	display: grid;
	grid-template-columns: repeat(var(--asw-cols), minmax(0, 1fr));
	gap: max(var(--asw-gap, 8px), 6px);
}
.asw-layout--cards .asw__link:not(#asw-shield) {
	flex-direction: column;
	justify-content: flex-start;
	gap: 8px;
	height: 100%;
	padding: 16px 10px 14px;
	text-align: center;
}
.asw-layout--cards { --asw-ico-box: 48px; --asw-ico-glyph: 25px; }
.asw-layout--cards .asw__text { align-items: center; }
.asw-layout--cards .asw__avail { justify-content: center; }
.asw-layout--cards .asw__badge { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; }
.asw-layout--cards .asw__copy { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; }
.asw-layout--cards.asw-shape--pill .asw__link:not(#asw-shield) { border-radius: 22px; padding-inline: 10px; }

/* ---------- Layout: icons and labels ---------- */
.asw-layout--icons .asw__list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.asw-layout--icons .asw__item { flex: 0 1 auto; }
.asw-layout--icons .asw__link:not(#asw-shield) { width: auto; padding: 6px 14px 6px 6px; padding-inline: 6px 14px; border-radius: 999px; gap: 8px; }
.asw-layout--icons { --asw-ico-box: 34px; --asw-ico-glyph: 19px; }
.asw-layout--icons .asw__icon { border-radius: 50%; }
.asw-layout--icons .asw__desc,
.asw-layout--icons .asw__avail,
.asw-layout--icons .asw__badge { display: none; }
.asw-layout--icons.asw-labels--below .asw__link:not(#asw-shield) { flex-direction: column; border-radius: 16px; padding: 10px 12px; }

/* ---------- Layout: compact circular menu ---------- */
.asw-layout--compact { --asw-ico-box: calc(var(--asw-btn-size) * .82); --asw-ico-glyph: calc(var(--asw-icon-size) * .9); }
.asw--floating.asw-layout--compact .asw__panel {
	width: auto;
	overflow: visible;
	border: 0;
	background: transparent;
	box-shadow: none;
}
.asw--floating.asw-layout--compact .asw__body { padding: 4px; overflow: visible; }
.asw-layout--compact .asw__list { gap: 12px; }
.asw--floating.asw-layout--compact.asw--right .asw__list { align-items: flex-end; }
.asw--floating.asw-layout--compact.asw--left .asw__list { align-items: flex-start; }
[dir="rtl"].asw--floating.asw-layout--compact.asw--right .asw__list { align-items: flex-start; }
[dir="rtl"].asw--floating.asw-layout--compact.asw--left .asw__list { align-items: flex-end; }
.asw--floating.asw-layout--compact.asw--right .asw__list { padding-inline-end: calc((var(--asw-btn-size) - var(--asw-ico-box)) / 2 - 4px); }
.asw-layout--compact .asw__link:not(#asw-shield) {
	width: var(--asw-ico-box);
	height: var(--asw-ico-box);
	padding: 0;
	justify-content: center;
	border-radius: 50%;
	background: transparent;
	overflow: visible;
}
.asw-layout--compact .asw__link:hover:not(#asw-shield) { background: transparent; }
.asw-layout--compact .asw__icon {
	border-radius: 50%;
	box-shadow: 0 10px 22px -8px rgba(var(--asw-shadow-rgb, 16, 24, 40), .45);
}
.asw-layout--compact .asw__badge,
.asw-layout--compact .asw__copy,
.asw-layout--compact .asw__desc,
.asw-layout--compact .asw__avail { display: none; }
.asw-layout--compact .asw__text {
	position: absolute;
	inset-block-start: 50%;
	transform: translateY(-50%);
	width: max-content;
	max-width: 220px;
	padding: 6px 12px;
	border-radius: 10px;
	background: var(--asw-main-bg);
	color: var(--asw-text);
	box-shadow: 0 8px 20px -8px rgba(var(--asw-shadow-rgb, 16, 24, 40), .35);
	font-size: .9em;
}
.asw--right.asw-layout--compact .asw__text { right: calc(100% + 12px); }
.asw--left.asw-layout--compact .asw__text { left: calc(100% + 12px); }
.asw-layout--compact.asw-labels--tooltip .asw__text,
.asw-layout--compact.asw-labels--below .asw__text { opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.asw-layout--compact.asw-labels--tooltip .asw__link:hover .asw__text:not(#asw-shield),
.asw-layout--compact.asw-labels--tooltip .asw__link:focus-visible .asw__text:not(#asw-shield),
.asw-layout--compact.asw-labels--below .asw__link:hover .asw__text:not(#asw-shield),
.asw-layout--compact.asw-labels--below .asw__link:focus-visible .asw__text:not(#asw-shield) { opacity: 1; visibility: visible; }
.asw-layout--compact.asw-labels--hidden .asw__text {
	position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; box-shadow: none;
}
.asw--floating.asw-layout--compact .asw__item { opacity: 0; transform: translateY(10px) scale(.8); transition: opacity var(--asw-speed) ease, transform var(--asw-speed) var(--asw-ease-pop); }
.asw--floating.asw-layout--compact.is-open .asw__item { opacity: 1; transform: none; }
.asw--floating.asw-layout--compact.is-open .asw__item:nth-last-child(2) { transition-delay: 30ms; }
.asw--floating.asw-layout--compact.is-open .asw__item:nth-last-child(3) { transition-delay: 60ms; }
.asw--floating.asw-layout--compact.is-open .asw__item:nth-last-child(4) { transition-delay: 90ms; }
.asw--floating.asw-layout--compact.is-open .asw__item:nth-last-child(n+5) { transition-delay: 120ms; }
.asw--floating.asw-layout--compact .asw__campaign,
.asw--floating.asw-layout--compact .asw__closed:not(#asw-shield) { max-width: 260px; box-shadow: 0 8px 20px -8px rgba(var(--asw-shadow-rgb, 16, 24, 40), .35); background-color: var(--asw-main-bg); }

/* Inline compact = a row of round icons with labels underneath. */
.asw--inline.asw-layout--compact .asw__list { flex-direction: row; flex-wrap: wrap; gap: 16px; }
.asw--inline.asw-layout--compact .asw__link:not(#asw-shield) { width: auto; height: auto; flex-direction: column; gap: 6px; }
.asw--inline.asw-layout--compact .asw__text { position: static; transform: none; padding: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; font-size: .82em; max-width: 90px; text-align: center; }
.asw--inline.asw-layout--compact .asw__header { position: static !important; width: auto !important; height: auto !important; clip: auto !important; margin: 0 !important; overflow: visible !important; white-space: normal !important; }

/* Labels as tooltips / hidden for cards and icons layouts. */
.asw-layout--cards.asw-labels--hidden .asw__text,
.asw-layout--icons.asw-labels--hidden .asw__text,
.asw-layout--icons.asw-labels--tooltip .asw__text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.asw-layout--icons.asw-labels--tooltip .asw__link:not(#asw-shield),
.asw-layout--icons.asw-labels--hidden .asw__link:not(#asw-shield) { padding: 6px; }
.asw-layout--icons.asw-labels--tooltip .asw__link[data-tip]:not(#asw-shield)::after { display: block; inset-block-start: auto; inset-block-end: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(-50%); }
[dir="rtl"] .asw-layout--icons.asw-labels--tooltip .asw__link[data-tip]:not(#asw-shield)::after { transform: translateX(50%); }
.asw-layout--icons.asw-labels--tooltip .asw__link:hover:not(#asw-shield)::after,
.asw-layout--icons.asw-labels--tooltip .asw__link:focus-visible:not(#asw-shield)::after { opacity: 1; visibility: visible; }

/* ---------- Layout: categorized ---------- */
.asw__tabs:not(#asw-shield) {
	display: flex;
	gap: 6px;
	margin: 0 0 12px;
	padding-block-end: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}
.asw__tabs:not(#asw-shield)::-webkit-scrollbar { display: none; }
.asw__tab:not(#asw-shield) {
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	min-height: 0;
	font-family: inherit;
	box-shadow: none;
	white-space: nowrap;
	flex: 0 0 auto;
	margin: 0;
	padding: 6px 13px;
	border: 1px solid var(--asw-border);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.asw__tab:hover:not(#asw-shield) { background: var(--asw-hover); }
.asw__tab[aria-pressed="true"]:not(#asw-shield) { border-color: transparent; background: var(--asw-primary); color: var(--asw-on-primary); }
.asw__tab:focus-visible:not(#asw-shield) { outline: 2px solid var(--asw-focus); outline-offset: 2px; }
.asw__group + .asw__group { margin-block-start: 14px; }
.asw__group-title:not(#asw-shield) {
	margin: 0 0 8px;
	padding: 0;
	color: var(--asw-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .02em;
}

/* ---------- Signature ---------- */
.asw__credit {
	flex: 0 0 auto;
	padding: 7px var(--asw-pad) 9px;
	border-block-start: 1px solid var(--asw-border);
	background: var(--asw-panel-bg);
	color: var(--asw-muted);
	font-size: 11px;
	line-height: 1.4;
	text-align: center;
	letter-spacing: normal;
}
.asw .asw__credit { display: block; width: auto; margin: 0; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.asw .asw__credit a { display: inline; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; color: inherit; font-family: inherit; font-size: inherit; line-height: inherit; text-decoration: none; text-transform: none; font-weight: 600; }
.asw .asw__credit a:hover { color: var(--asw-primary); text-decoration: underline; }
.asw__credit a:focus-visible { outline: 2px solid var(--asw-focus); outline-offset: 2px; border-radius: 4px; }
.asw--floating.asw-layout--compact .asw__credit { display: none; }

/* ---------- WooCommerce: contact under the price ---------- */
.asw-woo:not(#asw-shield) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; font-family: inherit; }
.asw-woo--loop:not(#asw-shield) { justify-content: center; margin: 6px 0 10px; }
.asw-woo__btn:not(#asw-shield) {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
	background: var(--asw-woo-bg); color: var(--asw-woo-fg) !important; font-size: 14px; font-weight: 600; line-height: 1.2;
	text-decoration: none !important; box-shadow: 0 6px 16px -8px rgba(16, 24, 40, .45);
	transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.asw-woo--loop .asw-woo__btn:not(#asw-shield) { padding: 7px 12px; font-size: 13px; }
.asw-woo__btn:hover:not(#asw-shield) { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 22px -10px rgba(16, 24, 40, .5); }
.asw-woo__btn:focus-visible:not(#asw-shield), .asw-woo__icon:focus-visible:not(#asw-shield) { outline: 2px solid var(--asw-woo-focus); outline-offset: 2px; }
.asw-woo__glyph:not(#asw-shield) { display: inline-grid; place-items: center; width: 20px; height: 20px; }
.asw-woo__glyph .asw-ico:not(#asw-shield), .asw-woo__glyph img:not(#asw-shield) { width: 20px; height: 20px; display: block; object-fit: contain; }
.asw-woo__label:not(#asw-shield) { font-size: 13px; font-weight: 600; opacity: .85; }
.asw-woo__icons:not(#asw-shield) { display: inline-flex; gap: 6px; }
.asw-woo__icon:not(#asw-shield) { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--asw-brand); color: #fff !important; transition: transform .15s ease; }
.asw-woo__icon:hover:not(#asw-shield) { transform: translateY(-2px) scale(1.05); }
.asw-woo__icon .asw-ico:not(#asw-shield) { width: 18px; height: 18px; }
.asw-woo__icon img:not(#asw-shield) { width: 34px; height: 34px; object-fit: contain; }
.asw-woo__icon:has(img):not(#asw-shield) { background: transparent; }
@media (prefers-reduced-motion: reduce) { .asw-woo__btn:not(#asw-shield), .asw-woo__icon:not(#asw-shield) { transition: none; } }

/* ---------- Centered text ---------- */
.asw-text--center .asw__link:not(#asw-shield) { justify-content: center; text-align: center; }
.asw-text--center .asw__text { align-items: center; flex: 0 1 auto; }
.asw-text--center .asw__welcome,
.asw-text--center .asw__campaign,
.asw-text--center .asw__closed:not(#asw-shield),
.asw-text--center .asw__group-title:not(#asw-shield) { text-align: center; }

/* ---------- Inline (shortcode / block) ---------- */
.asw--inline { position: relative; display: block; max-width: 100%; margin-block: 1em; }
.asw--inline .asw__panel { width: 100%; max-width: 100%; max-height: none; }
.asw--inline .asw__body { overflow: visible; }

/* ---------- Attention animations (closed state only) ---------- */
.asw-attn-once { --asw-attn-count: 1; }
.asw-attn-three { --asw-attn-count: 3; }
.asw-attn-loop { --asw-attn-count: infinite; }
.asw-attn--pulse:not(.is-open) .asw__toggle:not(#asw-shield)::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 var(--asw-button-bg);
	animation: asw-pulse 2.6s ease-out 1.5s var(--asw-attn-count, 1);
	pointer-events: none;
}
.asw-attn--bounce:not(.is-open) .asw__toggle:not(#asw-shield) { animation: asw-bounce 2.8s var(--asw-ease) 1.5s var(--asw-attn-count, 1); }
.asw-attn--ripple:not(.is-open) .asw__toggle:not(#asw-shield)::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(var(--asw-button-bg-rgb), .5), 0 0 0 0 rgba(var(--asw-button-bg-rgb), .35);
	animation: asw-ripple 2.4s cubic-bezier(.2, .7, .3, 1) 1.2s var(--asw-attn-count, 1);
	pointer-events: none;
}
@keyframes asw-ripple {
	0% { box-shadow: 0 0 0 0 rgba(var(--asw-button-bg-rgb), .5), 0 0 0 0 rgba(var(--asw-button-bg-rgb), .35); }
	70% { box-shadow: 0 0 0 14px rgba(var(--asw-button-bg-rgb), 0), 0 0 0 26px rgba(var(--asw-button-bg-rgb), 0); }
	100% { box-shadow: 0 0 0 14px rgba(var(--asw-button-bg-rgb), 0), 0 0 0 26px rgba(var(--asw-button-bg-rgb), 0); }
}
.asw-attn--wiggle:not(.is-open) .asw__toggle-icon:not(#asw-shield) { animation: asw-wiggle-pause 3s ease-in-out 1.2s var(--asw-attn-count, 1); }
@keyframes asw-wiggle-pause {
	0%, 24%, 100% { transform: rotate(0); }
	4% { transform: rotate(-14deg) scale(1.08); }
	8% { transform: rotate(12deg) scale(1.08); }
	12% { transform: rotate(-8deg); }
	16% { transform: rotate(4deg); }
}
.asw-attn--glow:not(.is-open) .asw__toggle:not(#asw-shield) { animation: asw-glow 2.6s ease-in-out 1.2s var(--asw-attn-count, 1); }
@keyframes asw-glow {
	0%, 100% { box-shadow: 0 12px 28px -8px rgba(var(--asw-shadow-rgb, 16, 24, 40), .38); }
	50% { box-shadow: 0 0 0 8px rgba(var(--asw-button-bg-rgb), .16), 0 0 28px 6px rgba(var(--asw-button-bg-rgb), .45); }
}
@keyframes asw-pulse {
	0% { box-shadow: 0 0 0 0 var(--asw-button-bg); opacity: .55; }
	55% { box-shadow: 0 0 0 16px var(--asw-button-bg); opacity: 0; }
	100% { box-shadow: 0 0 0 16px var(--asw-button-bg); opacity: 0; }
}
@keyframes asw-bounce {
	0%, 30%, 100% { transform: translateY(0); }
	10% { transform: translateY(-8px); }
	20% { transform: translateY(-3px); }
}

/* ---------- Devices ---------- */
@media (max-width: 767px) {
	.asw-hide-mobile { display: none !important; }
	.asw--floating.asw--right { right: calc(var(--asw-ox-m) + env(safe-area-inset-right, 0px)); }
	.asw--floating.asw--left { left: calc(var(--asw-ox-m) + env(safe-area-inset-left, 0px)); }
	.asw--floating.asw--bottom { bottom: calc(var(--asw-oy-m) + env(safe-area-inset-bottom, 0px)); }
	.asw--floating.asw--top { top: calc(var(--asw-oy-m) + env(safe-area-inset-top, 0px)); }
	/* Children re-point the size: the root's inline style always holds the desktop value. */
	.asw--floating > *:not(#asw-shield) { --asw-btn-size: var(--asw-btn-size-m); }
	.asw--floating.asw-label--desktop .asw__toggle-label:not(#asw-shield) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.asw--floating.asw-label--desktop.asw--has-label .asw__toggle:not(#asw-shield) { padding: 0; border-radius: var(--asw-btn-radius); }
	.asw-mobile-sheet.asw--floating:not(.asw-layout--compact) .asw__panel {
		position: fixed;
		left: calc(8px + env(safe-area-inset-left, 0px));
		right: calc(8px + env(safe-area-inset-right, 0px));
		width: auto;
		bottom: calc(var(--asw-btn-size-m) + var(--asw-oy-m) + 14px + env(safe-area-inset-bottom, 0px));
		max-height: calc(100vh - var(--asw-btn-size-m) - var(--asw-oy-m) - 40px);
		max-height: calc(100dvh - var(--asw-btn-size-m) - var(--asw-oy-m) - 40px);
	}
	.asw-mobile-sheet.asw--floating.asw--top:not(.asw-layout--compact) .asw__panel {
		bottom: auto;
		top: calc(var(--asw-btn-size-m) + var(--asw-oy-m) + 14px + env(safe-area-inset-top, 0px));
	}
	.asw-layout--cards .asw__list { grid-template-columns: repeat(min(var(--asw-cols), 2), minmax(0, 1fr)); }
	.asw [data-tip]::after { display: none; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.asw-hide-tablet { display: none !important; }
}
@media (min-width: 1025px) {
	.asw-hide-desktop { display: none !important; }
}
@media (hover: none) {
	.asw-layout--compact.asw-labels--tooltip .asw__text { opacity: 1; visibility: visible; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
	.asw,
	.asw *,
	.asw *::before,
	.asw *::after {
		animation: none !important;
		transition-duration: 1ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}
	.asw--floating .asw__panel,
	.asw--floating.asw-layout--compact .asw__item { transform: none !important; }
}
@media (forced-colors: active) {
	.asw__toggle:not(#asw-shield),
	.asw__link:not(#asw-shield),
	.asw__tab:not(#asw-shield),
	.asw__panel { border: 1px solid ButtonText; }
	.asw__link:focus-visible:not(#asw-shield),
	.asw__toggle:focus-visible:not(#asw-shield) { outline: 2px solid Highlight; }
}
@media print {
	.asw--floating { display: none !important; }
}
