/* FR2 Botón WhatsApp — colores fijos con !important para que el tema no los cambie */

.fr2wa-fab {
	position: fixed !important;
	right: 18px;
	bottom: 90px;
	z-index: 99990;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 20px 10px 16px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #25D366 !important;
	color: #ffffff !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	text-transform: none !important;
	letter-spacing: 0 !important;
	transition: transform 0.15s ease;
}
.fr2wa-fab:hover { transform: translateY(-2px); background: #1EBE5A !important; }
.fr2wa-fab:focus-visible { outline: 3px solid #075E54; outline-offset: 3px; }
.fr2wa-fab-icono { flex: 0 0 auto; }
.fr2wa-prueba {
	background: #ffffff;
	color: #075E54;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 6px;
	border-radius: 6px;
}

.fr2wa-fondo {
	position: fixed;
	inset: 0;
	z-index: 99991;
	background: rgba(0, 0, 0, 0.45);
}

.fr2wa-panel {
	position: fixed;
	z-index: 99992;
	right: 18px;
	bottom: 150px;
	width: 360px;
	min-width: 320px;
	max-width: 40vw;
	box-sizing: border-box;
	padding: 18px;
	background: #ffffff;
	color: #1f2937;
	border-radius: 16px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
	font-family: inherit;
	text-align: left;
}
.fr2wa-panel[hidden], .fr2wa-fondo[hidden], .fr2wa-fuera[hidden] { display: none !important; }

.fr2wa-agarre { display: none; }

.fr2wa-cabecera {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}
.fr2wa-titulo {
	margin: 0 !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	color: #1f2937 !important;
	line-height: 1.3 !important;
}
.fr2wa-cerrar {
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #f3f4f6 !important;
	color: #374151 !important;
	font-size: 26px !important;
	line-height: 44px !important;
	cursor: pointer;
}
.fr2wa-cerrar:focus-visible { outline: 3px solid #25D366; }

.fr2wa-horario {
	margin: 0 0 12px !important;
	font-size: 14px !important;
	color: #4b5563 !important;
}
.fr2wa-fuera {
	margin: 0 0 12px !important;
	padding: 10px 12px;
	border-radius: 10px;
	background: #FEF3C7;
	color: #92400E !important;
	font-size: 14px !important;
	line-height: 1.4;
}

.fr2wa-opcion {
	display: flex !important;
	align-items: center;
	gap: 14px;
	min-height: 64px;
	margin-bottom: 10px;
	padding: 12px 14px;
	border: 2px solid #d1fae5 !important;
	border-radius: 12px;
	background: #f0fdf4 !important;
	color: #1f2937 !important;
	text-decoration: none !important;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.fr2wa-opcion:hover, .fr2wa-opcion:focus-visible {
	border-color: #25D366 !important;
	background: #dcfce7 !important;
	outline: none;
}
.fr2wa-opcion-icono { font-size: 26px; line-height: 1; }
.fr2wa-opcion-textos { display: flex; flex-direction: column; gap: 2px; }
.fr2wa-opcion-titulo { font-size: 16px; font-weight: 700; color: #065F46; }
.fr2wa-opcion-sub { font-size: 13px; color: #4b5563; }

.fr2wa-nota {
	margin: 6px 0 0 !important;
	font-size: 12px !important;
	color: #6b7280 !important;
	line-height: 1.4;
}

/* Botón "Soporte" en Mi cuenta → Pedidos */
.woocommerce-account .woocommerce-button.fr2wa_soporte,
.woocommerce-account a.button.fr2wa_soporte {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 20px !important;
	background: #25D366 !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	margin: 6px 0 0 0 !important;
	white-space: nowrap;
}
.woocommerce-account .woocommerce-button.fr2wa_soporte:hover,
.woocommerce-account a.button.fr2wa_soporte:hover {
	background: #1EBE5A !important;
}

/* Celular: el panel sale desde abajo (sheet) */
@media (max-width: 768px) {
	.fr2wa-fab {
		right: 12px;
		bottom: 80px;
		min-height: 46px;
		padding: 9px 16px 9px 12px !important;
		font-size: 15px !important;
	}
	.fr2wa-panel {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		max-height: 85vh;
		overflow-y: auto;
		padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
		border-radius: 18px 18px 0 0;
		transition: transform 0.2s ease;
	}
	.fr2wa-agarre {
		display: block;
		width: 44px;
		height: 5px;
		margin: 2px auto 10px;
		border-radius: 3px;
		background: #d1d5db;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fr2wa-fab, .fr2wa-panel, .fr2wa-opcion { transition: none; }
}