/* Phone bottom bar (optional, per ad). Printed at the end of the page. */
.tsg-adbar {
	position: fixed;
	right: 0.75rem;
	bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
	left: 0.75rem;
	z-index: 40;
	max-width: 32rem;
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 56px;
	padding: 0 0.25rem 0 1rem;
	border-radius: 999px;
	background: var(--wp--preset--color--ink, #0b1220);
	color: #fff;
	box-shadow: 0 10px 30px rgb(11 18 32 / 0.3);
	transform: translateY(0);
}

.tsg-adbar[hidden] {
	display: none;
}

@media (min-width: 1240px) {
	.tsg-adbar {
		display: none !important;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.tsg-adbar {
		opacity: 0;
		transform: translateY(12px);
		transition: opacity 200ms ease, transform 200ms ease;
	}

	.tsg-adbar.is-in {
		opacity: 1;
		transform: translateY(0);
	}
}

.tsg-adbar__link {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	min-height: 56px;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}

.tsg-adbar__text {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.tsg-adbar__label {
	flex: none;
	color: #a9b4c6;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tsg-adbar__go {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--wp--preset--color--signal-lime, #c8ff4d);
	color: var(--wp--preset--color--ink, #0b1220);
}

.tsg-adbar__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #a9b4c6;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.tsg-adbar__close:hover,
.tsg-adbar__close:focus-visible {
	color: #fff;
}

.tsg-adbar__link:focus-visible,
.tsg-adbar__close:focus-visible {
	outline: 3px solid var(--wp--preset--color--signal-lime, #c8ff4d);
	outline-offset: 2px;
	border-radius: 999px;
}

.tsg-ads-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
