.ft-chatbot-root {
	--ft-chatbot-bottom: 18px;
	--ft-chatbot-width: 96px;
	--ft-chatbot-launcher-size: 76px;
	--ft-chatbot-launcher-half: 38px;
	--ft-chatbot-launcher-margin: 1px;
	--ft-chatbot-gap: 20px;
	--ft-chatbot-current-right: var(--ft-chatbot-side);
	--ft-wa-left-right: calc(45px + 5vw);
	--ft-wa-center-bottom: 65px;

	--ft-chatbot-accent: #721d27;
	--ft-chatbot-accent-dark: #55141c;
	--ft-chatbot-text: #1f2933;
	--ft-chatbot-muted: #68737d;
	--ft-chatbot-border: #d9dee3;
	--ft-chatbot-surface: #ffffff;
	--ft-chatbot-panel-bg: #f5f7f9;
	position: fixed;
	bottom: var(--ft-chatbot-bottom);
	z-index: 999999;
	width: var(--ft-chatbot-width);
	height: var(--ft-chatbot-launcher-size);
	font-family: Arial, Helvetica, sans-serif;
	color: var(--ft-chatbot-text);
	text-align: center;
}

.ft-chatbot-position-right {
	right: var(--ft-chatbot-current-right);
}

.ft-chatbot-position-left {
	left: var(--ft-chatbot-side);
}

.ft-chatbot-anchor-whatsapp.ft-chatbot-position-right {
	--ft-chatbot-current-right: calc(
		var(--ft-wa-left-right) + var(--ft-chatbot-gap) - var(--ft-chatbot-launcher-margin)
	);
	bottom: calc(var(--ft-wa-center-bottom) - var(--ft-chatbot-launcher-half));
}

#ft-chatbot-root .ft-chatbot-launcher {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: relative;
	width: var(--ft-chatbot-launcher-size) !important;
	min-width: var(--ft-chatbot-launcher-size) !important;
	max-width: var(--ft-chatbot-launcher-size) !important;
	height: var(--ft-chatbot-launcher-size) !important;
	min-height: var(--ft-chatbot-launcher-size) !important;
	max-height: var(--ft-chatbot-launcher-size) !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #8a1b29 !important;
	background-color: #8a1b29 !important;
	background-image: none !important;
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.2) !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 auto !important;
	line-height: 1 !important;
	text-decoration: none !important;
	overflow: hidden;
	transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

#ft-chatbot-root .ft-chatbot-launcher::before,
#ft-chatbot-root .ft-chatbot-launcher::after {
	content: none !important;
	display: none !important;
}

#ft-chatbot-root .ft-chatbot-launcher:hover,
#ft-chatbot-root .ft-chatbot-launcher:focus-visible {
	background: #711520 !important;
	background-color: #711520 !important;
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(17, 24, 39, 0.26) !important;
	outline: none;
}

#ft-chatbot-root .ft-chatbot-launcher-icon {
	width: 62px;
	height: 62px;
	display: block;
	max-width: none;
}

.ft-chatbot-launcher-label {
	position: absolute;
	left: 0;
	right: 0;
	top: 82px;
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-align: center;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.ft-chatbot-panel {
	position: absolute;
	/* Sit above the launcher + label, wherever the widget is anchored. */
	bottom: calc(100% + 12px);
	width: 380px;
	height: 520px;
	max-height: min(680px, 72vh);
	background: var(--ft-chatbot-surface);
	border: 1px solid var(--ft-chatbot-border);
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(17, 24, 39, 0.22);
	overflow: hidden;
	display: none;
	flex-direction: column;
}

.ft-chatbot-position-right .ft-chatbot-panel {
	right: calc(24px - var(--ft-chatbot-current-right));
	width: min(380px, calc(100vw - 48px));
}

.ft-chatbot-position-left .ft-chatbot-panel {
	left: 0;
}

.ft-chatbot-panel.is-open {
	display: flex;
}

.ft-chatbot-header {
	min-height: 64px;
	background: var(--ft-chatbot-accent);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
}

.ft-chatbot-header-copy {
	min-width: 0;
}

.ft-chatbot-header strong {
	display: block;
	font-size: 16px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ft-chatbot-header span {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.82);
	letter-spacing: 0;
}

.ft-chatbot-close {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	cursor: pointer;
	font-size: 27px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ft-chatbot-close:hover,
.ft-chatbot-close:focus-visible {
	background: rgba(255, 255, 255, 0.24);
	outline: none;
}

.ft-chatbot-header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.ft-chatbot-maximize {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ft-chatbot-maximize:hover,
.ft-chatbot-maximize:focus-visible {
	background: rgba(255, 255, 255, 0.24);
	outline: none;
}

.ft-chatbot-maximize svg {
	width: 16px;
	height: 16px;
}

/* Show exactly one icon at a time. These selectors are scoped to the button so
   they beat the generic `.ft-chatbot-maximize svg` rule on specificity. */
.ft-chatbot-maximize .ft-chatbot-icon-maximize {
	display: block;
}

.ft-chatbot-maximize .ft-chatbot-icon-restore {
	display: none;
}

.ft-chatbot-panel.is-maximized .ft-chatbot-maximize .ft-chatbot-icon-maximize {
	display: none;
}

.ft-chatbot-panel.is-maximized .ft-chatbot-maximize .ft-chatbot-icon-restore {
	display: block;
}

/* Maximized: the panel fills the screen with a small margin. Higher specificity
   than the position-right/left width rules so it always wins. */
.ft-chatbot-root .ft-chatbot-panel.is-maximized {
	position: fixed;
	top: 16px;
	left: 16px;
	right: 16px;
	bottom: 16px;
	width: auto;
	height: auto;
	max-width: none;
	max-height: none;
}

/* Full-screen image viewer (lightbox) for attachment images. */
.ft-chatbot-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(6, 10, 15, 0.9);
	cursor: zoom-out;
}

.ft-chatbot-lightbox.is-open {
	display: flex;
}

.ft-chatbot-lightbox-img {
	max-width: 96%;
	max-height: 92%;
	object-fit: contain;
	border-radius: 6px;
	background: #ffffff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
	cursor: default;
}

.ft-chatbot-lightbox-close {
	position: absolute;
	top: 18px;
	right: 20px;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ft-chatbot-lightbox-close:hover,
.ft-chatbot-lightbox-close:focus-visible {
	background: rgba(255, 255, 255, 0.3);
	outline: none;
}

.ft-chatbot-messages {
	flex: 1;
	padding: 16px;
	overflow-y: auto;
	background: var(--ft-chatbot-panel-bg);
	text-align: left;
}

.ft-chatbot-message {
	max-width: 84%;
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: 0;
	word-break: break-word;
	overflow-wrap: anywhere;
	/* Force left alignment so the site theme's centered text can't leak in. */
	text-align: left !important;
}

.ft-chatbot-message-bot {
	background: #ffffff;
	border: 1px solid #e3e7eb;
	color: var(--ft-chatbot-text);
}

#ft-chatbot-root .ft-chatbot-message-bot a.ft-chatbot-text-link {
	color: var(--ft-chatbot-accent) !important;
	display: inline !important;
	font: inherit !important;
	line-height: inherit !important;
	opacity: 1 !important;
	text-decoration: underline !important;
	text-indent: 0 !important;
	visibility: visible !important;
	overflow-wrap: anywhere;
	white-space: normal !important;
}

.ft-chatbot-table-list {
	width: 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 8px 0 2px;
}

.ft-chatbot-table-item {
	padding: 9px 10px;
	border: 1px solid #dce3e9;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 3px 9px rgba(17, 24, 39, 0.04);
}

.ft-chatbot-table-item > strong {
	display: block;
	margin-bottom: 5px;
	color: var(--ft-chatbot-text);
	font-size: 13px;
	line-height: 1.3;
}

.ft-chatbot-table-item div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ft-chatbot-table-item span {
	display: block;
	color: var(--ft-chatbot-text);
	font-size: 12px;
	line-height: 1.35;
	text-align: left;
	overflow-wrap: anywhere;
}

/* Each detail is a "label — value" row: muted label, emphasized value, so a
   price grid reads like a clean spec sheet instead of an all-bold blob. */
.ft-chatbot-table-item span.ft-chatbot-cell {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}

.ft-chatbot-cell-label {
	color: #5b6672;
	font-weight: 500;
	flex: 0 1 auto;
}

.ft-chatbot-cell-value {
	color: var(--ft-chatbot-text);
	font-weight: 700;
	text-align: right;
	flex: 0 0 auto;
}

/* Typing indicator: three bouncing dots while the reply is generated. */
.ft-chatbot-typing {
	display: inline-flex;
	gap: 5px;
	align-items: center;
}

.ft-chatbot-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9aa4ae;
	display: inline-block;
	animation: ft-chatbot-bounce 1.2s infinite ease-in-out;
}

.ft-chatbot-typing span:nth-child(2) {
	animation-delay: 0.2s;
}

.ft-chatbot-typing span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes ft-chatbot-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-4px); opacity: 1; }
}

.ft-chatbot-message-user {
	margin-left: auto;
	background: var(--ft-chatbot-accent);
	color: #ffffff;
}

#ft-chatbot-root .ft-chatbot-wa-button {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #25d366 !important;
	color: #05340f !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 14px !important;
	font-weight: 600;
	line-height: 1.2 !important;
	opacity: 1 !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	visibility: visible !important;
	white-space: normal !important;
	width: fit-content;
}

#ft-chatbot-root .ft-chatbot-wa-button:hover,
#ft-chatbot-root .ft-chatbot-wa-button:focus-visible {
	filter: brightness(1.03);
	outline: none;
}

.ft-chatbot-attachment {
	width: min(100%, 330px);
	margin: 0 0 12px 0;
	background: #ffffff;
	border: 1px solid #dce3e9;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
	text-align: left;
}

.ft-chatbot-attachment img {
	display: block;
	width: 100%;
	max-height: 260px;
	object-fit: cover;
	background: #eef2f6;
	cursor: zoom-in;
}

.ft-chatbot-attachment-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 12px 12px;
}

.ft-chatbot-attachment-body strong {
	color: var(--ft-chatbot-text);
	font-size: 14px;
	line-height: 1.25;
	letter-spacing: 0;
}

.ft-chatbot-attachment-body span {
	color: var(--ft-chatbot-muted);
	font-size: 12px;
	line-height: 1.35;
	letter-spacing: 0;
}

#ft-chatbot-root .ft-chatbot-attachment-body a.ft-chatbot-attachment-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 32px;
	margin-top: 2px;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--ft-chatbot-accent) !important;
	color: #ffffff !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 12px !important;
	font-weight: 700;
	line-height: 1 !important;
	opacity: 1 !important;
	text-align: center !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	visibility: visible !important;
	white-space: nowrap !important;
}

#ft-chatbot-root .ft-chatbot-attachment-body a.ft-chatbot-attachment-link:hover,
#ft-chatbot-root .ft-chatbot-attachment-body a.ft-chatbot-attachment-link:focus-visible {
	background: var(--ft-chatbot-accent-dark) !important;
	outline: none;
}

.ft-chatbot-form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	background: #ffffff;
	border-top: 1px solid var(--ft-chatbot-border);
}

.ft-chatbot-form input {
	flex: 1;
	min-width: 0;
	height: 42px;
	border: 1px solid #c8d0d8;
	border-radius: 8px;
	padding: 0 12px;
	color: var(--ft-chatbot-text);
	font-size: 14px;
	letter-spacing: 0;
	outline: none;
}

.ft-chatbot-form input:focus {
	border-color: var(--ft-chatbot-accent);
	box-shadow: 0 0 0 2px rgba(114, 29, 39, 0.14);
}

.ft-chatbot-form button {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border: 0;
	border-radius: 8px;
	background: var(--ft-chatbot-accent);
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ft-chatbot-form button:hover,
.ft-chatbot-form button:focus-visible {
	background: var(--ft-chatbot-accent-dark);
	outline: none;
}

.ft-chatbot-form button:disabled,
.ft-chatbot-form input:disabled {
	opacity: 0.65;
	cursor: wait;
}

.ft-chatbot-form svg {
	width: 21px;
	height: 21px;
	fill: currentColor;
}

@media (min-width: 769px) {
	.ft-chatbot-hide-desktop {
		display: none;
	}
}

@media (max-width: 768px) {
	.ft-chatbot-hide-mobile {
		display: none;
	}
}

@media (max-width: 767px) {
	.ft-chatbot-root {
		--ft-wa-left-right: calc(30px + 10vw);
		--ft-wa-center-bottom: 40px;
		--ft-chatbot-gap: 12px;
	}

	.ft-chatbot-launcher-label {
		top: auto;
		bottom: 70px;
	}
}

@media (max-width: 480px) {
	.ft-chatbot-position-right {
		right: var(--ft-chatbot-current-right);
	}

	.ft-chatbot-position-left {
		left: min(var(--ft-chatbot-side), 132px);
	}

	.ft-chatbot-position-right .ft-chatbot-panel {
		right: calc(12px - var(--ft-chatbot-current-right));
		width: calc(100vw - 24px);
	}

	.ft-chatbot-panel {
		height: 64vh;
		max-height: 560px;
	}

	.ft-chatbot-launcher-label {
		font-size: 12px;
	}

	.ft-chatbot-header {
		padding: 13px 14px;
	}
}
