/**
 * AI Travel Assistant widget styles (dedicated file — never asset-synced).
 */

.mfo-chat-widget {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9998;
	font-family: inherit;
}

.mfo-chat-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--mfo-green, #0B3D2E);
	color: #fff;
	border: 2px solid var(--mfo-gold, #C9A227);
	border-radius: 999px;
	padding: 12px 20px;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 700;
	box-shadow: 0 4px 16px rgba(7, 42, 32, 0.35);
}

.mfo-chat-toggle:hover {
	background: var(--mfo-green-dark, #072A20);
}

.mfo-chat-toggle-icon {
	font-size: 1.1rem;
	color: var(--mfo-gold, #C9A227);
}

.mfo-chat-panel {
	position: absolute;
	bottom: 70px;
	right: 0;
	width: 360px;
	max-width: calc(100vw - 48px);
	height: 520px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border: 1px solid var(--mfo-border, #DDE4E1);
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(7, 42, 32, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mfo-chat-header {
	background: var(--mfo-green, #0B3D2E);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mfo-chat-sub {
	font-size: 0.75rem;
	color: var(--mfo-gold-light, #E4C65C);
	flex: 1;
}

.mfo-chat-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.mfo-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: var(--mfo-gray-light, #F4F6F5);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mfo-chat-msg {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 0.9rem;
	line-height: 1.5;
	white-space: pre-wrap;
}

.mfo-chat-msg-bot {
	background: #fff;
	border: 1px solid var(--mfo-border, #DDE4E1);
	border-bottom-left-radius: 4px;
	align-self: flex-start;
}

.mfo-chat-msg-user {
	background: var(--mfo-green, #0B3D2E);
	color: #fff;
	border-bottom-right-radius: 4px;
	align-self: flex-end;
}

.mfo-chat-cards {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mfo-chat-card {
	display: flex;
	gap: 10px;
	align-items: center;
	background: #fff;
	border: 1px solid var(--mfo-border, #DDE4E1);
	border-radius: 10px;
	padding: 8px;
	text-decoration: none;
	color: inherit;
}

.mfo-chat-card:hover {
	border-color: var(--mfo-gold, #C9A227);
}

.mfo-chat-card img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

.mfo-chat-card-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mfo-chat-card-body strong {
	color: var(--mfo-green, #0B3D2E);
	font-size: 0.88rem;
}

.mfo-chat-card-body em {
	font-style: normal;
	font-size: 0.78rem;
	color: var(--mfo-gray, #3F4A45);
}

.mfo-chat-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	padding: 10px 12px 4px;
	background: #fff;
	border-top: 1px solid var(--mfo-border, #DDE4E1);
}

.mfo-chat-chip {
	background: var(--mfo-gray-light, #F4F6F5);
	border: 1px solid var(--mfo-border, #DDE4E1);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 0.78rem;
	cursor: pointer;
	color: var(--mfo-green, #0B3D2E);
}

.mfo-chat-chip:hover {
	background: var(--mfo-gold, #C9A227);
	border-color: var(--mfo-gold, #C9A227);
	color: var(--mfo-green-dark, #072A20);
	font-weight: 600;
}

.mfo-chat-form {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	background: #fff;
}

.mfo-chat-form input {
	flex: 1;
	border: 1px solid var(--mfo-border, #DDE4E1);
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 0.9rem;
	font-family: inherit;
}

.mfo-chat-form input:focus {
	outline: 2px solid var(--mfo-gold, #C9A227);
	border-color: transparent;
}

.mfo-chat-send {
	background: var(--mfo-gold, #C9A227);
	border: none;
	border-radius: 50%;
	width: 42px;
	height: 42px;
	font-size: 1rem;
	cursor: pointer;
	color: var(--mfo-green-dark, #072A20);
	flex-shrink: 0;
}

.mfo-chat-send:hover {
	background: var(--mfo-gold-light, #E4C65C);
}

.mfo-chat-whatsapp {
	margin: 0;
	padding: 0 14px 10px;
	font-size: 0.78rem;
	background: #fff;
}

.mfo-chat-whatsapp a {
	color: var(--mfo-green, #0B3D2E);
}

@media (max-width: 480px) {
	.mfo-chat-panel {
		width: calc(100vw - 32px);
		right: -8px;
		height: 60vh;
	}

	.mfo-chat-toggle-label {
		display: none;
	}
}

/* RTL */
[dir="rtl"] .mfo-chat-widget {
	right: auto;
	left: 24px;
}

[dir="rtl"] .mfo-chat-panel {
	right: auto;
	left: 0;
}
