/* ThinkSpin – stile di base, sovrascrivibile da Elementor o dal tema. */
.thinkspin {
	--ts-h: 352px;
	--ts-radius: 12px;
	--ts-fg: inherit;
	--ts-muted: rgba(127, 127, 127, 0.9);
	--ts-line: rgba(127, 127, 127, 0.25);
	--ts-btn-bg: transparent;
	--ts-btn-fg: inherit;
	--ts-btn-bg-hover: currentColor;
	width: 100%;
	color: var(--ts-fg);
}
.thinkspin__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 14px;
}
.thinkspin__now {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	min-width: 0;
}
.thinkspin__label,
.thinkspin__type {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ts-muted);
}
.thinkspin__type:not(:empty)::before { content: "· "; }
.thinkspin__title {
	flex-basis: 100%;
	font-size: 1.15em;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.thinkspin__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.thinkspin__open {
	font-size: 13px;
	color: var(--ts-muted);
	text-decoration: none;
	border-bottom: 1px solid var(--ts-line);
	padding-bottom: 1px;
}
.thinkspin__open:hover { color: var(--ts-fg); }
.thinkspin__next {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font: inherit;
	font-size: 13px;
	line-height: 1;
	color: var(--ts-btn-fg);
	background: var(--ts-btn-bg);
	border: 1px solid var(--ts-line);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.thinkspin__next:hover,
.thinkspin__next:focus-visible { border-color: currentColor; }
.thinkspin__next:active .thinkspin__next-icon { transform: rotate(180deg); }
.thinkspin__next-icon { display: inline-block; transition: transform .35s ease; font-size: 15px; }
.thinkspin.is-loading .thinkspin__next-icon { animation: thinkspin-spin 1s linear infinite; }
@keyframes thinkspin-spin { to { transform: rotate(360deg); } }

.thinkspin__stage {
	position: relative;
	height: var(--ts-h);
	border-radius: var(--ts-radius);
	overflow: hidden;
	background: rgba(127, 127, 127, 0.08);
}
.thinkspin__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--ts-radius);
	transition: opacity .3s ease;
}
.thinkspin__stage noscript iframe { width: 100%; height: 100%; border: 0; }
.thinkspin__noscript {
	margin: 0;
	padding: 16px 18px;
	font-size: 14px;
	line-height: 1.45;
}

.thinkspin__consent { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; }
.thinkspin__consent[hidden] { display: none; }
.thinkspin__consent-cover {
	position: absolute; inset: 0;
	background: #111 center / cover no-repeat;
	filter: blur(18px) brightness(.45);
	transform: scale(1.15);
}
.thinkspin__consent-body { position: relative; padding: 24px; color: #f4f4f5; max-width: 560px; }
.thinkspin__consent-title { margin: 0 0 6px; font-size: 1.2em; }
.thinkspin__consent-text { margin: 0 0 14px; font-size: 13px; opacity: .8; }
.thinkspin__consent-btn {
	padding: 10px 18px; font: inherit; font-size: 13px; cursor: pointer;
	color: #0a0a0b; background: #f4f4f5; border: 0; border-radius: 4px;
}
.thinkspin--empty { padding: 14px 16px; border: 1px dashed currentColor; font-size: 14px; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
	.thinkspin__frame, .thinkspin__next, .thinkspin__next-icon { transition: none; animation: none !important; }
}
