/* TPS Chat — burbuja (colores de Trust Poke Services; funciona con cualquier tema) */
.tps-chat { position: fixed; right: 20px; bottom: 20px; z-index: 9999; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.tps-chat-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.tps-chat-boton {
	position: relative; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px; border: 0; border-radius: 999px;
	background: #FFCB05; color: #0B1120; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.tps-chat-boton:hover { background: #FFE27A; }
.tps-chat-boton:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.tps-chat-punto { position: absolute; top: 6px; right: 8px; width: 12px; height: 12px; border-radius: 999px; background: #E5533D; border: 2px solid #FFCB05; }
.tps-chat.abierto .tps-chat-boton-t { display: none; }
.tps-chat-panel {
	position: absolute; right: 0; bottom: 64px; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 110px);
	display: flex; flex-direction: column; background: #131B2E; color: #EEF2FA; border: 1px solid #2B3A5E; border-radius: 16px; overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
}
.tps-chat-panel[hidden] { display: none; }
.tps-chat-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 14px 16px; background: #0D1427; border-bottom: 1px solid #222D4A; }
.tps-chat-titulo { margin: 0; font-weight: 700; font-size: 15px; color: #FFFFFF; }
.tps-chat-sub { margin: 2px 0 0; font-size: 12px; color: #A9B4CC; }
.tps-chat-cerrar { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #EEF2FA; font-size: 24px; line-height: 1; cursor: pointer; }
.tps-chat-cerrar:hover { background: #1F2B4A; }
.tps-chat-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.tps-chat-msg { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.tps-chat-msg-t { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.tps-chat-msg-h { display: block; margin-top: 4px; font-size: 11px; opacity: .75; }
.tps-chat-msg.cliente { align-self: flex-end; background: #FFCB05; color: #0B1120; border-bottom-right-radius: 4px; }
.tps-chat-msg.equipo { align-self: flex-start; background: #1F2B4A; color: #EEF2FA; border-bottom-left-radius: 4px; }
.tps-chat-msg.auto { align-self: flex-start; background: #172038; color: #C9D3EA; border: 1px dashed #2B3A5E; font-size: 13px; }
.tps-chat-actualizar { margin: 0 12px 8px; padding: 8px; border: 1px solid #2B3A5E; border-radius: 10px; background: transparent; color: #9DB7F5; font: inherit; font-size: 13px; cursor: pointer; }
.tps-chat-actualizar[hidden] { display: none; }
.tps-chat-form { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid #222D4A; background: #0F1628; margin: 0; }
.tps-chat-datos { display: flex; flex-direction: column; gap: 6px; }
.tps-chat-datos[hidden] { display: none; }
.tps-chat-form input, .tps-chat-form textarea {
	width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid #2B3A5E; border-radius: 10px; background: #0B1120; color: #EEF2FA;
	font: inherit; font-size: 15px;
}
.tps-chat-form input::placeholder, .tps-chat-form textarea::placeholder { color: #8E9AB5; }
.tps-chat-form input:focus, .tps-chat-form textarea:focus { outline: none; border-color: #FFCB05; }
.tps-chat-trampa { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.tps-chat-fila { display: flex; gap: 8px; align-items: flex-end; }
.tps-chat-fila textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; }
.tps-chat-enviar { height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: #FFCB05; color: #0B1120; font: inherit; font-weight: 700; cursor: pointer; }
.tps-chat-enviar:disabled { opacity: .6; cursor: default; }
.tps-chat-aviso { margin: 0; font-size: 13px; color: #FFC9C9; }
.tps-chat-aviso[hidden] { display: none; }
.tps-chat-nota { margin: 0; font-size: 11px; color: #8E9AB5; }
@media (max-width: 600px) {
	.tps-chat { right: 12px; bottom: 12px; }
	.tps-chat-boton { height: 52px; width: 52px; padding: 0; justify-content: center; }
	.tps-chat-boton-t { display: none; }
	.tps-chat-panel { position: fixed; right: 8px; left: 8px; bottom: 74px; width: auto; max-width: none; height: auto; top: 72px; max-height: none; }
}
