/* Chaos Gaso: avviso della scala, etichette sulle run, pulsante waiting list per run. */

.cl-gaso-notice {
	display: flex;
	align-items: center;
	gap: .5em;
	margin-top: 6px;
	padding-left: 3px;
	font-family: "Barlow Condensed Light", sans-serif;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	line-height: 1.1;
}
.cl-gaso-notice[hidden] { display: none; }
.cl-gaso-notice--limited { color: var(--dark-gray, #1B1B1B); }
.cl-gaso-notice--almost { color: var(--primary, #8100FC); }
.cl-gaso-notice--last { color: var(--secondary, #FF4C3A); }

.cl-gaso-dot {
	position: relative;
	flex: none;
	width: .7em;
	height: .7em;
	border-radius: 50%;
	background: currentColor;
}
.cl-gaso-notice--limited .cl-gaso-dot { background: none; border: 2px solid currentColor; }
.cl-gaso-notice--last .cl-gaso-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: currentColor;
	animation: cl-gaso-pulse 1.6s ease-out infinite;
}
@keyframes cl-gaso-pulse {
	0% { transform: scale(1); opacity: .7; }
	100% { transform: scale(2.8); opacity: 0; }
}

/* Etichette sulle run */
.cl-gaso-has-tag { position: relative; overflow: visible; }
.cl-gaso-tag {
	position: absolute;
	top: -10px;
	right: -6px;
	z-index: 1;
	padding: 4px 7px;
	border-radius: 999px;
	font-family: "Barlow Condensed Light", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: var(--white, #fffcec);
	pointer-events: none;
}
.cl-gaso-tag--almost { background: var(--primary, #8100FC); }
.cl-gaso-tag--last { background: var(--secondary, #FF4C3A); }
.cl-gaso-tag--out { background: var(--dark-gray, #1B1B1B); }
.wp-block-surecart-product-variant-pills .sc-pill-option__wrapper { overflow: visible; }

/* Pulsante waiting list: nascosto finché la run scelta non è esaurita */
body.cl-gaso form.wp-block-surecart-product-page:not(.cl-gaso-out) a[href*="chaosleague.org/waiting-list"],
body.cl-gaso form.wp-block-surecart-product-page:not(.cl-gaso-out) a[href*="chaosleague.org/lista-attesa"] {
	display: none !important;
}
body.cl-gaso form.cl-gaso-out .brxe-surecart-product-buy-button,
body.cl-gaso form.cl-gaso-out .wp-block-surecart-product-buy-button,
body.cl-gaso form.cl-gaso-out .wp-block-surecart-product-quantity {
	display: none !important;
}

/* Evento chiuso o in preiscrizione nella Suite: niente run da scegliere */
body.cl-gaso form.cl-gaso-blocked .wp-block-surecart-product-variant-pills,
body.cl-gaso form.cl-gaso-blocked .brxe-surecart-product-variant-pills {
	display: none !important;
}
/* In preiscrizione il pulsante è «Preiscriviti», non la waiting list del template */
body.cl-gaso form.cl-gaso-pre a[href*="chaosleague.org/waiting-list"],
body.cl-gaso form.cl-gaso-pre a[href*="chaosleague.org/lista-attesa"] {
	display: none !important;
}
.cl-gaso-blocked .cl-gaso-notice { margin-bottom: 10px; }

/* Pulsante di riserva, se nel template non c'è quello di Bricks */
.cl-gaso-wl {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: var(--space-m, 18px);
	border-radius: 100px;
	background: var(--secondary, #FF4C3A);
	color: var(--white, #fffcec);
	font-size: var(--text-l, 20px);
	line-height: 1;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .3s ease;
}
.cl-gaso-wl:hover,
.cl-gaso-wl:focus-visible { background: var(--dark-gray, #1B1B1B); color: var(--white, #fffcec); }

@media (prefers-reduced-motion: reduce) {
	.cl-gaso-notice--last .cl-gaso-dot::after { animation: none; }
}
