/* [calculadora_poker_modal]: botón y ventana de la calculadora
 *
 * Ojo: el kit de Elementor de la web pinta todos los botones (".elementor-kit-6 button":
 * texto blanco y degradado), con más especificidad que una clase sola. Por eso los
 * selectores van reforzados (body … .x.x) y los colores con !important.
 */

body .cp-modal-btn.cp-modal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 20px;
	border: 2px solid #0067fe !important;
	border-radius: 26px;
	background: #ffffff none !important;
	color: #0067fe !important;
	font-family: Inter, Poppins, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 103, 254, 0.12);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

body .cp-modal-btn.cp-modal-btn:hover,
body .cp-modal-btn.cp-modal-btn:focus-visible,
body .cp-modal-btn.cp-modal-btn:active {
	background: #0067fe none !important;
	color: #ffffff !important;
	border-color: #0067fe !important;
}

body .cp-modal-btn.cp-modal-btn:focus-visible {
	outline: 3px solid rgba(0, 103, 254, 0.35);
	outline-offset: 2px;
}

.cp-modal-btn svg {
	flex: 0 0 auto;
}

html.cp-modal-abierto {
	overflow: hidden;
}

.cp-modal {
	width: min(980px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: #f5f5f7;
	color: #1c1c1e;
	box-shadow: 0 30px 80px rgba(0, 20, 60, 0.35);
	overflow: hidden;
	flex-direction: column;
}

.cp-modal[open] {
	display: flex;
}

.cp-modal::backdrop {
	background: rgba(0, 18, 48, 0.6);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.cp-modal__head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 14px 14px 22px;
	background: #0067fe;
	color: #fff;
}

.cp-modal .cp-modal__title {
	margin: 0;
	font-family: Poppins, Inter, system-ui, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

body .cp-modal .cp-modal__close.cp-modal__close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15) none !important;
	color: #fff !important;
	cursor: pointer;
}

body .cp-modal .cp-modal__close.cp-modal__close:hover,
body .cp-modal .cp-modal__close.cp-modal__close:focus-visible {
	background: rgba(255, 255, 255, 0.28) none !important;
}

.cp-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 12px;
}

.cp-modal__cargando,
.cp-modal__error {
	margin: 24px 0;
	text-align: center;
	color: #5f6b7a;
	font-size: 15px;
}

.cp-modal.is-lista .cp-modal__cargando {
	display: none;
}

.cp-modal__error {
	color: #b42318;
}

.cp-modal .calcpoker {
	margin: 0;
}

/* Móvil: a pantalla completa */
@media (max-width: 767px) {
	.cp-modal {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		border-radius: 0;
	}

	.cp-modal__head {
		padding-top: calc(12px + env(safe-area-inset-top, 0px));
	}

	.cp-modal__body {
		padding: 8px 4px calc(16px + env(safe-area-inset-bottom, 0px));
	}

	body .cp-modal-btn.cp-modal-btn {
		min-height: 54px;
		padding: 12px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .cp-modal-btn.cp-modal-btn {
		transition: none;
	}
}
