/**
 * PXS Instant Wins Elementor widget — base layout (overridden by Elementor controls).
 */

.pxs-iw {
	width: 100%;
	position: relative;
}

.pxs-iw-heading {
	margin: 0 0 1rem;
}

.pxs-iw-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
}

.pxs-iw-card.pxs-iw-card--hidden {
	display: none !important;
}

.pxs-iw-show-more-wrap {
	display: flex;
	width: 100%;
	justify-content: center;
}

.pxs-iw-show-more {
	display: inline-block;
	margin: 0;
	padding: 0.5em 1em;
	cursor: pointer;
	font: inherit;
	line-height: 1.3;
	box-sizing: border-box;
	border-style: solid;
	border-width: 0;
	background: transparent;
	color: inherit;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.pxs-iw-show-more[hidden] {
	display: none !important;
}

.pxs-iw-card {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	text-align: left;
	box-sizing: border-box;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.pxs-iw-card:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.pxs-iw-card-inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	box-sizing: border-box;
}

.pxs-iw--hide-thumb .pxs-iw-card-media {
	display: none;
}

.pxs-iw--hide-thumb .pxs-iw-card-inner {
	display: block;
}

.pxs-iw-card-media {
	flex-shrink: 0;
	line-height: 0;
}

.pxs-iw-card-media img {
	display: block;
	max-width: 100%;
	height: auto;
	object-fit: cover;
}

.pxs-iw-card-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pxs-iw-card-title {
	display: block;
	font-weight: 700;
	line-height: 1.25;
}

.pxs-iw-card-sub {
	display: block;
	font-size: 0.9em;
	opacity: 0.85;
	line-height: 1.3;
}

/* Dialog — layout tokens on .pxs-iw-dialog-panel: --pxs-iw-popup-grid-cols, --pxs-iw-popup-grid-gap */

.pxs-iw-dialog {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.pxs-iw-dialog[hidden] {
	display: none !important;
}

.pxs-iw-dialog-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	/* ~50% of a strong modal blur; Elementor “Overlay backdrop blur” overrides */
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.pxs-iw-dialog-panel {
	--pxs-iw-popup-grid-cols: 4;
	--pxs-iw-popup-grid-gap: 12px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 720px;
	max-height: min(90vh, 640px);
	overflow: hidden;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	padding: 20px 20px 16px;
	box-sizing: border-box;
}

.pxs-iw-dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	flex-shrink: 0;
	margin-bottom: 14px;
}

.pxs-iw-dialog-title {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.pxs-iw-dialog-close {
	position: static;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	margin: -4px -4px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
	color: inherit;
}

.pxs-iw-dialog-close:hover {
	background: rgba(0, 0, 0, 0.06);
}

.pxs-iw-dialog-search-wrap {
	flex-shrink: 0;
	margin-bottom: 14px;
}

.pxs-iw-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pxs-iw-dialog-search-label:not(.pxs-iw-sr-only) {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 600;
}

.pxs-iw-dialog-search {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font: inherit;
}

.pxs-iw-dialog-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-right: 2px;
}

.pxs-iw-dialog-tickets-heading {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 600;
}

.pxs-iw-dialog-tickets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--pxs-iw-popup-grid-cols, 4), minmax(0, 1fr));
	gap: var(--pxs-iw-popup-grid-gap, 12px);
	align-content: start;
}

@media (max-width: 600px) {
	.pxs-iw-dialog-panel {
		--pxs-iw-popup-grid-cols: 2;
	}
}

.pxs-iw-ticket-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 8px;
	padding: 10px 8px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	box-sizing: border-box;
	min-width: 0;
	text-align: center;
}

.pxs-iw-ticket-num {
	display: block;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.pxs-iw-ticket-name {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 8px 10px;
	border-radius: 6px;
	background-color: transparent;
	font-weight: 600;
	line-height: 1.25;
	color: #0f172a;
	word-break: break-word;
	text-align: center;
}

.pxs-iw-ticket-available-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: #e63946;
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: default;
	pointer-events: none;
}

.pxs-iw-placeholder {
	margin: 0;
	padding: 12px;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	color: #64748b;
}
