.tcw-chat-page{--tcw-chat-brand:#1877f2;--tcw-chat-brand-dark:#0f63d9;--tcw-chat-text:#0f172a;--tcw-chat-muted:#64748b;--tcw-chat-line:#e2e8f0;--tcw-chat-green:#22c55e;--tcw-chat-bubble:#e7f3ff;min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top left,rgba(24,119,242,.15),transparent 35%),linear-gradient(135deg,#eef4ff,#f8fafc 48%,#eef2f7);color:var(--tcw-chat-text)}
.admin-bar .tcw-chat-page{min-height:calc(100vh - 32px)}
.tcw-chat-page *{box-sizing:border-box}.tcw-chat-page button,.tcw-chat-page textarea{font:inherit}
.tcw-chat-device{width:min(100%,430px);height:min(850px,calc(100vh - 40px));min-height:620px;background:#fff;border-radius:30px;overflow:hidden;box-shadow:0 20px 55px rgba(15,23,42,.14);position:relative}
.admin-bar .tcw-chat-device{height:min(850px,calc(100vh - 72px))}
.tcw-chat-screen{display:none;width:100%;height:100%}.tcw-chat-screen.is-active{display:flex}
.tcw-chat-landing,.tcw-chat-bridge{align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:38px;background:linear-gradient(rgba(255,255,255,.9),rgba(255,255,255,.96)),radial-gradient(circle at 50% 18%,#cfe2ff,transparent 38%)}
.tcw-profile-photo{width:96px;height:96px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#1877f2,#63a4ff);color:#fff;font-size:30px;font-weight:850;overflow:hidden;box-shadow:0 12px 28px rgba(24,119,242,.28);margin-bottom:20px}
.tcw-profile-photo img,.tcw-chat-avatar img{width:100%;height:100%;object-fit:cover}
.tcw-chat-page h1{font-size:30px;line-height:1.15;margin:0 0 28px;color:var(--tcw-chat-text)}
.tcw-chat-bridge h1{margin-bottom:10px}.tcw-chat-bridge p{color:var(--tcw-chat-muted);line-height:1.55;margin:0 0 25px}
.tcw-chat-check{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:#ecfdf3;color:#16a34a;font-size:36px;margin-bottom:18px}
.tcw-chat-button{display:block;text-align:center;text-decoration:none;border:0;border-radius:14px;padding:15px 22px;font-weight:800;width:100%;cursor:pointer}
.tcw-chat-button-primary{background:var(--tcw-chat-brand);color:#fff;box-shadow:0 10px 22px rgba(24,119,242,.22)}.tcw-chat-button-primary:hover{background:var(--tcw-chat-brand-dark);color:#fff;text-decoration:none}
.tcw-chat-button-secondary{background:#fff;border:1px solid var(--tcw-chat-line);margin-top:10px;color:var(--tcw-chat-text)}
.tcw-chat-online-small{font-size:12px;color:#94a3b8;margin-top:16px}
.tcw-chat-conversation{flex-direction:column;background:#f8fafc}
.tcw-chat-header{height:82px;flex:none;display:flex;align-items:center;gap:12px;padding:14px 16px;background:#fff;border-bottom:1px solid var(--tcw-chat-line)}
.tcw-chat-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#1877f2,#63a4ff);color:#fff;font-weight:800;overflow:hidden;flex:none}
.tcw-chat-identity{flex:1;min-width:0}.tcw-chat-identity strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tcw-chat-identity>div{font-size:12px;color:var(--tcw-chat-muted);display:flex;align-items:center;gap:6px;margin-top:3px}.tcw-chat-identity>div span{width:8px;height:8px;border-radius:50%;background:var(--tcw-chat-green)}
.tcw-chat-online-pill{font-size:12px;color:#166534;background:#ecfdf3;border:1px solid #bbf7d0;border-radius:999px;padding:6px 9px;white-space:nowrap}
.tcw-chat-messages{flex:1;overflow:auto;padding:20px 16px 12px;display:flex;flex-direction:column;gap:10px;background:radial-gradient(circle at 10% 10%,rgba(24,119,242,.05),transparent 28%),#f8fafc}
.tcw-chat-bubble{max-width:78%;padding:10px 13px;border-radius:17px;line-height:1.4;box-shadow:0 2px 6px rgba(15,23,42,.06);word-break:break-word;font-size:15px}
.tcw-chat-bubble.is-admin{align-self:flex-start;background:#fff;border-bottom-left-radius:5px}.tcw-chat-bubble.is-visitor{align-self:flex-end;background:var(--tcw-chat-bubble);border-bottom-right-radius:5px}
.tcw-chat-bubble img{display:block;max-width:100%;height:auto;border-radius:12px}.tcw-chat-time{display:block;font-size:10px;color:#94a3b8;margin-top:5px;text-align:right}
.tcw-chat-composer{flex:none;display:flex;gap:9px;align-items:flex-end;padding:12px;background:#fff;border-top:1px solid var(--tcw-chat-line);margin:0}
.tcw-chat-photo-button{width:42px;height:42px;border-radius:12px;border:1px solid var(--tcw-chat-line);background:#f8fafc;display:grid;place-items:center;font-size:19px;flex:none;cursor:pointer}
.tcw-chat-composer textarea{resize:none;min-height:42px;max-height:110px;flex:1;border:1px solid var(--tcw-chat-line);border-radius:14px;padding:10px 12px;outline:none;background:#f8fafc;color:var(--tcw-chat-text);margin:0}
.tcw-chat-send{width:42px;height:42px;border:0;border-radius:12px;background:var(--tcw-chat-brand);color:#fff;font-size:18px;flex:none;cursor:pointer}
.tcw-chat-notice{position:absolute;left:14px;right:14px;top:14px;padding:11px 13px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:12px;font-size:12px;display:none;z-index:10}.tcw-chat-notice.is-visible{display:block}
@media(max-width:520px){.tcw-chat-page{padding:0}.tcw-chat-device{width:100%;height:100vh;min-height:100vh;border-radius:0}.admin-bar .tcw-chat-device{height:calc(100vh - 46px);min-height:calc(100vh - 46px)}}

.tcw-chat-composer{flex-wrap:wrap}.tcw-chat-attachment{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eef6ff;border:1px solid #bfdbfe;border-radius:11px;padding:7px 10px;color:#1e3a8a;font-size:12px}.tcw-chat-attachment[hidden]{display:none}.tcw-chat-attachment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tcw-chat-attachment button{border:0;background:transparent;color:#1e3a8a;font-size:20px;line-height:1;cursor:pointer;padding:0 2px}.tcw-chat-caption{margin-top:9px;white-space:pre-wrap}


/* Versión 1.2: el teclado móvil no tapa la respuesta. */
.tcw-chat-page [hidden]{display:none!important}
.tcw-chat-conversation{min-height:0;overflow:hidden}
.tcw-chat-messages{min-height:0;flex:1 1 auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.tcw-chat-composer{position:relative;z-index:3;flex:0 0 auto;box-shadow:0 -5px 16px rgba(15,23,42,.04);padding-bottom:max(12px,env(safe-area-inset-bottom))}
.tcw-chat-composer textarea{min-width:0}
.tcw-chat-bubble{white-space:pre-wrap}
@media(max-width:520px){
  .tcw-chat-page{min-height:100dvh}
  .tcw-chat-device{height:100dvh;min-height:100dvh}
  .admin-bar .tcw-chat-device{height:calc(100dvh - 46px);min-height:calc(100dvh - 46px)}
  .tcw-chat-header{height:74px;padding:10px 12px}
  .tcw-chat-messages{padding:14px 12px 10px}
  .tcw-chat-bubble{max-width:88%}
  .tcw-chat-composer{gap:7px;padding:9px;padding-bottom:max(9px,env(safe-area-inset-bottom))}
}

.tcw-chat-button-secondary:hover{color:var(--tcw-chat-text);text-decoration:none;background:#f8fafc}.tcw-chat-button:focus-visible{outline:3px solid rgba(24,119,242,.3);outline-offset:3px}


/* Versión 1.5: el chat siempre cabe dentro de la ventana visible. */
.tcw-chat-page{
	height:100dvh;
	min-height:0;
	overflow:hidden;
}
.admin-bar .tcw-chat-page{
	height:calc(100dvh - 32px);
	min-height:0;
}
.tcw-chat-device{
	height:min(850px,100%);
	max-height:100%;
	min-height:0;
}
.admin-bar .tcw-chat-device{
	height:min(850px,100%);
	max-height:100%;
	min-height:0;
}
.tcw-chat-screen{
	min-height:0;
	overflow:hidden;
}
.tcw-chat-landing,
.tcw-chat-bridge{
	overflow-y:auto;
}
.tcw-chat-conversation{
	height:100%;
	min-height:0;
}
.tcw-chat-messages{
	min-height:0;
}
.tcw-chat-composer{
	display:grid;
	grid-template-columns:42px minmax(0,1fr) 42px;
	align-items:end;
	gap:9px;
	width:100%;
	flex:none;
}
.tcw-chat-attachment{
	grid-column:1 / -1;
}
.tcw-chat-photo-button,
.tcw-chat-send{
	grid-row:auto;
}
.tcw-chat-composer textarea{
	width:100%;
	min-width:0;
}

@media(max-height:700px) and (min-width:521px){
	.tcw-chat-page{padding:8px}
	.tcw-chat-header{height:70px;padding:9px 13px}
	.tcw-chat-avatar{width:44px;height:44px}
	.tcw-chat-messages{padding:12px}
	.tcw-chat-composer{padding:8px;gap:7px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
	.tcw-chat-photo-button,
	.tcw-chat-send{width:40px;height:40px}
	.tcw-chat-composer textarea{min-height:40px;padding:8px 10px}
}

@media(max-width:520px){
	.tcw-chat-page{
		height:100dvh;
		min-height:0;
		padding:0;
	}
	.admin-bar .tcw-chat-page{
		height:calc(100dvh - 46px);
		min-height:0;
	}
	.tcw-chat-device,
	.admin-bar .tcw-chat-device{
		height:100%;
		max-height:100%;
		min-height:0;
	}
	.tcw-chat-composer{
		grid-template-columns:40px minmax(0,1fr) 40px;
		gap:7px;
	}
}


/* Versión 1.6: carga visible y ajuste móvil comprobable. */
body.tcw-chat-home{
	height:100%;
	min-height:100%;
	overflow:hidden;
	overscroll-behavior:none;
}
.tcw-chat-page{
	height:var(--tcw-app-height,100dvh);
	max-height:var(--tcw-app-height,100dvh);
	min-height:0;
}
.tcw-chat-device{
	height:min(850px,var(--tcw-app-height,100dvh));
	max-height:100%;
}
.tcw-chat-send-status{
	grid-column:1 / -1;
	display:flex;
	align-items:center;
	gap:9px;
	min-height:34px;
	padding:7px 10px;
	border:1px solid #bfdbfe;
	border-radius:11px;
	background:#eff6ff;
	color:#1e3a8a;
	font-size:12px;
	font-weight:700;
}
.tcw-chat-send-status[hidden]{
	display:none!important;
}
.tcw-chat-spinner{
	width:16px;
	height:16px;
	flex:none;
	border:2px solid rgba(24,119,242,.25);
	border-top-color:var(--tcw-chat-brand);
	border-radius:50%;
	animation:tcw-chat-spin .75s linear infinite;
}
@keyframes tcw-chat-spin{
	to{transform:rotate(360deg)}
}
.tcw-chat-composer.is-sending .tcw-chat-send,
.tcw-chat-composer.is-sending .tcw-chat-photo-button{
	opacity:.6;
	cursor:wait;
}
.tcw-chat-send:disabled{
	cursor:wait;
}
.tcw-chat-attachment,
.tcw-chat-send-status{
	min-width:0;
}
.tcw-chat-header,
.tcw-chat-composer{
	flex-shrink:0;
}
.tcw-chat-messages{
	-webkit-overflow-scrolling:touch;
}
.tcw-chat-bubble img{
	max-height:min(48dvh,430px);
	object-fit:contain;
}

@media(max-width:520px){
	html,
	body.tcw-chat-home{
		width:100%;
		height:100%;
		min-height:0;
	}
	.tcw-chat-page{
		width:100%;
		height:var(--tcw-app-height,100dvh);
		max-height:var(--tcw-app-height,100dvh);
		min-height:0;
	}
	.tcw-chat-device{
		width:100%;
		height:100%;
		max-height:100%;
		min-height:0;
		border-radius:0;
	}
	.tcw-chat-header{
		height:68px;
		min-height:68px;
		padding:8px 10px;
		gap:9px;
	}
	.tcw-chat-avatar{
		width:42px;
		height:42px;
	}
	.tcw-chat-identity strong{
		font-size:14px;
	}
	.tcw-chat-identity>div{
		font-size:11px;
	}
	.tcw-chat-online-pill{
		max-width:92px;
		overflow:hidden;
		text-overflow:ellipsis;
		padding:5px 7px;
		font-size:10px;
	}
	.tcw-chat-messages{
		padding:12px 10px 8px;
		gap:8px;
	}
	.tcw-chat-bubble{
		max-width:90%;
		padding:9px 11px;
		font-size:14px;
	}
	.tcw-chat-composer{
		grid-template-columns:40px minmax(0,1fr) 40px;
		gap:7px;
		padding:8px;
		padding-bottom:max(8px,env(safe-area-inset-bottom));
	}
	.tcw-chat-photo-button,
	.tcw-chat-send{
		width:40px;
		height:40px;
	}
	.tcw-chat-composer textarea{
		min-height:40px;
		max-height:88px;
		padding:8px 10px;
		font-size:16px; /* evita zoom automático en iPhone */
	}
	.tcw-chat-attachment,
	.tcw-chat-send-status{
		grid-column:1 / -1;
		padding:6px 9px;
		min-height:32px;
	}
}

@media(max-width:360px){
	.tcw-chat-header{
		padding-inline:8px;
	}
	.tcw-chat-online-pill{
		font-size:0;
		max-width:none;
	}
	.tcw-chat-online-pill span{
		font-size:10px;
	}
	.tcw-chat-online-pill::after{
		content:" en línea";
		font-size:10px;
	}
}

@media(max-height:520px) and (orientation:landscape){
	.tcw-chat-header{
		height:58px;
		min-height:58px;
	}
	.tcw-chat-avatar{
		width:38px;
		height:38px;
	}
	.tcw-chat-messages{
		padding:8px 10px 6px;
	}
	.tcw-chat-composer{
		padding:6px;
		padding-bottom:max(6px,env(safe-area-inset-bottom));
	}
	.tcw-chat-attachment,
	.tcw-chat-send-status{
		min-height:28px;
		padding-block:4px;
	}
}


/* Ajuste final 1.6: evita cualquier recorte en orientación horizontal. */
.tcw-chat-page,
.tcw-chat-device{
	box-sizing:border-box;
}
@media(max-height:520px) and (orientation:landscape){
	.tcw-chat-page{
		padding:4px;
	}
	.tcw-chat-device{
		height:100%;
		max-height:100%;
	}
	.tcw-chat-composer{
		padding-bottom:max(4px,env(safe-area-inset-bottom));
	}
}


/* Versión 1.8: banner Adsterra 300x250 dentro de la conversación. */
.tcw-chat-ad-slot{
	flex:0 0 auto;
	width:100%;
	max-width:100%;
	padding:6px 10px 10px;
	background:#fff;
	border-top:1px solid var(--tcw-chat-line);
	overflow:hidden;
	text-align:center;
}
.tcw-chat-ad-label{
	margin:0 0 4px;
	color:#94a3b8;
	font-size:10px;
	font-weight:700;
	letter-spacing:.08em;
	line-height:1.2;
	text-transform:uppercase;
}
.tcw-chat-ad-frame{
	width:300px;
	height:250px;
	max-width:100%;
	margin:0 auto;
	overflow:hidden;
	background:#f8fafc;
}
.tcw-chat-ad-frame iframe{
	display:block!important;
	width:300px!important;
	height:250px!important;
	max-width:100%!important;
	margin:0 auto!important;
	border:0!important;
}

@media(max-width:320px){
	.tcw-chat-ad-slot{
		padding-inline:10px;
	}
}

/* En horizontal bajo se prioriza el uso del chat. */
@media(max-height:520px) and (orientation:landscape){
	.tcw-chat-ad-slot{
		display:none!important;
	}
}


/* Versión 2.0: corrección del teclado móvil y del viewport desplazado. */
@media(max-width:520px){
	html{
		width:100%;
		height:100%;
		overflow:hidden;
	}

	body.tcw-chat-home{
		position:fixed;
		inset:0;
		width:100%;
		height:100%;
		min-height:0;
		overflow:hidden;
	}

	.tcw-chat-page{
		position:fixed;
		top:0;
		left:0;
		width:var(--tcw-viewport-width,100vw);
		height:var(--tcw-app-height,100dvh);
		min-height:0!important;
		max-height:var(--tcw-app-height,100dvh);
		padding:0;
		transform:translate3d(
			var(--tcw-viewport-left,0),
			var(--tcw-viewport-top,0),
			0
		);
		place-items:stretch;
		overflow:hidden;
	}

	.admin-bar .tcw-chat-page{
		height:var(--tcw-app-height,100dvh);
		max-height:var(--tcw-app-height,100dvh);
	}

	.tcw-chat-device,
	.admin-bar .tcw-chat-device{
		width:100%;
		height:100%;
		min-height:0!important;
		max-height:100%;
		border-radius:0;
	}

	.tcw-chat-screen,
	.tcw-chat-conversation{
		width:100%;
		height:100%;
		min-height:0;
		max-height:100%;
	}

	.tcw-chat-messages{
		min-height:0;
		flex:1 1 0;
	}

	.tcw-chat-composer{
		flex:0 0 auto;
	}

	.tcw-chat-page.tcw-keyboard-open .tcw-chat-ad-slot{
		display:none!important;
	}

	.tcw-chat-page.tcw-keyboard-open .tcw-chat-header{
		height:54px;
		min-height:54px;
		padding:5px 8px;
	}

	.tcw-chat-page.tcw-keyboard-open .tcw-chat-avatar{
		width:38px;
		height:38px;
	}

	.tcw-chat-page.tcw-keyboard-open .tcw-chat-online-pill{
		display:none;
	}

	.tcw-chat-page.tcw-keyboard-open .tcw-chat-messages{
		padding:7px 9px 5px;
		gap:6px;
	}

	.tcw-chat-page.tcw-keyboard-open .tcw-chat-composer{
		grid-template-columns:38px minmax(0,1fr) 38px;
		padding:6px;
		padding-bottom:max(6px,env(safe-area-inset-bottom));
		gap:6px;
	}

	.tcw-chat-page.tcw-keyboard-open .tcw-chat-photo-button,
	.tcw-chat-page.tcw-keyboard-open .tcw-chat-send{
		width:38px;
		height:38px;
	}

	.tcw-chat-page.tcw-keyboard-open .tcw-chat-composer textarea{
		min-height:38px;
		max-height:74px;
		padding:7px 9px;
	}

	.tcw-chat-page.tcw-keyboard-open .tcw-chat-attachment,
	.tcw-chat-page.tcw-keyboard-open .tcw-chat-send-status{
		min-height:28px;
		padding:4px 8px;
	}
}

html.tcw-keyboard-is-open,
body.tcw-keyboard-is-open{
	overflow:hidden!important;
	overscroll-behavior:none;
}


/* Versión 2.2: acceso directo a la conversación. */
.tcw-chat-button:disabled{
	opacity:.72;
	cursor:wait;
}


/* Versión 2.3: SocialBar de cuatro elementos dentro del banner 300×250. */
.tcw-socialbar-frame{position:relative;background:#111827}
.tcw-socialbar{position:relative;width:300px;height:250px;max-width:100%;overflow:hidden;background:#111827;isolation:isolate}
.tcw-socialbar-slide{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:hidden;color:#fff;opacity:0;visibility:hidden;pointer-events:none;transform:scale(1.025);transition:opacity .38s ease,transform .5s ease,visibility .38s}
.tcw-socialbar-slide.is-active{opacity:1;visibility:visible;pointer-events:auto;transform:scale(1);z-index:2}
.tcw-socialbar-slide img{display:block;width:100%;height:100%;object-fit:cover;border:0}
.tcw-socialbar-slide::after{content:"";position:absolute;inset:38% 0 0;background:linear-gradient(to bottom,transparent,rgba(2,6,23,.92));pointer-events:none}
.tcw-socialbar-message{position:absolute;z-index:3;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:70px;padding:18px 15px 13px;text-align:left;text-shadow:0 1px 3px rgba(0,0,0,.55)}
.tcw-socialbar-message strong{display:-webkit-box;max-width:100%;overflow:hidden;font-size:16px;font-weight:800;line-height:1.22;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.tcw-socialbar-message small{font-size:11px;font-weight:700;letter-spacing:.03em;opacity:.88}
.tcw-socialbar-dots{position:absolute;z-index:5;top:10px;right:10px;display:flex;gap:6px;padding:5px 6px;border-radius:999px;background:rgba(2,6,23,.45);backdrop-filter:blur(5px)}
.tcw-socialbar-dots button{width:8px;height:8px;min-width:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.48);box-shadow:none;cursor:pointer}
.tcw-socialbar-dots button.is-active{background:#fff;transform:scale(1.2)}
.tcw-socialbar-dots button:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.tcw-socialbar-slide{transition:none}}


/* Versión 2.4: botón de enlace en mensajes automáticos. */
.tcw-chat-message-link{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	align-self:flex-start;
	max-width:100%;
	min-height:36px;
	margin-top:9px;
	padding:8px 13px;
	border-radius:9px;
	background:var(--tcw-chat-brand);
	color:#fff!important;
	font-size:13px;
	font-weight:800;
	line-height:1.2;
	text-decoration:none!important;
	overflow-wrap:anywhere;
	box-shadow:0 4px 12px rgba(24,119,242,.2);
}
.tcw-chat-message-link:hover,
.tcw-chat-message-link:focus-visible{
	filter:brightness(.94);
	color:#fff!important;
}
.tcw-chat-bubble:has(.tcw-chat-message-link){
	min-width:min(230px,82%);
}


/* Versión 2.5: bloqueo por mensajes y desbloqueo mediante video. */
.tcw-chat-gate{
	display:grid;
	grid-template-columns:auto minmax(0,1fr) auto;
	align-items:center;
	gap:10px;
	flex:0 0 auto;
	padding:11px 12px;
	border-top:1px solid #fed7aa;
	background:#fff7ed;
	color:#7c2d12;
}
.tcw-chat-gate[hidden]{display:none!important}
.tcw-chat-gate-icon{
	display:grid;
	place-items:center;
	width:38px;
	height:38px;
	border-radius:50%;
	background:#ffedd5;
	font-size:18px;
}
.tcw-chat-gate-copy{
	display:flex;
	flex-direction:column;
	gap:2px;
	min-width:0;
}
.tcw-chat-gate-copy strong{
	font-size:13px;
	line-height:1.25;
}
.tcw-chat-gate-copy span{
	font-size:11px;
	line-height:1.35;
	opacity:.82;
}
.tcw-chat-gate-button,
.tcw-video-unlock-button{
	min-height:38px;
	padding:8px 13px;
	border:0;
	border-radius:10px;
	background:#ea580c;
	color:#fff;
	font-weight:800;
	cursor:pointer;
}
.tcw-chat-gate-button:hover,
.tcw-chat-gate-button:focus-visible,
.tcw-video-unlock-button:hover,
.tcw-video-unlock-button:focus-visible{
	filter:brightness(.94);
}
.tcw-chat-gate-button:disabled,
.tcw-video-unlock-button:disabled{
	opacity:.55;
	cursor:wait;
}
.tcw-chat-composer.is-locked{
	opacity:.58;
}
.tcw-chat-composer.is-locked textarea,
.tcw-chat-composer.is-locked .tcw-chat-photo-button,
.tcw-chat-composer.is-locked .tcw-chat-send{
	cursor:not-allowed;
}

.tcw-video-modal{
	position:fixed;
	inset:0;
	z-index:100000;
	display:grid;
	place-items:center;
	padding:16px;
}
.tcw-video-modal[hidden]{display:none!important}
.tcw-video-modal-backdrop{
	position:absolute;
	inset:0;
	background:rgba(2,6,23,.78);
	backdrop-filter:blur(4px);
}
.tcw-video-dialog{
	position:relative;
	z-index:1;
	width:min(520px,100%);
	max-height:calc(100dvh - 32px);
	overflow:auto;
	padding:20px;
	border-radius:18px;
	background:#fff;
	color:#0f172a;
	box-shadow:0 25px 70px rgba(2,6,23,.38);
}
.tcw-video-dialog h2{
	margin:0 38px 14px 0;
	font-size:20px;
	line-height:1.25;
}
.tcw-video-close{
	position:absolute;
	top:10px;
	right:10px;
	display:grid;
	place-items:center;
	width:34px;
	height:34px;
	padding:0;
	border:0;
	border-radius:50%;
	background:#f1f5f9;
	color:#334155;
	font-size:24px;
	line-height:1;
	cursor:pointer;
}
.tcw-video-media{
	display:grid;
	place-items:center;
	width:100%;
	aspect-ratio:16/9;
	overflow:hidden;
	border-radius:12px;
	background:#020617;
	color:#fff;
}
.tcw-video-media video,
.tcw-video-media iframe{
	display:block;
	width:100%;
	height:100%;
	border:0;
	object-fit:contain;
}
.tcw-video-countdown{
	margin:14px 0;
	text-align:center;
	font-size:13px;
	font-weight:700;
	color:#475569;
}
.tcw-video-unlock-button{
	display:block;
	width:100%;
	background:#1877f2;
}
body.tcw-video-modal-open{
	overflow:hidden!important;
}

@media(max-width:520px){
	.tcw-chat-gate{
		grid-template-columns:auto minmax(0,1fr);
		padding:8px;
	}
	.tcw-chat-gate-button{
		grid-column:1 / -1;
		width:100%;
	}
	.tcw-video-modal{
		padding:8px;
	}
	.tcw-video-dialog{
		max-height:calc(100dvh - 16px);
		padding:16px;
		border-radius:14px;
	}
	.tcw-video-dialog h2{
		font-size:17px;
	}
	.tcw-chat-page.tcw-keyboard-open .tcw-chat-gate{
		display:none!important;
	}
}


/* Versión 2.6: el video se abre en el enlace externo configurado. */
.tcw-chat-gate-actions{
	display:flex;
	flex-direction:column;
	align-items:stretch;
	gap:6px;
	min-width:150px;
}
.tcw-chat-gate-button{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	text-align:center;
	text-decoration:none!important;
}
.tcw-chat-gate-countdown{
	font-size:11px;
	font-weight:700;
	line-height:1.3;
	text-align:center;
	color:#9a3412;
}
.tcw-chat-unlock-button{
	min-height:38px;
	padding:8px 13px;
	border:0;
	border-radius:10px;
	background:#1877f2;
	color:#fff;
	font-weight:800;
	cursor:pointer;
}
.tcw-chat-unlock-button:hover,
.tcw-chat-unlock-button:focus-visible{
	filter:brightness(.94);
}
.tcw-chat-unlock-button:disabled{
	opacity:.58;
	cursor:wait;
}
@media(max-width:520px){
	.tcw-chat-gate-actions{
		grid-column:1 / -1;
		width:100%;
	}
}


/* Versión 2.8: vista previa de enlaces tipo Facebook. */
.tcw-chat-link-card{
	display:block;
	width:min(290px,100%);
	margin-top:9px;
	overflow:hidden;
	border:1px solid rgba(15,23,42,.14);
	border-radius:11px;
	background:#fff;
	color:#0f172a!important;
	text-decoration:none!important;
	box-shadow:0 2px 8px rgba(15,23,42,.08);
}
.tcw-chat-link-card>img{
	display:block;
	width:100%;
	height:160px;
	max-height:none;
	border-radius:0;
	object-fit:cover;
	background:#e2e8f0;
}
.tcw-chat-link-card-meta{
	display:flex;
	flex-direction:column;
	gap:4px;
	padding:10px 12px 11px;
	background:#f8fafc;
}
.tcw-chat-link-card-meta small{
	color:#64748b;
	font-size:10px;
	font-weight:800;
	letter-spacing:.035em;
	line-height:1.2;
	text-transform:uppercase;
}
.tcw-chat-link-card-meta strong{
	display:block;
	overflow:hidden;
	color:#0f172a;
	font-size:12px;
	font-weight:700;
	line-height:1.3;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.tcw-chat-link-card:hover,
.tcw-chat-link-card:focus-visible{
	border-color:rgba(24,119,242,.55);
	box-shadow:0 4px 14px rgba(24,119,242,.15);
}
.tcw-chat-bubble:has(.tcw-chat-link-card){
	width:min(315px,88%);
	max-width:88%;
}


/* Versión 2.9: enlaces de Facebook enviados en cualquier mensaje. */
.tcw-chat-message-text,
.tcw-chat-caption{
	white-space:pre-wrap;
	overflow-wrap:anywhere;
}
.tcw-inline-message-link{
	color:inherit!important;
	font-weight:750;
	text-decoration:underline!important;
	text-decoration-thickness:1px!important;
	text-underline-offset:2px;
	overflow-wrap:anywhere;
}
.tcw-facebook-link-card{
	display:flex;
	flex-direction:column;
	gap:9px;
	width:min(290px,100%);
	margin-top:9px;
	padding:12px;
	border:1px solid rgba(24,119,242,.24);
	border-radius:12px;
	background:linear-gradient(145deg,#fff,#f0f6ff);
	color:#0f172a!important;
	text-decoration:none!important;
	box-shadow:0 3px 12px rgba(24,119,242,.1);
}
.tcw-facebook-link-top{
	display:flex;
	align-items:center;
	gap:10px;
}
.tcw-facebook-link-icon{
	display:grid;
	place-items:end center;
	width:39px;
	height:39px;
	flex:0 0 39px;
	padding-top:4px;
	border-radius:50%;
	background:#1877f2;
	color:#fff;
	font-family:Arial,sans-serif;
	font-size:34px;
	font-weight:900;
	line-height:36px;
	overflow:hidden;
}
.tcw-facebook-link-identity{
	display:flex;
	flex-direction:column;
	min-width:0;
	line-height:1.15;
}
.tcw-facebook-link-identity strong{
	font-size:14px;
	font-weight:850;
}
.tcw-facebook-link-identity small{
	margin-top:3px;
	color:#64748b;
	font-size:10px;
	font-weight:750;
	text-transform:uppercase;
}
.tcw-facebook-link-path{
	display:block;
	overflow:hidden;
	color:#334155;
	font-size:11px;
	font-weight:650;
	line-height:1.35;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.tcw-facebook-link-action{
	display:flex;
	align-items:center;
	justify-content:center;
	min-height:34px;
	padding:7px 10px;
	border-radius:8px;
	background:#1877f2;
	color:#fff;
	font-size:12px;
	font-weight:850;
	text-align:center;
}
.tcw-facebook-link-card:hover,
.tcw-facebook-link-card:focus-visible{
	border-color:#1877f2;
	box-shadow:0 5px 17px rgba(24,119,242,.18);
}
.tcw-chat-link-card.is-facebook{
	border-color:rgba(24,119,242,.35);
}
.tcw-chat-link-card.is-facebook .tcw-chat-link-card-meta small{
	color:#1877f2;
}
.tcw-chat-bubble:has(.tcw-facebook-link-card){
	width:min(315px,88%);
	max-width:88%;
}
