/**
 * U28 lightbox.
 *
 * Namespaced with .lps-u28- so nothing here can collide with the theme. Only
 * what a modal genuinely needs is styled; buttons stay deliberately plain so
 * the theme can restyle them via .lps-u28-button.
 */

.lps-u28-lightbox {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .7);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
	z-index: 99999;
}

.lps-u28-lightbox.is-active {
	opacity: 1;
	pointer-events: auto;
}

.lps-u28-lightbox__content {
	position: relative;
	width: 90%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 0 20px rgba(0, 0, 0, .3);
	text-align: center;
}

@media (max-width: 640px) {
	.lps-u28-lightbox__content {
		padding: 30px 20px;
	}
}

.lps-u28-lightbox__close {
	position: absolute;
	top: 6px;
	right: 14px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: inherit;
	cursor: pointer;
}

.lps-u28-lightbox__heading {
	/* Keeps a long heading clear of the close button. */
	padding: 0 30px;
	margin: 0 0 30px;
}

.lps-u28-lightbox__text p {
	margin: 0 0 1em;
}

.lps-u28-check__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	column-gap: 15px;
	row-gap: 10px;
}

.lps-u28-check__row input[type="date"] {
	max-width: 100%;
}

.lps-u28-check__submit {
	border: 0;
	background: none;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
}

.lps-u28-check__submit:hover {
	text-decoration: none;
}

.lps-u28-result {
	margin-top: 30px;
}

.lps-u28-result p {
	margin: 0 0 15px;
}

.lps-u28-error {
	color: #b32d2e;
}

.lps-u28-tickets {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Neutral on purpose — override in the theme to match its own buttons. */
.lps-u28-button {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	text-decoration: none;
	cursor: pointer;
}

.lps-u28-button--disabled {
	opacity: .5;
	cursor: default;
}

.lps-u28-button svg {
	flex: none;
}
