/**
 * Push Notifications (VT) widget.
 *
 * Structural only — colours, typography and spacing are Elementor controls, so
 * nothing here fights the site's own design.
 */

.vt-push-widget {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.vt-push-heading {
	font-weight: 600;
}

.vt-push-text {
	margin: 0;
}

.vt-push-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	border: none;
	padding: 10px 20px;
	font: inherit;
	line-height: 1.2;
	border-radius: 6px;
	background: #1d307c;
	color: #fff;
}

.vt-push-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

/* While the client resolves browser support and subscription state, the button
   is hidden by the `hidden` attribute rather than being shown and then swapped,
   which would flash the wrong label. */
.vt-push-widget.is-checking .vt-push-btn {
	visibility: hidden;
}

.vt-push-widget.is-unsupported {
	display: none;
}

.vt-push-widget.is-blocked .vt-push-btn,
.vt-push-widget.is-ios .vt-push-btn {
	display: none;
}

.vt-push-widget.is-busy .vt-push-btn {
	opacity: 0.6;
	pointer-events: none;
}

.vt-push-optin {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.95em;
}

.vt-push-widget.is-checking .vt-push-optin {
	/* Hidden only until the real state is known. It stays available after
	   subscribing: announcements are a preference, and hiding it meant anyone
	   already subscribed had no way to opt in without turning everything off
	   and on again. */
	visibility: hidden;
}
