/**
 * Frontend Chat Styles - Inline Embedded Component
 * Event Chatbot with Gemini & CF7
 */

:root {
	--wp-ecg-primary: #2563eb;
	--wp-ecg-primary-hover: #1d4ed8;
	--wp-ecg-bg-card: #ffffff;
	--wp-ecg-bg-chat: #f8fafc;
	--wp-ecg-border: #e2e8f0;
	--wp-ecg-text-main: #0f172a;
	--wp-ecg-text-muted: #64748b;
	--wp-ecg-user-bubble: #2563eb;
	--wp-ecg-user-text: #ffffff;
	--wp-ecg-bot-bubble: #ffffff;
	--wp-ecg-bot-text: #1e293b;
	--wp-ecg-success: #10b981;
	--wp-ecg-danger: #ef4444;
	--wp-ecg-radius: 16px;
	--wp-ecg-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.wp-ecg-chat-wrapper {
	width: 100%;
	max-width: 760px;
	margin: 2.5rem auto;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--wp-ecg-text-main);
}

.wp-ecg-chat-card {
	background: var(--wp-ecg-bg-card);
	border: 1px solid var(--wp-ecg-border);
	border-radius: var(--wp-ecg-radius);
	box-shadow: var(--wp-ecg-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 600px;
	position: relative;
	transition: all 0.3s ease;
}

/* Header */
.wp-ecg-chat-header {
	background: var(--wp-ecg-bg-card);
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--wp-ecg-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 2;
}

.wp-ecg-header-profile {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wp-ecg-avatar-container {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex-shrink: 0;
}

.wp-ecg-avatar-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 2px solid #e2e8f0;
}

.wp-ecg-avatar-fallback {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #eff6ff;
	color: var(--wp-ecg-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #dbeafe;
}

.wp-ecg-status-dot {
	position: absolute;
	bottom: 1px;
	right: 1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 2px solid #ffffff;
}

.wp-ecg-status-dot.is-online {
	background-color: var(--wp-ecg-success);
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: wpEcgPulse 2s infinite;
}

.wp-ecg-status-dot.is-offline {
	background-color: var(--wp-ecg-danger);
}

@keyframes wpEcgPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

.wp-ecg-header-info {
	display: flex;
	flex-direction: column;
}

.wp-ecg-bot-name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--wp-ecg-text-main);
	line-height: 1.2;
}

.wp-ecg-status-text {
	font-size: 0.8rem;
	color: var(--wp-ecg-text-muted);
}

.wp-ecg-btn-reset {
	background: transparent;
	border: 1px solid var(--wp-ecg-border);
	color: var(--wp-ecg-text-muted);
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.wp-ecg-btn-reset:hover {
	background: #f1f5f9;
	color: var(--wp-ecg-text-main);
	border-color: #cbd5e1;
}

/* Messages Stream */
.wp-ecg-messages-stream {
	flex: 1;
	background: var(--wp-ecg-bg-chat);
	overflow-y: auto;
	padding: 1.5rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 14px;
	scroll-behavior: smooth;
}

.wp-ecg-message {
	display: flex;
	align-items: flex-start;
	max-width: 82%;
	animation: wpEcgFadeIn 0.25s ease-out forwards;
}

@keyframes wpEcgFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wp-ecg-message.is-user {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.wp-ecg-message.is-bot {
	align-self: flex-start;
}

.wp-ecg-bubble {
	padding: 0.85rem 1.15rem;
	border-radius: 16px;
	word-break: break-word;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	font-size: 0.95rem;
	line-height: 1.5;
}

.wp-ecg-message.is-user .wp-ecg-bubble {
	background: var(--wp-ecg-user-bubble);
	color: var(--wp-ecg-user-text);
	border-bottom-right-radius: 4px;
}

.wp-ecg-message.is-bot .wp-ecg-bubble {
	background: var(--wp-ecg-bot-bubble);
	color: var(--wp-ecg-bot-text);
	border-bottom-left-radius: 4px;
	border: 1px solid #edf2f7;
}

.wp-ecg-bubble p {
	margin: 0 0 0.5rem 0;
}

.wp-ecg-bubble p:last-child {
	margin-bottom: 0;
}

/* Registration success highlight card */
.wp-ecg-registration-badge {
	margin-top: 10px;
	padding: 10px 14px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 10px;
	color: #065f46;
	font-weight: 500;
	font-size: 0.88rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Companion Prompt Box */
.wp-ecg-companion-box {
	margin-top: 12px;
	padding: 12px 14px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	animation: wpEcgFadeIn 0.3s ease;
}

.wp-ecg-companion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.wp-ecg-companion-title {
	font-size: 0.92rem;
	font-weight: 600;
	color: #166534;
}

.wp-ecg-companion-timer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #dcfce7;
	border: 1px solid #86efac;
	color: #15803d;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 9999px;
	min-width: 28px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.wp-ecg-companion-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.wp-ecg-btn-companion {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 18px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
	outline: none;
	font-family: inherit;
}

.wp-ecg-btn-companion-yes {
	background: #16a34a;
	color: #ffffff;
	box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.wp-ecg-btn-companion-yes:hover {
	background: #15803d;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(22, 163, 74, 0.25);
}

.wp-ecg-btn-companion-no {
	background: #ffffff;
	color: #4b5563;
	border: 1px solid #d1d5db;
}

.wp-ecg-btn-companion-no:hover {
	background: #f3f4f6;
	color: #111827;
	border-color: #9ca3af;
}

.wp-ecg-btn-companion:active {
	transform: translateY(0);
}

.wp-ecg-btn-companion:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Session Closed Notice */
.wp-ecg-session-closed-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 12px auto;
	padding: 8px 16px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 9999px;
	color: #64748b;
	font-size: 0.82rem;
	font-weight: 500;
	text-align: center;
	animation: wpEcgFadeIn 0.3s ease;
}

/* Typing indicator */
.wp-ecg-typing-indicator {
	padding: 8px 1.25rem;
	background: var(--wp-ecg-bg-chat);
	display: flex;
	align-items: center;
	gap: 10px;
}

.wp-ecg-typing-dots {
	display: flex;
	gap: 4px;
}

.wp-ecg-typing-dots span {
	width: 6px;
	height: 6px;
	background: #94a3b8;
	border-radius: 50%;
	display: inline-block;
	animation: wpEcgBounce 1.2s infinite ease-in-out both;
}

.wp-ecg-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.wp-ecg-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes wpEcgBounce {
	0%, 80%, 100% { transform: scale(0); }
	40% { transform: scale(1); }
}

.wp-ecg-typing-text {
	font-size: 0.8rem;
	color: var(--wp-ecg-text-muted);
	font-style: italic;
}

/* Toast alert notification */
.wp-ecg-toast {
	padding: 8px 16px;
	background: #fef2f2;
	border-top: 1px solid #fecaca;
	border-bottom: 1px solid #fecaca;
	color: #991b1b;
	font-size: 0.85rem;
	text-align: center;
	animation: wpEcgSlideDown 0.2s ease-out;
}

@keyframes wpEcgSlideDown {
	from { transform: translateY(-10px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

/* Input Form */
.wp-ecg-input-form {
	background: var(--wp-ecg-bg-card);
	border-top: 1px solid var(--wp-ecg-border);
	padding: 0.9rem 1.25rem;
}

.wp-ecg-input-wrapper {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	background: #f8fafc;
	border: 1px solid var(--wp-ecg-border);
	border-radius: 12px;
	padding: 6px 8px 6px 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-ecg-input-wrapper:focus-within {
	border-color: var(--wp-ecg-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	background: #ffffff;
}

.wp-ecg-input-wrapper textarea {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 0.95rem;
	line-height: 1.4;
	max-height: 120px;
	min-height: 24px;
	resize: none;
	padding: 4px 0;
	color: var(--wp-ecg-text-main);
	outline: none;
	box-shadow: none;
}

.wp-ecg-input-wrapper textarea::placeholder {
	color: #94a3b8;
}

.wp-ecg-btn-send {
	background: var(--wp-ecg-primary);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s ease, transform 0.1s ease, filter 0.2s ease;
}

.wp-ecg-btn-send:hover:not(:disabled) {
	filter: brightness(0.9);
	transform: scale(1.04);
}

.wp-ecg-btn-send:disabled {
	background: #cbd5e1;
	cursor: not-allowed;
	transform: none;
}

.wp-ecg-input-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 6px;
	font-size: 0.78rem;
	color: var(--wp-ecg-text-muted);
}

.wp-ecg-word-counter.is-warning {
	color: #ea580c;
	font-weight: 600;
}

.wp-ecg-word-counter.is-exceeded {
	color: var(--wp-ecg-danger);
	font-weight: 700;
}

.wp-ecg-security-note {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #0033FF !important;
	opacity: 1 !important;
}

.wp-ecg-security-note svg {
	color: #0033FF !important;
	fill: #0033FF !important;
}

/* ========================================================
   "No soy un robot" Verification Barrier
   ======================================================== */
.wp-ecg-robot-barrier {
	padding: 10px 16px;
	background: var(--wp-ecg-bg-card);
	border-top: 1px solid var(--wp-ecg-border);
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	z-index: 10;
}

.wp-ecg-robot-barrier.is-hidden {
	max-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin: 0 !important;
	border-top: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.wp-ecg-robot-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
	user-select: none;
	transition: all 0.25s ease;
}

.wp-ecg-robot-control {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	margin: 0;
	padding: 0;
}

.wp-ecg-robot-checkbox-custom {
	position: relative;
	width: 24px;
	height: 24px;
	background: #ffffff;
	border: 2px solid #94a3b8;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.wp-ecg-robot-checkbox {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	z-index: 2;
}

.wp-ecg-robot-checkmark {
	display: none;
	color: #ffffff;
}

.wp-ecg-robot-spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid #e2e8f0;
	border-top-color: var(--wp-ecg-primary);
	border-radius: 50%;
	animation: wpEcgSpin 0.75s linear infinite;
}

@keyframes wpEcgSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Verifying state */
.wp-ecg-robot-card.is-verifying .wp-ecg-robot-checkbox-custom {
	border-color: var(--wp-ecg-primary);
}
.wp-ecg-robot-card.is-verifying .wp-ecg-robot-spinner {
	display: block;
}

/* Verified state */
.wp-ecg-robot-card.is-verified {
	border-color: #10b981;
	background: #f0fdf4;
}
.wp-ecg-robot-card.is-verified .wp-ecg-robot-checkbox-custom {
	background: #10b981;
	border-color: #10b981;
}
.wp-ecg-robot-card.is-verified .wp-ecg-robot-spinner {
	display: none;
}
.wp-ecg-robot-card.is-verified .wp-ecg-robot-checkmark {
	display: block;
	animation: wpEcgPopCheck 0.3s ease-out;
}
.wp-ecg-robot-card.is-verified .wp-ecg-robot-text {
	color: #166534;
	font-weight: 600;
}

@keyframes wpEcgPopCheck {
	0% { transform: scale(0.4); opacity: 0; }
	60% { transform: scale(1.2); }
	100% { transform: scale(1); opacity: 1; }
}

.wp-ecg-robot-text {
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--wp-ecg-text-main);
	line-height: 1.2;
}

.wp-ecg-robot-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #64748b;
	font-size: 0.65rem;
	gap: 2px;
	opacity: 0.85;
}

.wp-ecg-robot-badge svg {
	stroke: #64748b;
}

.wp-ecg-disabled-notice {
	padding: 2rem;
	text-align: center;
	color: var(--wp-ecg-text-muted);
	background: #f8fafc;
}

/* Responsive adjustments */
@media (max-width: 640px) {
	.wp-ecg-chat-wrapper {
		margin: 1rem auto;
	}
	.wp-ecg-chat-card {
		height: 520px;
		border-radius: 12px;
	}
	.wp-ecg-message {
		max-width: 90%;
	}
}

/* ========================================================
   Tema Oficial: JIG · 25 Aniversario
   Estética idéntica a la invitación: Azul real, degradados eléctricos y Manrope
   ======================================================== */
.wp-ecg-chat-wrapper.theme-jig25 {
	font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
	color: #ffffff;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-chat-card {
	background: var(--wp-ecg-bg-card,
		radial-gradient(120% 70% at 0% 0%, rgba(5,20,90,.85) 0%, rgba(5,20,90,0) 60%),
		linear-gradient(180deg, #0505E2 0%, #0707EE 35%, #0404D6 70%, #0410A8 100%));
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(7, 7, 238, 0.35);
	color: #ffffff;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-chat-header {
	background: var(--wp-ecg-header-bg, rgba(4, 16, 168, 0.55));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--wp-ecg-header-border, rgba(255, 255, 255, 0.15));
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-bot-name {
	color: var(--wp-ecg-header-text, #ffffff);
	font-weight: 600;
	letter-spacing: .01em;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-status-text {
	color: var(--wp-ecg-header-subtext, rgba(255, 255, 255, 0.8));
	font-size: 0.8rem;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-messages-stream {
	background: var(--wp-ecg-bg-chat, rgba(8, 12, 48, 0.55));
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-message.is-user .wp-ecg-bubble {
	background: var(--wp-ecg-user-bubble, #0707EE);
	color: var(--wp-ecg-user-text, #ffffff);
	box-shadow: 0 4px 15px rgba(7, 7, 238, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-message.is-bot .wp-ecg-bubble {
	background: var(--wp-ecg-bot-bubble, rgba(255, 255, 255, 0.1));
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: var(--wp-ecg-bot-text, #ffffff);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-input-form {
	background: var(--wp-ecg-input-bg, rgba(7, 10, 46, 0.9));
	border-top: 1px solid var(--wp-ecg-input-border, rgba(255, 255, 255, 0.15));
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-input-wrapper {
	background: var(--wp-ecg-input-box-bg, rgba(4, 8, 38, 0.85));
	border: 1px solid var(--wp-ecg-input-box-border, rgba(255, 255, 255, 0.2));
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-input-wrapper:focus-within {
	border-color: var(--wp-ecg-primary, #0707EE);
	box-shadow: 0 0 0 3px rgba(7, 7, 238, 0.4);
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-input-wrapper textarea {
	color: var(--wp-ecg-input-text, #ffffff);
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-input-wrapper textarea::placeholder {
	color: var(--wp-ecg-input-placeholder, rgba(255, 255, 255, 0.6));
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-btn-send {
	background: var(--wp-ecg-primary, #0707EE);
	color: var(--wp-ecg-send-icon, #ffffff);
	box-shadow: 0 0 14px rgba(7, 7, 238, 0.55);
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-btn-send svg {
	stroke: var(--wp-ecg-send-icon, #ffffff);
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-btn-send:hover:not(:disabled) {
	background: var(--wp-ecg-primary-hover, #0505E2);
	box-shadow: 0 0 20px rgba(7, 7, 238, 0.85);
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-btn-reset {
	border-color: rgba(255, 255, 255, 0.2) !important;
	color: rgba(255, 255, 255, 0.75) !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-btn-reset:hover {
	background: rgba(255, 255, 255, 0.15) !important;
	color: #ffffff !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-word-counter {
	color: rgba(255, 255, 255, 0.65) !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-security-note {
	color: #0033FF !important;
	opacity: 1 !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-security-note svg {
	color: #0033FF !important;
	fill: #0033FF !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-typing-indicator {
	background: rgba(8, 12, 48, 0.55) !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-typing-text {
	color: rgba(255, 255, 255, 0.75) !important;
}

/* Theme JIG 25 dark styling for Robot Barrier */
.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-robot-barrier {
	background: rgba(7, 10, 46, 0.95) !important;
	border-top-color: rgba(255, 255, 255, 0.15) !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-robot-card {
	background: rgba(4, 8, 38, 0.85) !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-robot-card:hover {
	border-color: rgba(7, 7, 238, 0.8) !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-robot-checkbox-custom {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-robot-text {
	color: #ffffff !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-robot-badge {
	color: rgba(255, 255, 255, 0.6) !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-robot-badge svg {
	stroke: rgba(255, 255, 255, 0.6) !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-robot-card.is-verified {
	background: rgba(16, 185, 129, 0.15) !important;
	border-color: #10b981 !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-robot-card.is-verified .wp-ecg-robot-checkbox-custom {
	background: #10b981 !important;
	border-color: #10b981 !important;
}

.wp-ecg-chat-wrapper.theme-jig25 .wp-ecg-robot-card.is-verified .wp-ecg-robot-text {
	color: #34d399 !important;
}

/* ========================================================
   Integración directa debajo de la tarjeta .invitacion y .jig25inv
   ======================================================== */
.invitacion + .wp-ecg-chat-wrapper,
.invitacion ~ .wp-ecg-chat-wrapper,
.jig25inv + .wp-ecg-chat-wrapper,
.jig25inv ~ .wp-ecg-chat-wrapper,
.jig25stage .wp-ecg-chat-wrapper {
	margin: 2rem auto 3rem auto !important;
	width: min(100%, calc(76vh * 1625 / 1720)) !important;
	max-width: 100% !important;
	font-family: 'Syne', 'Manrope', Helvetica, Arial, sans-serif !important;
}

.jig25stage {
	flex-direction: column !important;
	height: auto !important;
}

.jig25stage .wp-ecg-chat-wrapper,
.jig25stage .wp-ecg-chat-wrapper * {
	font-family: 'Syne', Helvetica, Arial, sans-serif !important;
}

.jig25stage .wp-ecg-chat-wrapper .wp-ecg-chat-card {
	border-radius: clamp(18px, 3.4cqw, 30px) !important;
}

/* ========================================================
   Full Container Mode (100% Width & 100% Height)
   Permite que el chat ocupe el 100% del ancho y alto de la capa que lo contiene
   ======================================================== */
.wp-ecg-chat-wrapper.is-full-container,
.is-full-container .wp-ecg-chat-wrapper,
.wp-ecg-fill-container .wp-ecg-chat-wrapper,
.wp-ecg-chat-wrapper[data-full="1"],
.jig25-panel .wp-ecg-chat-wrapper,
.jig25-formside .wp-ecg-chat-wrapper,
.jig25-formside > #wp-ecg-chat-wrapper,
.jig25-form .wp-ecg-chat-wrapper,
.jig25-panel > div:has(.wp-ecg-chat-wrapper) {
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	max-height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 100% !important;
	align-self: stretch !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

.wp-ecg-chat-wrapper.is-full-container .wp-ecg-chat-card,
.is-full-container .wp-ecg-chat-wrapper .wp-ecg-chat-card,
.wp-ecg-fill-container .wp-ecg-chat-wrapper .wp-ecg-chat-card,
.wp-ecg-chat-wrapper[data-full="1"] .wp-ecg-chat-card,
.jig25-panel .wp-ecg-chat-wrapper .wp-ecg-chat-card,
.jig25-formside .wp-ecg-chat-wrapper .wp-ecg-chat-card,
.jig25-formside .wp-ecg-chat-card,
.jig25-form .wp-ecg-chat-wrapper .wp-ecg-chat-card {
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	max-height: 100% !important;
	min-height: 0 !important;
	flex: 1 1 100% !important;
	display: flex !important;
	flex-direction: column !important;
	margin: 0 !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

.wp-ecg-chat-wrapper.is-full-container .wp-ecg-messages-stream,
.is-full-container .wp-ecg-chat-wrapper .wp-ecg-messages-stream,
.wp-ecg-fill-container .wp-ecg-chat-wrapper .wp-ecg-messages-stream,
.wp-ecg-chat-wrapper[data-full="1"] .wp-ecg-messages-stream,
.jig25-panel .wp-ecg-chat-wrapper .wp-ecg-messages-stream,
.jig25-formside .wp-ecg-messages-stream,
.jig25-formside .wp-ecg-chat-wrapper .wp-ecg-messages-stream,
.jig25-form .wp-ecg-chat-wrapper .wp-ecg-messages-stream {
	flex: 1 1 0% !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 100% !important;
	overflow-y: auto !important;
}

/* JIG 25 Panel direct integration */
.jig25-panel {
	align-items: stretch !important;
}

.jig25-panel > div:has(.wp-ecg-chat-wrapper),
.jig25-panel .jig25-form {
	height: 100% !important;
	min-height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	padding: 0 !important;
	margin: 0 !important;
}

.jig25-panel .wp-ecg-chat-wrapper .wp-ecg-chat-card {
	border-radius: 0 28px 28px 0 !important;
	border: none !important;
}

@media (max-width: 860px) {
	.jig25-panel .wp-ecg-chat-wrapper .wp-ecg-chat-card {
		border-radius: 0 0 28px 28px !important;
		min-height: 520px !important;
		height: 520px !important;
	}
	.wp-ecg-chat-wrapper.is-full-container {
		min-height: 500px;
	}
}
