/* Men-tal Hospital Ads: neutral styles; themes can restyle .mhads-* classes. */

.mhads-slot[hidden],
[data-mhads-wrap][hidden] {
	display: none !important;
}

.mhads-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	margin-inline: auto;
	max-width: 100%;
	text-align: center;
}

.mhads-label {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
	opacity: 0.7;
}

.mhads-slot__ad {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.mhads-slot__ad img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}

.mhads-banner {
	display: block;
}

.mhads-slot--in-article {
	margin-block: 2rem;
}

.mhads-feed-item .mhads-slot {
	padding: 1rem;
	height: 100%;
	box-sizing: border-box;
	justify-content: center;
}

/* Mobile anchor: phones only. */
.mhads-anchor {
	display: none;
}

@media (max-width: 781px) {
	.mhads-anchor:not([hidden]) {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99990;
		padding: 0.35rem 0 0.5rem;
		background: var(--wp--preset--color--surface, #fff);
		box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.12);
	}

	body.mhads-has-anchor {
		padding-bottom: 76px;
	}
}

.mhads-anchor__close {
	position: absolute;
	top: -18px;
	right: 8px;
	width: 36px;
	height: 36px;
	border-radius: 18px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: var(--wp--preset--color--surface, #fff);
	color: inherit;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.mhads-anchor__close::before {
	content: "";
	position: absolute;
	inset: -4px;
}
