/* ==========================================================================
   InterFranca Connect — Chat Widget v2.0
   Design premium: gradientes, glassmorphism, animações fluídas
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Variáveis globais --- */
:root {
	--ifc-primary:       #DB002B;
	--ifc-primary-dark:  #a80021;
	--ifc-primary-light: #ff3d5c;
	--ifc-secondary:     #FFDA1B;
	--ifc-accent:        #FE7400;
	--ifc-bg-light:      #f7f8fc;
	--ifc-bg-mid:        #eef0f6;
	--ifc-text-dark:     #1a202c;
	--ifc-text-mid:      #4a5568;
	--ifc-text-light:    #ffffff;
	--ifc-border:        #e2e8f0;
	--ifc-shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
	--ifc-shadow:        0 10px 40px rgba(0,0,0,0.18);
	--ifc-shadow-lg:     0 20px 60px rgba(0,0,0,0.24);
	--ifc-radius:        16px;
	--ifc-radius-sm:     8px;
	--ifc-font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--ifc-transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--ifc-header-grad:   linear-gradient(135deg, var(--ifc-primary) 0%, #8B0000 100%);
	--ifc-pulse-color:   rgba(219, 0, 43, 0.4);
}

/* ==========================================================================
   WRAPPER / CONTENTOR
   ========================================================================== */
.ifc-chat-wrapper {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 999999;
	font-family: var(--ifc-font);
	font-size: 14px;
	color: var(--ifc-text-dark);
	line-height: 1.5;
}

/* Reset SVG herdado do tema WordPress — ESSENCIAL */
.ifc-chat-wrapper svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

/* Garantir que botões com SVG brancos ficam brancos */
.ifc-chat-trigger svg,
.ifc-btn-minimize svg,
.ifc-btn-send svg {
	color: #ffffff !important;
	stroke: #ffffff !important;
}

/* Botão back — seta escura visível sobre fundo claro */
.ifc-btn-back svg {
	color: #1a202c !important;
	stroke: #1a202c !important;
}


/* ==========================================================================
   BOTÃO FLUTUANTE (TRIGGER)
   ========================================================================== */
.ifc-chat-trigger {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--ifc-header-grad);
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow:
		0 4px 16px rgba(219, 0, 43, 0.5),
		0 0 0 0 var(--ifc-pulse-color);
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	bottom: 0;
	right: 0;
	padding: 0;
	transition: var(--ifc-transition);
	animation: ifc-pulse 3s infinite;
}

@keyframes ifc-pulse {
	0%   { box-shadow: 0 4px 16px rgba(219,0,43,0.5), 0 0 0 0   rgba(219,0,43,0.4); }
	70%  { box-shadow: 0 4px 16px rgba(219,0,43,0.3), 0 0 0 14px rgba(219,0,43,0); }
	100% { box-shadow: 0 4px 16px rgba(219,0,43,0.5), 0 0 0 0   rgba(219,0,43,0); }
}

.ifc-chat-wrapper.is-open .ifc-chat-trigger {
	animation: none;
	box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.ifc-chat-trigger:hover {
	transform: scale(1.08);
	box-shadow: 0 8px 24px rgba(219, 0, 43, 0.6);
}

.ifc-chat-trigger svg {
	width: 28px;
	height: 28px;
	transition: var(--ifc-transition);
}

/* Badge de mensagens não lidas */
.ifc-chat-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--ifc-secondary);
	color: #000;
	font-size: 10px;
	font-weight: 700;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	padding: 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
	animation: ifc-badge-pop 0.3s cubic-bezier(0.175,0.885,0.32,1.4);
}

@keyframes ifc-badge-pop {
	from { transform: scale(0); }
	to   { transform: scale(1); }
}

/* ==========================================================================
   JANELA DO CHAT
   ========================================================================== */
.ifc-chat-window {
	position: absolute;
	bottom: 80px;
	right: 0;
	width: 370px;
	height: 620px;
	max-height: calc(100dvh - 110px);
	background: #fff;
	border-radius: var(--ifc-radius);
	box-shadow: var(--ifc-shadow-lg);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(0,0,0,0.06);
	transform-origin: bottom right;
	transition:
		opacity 0.3s cubic-bezier(0.4,0,0.2,1),
		transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.ifc-chat-window.ifc-hidden {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.92) translateY(12px);
}

/* ==========================================================================
   CABEÇALHO (HEADER)
   ========================================================================== */
.ifc-chat-header {
	background: var(--ifc-header-grad);
	padding: 18px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
}

/* Efeito de textura subtil no header */
.ifc-chat-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 80% 20%, rgba(255,218,27,0.12) 0%, transparent 60%),
		radial-gradient(circle at 10% 80%, rgba(254,116,0,0.1) 0%, transparent 50%);
	pointer-events: none;
}

.ifc-header-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	position: relative;
	z-index: 1;
}

.ifc-company-name {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.2px;
}

.ifc-status {
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	color: rgba(255,255,255,0.85);
	font-weight: 500;
}

.ifc-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #a0aec0;
	flex-shrink: 0;
}

.ifc-online .ifc-dot {
	background: #4ade80;
	box-shadow: 0 0 0 2px rgba(74,222,128,0.3);
	animation: ifc-online-blink 2s ease infinite;
}

@keyframes ifc-online-blink {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.5; }
}

.ifc-header-actions {
	position: relative;
	z-index: 1;
}

.ifc-btn-minimize {
	background: rgba(255,255,255,0.22);
	border: 1.5px solid rgba(255,255,255,0.5);
	color: #fff;
	cursor: pointer;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--ifc-transition);
}

.ifc-btn-minimize:hover {
	background: rgba(255,255,255,0.35);
}

.ifc-btn-minimize svg {
	width: 18px;
	height: 18px;
	color: #ffffff;
	stroke: #ffffff;
}

/* ==========================================================================
   CORPO / VISTAS
   ========================================================================== */
.ifc-chat-body {
	flex: 1;
	background: var(--ifc-bg-light);
	overflow-y: auto;
	position: relative;
	scroll-behavior: smooth;
}

/* Scrollbar personalizada */
.ifc-chat-body::-webkit-scrollbar,
.ifc-chat-messages::-webkit-scrollbar {
	width: 4px;
}
.ifc-chat-body::-webkit-scrollbar-track,
.ifc-chat-messages::-webkit-scrollbar-track {
	background: transparent;
}
.ifc-chat-body::-webkit-scrollbar-thumb,
.ifc-chat-messages::-webkit-scrollbar-thumb {
	background: rgba(0,0,0,0.15);
	border-radius: 4px;
}

.ifc-view {
	padding: 20px;
	display: none;
	animation: ifc-view-in 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ifc-view.ifc-view-active {
	display: block;
}

@keyframes ifc-view-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   VISTA HOME — Boas-vindas + Quick Replies
   ========================================================================== */

/* Mensagem de boas-vindas */
.ifc-welcome-message {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
}

.ifc-avatar {
	width: 42px;
	height: 42px;
	background: var(--ifc-header-grad);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 10px rgba(219,0,43,0.3);
}

.ifc-avatar svg {
	width: 20px;
	height: 20px;
	color: #fff;
}

.ifc-bubble {
	background: #fff;
	padding: 12px 16px;
	border-radius: 4px 14px 14px 14px;
	box-shadow: var(--ifc-shadow-sm);
	border: 1px solid var(--ifc-border);
	position: relative;
}

.ifc-bubble::before {
	content: '';
	position: absolute;
	left: -6px;
	top: 10px;
	width: 12px;
	height: 12px;
	background: #fff;
	border-left: 1px solid var(--ifc-border);
	border-bottom: 1px solid var(--ifc-border);
	transform: rotate(45deg);
	clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.ifc-bubble p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ifc-text-dark);
}

@keyframes ifc-bubble-in {
	from { opacity: 0; transform: translateX(-8px) scale(0.96); }
	to   { opacity: 1; transform: translateX(0) scale(1); }
}

.ifc-bubble-animate {
	animation: ifc-bubble-in 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* --- Quick Replies --- */
.ifc-quick-replies {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-bottom: 16px;
}

.ifc-qr-btn {
	background: #fff;
	border: 1.5px solid var(--ifc-border);
	padding: 11px 14px;
	border-radius: 10px;
	cursor: pointer;
	text-align: left;
	font-size: 13px;
	font-weight: 500;
	font-family: var(--ifc-font);
	display: flex;
	align-items: center;
	gap: 10px;
	transition: var(--ifc-transition);
	color: var(--ifc-text-dark);
	width: 100%;
	position: relative;
	overflow: hidden;
}

.ifc-qr-btn::after {
	content: '›';
	position: absolute;
	right: 14px;
	font-size: 18px;
	color: #cbd5e0;
	transition: var(--ifc-transition);
}

.ifc-qr-btn svg {
	width: 17px;
	height: 17px;
	color: var(--ifc-primary) !important;
	stroke: var(--ifc-primary) !important;
	flex-shrink: 0;
}

.ifc-qr-btn:hover {
	border-color: var(--ifc-primary);
	background: linear-gradient(135deg, #fff5f6 0%, #fff 100%);
	transform: translateX(3px);
	box-shadow: 0 3px 12px rgba(219,0,43,0.12);
	color: var(--ifc-text-dark) !important;
}

.ifc-qr-btn:hover::after {
	right: 10px;
	color: var(--ifc-primary);
}

/* --- Caixa de texto na home --- */
.ifc-home-search {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.ifc-home-search input {
	flex: 1;
	padding: 11px 16px;
	border: 1.5px solid var(--ifc-border);
	border-radius: 24px;
	font-size: 13px;
	font-family: var(--ifc-font);
	outline: none;
	background: #fff;
	transition: var(--ifc-transition);
	color: var(--ifc-text-dark);
}

.ifc-home-search input::placeholder {
	color: #a0aec0;
}

.ifc-home-search input:focus {
	border-color: var(--ifc-primary);
	box-shadow: 0 0 0 3px rgba(219, 0, 43, 0.1);
}

.ifc-home-search button {
	background: var(--ifc-header-grad);
	color: #fff;
	border: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: var(--ifc-transition);
	box-shadow: 0 4px 10px rgba(219,0,43,0.3);
}

.ifc-home-search button:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 16px rgba(219,0,43,0.4);
}

.ifc-home-search button svg {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   CABEÇALHO DE SUBVISTA
   ========================================================================== */
.ifc-view-header {
	display: flex;
	align-items: center;
	margin-bottom: 18px;
	gap: 10px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ifc-border);
}

.ifc-view-header h5 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--ifc-text-dark);
}

.ifc-btn-back {
	background: rgba(0,0,0,0.06);
	border: 1.5px solid rgba(0,0,0,0.1);
	color: var(--ifc-text-dark);
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	flex-shrink: 0;
	transition: var(--ifc-transition);
}

.ifc-btn-back:hover {
	background: rgba(0,0,0,0.12);
}

.ifc-btn-back svg {
	width: 20px;
	height: 20px;
	color: #1a202c;
	stroke: #1a202c;
}

/* ==========================================================================
   PESQUISA DE LOJAS
   ========================================================================== */
.ifc-search-container {
	position: relative;
	margin-bottom: 14px;
}

.ifc-search-container input {
	width: 100%;
	padding: 11px 16px 11px 42px;
	border: 1.5px solid var(--ifc-border);
	border-radius: 12px;
	font-size: 13px;
	font-family: var(--ifc-font);
	outline: none;
	box-sizing: border-box;
	background: #fff;
	transition: var(--ifc-transition);
	color: var(--ifc-text-dark);
}

.ifc-search-container input:focus {
	border-color: var(--ifc-primary);
	box-shadow: 0 0 0 3px rgba(219,0,43,0.1);
}

.ifc-search-icon {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	width: 17px;
	height: 17px;
	color: #a0aec0;
	pointer-events: none;
}

/* Filtros de categoria */
.ifc-category-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.ifc-cat-btn {
	background: #fff;
	border: 1.5px solid var(--ifc-border);
	padding: 5px 13px;
	border-radius: 20px;
	font-size: 12px;
	font-family: var(--ifc-font);
	font-weight: 500;
	cursor: pointer;
	transition: var(--ifc-transition);
	color: var(--ifc-text-mid);
}

.ifc-cat-btn:hover {
	border-color: var(--ifc-primary);
	color: var(--ifc-primary);
}

.ifc-cat-btn.ifc-cat-active {
	background: var(--ifc-primary);
	color: #fff;
	border-color: var(--ifc-primary);
	box-shadow: 0 2px 8px rgba(219,0,43,0.25);
}

/* Resultados de lojas */
.ifc-stores-results {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: 16px;
}

.ifc-store-card {
	background: #fff;
	border: 1.5px solid var(--ifc-border);
	border-radius: 12px;
	padding: 12px;
	display: flex;
	gap: 13px;
	cursor: pointer;
	transition: var(--ifc-transition);
	align-items: center;
}

.ifc-store-card:hover {
	border-color: var(--ifc-primary);
	box-shadow: 0 6px 20px rgba(219,0,43,0.1);
	transform: translateY(-2px);
}

.ifc-store-logo {
	width: 58px;
	height: 58px;
	border-radius: 10px;
	object-fit: cover;
	border: 1px solid var(--ifc-border);
	flex-shrink: 0;
}

.ifc-store-logo-placeholder {
	width: 58px;
	height: 58px;
	border-radius: 10px;
	background: linear-gradient(135deg, #fff5f6 0%, #ffe0e5 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	flex-shrink: 0;
	border: 1px solid rgba(219,0,43,0.1);
}

.ifc-store-info {
	flex: 1;
	min-width: 0;
}

.ifc-store-info h6 {
	margin: 0 0 4px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--ifc-text-dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ifc-store-meta {
	font-size: 12px;
	color: var(--ifc-text-mid);
	margin: 0 0 2px 0;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Detalhes da loja */
.ifc-store-details-wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-bottom: 20px;
}

.ifc-store-details-header {
	text-align: center;
	padding: 20px 16px 16px;
	background: linear-gradient(to bottom, #fff5f6, #fff);
	border-radius: 12px;
	border: 1px solid rgba(219,0,43,0.08);
}

.ifc-store-details-header img {
	width: 80px;
	height: 80px;
	border-radius: 16px;
	object-fit: cover;
	margin-bottom: 10px;
	border: 2px solid var(--ifc-border);
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ifc-store-details-header h3 {
	margin: 0 0 6px 0;
	font-size: 18px;
	font-weight: 700;
}

.ifc-badge {
	display: inline-block;
	background: rgba(219,0,43,0.08);
	color: var(--ifc-primary);
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.ifc-store-details-body p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ifc-text-mid);
	margin: 0 0 12px 0;
}

.ifc-store-details-list {
	list-style: none;
	padding: 0;
	margin: 0;
	background: #fff;
	border-radius: 10px;
	border: 1px solid var(--ifc-border);
	overflow: hidden;
}

.ifc-store-details-list li {
	font-size: 13px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--ifc-border);
	display: flex;
	align-items: center;
	gap: 10px;
	transition: background 0.15s;
}

.ifc-store-details-list li:last-child { border-bottom: none; }
.ifc-store-details-list li:hover { background: var(--ifc-bg-light); }

.ifc-store-details-list li a {
	color: var(--ifc-text-dark);
	text-decoration: none;
	font-weight: 500;
}

.ifc-store-details-list li a:hover { color: var(--ifc-primary); }

.ifc-store-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}
.ifc-tag-pill {
	background: var(--ifc-bg-light);
	border: 1px solid var(--ifc-border);
	color: var(--ifc-text);
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.2px;
}

.ifc-store-horarios {
	margin-top: 20px;
	background: #fdfdfd;
	border: 1px solid var(--ifc-border);
	border-radius: 12px;
	padding: 16px;
}
.ifc-store-horarios h5 {
	margin: 0 0 12px 0;
	font-size: 13px;
	color: var(--ifc-text-dark);
	font-weight: 600;
}
.ifc-store-horarios ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ifc-store-horarios li {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--ifc-text);
	padding: 6px 0;
	border-bottom: 1px dashed var(--ifc-border);
}
.ifc-store-horarios li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.ifc-store-horarios li span:last-child {
	font-weight: 500;
	color: var(--ifc-text-dark);
}

.ifc-btn-whatsapp {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: linear-gradient(135deg, #25D366 0%, #1aad52 100%);
	color: #fff;
	text-decoration: none;
	padding: 13px 16px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 14px;
	font-family: var(--ifc-font);
	transition: var(--ifc-transition);
	margin-top: 10px;
	box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}

.ifc-btn-whatsapp:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(37,211,102,0.4);
	color: #fff;
}

.ifc-btn-whatsapp svg { width: 20px; height: 20px; }

/* ==========================================================================
   BOT & CHAT DE MENSAGENS
   ========================================================================== */

/* Vistas com flex (chat + bot) */
.ifc-view-flex {
	flex-direction: column;
	height: 100%;
	padding: 0;
}

.ifc-view-flex.ifc-view-active {
	display: flex !important;
}

#ifc-view-bot.ifc-view-active {
	display: flex !important;
	flex-direction: column;
	height: 100%;
	padding: 0;
}

.ifc-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--ifc-bg-light);
}

.ifc-msg {
	max-width: 82%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.5;
	word-wrap: break-word;
	animation: ifc-msg-in 0.2s ease;
}

@keyframes ifc-msg-in {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ifc-msg-visitor {
	align-self: flex-end;
	background: var(--ifc-header-grad);
	color: #fff;
	border-bottom-right-radius: 4px;
	box-shadow: 0 3px 10px rgba(219,0,43,0.25);
}

.ifc-msg-agent {
	align-self: flex-start;
	background: #fff;
	border: 1.5px solid var(--ifc-border);
	color: var(--ifc-text-dark);
	border-bottom-left-radius: 4px;
	box-shadow: var(--ifc-shadow-sm);
}

/* Typing Indicator */
.ifc-typing-indicator {
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 12px 16px;
	background: #fff;
	border: 1.5px solid var(--ifc-border);
	border-radius: 14px;
	border-bottom-left-radius: 4px;
	box-shadow: var(--ifc-shadow-sm);
	width: fit-content;
	margin: 0 16px 0;
}

.ifc-typing-indicator span {
	width: 7px;
	height: 7px;
	background: #cbd5e0;
	border-radius: 50%;
	animation: ifc-typing 1.3s infinite ease-in-out;
}

.ifc-typing-indicator span:nth-child(2) { animation-delay: 0.18s; }
.ifc-typing-indicator span:nth-child(3) { animation-delay: 0.36s; }

@keyframes ifc-typing {
	0%, 70%, 100% { transform: translateY(0);    background: #cbd5e0; }
	35%            { transform: translateY(-5px); background: var(--ifc-primary); }
}

/* Área de input */
.ifc-chat-input-area {
	display: flex;
	padding: 12px 14px;
	background: #fff;
	border-top: 1px solid var(--ifc-border);
	gap: 10px;
	align-items: center;
}

.ifc-chat-input-area input {
	flex: 1;
	padding: 10px 16px;
	border: 1.5px solid var(--ifc-border);
	border-radius: 22px;
	font-size: 13.5px;
	font-family: var(--ifc-font);
	outline: none;
	background: var(--ifc-bg-light);
	transition: var(--ifc-transition);
	color: var(--ifc-text-dark);
}

.ifc-chat-input-area input:focus {
	border-color: var(--ifc-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(219,0,43,0.1);
}

.ifc-btn-send {
	background: var(--ifc-header-grad);
	color: #ffffff;
	border: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: var(--ifc-transition);
	box-shadow: 0 3px 10px rgba(219,0,43,0.3);
}

.ifc-btn-send:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(219,0,43,0.4);
}

.ifc-btn-send svg {
	width: 18px;
	height: 18px;
	color: #ffffff !important;
	stroke: #ffffff !important;
	fill: none;
}

/* ==========================================================================
   FORMULÁRIOS (PRE-CHAT, LEADS)
   ========================================================================== */
.ifc-form {
	padding: 0;
}

.ifc-form-desc {
	font-size: 13.5px;
	color: var(--ifc-text-mid);
	margin-bottom: 16px;
	line-height: 1.6;
}

.ifc-form-group {
	margin-bottom: 16px;
}

.ifc-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #334155;
	letter-spacing: 0.1px;
}

.ifc-form-group input:not([type="radio"]):not([type="checkbox"]),
.ifc-form-group textarea,
.ifc-form-group select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 14px;
	font-family: var(--ifc-font);
	outline: none;
	box-sizing: border-box;
	background: #f8fafc;
	transition: all 0.3s ease;
	color: #0f172a;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.ifc-form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.ifc-form-group textarea:focus,
.ifc-form-group select:focus {
	border-color: var(--ifc-primary);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(219,0,43,0.1), inset 0 1px 2px rgba(0,0,0,0.01);
	transform: translateY(-1px);
}

.ifc-form-group input[type="radio"] {
	accent-color: var(--ifc-primary);
	width: 16px;
	height: 16px;
	margin: 0 6px 0 0;
	cursor: pointer;
	vertical-align: middle;
}

.ifc-form-group textarea {
	resize: vertical;
	min-height: 80px;
}

.ifc-btn-primary {
	width: 100%;
	background: var(--ifc-header-grad);
	color: #ffffff !important;
	border: none;
	padding: 13px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	font-family: var(--ifc-font);
	cursor: pointer;
	transition: var(--ifc-transition);
	box-shadow: 0 4px 14px rgba(219,0,43,0.3);
	margin-top: 8px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.25);
	letter-spacing: 0.2px;
}

.ifc-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(219,0,43,0.4);
}

.ifc-btn-primary:active {
	transform: translateY(0);
}

/* GDPR */
.ifc-gdpr-notice {
	background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 100%);
	border: 1px solid #c7d9f5;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 12px;
	color: #4a5568;
	margin-bottom: 16px;
	line-height: 1.55;
}

.ifc-gdpr-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 9px;
	font-weight: 500;
	cursor: pointer;
	line-height: 1.4;
}

.ifc-gdpr-check input[type="checkbox"] {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	margin-top: 1px;
	accent-color: var(--ifc-primary);
	cursor: pointer;
}

/* ==========================================================================
   VISTA "COMO CHEGAR" — Map Preview
   ========================================================================== */

#ifc-view-maps {
	display: flex;
	flex-direction: column;
}

.ifc-maps-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Map iframe container */
.ifc-map-preview-wrap {
	position: relative;
	width: 100%;
	flex: 1;
	min-height: 220px;
	overflow: hidden;
}

.ifc-map-embed {
	width: 100%;
	height: 100%;
	min-height: 220px;
	display: block;
	border: none;
	filter: saturate(0.85) contrast(1.05);
}

/* Overlay button pinned to bottom of map */
.ifc-map-overlay-btn {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.ifc-btn-open-maps {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	color: #1a5dc0 !important;
	text-decoration: none !important;
	padding: 10px 20px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 13.5px;
	font-family: var(--ifc-font);
	box-shadow: 0 4px 20px rgba(0,0,0,0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap;
	border: 2px solid rgba(66,133,244,0.25);
}

.ifc-btn-open-maps:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

/* Info row below the map */
.ifc-maps-info {
	background: #fff;
	padding: 14px 18px;
	border-top: 1px solid #eef0f6;
}

.ifc-maps-info-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ifc-maps-info-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.ifc-maps-info-row strong {
	display: block;
	font-size: 14px;
	color: #1e293b;
	font-weight: 700;
	margin-bottom: 2px;
}

.ifc-maps-info-row p {
	margin: 0;
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.5;
}

/* Legacy maps button (used in bot responses) */
.ifc-btn-maps {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: linear-gradient(135deg, #4285F4 0%, #1a5dc0 100%);
	color: #fff;
	text-decoration: none;
	padding: 13px 26px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 14px;
	font-family: var(--ifc-font);
	transition: var(--ifc-transition);
	margin-top: 6px;
	box-shadow: 0 4px 14px rgba(66,133,244,0.35);
}

.ifc-btn-maps:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(66,133,244,0.45);
	color: #fff;
}

.ifc-btn-maps svg { width: 18px; height: 18px; }


.ifc-bot-maps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 8px 0 4px 8px;
	font-size: 13px;
	padding: 9px 16px;
}

/* ==========================================================================
   VISTA DE SUCESSO
   ========================================================================== */
.ifc-success-wrap {
	text-align: center;
	padding: 44px 24px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.ifc-success-icon {
	font-size: 68px;
	filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
	animation: ifc-success-pop 0.5s cubic-bezier(0.175,0.885,0.32,1.4);
}

@keyframes ifc-success-pop {
	from { opacity: 0; transform: scale(0.4); }
	to   { opacity: 1; transform: scale(1); }
}

.ifc-success-wrap h3 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--ifc-text-dark);
}

.ifc-success-wrap p {
	font-size: 14px;
	color: var(--ifc-text-mid);
	margin: 0;
	max-width: 260px;
	line-height: 1.7;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.ifc-chat-footer {
	background: #fff;
	padding: 10px 16px;
	text-align: center;
	font-size: 11px;
	color: #cbd5e0;
	border-top: 1px solid var(--ifc-border);
	flex-shrink: 0;
	letter-spacing: 0.2px;
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */
.ifc-loading {
	text-align: center;
	color: #a0aec0;
	font-size: 13px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.ifc-loading::before {
	content: '';
	width: 28px;
	height: 28px;
	border: 3px solid var(--ifc-border);
	border-top-color: var(--ifc-primary);
	border-radius: 50%;
	animation: ifc-spin 0.7s linear infinite;
}

@keyframes ifc-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   UTILITÁRIOS
   ========================================================================== */
.ifc-hidden { display: none !important; }

/* ==========================================================================
   BACK-TO-TOP DOS TEMAS EXTERNOS (empurrar para cima)
   ========================================================================== */
#back-to-top, .back-to-top, #ast-scroll-top, #scroll-up,
.scroll-top, .go-top, #go-top, .wpex-scroll-top, #wpex-scroll-top,
.et_pb_scroll_top, #scroll-top, .generate-back-to-top,
.fusion-top-top-link, #scroll-top-link, a[href="#top"], a.back-to-top, .ast-scroll-top {
	bottom: 104px !important;
	z-index: 999998 !important;
}

/* ==========================================================================
   RESPONSIVE — MOBILE
   ========================================================================== */
@media (max-width: 768px) {
	.ifc-chat-wrapper {
		bottom: 16px;
		right: 16px;
	}

	.ifc-chat-wrapper.is-open {
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999999;
	}

	.ifc-chat-window {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
		border: none;
		z-index: 999999;
		display: flex;
		flex-direction: column;
	}

	.ifc-chat-wrapper:not(.is-open) .ifc-chat-trigger {
		display: flex;
	}

	.ifc-chat-wrapper.is-open .ifc-chat-trigger {
		display: none !important;
	}
}

@media (max-width: 380px) {
	.ifc-qr-btn { padding: 10px 12px; font-size: 12px; }
	.ifc-company-name { font-size: 15px; }
}

/* ==========================================================================
   VISTA: Horário, Estacionamento e Contactos — Design Premium
   ========================================================================== */

.ifch-scroll-area {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px 20px;
	background: #f4f6fb;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ifch-scroll-area::-webkit-scrollbar { width: 4px; }
.ifch-scroll-area::-webkit-scrollbar-thumb { background: #d0d5e2; border-radius: 4px; }

/* Card base */
.ifch-card {
	background: #ffffff;
	border-radius: 14px;
	padding: 16px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.07);
	border: 1px solid rgba(0,0,0,0.05);
}

/* Card header row */
.ifch-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.ifch-card-title {
	font-size: 13.5px;
	font-weight: 700;
	color: #1e293b;
	letter-spacing: -0.2px;
}

/* Colored icon badges */
.ifch-icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ifch-icon-blue   { background: #eff6ff; color: #3b82f6; }
.ifch-icon-amber  { background: #fffbeb; color: #f59e0b; }
.ifch-icon-purple { background: #f5f3ff; color: #8b5cf6; }
.ifch-icon-green  { background: #f0fdf4; color: #22c55e; }

/* Horário text */
.ifch-hours-text {
	font-size: 13.5px;
	color: #475569;
	line-height: 1.7;
	margin: 0;
}

/* Info rows (estacionamento) */
.ifch-info-rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ifch-info-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border-radius: 9px;
	padding: 9px 12px;
}
.ifch-info-label {
	font-size: 13px;
	color: #64748b;
	font-weight: 500;
}
.ifch-info-value {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
}
.ifch-badge-green {
	background: #dcfce7;
	color: #15803d;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
}

/* Social / contact buttons grid */
.ifch-socials-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.ifch-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 8px;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	border: none;
}
.ifch-social-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0,0,0,0.15);
	opacity: 0.92;
}

.ifch-wa    { background: #25d366; color: #fff !important; }
.ifch-phone { background: #f1f5f9; color: #334155 !important; border: 1px solid #e2e8f0; }
.ifch-ig    { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); color: #fff !important; }
.ifch-fb    { background: #1877f2; color: #fff !important; }

/* Empty state */
.ifch-empty {
	font-size: 13px;
	color: #94a3b8;
	margin: 0;
	text-align: center;
	padding: 8px 0 4px;
}

/* Ensure view fills height properly */
#ifc-view-horario {
	display: flex;
	flex-direction: column;
}
