/* Listas de Precio - frontend */
.ldp-hidden {
	display: none !important;
}

.ldp-reg-field .ldp-choice {
	display: block;
	margin: 4px 0;
	font-weight: normal;
}

.ldp-reg-field .ldp-choice input {
	margin-right: 6px;
}

.ldp-reg-field textarea.ldp-input {
	min-height: 90px;
}

.ldp-file-help {
	opacity: 0.75;
}

.ldp-checkout-registration {
	margin-top: 1em;
}

/* Tiered prices and information tables */
.ldp-tiers-table,
.ldp-info-table {
	width: 100%;
	max-width: 480px;
	margin: 1.25em 0;
	border-collapse: collapse;
	font-size: 0.95em;
}

.ldp-tiers-table th,
.ldp-tiers-table td,
.ldp-info-table th,
.ldp-info-table td {
	padding: 8px 12px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	text-align: left;
}

.ldp-tiers-table thead th {
	background: rgba(0, 0, 0, 0.04);
	font-weight: 600;
}

.ldp-info-table th {
	width: 45%;
	font-weight: 600;
}

.ldp-tiers-clickable tbody tr[data-qty] {
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ldp-tiers-clickable tbody tr[data-qty]:hover,
.ldp-tiers-clickable tbody tr.ldp-selected {
	background: rgba(0, 0, 0, 0.05);
}

.ldp-hidden-price,
.ldp-login-to-view {
	font-weight: 600;
}

.ldp-application-pending,
.ldp-already-b2b,
.ldp-already-logged {
	margin: 1em 0;
}

.ldp-order-fields ul {
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}

/* Price list channels ("Sin sesión" access) */
.ldp-canal-cambiar .ldp-canal-link + .ldp-canal-link {
	margin-left: 0.75em;
}

.ldp-canal-cambiar .ldp-canal-activo {
	font-weight: 700;
	text-decoration: none;
	pointer-events: none;
}

/*
 * Switch between two channels ([ldp_canal_cambiar estilo="switch"] and the menu link #ldp-canal).
 * Sizes in em, so it follows the font size of the menu. By default everything uses the text
 * color of the menu, so both states have the same contrast as the menu itself.
 * Variables: --ldp-switch-activo, --ldp-switch-fondo, --ldp-switch-perilla, --ldp-switch-texto.
 */
.ldp-canal-switch {
	display: inline-flex;
	align-items: center;
	color: var(--ldp-switch-texto, inherit);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.ldp-canal-switch:hover,
.ldp-canal-switch:focus,
.ldp-canal-switch:active {
	color: var(--ldp-switch-texto, inherit);
	text-decoration: none;
}

.ldp-canal-switch:focus-visible {
	outline: 2px solid var(--ldp-switch-activo, currentColor);
	outline-offset: 0.25em;
	border-radius: 0.25em;
}

/* inline-block: the switch keeps its shape even if the theme makes menu links display: block */
.ldp-canal-switch-rotulo {
	display: inline-block;
	vertical-align: middle;
	text-decoration: none;
}

/* The active side */
.ldp-canal-switch[aria-checked="false"] .ldp-canal-switch-izquierda,
.ldp-canal-switch[aria-checked="true"] .ldp-canal-switch-derecha {
	color: var(--ldp-switch-activo, currentColor);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 0.125em;
	text-underline-offset: 0.3em;
}

.ldp-canal-switch-pista {
	position: relative;
	display: inline-block;
	flex: none;
	vertical-align: middle;
	box-sizing: border-box;
	margin: 0 0.5em;
	width: 2.5em;
	height: 1.375em;
	border: 0.125em solid var(--ldp-switch-activo, currentColor);
	border-radius: 1em;
	background: var(--ldp-switch-fondo, transparent);
}

.ldp-canal-switch-perilla {
	position: absolute;
	top: 0.1875em;
	left: 0.1875em;
	width: 0.75em;
	height: 0.75em;
	border-radius: 50%;
	background: var(--ldp-switch-perilla, var(--ldp-switch-activo, currentColor));
	transition: transform 0.2s ease;
}

.ldp-canal-switch[aria-checked="true"] .ldp-canal-switch-perilla {
	transform: translateX(1.125em);
}

.ldp-canal-switch-deshabilitado {
	cursor: not-allowed;
	opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
	.ldp-canal-switch-perilla {
		transition: none;
	}
}

/*
 * Window to choose the channel. Variables: --ldp-ventana-fondo (layer), --ldp-ventana-ancho (box
 * width), --ldp-ventana-caja (box background), --ldp-ventana-texto, --ldp-ventana-titulo (title
 * size), --ldp-ventana-espacio (padding), --ldp-ventana-radio, --ldp-ventana-z.
 */
html.ldp-ventana-abierta,
html.ldp-ventana-abierta body,
body.ldp-con-ventana {
	overflow: hidden !important;
}

.ldp-ventana-canal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: var(--ldp-ventana-z, 99999);
	display: flex;
	box-sizing: border-box;
	padding: 1rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--ldp-ventana-fondo, rgba(0, 0, 0, 0.75));
}

.ldp-ventana-canal-caja {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--ldp-ventana-ancho, 30rem);
	margin: auto;
	padding: var(--ldp-ventana-espacio, 2.5rem 2rem);
	border-radius: var(--ldp-ventana-radio, 4px);
	background: var(--ldp-ventana-caja, #fff);
	color: var(--ldp-ventana-texto, #1a1a1a);
	text-align: center;
}

.ldp-ventana-canal-bloque .ldp-ventana-canal-caja {
	text-align: start;
}

.ldp-ventana-canal-caja:focus {
	outline: none;
}

.ldp-ventana-canal-titulo {
	margin: 0 0 1.25em;
	color: inherit;
	font-size: var(--ldp-ventana-titulo, 1.5rem);
	line-height: 1.25;
}

.ldp-ventana-canal-opciones {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.ldp-ventana-canal-opcion {
	flex: 1 1 10rem;
	box-sizing: border-box;
	padding: 0.85em 1.5em;
	border: 2px solid var(--ldp-ventana-texto, #1a1a1a);
	background: var(--ldp-ventana-texto, #1a1a1a);
	color: var(--ldp-ventana-caja, #fff);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.ldp-ventana-canal-opcion:hover,
.ldp-ventana-canal-opcion:focus {
	background: var(--ldp-ventana-caja, #fff);
	color: var(--ldp-ventana-texto, #1a1a1a);
	text-decoration: none;
}

.ldp-ventana-canal-opcion:focus-visible {
	outline: 2px solid var(--ldp-ventana-texto, #1a1a1a);
	outline-offset: 3px;
}
