/* ==========================================================================
   ReservaMe Reservar — Estilos del botón flotante y del globo de fallback
   ========================================================================== */

:root {
	--rmc-bg: #161412;
	--rmc-surface: #211b16;
	--rmc-button: #393430;
	--rmc-text: #efe4d7;
	--rmc-text-muted: #d6b79e;
	--rmc-border: #6a5648;
	--rmc-accent: #c3a184;
}

/* -------------------------------------------------------------------------
   Botón flotante (deep link a la app)
   ------------------------------------------------------------------------- */
.rmc-toggle {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99990;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--rmc-button);
	color: var(--rmc-text);
	text-decoration: none;
	border: 1px solid var(--rmc-border);
	border-radius: 50px;
	padding: 5px 15px 5px 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
	transition:
		background 0.2s,
		transform 0.2s,
		border-color 0.2s;
}

.rmc-toggle:hover,
.rmc-toggle:focus {
	background: var(--rmc-surface);
	border-color: var(--rmc-accent);
	color: var(--rmc-text);
	transform: translateY(-2px);
}

.rmc-toggle:focus-visible {
	outline: 2px solid var(--rmc-accent);
	outline-offset: 2px;
}

.rmc-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	flex-shrink: 0;
}

.rmc-toggle-icon img {
	width: 100%;
	height: 100%;
	display: block;
}

/* -------------------------------------------------------------------------
   Globo de fallback (se muestra si el deep link no abrió la app)
   ------------------------------------------------------------------------- */
.rmc-bubble {
	position: fixed;
	bottom: 95px;
	right: 24px;
	z-index: 99989;
	box-sizing: border-box;
	width: 350px;
	max-width: 100%;
	background: var(--rmc-surface);
	color: var(--rmc-text);
	border: 1px solid var(--rmc-border);
	border-radius: 16px;
	padding: 14px 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.4s ease,
		transform 0.4s ease;
}

.rmc-bubble.rmc-bubble-visible {
	opacity: 1;
	transform: translateY(0);
}

.rmc-bubble[hidden] {
	display: none;
}

/* -------------------------------------------------------------------------
   Overlay oscuro de fondo
   ------------------------------------------------------------------------- */
.rmc-overlay {
	position: fixed;
	inset: 0;
	z-index: 99988;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.rmc-overlay.rmc-overlay-visible {
	opacity: 1;
	visibility: visible;
}

.rmc-bubble-body {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.rmc-bubble-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rmc-text);
}

.rmc-bubble-content {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--rmc-text-muted);
	min-height: 1.4em;
}

.rmc-bubble-downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rmc-bubble-downloads[hidden] {
	display: none;
}

.rmc-bubble-whatsapp {
	display: flex;
	margin-top: 12px;
	flex-direction: column;
	gap: 8px;
}

.rmc-bubble-whatsapp[hidden] {
	display: none;
}

.rmc-bubble-whatsapp-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--rmc-text-muted);
}

.rmc-download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	gap: 6px;
	background: var(--rmc-button);
	color: var(--rmc-text);
	border: 1px solid var(--rmc-border);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.rmc-download-btn[hidden] {
	display: none;
}

.rmc-download-btn:focus-visible {
	outline: 2px solid var(--rmc-accent);
	outline-offset: 2px;
}

.rmc-download-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.rmc-download-icon img {
	width: 100%;
	height: 100%;
	display: block;
}

/*
 * Override específico y con especificidad reforzada para neutralizar
 * cualquier hover/focus heredado de estilos globales del tema/WordPress
 * sobre el botón de cerrar del globo. Debe permanecer visualmente idéntico
 * en normal, hover y focus (sin fondo, sin transform, sin sombra); solo
 * focus-visible mantiene el contorno accesible.
 */
.rmc-bubble .rmc-bubble-close,
.rmc-bubble .rmc-bubble-close:hover,
.rmc-bubble .rmc-bubble-close:focus,
.rmc-bubble .rmc-bubble-close:active {
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	background-color: transparent;
	background-image: none;
	border: none;
	box-shadow: none;
	transform: none;
	color: var(--rmc-text-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
	flex-shrink: 0;
	border-radius: 4px;
	transition: none;
	outline: none;
}

.rmc-bubble .rmc-bubble-close:focus-visible {
	outline: 2px solid var(--rmc-accent);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.rmc-toggle {
		bottom: 16px;
		right: 16px;
		padding: 5px 15px 5px 10px;
	}

	.rmc-bubble {
		bottom: 95px;
		left: 16px;
		right: 16px;
		width: auto;
	}

	.rmc-download-btn {
		flex: 1 1 100%;
	}

	.rmc-download-icon {
		width: 15px;
		height: 15px;
	}
}

/* -------------------------------------------------------------------------
   Admin page
   ------------------------------------------------------------------------- */
.wrap h1 {
	margin-bottom: 16px;
}
.wrap p {
	margin-bottom: 20px;
}
.form-table th {
	width: 220px;
}
