/* CSS PREMIUM PARA CHAT TURISTOUR */
:root {
	--tc-primary: #2563eb;
	--tc-primary-light: #eff6ff;
	--tc-border: #e2e8f0;
	--tc-text: #1e293b;
	--tc-text-light: #64748b;
}

/* El botón integrado usa las clases de Elementor (.ts-btn), no necesitamos redefinir mucho aquí, 
   salvo si lo usan fuera de las tarjetas dinámicas */

/* Chat Popup Premium Modal */
#tc-chat-popup {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 380px;
	height: 520px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 12px 35px rgba(0,0,0,0.15);
	display: flex;
	flex-direction: column;
	z-index: 999999;
	display: none;
	overflow: hidden;
	animation: tcFadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	border: 1px solid var(--tc-border);
	font-family: inherit;
}

@keyframes tcFadeInUp {
	from { opacity: 0; transform: translateY(20px) scale(0.95); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Cabecera del Chat */
.tc-chat-header {
	background: var(--tc-primary);
	color: #fff;
	padding: 18px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(37,99,235,0.2);
	z-index: 2;
}
.tc-chat-header-info {
	display: flex;
	align-items: center;
	gap: 12px;
}
.tc-chat-header-icon {
	width: 36px;
	height: 36px;
	background: rgba(255,255,255,0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tc-chat-close {
	background: rgba(255,255,255,0.1);
	border: none;
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: 0.2s;
}
.tc-chat-close:hover {
	background: rgba(255,255,255,0.25);
}

/* Cuerpo de Mensajes */
.tc-chat-body {
	flex: 1;
	padding: 20px;
	background: #f8fafc;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 15px;
	scroll-behavior: smooth;
}

.tc-msg-me { align-self: flex-end; max-width: 85%; }
.tc-msg-other { align-self: flex-start; max-width: 85%; }

.tc-msg-bubble {
	padding: 12px 16px;
	border-radius: 18px;
	font-size: 0.95rem;
	line-height: 1.5;
	word-wrap: break-word;
	color: var(--tc-text);
}
.tc-msg-me .tc-msg-bubble {
	background: var(--tc-primary);
	color: white;
	border-bottom-right-radius: 4px;
	box-shadow: 0 4px 10px rgba(37,99,235,0.15);
}
.tc-msg-other .tc-msg-bubble {
	background: #ffffff;
	border-bottom-left-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	border: 1px solid var(--tc-border);
}
.tc-msg-time {
	display: block;
	font-size: 0.75rem;
	color: var(--tc-text-light);
	margin-top: 6px;
}
.tc-msg-me .tc-msg-time { text-align: right; }
.tc-msg-other .tc-msg-time { text-align: left; }

/* Entrada de Texto */
.tc-chat-footer {
	padding: 15px 20px;
	background: #ffffff;
	display: flex;
	gap: 12px;
	align-items: center;
	border-top: 1px solid var(--tc-border);
}
.tc-chat-input {
	flex: 1;
	border: 1px solid var(--tc-border);
	background: #f1f5f9;
	padding: 12px 18px;
	border-radius: 24px;
	outline: none;
	font-size: 0.95rem;
	transition: 0.2s;
	color: var(--tc-text);
}
.tc-chat-input:focus {
	background: #ffffff;
	border-color: var(--tc-primary);
	box-shadow: 0 0 0 3px var(--tc-primary-light);
}
.tc-chat-input::placeholder { color: #94a3b8; }

.tc-chat-send {
	background: var(--tc-primary);
	color: #fff;
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(37,99,235,0.25);
	transition: 0.2s;
}
.tc-chat-send:active { transform: scale(0.95); }
.tc-chat-send:hover { background: #1d4ed8; }

/* Mensaje del sistema (Login) */
.tc-auth-notice {
	text-align: center;
	padding: 30px 20px;
	color: var(--tc-text-light);
}
