/* ==========================================================================
   CHAT DE SOPORTE FLOTANTE — HOJA COMPARTIDA.
   --------------------------------------------------------------------------
   22.9.309 — UN SOLO ARCHIVO PARA LA TIENDA Y PARA EL PANEL.

   Antes estos estilos vivían dentro de `storefront.css`, así que el
   Constructor no podía enseñar una vista previa: cualquier maqueta habría
   sido una COPIA de las formas y, tarde o temprano, la copia se
   desincroniza y la vista previa miente.

   Ahora la tienda y la vista previa del panel cargan ESTE archivo. Lo que
   el dueño ve en el Constructor es literalmente lo que se publica.

   Contenido:
     · Estructura y botón base
     · 20 DISEÑOS (formas distintas, no colores)
     · 20 EFECTOS (movimiento y luz)
     · Panel con la lista de personas
     · Adaptación a móvil y `prefers-reduced-motion`
   ========================================================================== */

/* ------------------------------------------------------------- estructura */
.wpt-supchat {
	position: fixed;
	right: 18px;
	bottom: 18px;
	/* Ancla del contador: va fuera del botón para que `overflow:hidden` (que
	   necesita el destello) no lo recorte. */
	isolation: isolate;
	z-index: 2147483000;
	font-family: inherit;
	line-height: 1.35;
}

.wpt-supchat.is-left { right: auto; left: 18px; }

/* En la vista previa del panel el widget va dentro de la tarjeta, no flotando. */
.wpt-supchat-preview .wpt-supchat {
	position: relative;
	right: auto;
	bottom: auto;
	display: inline-flex;
}

.wpt-supchat__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	cursor: pointer;
	background: var(--wpt-primary, #12b76a);
	color: #fff;
	box-shadow:
		0 12px 28px rgba(15, 23, 42, .22),
		0 3px 8px rgba(15, 23, 42, .12);
	transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s ease, background .2s ease;
	isolation: isolate;
	overflow: hidden;
}

.wpt-supchat__btn:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow:
		0 18px 36px rgba(15, 23, 42, .26),
		0 4px 10px rgba(15, 23, 42, .14);
}

.wpt-supchat__btn:focus-visible {
	outline: 3px solid rgba(18, 183, 106, .5);
	outline-offset: 3px;
}

.wpt-supchat__btn:active { transform: translateY(0) scale(.97); }

.wpt-supchat__ico { display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.wpt-supchat__ico svg { display: block; }

.wpt-supchat__label {
	position: relative;
	z-index: 1;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .01em;
	white-space: nowrap;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wpt-supchat__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 21px;
	height: 21px;
	padding: 0 5px;
	border-radius: 999px;
	background: #0f172a;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 21px;
	text-align: center;
	border: 2px solid #fff;
	z-index: 2;
}

/* ==========================================================================
   20 DISEÑOS
   --------------------------------------------------------------------------
   Cada uno cambia la FORMA del botón (radio, recorte o borde), no el color.
   Las formas compactas esconden el texto: no cabría sin deformarlas.
   ========================================================================== */

/* 1 · bubble — el círculo clásico */
.wpt-supchat--bubble .wpt-supchat__btn { width: 60px; height: 60px; border-radius: 50%; }
.wpt-supchat--bubble .wpt-supchat__label { display: none; }

/* 2 · pill — píldora con texto */
.wpt-supchat--pill .wpt-supchat__btn { height: 56px; padding: 0 22px 0 16px; border-radius: 999px; }

/* 3 · box — cuadro redondeado */
.wpt-supchat--box .wpt-supchat__btn { height: 56px; padding: 0 20px 0 15px; border-radius: 16px; }

/* 4 · squircle — cuadrado muy redondeado (superelipse) */
.wpt-supchat--squircle .wpt-supchat__btn { width: 62px; height: 62px; border-radius: 34%; }
.wpt-supchat--squircle .wpt-supchat__label { display: none; }

/* 5 · outline — círculo hueco con borde grueso */
.wpt-supchat--outline .wpt-supchat__btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #fff;
	color: var(--wpt-primary, #12b76a);
	box-shadow: inset 0 0 0 2.5px var(--wpt-primary, #12b76a), 0 10px 24px rgba(15, 23, 42, .16);
}
.wpt-supchat--outline .wpt-supchat__label { display: none; }
.wpt-supchat--outline .wpt-supchat__badge { background: var(--wpt-primary, #12b76a); }

/* 6 · ghost — sólo el icono, sin caja */
.wpt-supchat--ghost .wpt-supchat__btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--wpt-primary, #12b76a);
	box-shadow: 0 8px 20px rgba(15, 23, 42, .14);
	backdrop-filter: blur(6px);
}
.wpt-supchat--ghost .wpt-supchat__label { display: none; }

/* 7 · gradient — círculo con degradado */
.wpt-supchat--gradient .wpt-supchat__btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wpt-primary, #12b76a) 0%, var(--wpt-primary-dark, #15803d) 100%);
}
.wpt-supchat--gradient .wpt-supchat__label { display: none; }

/* 8 · duotone — círculo con anillo interior */
.wpt-supchat--duotone .wpt-supchat__btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .38), 0 12px 26px rgba(15, 23, 42, .2);
}
.wpt-supchat--duotone .wpt-supchat__label { display: none; }

/* 9 · soft — sombra difusa muy amplia */
.wpt-supchat--soft .wpt-supchat__btn {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	box-shadow: 0 20px 40px rgba(18, 183, 106, .35), 0 6px 14px rgba(15, 23, 42, .12);
}
.wpt-supchat--soft .wpt-supchat__label { display: none; }

/* 10 · flat — plano, sin sombra */
.wpt-supchat--flat .wpt-supchat__btn {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	box-shadow: none;
}
.wpt-supchat--flat .wpt-supchat__label { display: none; }

/* 11 · ticket — rectángulo con muescas laterales */
.wpt-supchat--ticket .wpt-supchat__btn {
	height: 54px;
	padding: 0 22px 0 20px;
	border-radius: 4px;
	clip-path: polygon(0 0, 100% 0, 100% 34%, 93% 50%, 100% 66%, 100% 100%, 0 100%, 0 66%, 7% 50%, 0 34%);
}

/* 12 · tag — etiqueta con punta a la izquierda */
.wpt-supchat--tag .wpt-supchat__btn {
	height: 52px;
	padding: 0 20px 0 26px;
	border-radius: 6px;
	clip-path: polygon(9% 0, 100% 0, 100% 100%, 9% 100%, 0 50%);
}

/* 13 · leaf — esquinas asimétricas */
.wpt-supchat--leaf .wpt-supchat__btn {
	height: 56px;
	padding: 0 22px 0 18px;
	border-radius: 40px 10px 40px 10px;
}

/* 14 · hex — hexágono */
.wpt-supchat--hex .wpt-supchat__btn {
	width: 64px;
	height: 58px;
	border-radius: 0;
	clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
}
.wpt-supchat--hex .wpt-supchat__label { display: none; }

/* 15 · diamond — rombo */
.wpt-supchat--diamond .wpt-supchat__btn {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	transform: rotate(45deg);
}
.wpt-supchat--diamond .wpt-supchat__ico { transform: rotate(-45deg); }
.wpt-supchat--diamond .wpt-supchat__label { display: none; }
.wpt-supchat--diamond .wpt-supchat__badge { top: -8px; right: -8px; transform: rotate(-45deg); }

/* 16 · arch — arco (semicírculo arriba) */
.wpt-supchat--arch .wpt-supchat__btn {
	height: 60px;
	padding: 0 20px 0 16px;
	border-radius: 999px 999px 12px 12px;
}

/* 17 · stadium — rectángulo ancho */
.wpt-supchat--stadium .wpt-supchat__btn {
	height: 52px;
	padding: 0 26px 0 18px;
	border-radius: 999px;
}

/* 18 · ribbon — cinta con esquina cortada */
.wpt-supchat--ribbon .wpt-supchat__btn {
	height: 54px;
	padding: 0 22px 0 18px;
	border-radius: 12px 0 12px 12px;
	clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

/* 19 · glass — cristal translúcido */
.wpt-supchat--glass .wpt-supchat__btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	color: #0f172a;
	border: 1px solid rgba(255, 255, 255, .55);
	box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
	backdrop-filter: blur(12px) saturate(140%);
}
.wpt-supchat--glass .wpt-supchat__label { display: none; }
.wpt-supchat--glass .wpt-supchat__badge { background: #0f172a; }

/* 20 · neon — borde luminoso sobre fondo oscuro */
.wpt-supchat--neon .wpt-supchat__btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #0b1220;
	color: var(--wpt-primary, #12b76a);
	box-shadow:
		0 0 0 2px var(--wpt-primary, #12b76a),
		0 0 22px rgba(18, 183, 106, .65),
		inset 0 0 14px rgba(18, 183, 106, .35);
}
.wpt-supchat--neon .wpt-supchat__label { display: none; }
.wpt-supchat--neon .wpt-supchat__badge { background: var(--wpt-primary, #12b76a); color: #06281a; }

/* ==========================================================================
   20 EFECTOS
   --------------------------------------------------------------------------
   `none` es el único quieto. Todos los demás animan el botón o su icono.
   Ninguno repite `animation-name`: el banco lo comprueba.
   ========================================================================== */

/* 1 · none */
.wpt-supchat--fx-none .wpt-supchat__btn { animation: none; }

/* 2 · pulse — latido de sombra */
@keyframes wpt-sc-pulse {
	0%   { box-shadow: 0 12px 28px rgba(15, 23, 42, .22), 0 0 0 0 rgba(18, 183, 106, .45); }
	70%  { box-shadow: 0 12px 28px rgba(15, 23, 42, .22), 0 0 0 18px rgba(18, 183, 106, 0); }
	100% { box-shadow: 0 12px 28px rgba(15, 23, 42, .22), 0 0 0 0 rgba(18, 183, 106, 0); }
}
.wpt-supchat--fx-pulse .wpt-supchat__btn { animation: wpt-sc-pulse 2.4s ease-out infinite; }

/* 3 · ring — anillo expansivo */
@keyframes wpt-sc-ring {
	0%   { box-shadow: 0 12px 28px rgba(15, 23, 42, .22), 0 0 0 0 rgba(18, 183, 106, .6); }
	100% { box-shadow: 0 12px 28px rgba(15, 23, 42, .22), 0 0 0 24px rgba(18, 183, 106, 0); }
}
.wpt-supchat--fx-ring .wpt-supchat__btn { animation: wpt-sc-ring 1.8s ease-out infinite; }

/* 4 · bounce — rebote vertical */
@keyframes wpt-sc-bounce {
	0%, 20%, 53%, 100% { transform: translateY(0); }
	40%, 43%            { transform: translateY(-9px); }
	70%                 { transform: translateY(-5px); }
	90%                 { transform: translateY(-2px); }
}
.wpt-supchat--fx-bounce .wpt-supchat__btn { animation: wpt-sc-bounce 2.4s ease-in-out infinite; }

/* 5 · float — flotación suave */
@keyframes wpt-sc-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-8px); }
}
.wpt-supchat--fx-float .wpt-supchat__btn { animation: wpt-sc-float 3s ease-in-out infinite; }

/* 6 · shake — vibración */
@keyframes wpt-sc-shake {
	0%, 100%        { transform: translateX(0); }
	10%, 30%, 50%   { transform: translateX(-3px); }
	20%, 40%, 60%   { transform: translateX(3px); }
	70%, 90%        { transform: translateX(-2px); }
	80%             { transform: translateX(2px); }
}
.wpt-supchat--fx-shake .wpt-supchat__btn { animation: wpt-sc-shake 2.6s ease-in-out infinite; }

/* 7 · swing — balanceo */
@keyframes wpt-sc-swing {
	0%, 100%  { transform: rotate(0); }
	20%       { transform: rotate(9deg); }
	40%       { transform: rotate(-7deg); }
	60%       { transform: rotate(5deg); }
	80%       { transform: rotate(-3deg); }
}
.wpt-supchat--fx-swing .wpt-supchat__btn { animation: wpt-sc-swing 2.8s ease-in-out infinite; transform-origin: top center; }

/* 8 · tada — celebración */
@keyframes wpt-sc-tada {
	0%              { transform: scale(1) rotate(0); }
	10%, 20%        { transform: scale(.92) rotate(-3deg); }
	30%, 50%, 70%   { transform: scale(1.08) rotate(3deg); }
	40%, 60%, 80%   { transform: scale(1.08) rotate(-3deg); }
	100%            { transform: scale(1) rotate(0); }
}
.wpt-supchat--fx-tada .wpt-supchat__btn { animation: wpt-sc-tada 2.6s ease-in-out infinite; }

/* 9 · jelly — gelatina */
@keyframes wpt-sc-jelly {
	0%, 100%  { transform: scale(1, 1); }
	25%       { transform: scale(1.09, .91); }
	50%       { transform: scale(.94, 1.06); }
	75%       { transform: scale(1.04, .96); }
}
.wpt-supchat--fx-jelly .wpt-supchat__btn { animation: wpt-sc-jelly 2.2s ease-in-out infinite; }

/* 10 · heartbeat — doble latido */
@keyframes wpt-sc-heartbeat {
	0%, 28%, 70%, 100% { transform: scale(1); }
	14%, 42%           { transform: scale(1.14); }
}
.wpt-supchat--fx-heartbeat .wpt-supchat__btn { animation: wpt-sc-heartbeat 2s ease-in-out infinite; }

/* 11 · glow — brillo pulsante */
@keyframes wpt-sc-glow {
	0%, 100% { filter: drop-shadow(0 0 0 rgba(18, 183, 106, 0)); }
	50%      { filter: drop-shadow(0 0 14px rgba(18, 183, 106, .85)); }
}
.wpt-supchat--fx-glow .wpt-supchat__btn { animation: wpt-sc-glow 2.2s ease-in-out infinite; }

/* 12 · shine — destello que cruza */
@keyframes wpt-sc-shine {
	0%   { transform: translateX(-130%) skewX(-18deg); }
	55%  { transform: translateX(130%) skewX(-18deg); }
	100% { transform: translateX(130%) skewX(-18deg); }
}
.wpt-supchat--fx-shine .wpt-supchat__btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 45%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
	animation: wpt-sc-shine 3.4s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

/* 13 · rotate — giro del icono */
@keyframes wpt-sc-rotate {
	0%   { transform: rotate(0); }
	100% { transform: rotate(360deg); }
}
.wpt-supchat--fx-rotate .wpt-supchat__ico { animation: wpt-sc-rotate 8s linear infinite; }

/* 14 · flip — volteo */
@keyframes wpt-sc-flip {
	0%, 100% { transform: perspective(400px) rotateY(0); }
	50%      { transform: perspective(400px) rotateY(180deg); }
}
.wpt-supchat--fx-flip .wpt-supchat__ico { animation: wpt-sc-flip 3.2s ease-in-out infinite; backface-visibility: visible; }

/* 15 · pop — aparición */
@keyframes wpt-sc-pop {
	0%, 100% { transform: scale(1); opacity: 1; }
	45%      { transform: scale(.82); opacity: .82; }
	60%      { transform: scale(1.06); opacity: 1; }
}
.wpt-supchat--fx-pop .wpt-supchat__btn { animation: wpt-sc-pop 2.8s ease-in-out infinite; }

/* 16 · wave — onda */
@keyframes wpt-sc-wave {
	0%, 100% { transform: translateY(0) rotate(0); }
	25%      { transform: translateY(-4px) rotate(-4deg); }
	75%      { transform: translateY(4px) rotate(4deg); }
}
.wpt-supchat--fx-wave .wpt-supchat__btn { animation: wpt-sc-wave 2.6s ease-in-out infinite; }

/* 17 · breathe — respiración lenta */
@keyframes wpt-sc-breathe {
	0%, 100% { transform: scale(1); box-shadow: 0 12px 28px rgba(15, 23, 42, .2); }
	50%      { transform: scale(1.05); box-shadow: 0 16px 34px rgba(15, 23, 42, .26); }
}
.wpt-supchat--fx-breathe .wpt-supchat__btn { animation: wpt-sc-breathe 4s ease-in-out infinite; }

/* 18 · slide — deslizamiento lateral */
@keyframes wpt-sc-slide {
	0%, 100% { transform: translateX(0); }
	50%      { transform: translateX(-7px); }
}
.wpt-supchat--fx-slide .wpt-supchat__btn { animation: wpt-sc-slide 2.4s ease-in-out infinite; }

/* 19 · wobble — tambaleo */
@keyframes wpt-sc-wobble {
	0%, 100%  { transform: translateX(0) rotate(0); }
	15%       { transform: translateX(-6px) rotate(-5deg); }
	30%       { transform: translateX(5px) rotate(4deg); }
	45%       { transform: translateX(-4px) rotate(-3deg); }
	60%       { transform: translateX(3px) rotate(2deg); }
	75%       { transform: translateX(-2px) rotate(-1deg); }
}
.wpt-supchat--fx-wobble .wpt-supchat__btn { animation: wpt-sc-wobble 2.8s ease-in-out infinite; }

/* 20 · spark — chispas */
@keyframes wpt-sc-spark {
	0%, 100% { opacity: 0; transform: scale(.4); }
	50%      { opacity: 1; transform: scale(1); }
}
.wpt-supchat--fx-spark .wpt-supchat__btn::before,
.wpt-supchat--fx-spark .wpt-supchat__btn::after {
	content: "";
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	animation: wpt-sc-spark 1.9s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}
.wpt-supchat--fx-spark .wpt-supchat__btn::before { top: 8px; left: 10px; animation-delay: .1s; }
.wpt-supchat--fx-spark .wpt-supchat__btn::after  { bottom: 9px; right: 11px; animation-delay: .8s; }

/* ==========================================================================
   EL PANEL
   ========================================================================== */
.wpt-supchat__panel {
	position: absolute;
	bottom: calc(100% + 14px);
	right: 0;
	width: 336px;
	max-width: calc(100vw - 36px);
	background: #fff;
	border: 1px solid #e6ebf2;
	border-radius: 18px;
	box-shadow: 0 28px 56px rgba(15, 23, 42, .26), 0 6px 16px rgba(15, 23, 42, .12);
	/* 22.9.312 — Sin `overflow:hidden`: la cola del globo (::after) debe
	   poder salir del panel hacia el botón. El redondeo se lo llevan los
	   hijos (cabecera arriba, lista/pie abajo). */
	transform-origin: bottom right;
	animation: wpt-sc-in .2s cubic-bezier(.2, .8, .3, 1);
}

.wpt-supchat.is-left .wpt-supchat__panel { right: auto; left: 0; transform-origin: bottom left; }
.wpt-supchat__panel[hidden] { display: none; }

@keyframes wpt-sc-in {
	from { opacity: 0; transform: translateY(10px) scale(.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wpt-supchat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 15px 15px 13px;
	background: linear-gradient(135deg, var(--wpt-primary, #12b76a) 0%, var(--wpt-primary-dark, #15803d) 100%);
	color: #fff;
	/* 22.9.312 — el panel ya no recorta; la cabecera redondea su propia
	   esquina superior para que encaje con el borde de 18px. */
	border-radius: 17px 17px 0 0;
}

/* 22.9.312 — icono de cabecera: refuerza que es WhatsApp y da peso visual. */
.wpt-supchat__headico {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .18);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wpt-supchat__headico svg { display: block; }

.wpt-supchat__headtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wpt-supchat__headtext b { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.wpt-supchat__headtext em { font-size: 12px; font-style: normal; opacity: .92; }

.wpt-supchat__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	color: #fff;
	cursor: pointer;
	flex: 0 0 32px;
	transition: background .15s ease, transform .15s ease;
}
.wpt-supchat__close:hover { background: rgba(255, 255, 255, .34); transform: rotate(90deg); }
.wpt-supchat__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.wpt-supchat__list {
	list-style: none;
	margin: 0;
	padding: 8px;
	border-radius: 0 0 17px 17px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}
/*
 * 22.9.312 — EL TOPE DE SCROLL SOLO VA EN EL PANEL FLOTANTE.
 *
 * Antes `max-height` + `overflow-y:auto` estaban en `.wpt-supchat__list` a
 * secas, y como esta hoja es COMPARTIDA (tienda + Constructor) la lista de
 * números del panel del administrador también se scroll: el dueño veía un
 * área con barras en vez de las tarjetas completas. Ahora el tope sólo se
 * aplica dentro de `.wpt-supchat__panel`; en el Constructor la lista es
 * flujo normal y se ven todas las tarjetas, más pequeñas.
 */
.wpt-supchat__panel .wpt-supchat__list {
	max-height: min(62vh, 440px);
	overflow-y: auto;
}
.wpt-supchat__list::-webkit-scrollbar { width: 8px; }
.wpt-supchat__list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

.wpt-supchat__item + .wpt-supchat__item { margin-top: 4px; }

.wpt-supchat__agent {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 11px;
	border-radius: 13px;
	text-decoration: none;
	color: #0f172a;
	transition: background .15s ease, transform .15s ease;
}
.wpt-supchat__agent:hover { background: #f4f7fb; transform: translateX(2px); }
.wpt-supchat__agent:focus-visible { outline: 2px solid var(--wpt-primary, #12b76a); outline-offset: 2px; }

.wpt-supchat__avatar {
	position: relative;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, #dcfce7, #bbf7d0);
	color: #15803d;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e2e8f0;
}
.wpt-supchat__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wpt-supchat__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.wpt-supchat__who b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpt-supchat__who em { font-size: 12px; font-style: normal; color: #64748b; }

.wpt-supchat__go {
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	border-radius: 50%;
	background: #e8fbf1;
	color: #15803d;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, transform .15s ease;
}
.wpt-supchat__agent:hover .wpt-supchat__go { background: #12b76a; color: #fff; transform: scale(1.06); }

/* ----------------------------------------------------- pie + cola (22.9.312) */
.wpt-supchat__foot {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
	background: #fcfdfe;
	border-top: 1px solid #f1f5f9;
	border-radius: 0 0 17px 17px;
}
.wpt-supchat__foot::before {
	content: "";
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

/*
 * Cola del globo: un cuadrado girado 45° medio oculto tras el panel. Su
 * mitad superior cae sobre el fondo blanco del panel (invisible) y la
 * mitad inferior forma la punta que apunta al botón, como un globo de
 * chat. El borde inferior/derecho toma el color del borde del panel para
 * que la unión se vea continua.
 */
.wpt-supchat__panel::after {
	content: "";
	position: absolute;
	bottom: -8px;
	right: 26px;
	width: 14px;
	height: 14px;
	background: #fff;
	border-right: 1px solid #e6ebf2;
	border-bottom: 1px solid #e6ebf2;
	transform: rotate(45deg);
	border-bottom-right-radius: 2px;
}
.wpt-supchat.is-left .wpt-supchat__panel::after { right: auto; left: 26px; }

/* ------------------------------------------------------------- móvil */
@media (max-width: 480px) {
	.wpt-supchat { right: 12px; bottom: 12px; }
	.wpt-supchat.is-left { left: 12px; }
	.wpt-supchat__panel { width: calc(100vw - 24px); max-width: none; }
	.wpt-supchat--pill .wpt-supchat__btn,
	.wpt-supchat--box .wpt-supchat__btn,
	.wpt-supchat--arch .wpt-supchat__btn,
	.wpt-supchat--stadium .wpt-supchat__btn,
	.wpt-supchat--ribbon .wpt-supchat__btn { padding: 0 16px 0 13px; }
	.wpt-supchat__label { max-width: 128px; }
}

/* Nadie debe marearse: los 19 efectos se apagan si el sistema lo pide. */
@media (prefers-reduced-motion: reduce) {
	.wpt-supchat__btn,
	.wpt-supchat__btn::before,
	.wpt-supchat__btn::after,
	.wpt-supchat__ico,
	.wpt-supchat__panel {
		animation: none !important;
		transition: none !important;
	}
}
