.toma-hashbar {
	--toma-hashbar-bg: #f4eee8;
	--toma-hashbar-color: #202321;
	background: var(--toma-hashbar-bg, #f4eee8);
	border-bottom: 1px solid rgba(32, 35, 33, 0.18);
	box-shadow: 0 8px 26px rgba(32, 35, 33, 0.08);
	color: var(--toma-hashbar-color, #202321);
	display: block;
	font-family: Roobert, sans-serif;
	left: 0;
	line-height: 1.4;
	position: fixed;
	right: 0;
	text-shadow: none;
	top: 0;
	transform: translateY(-100%);
	transition: opacity 0.2s ease, transform 0.2s ease;
	width: 100%;
	z-index: 999999;
}

.admin-bar .toma-hashbar {
	top: 32px;
}

.toma-hashbar.is-visible {
	transform: translateY(0);
}

/* 2026-09-24: a scroll-triggered bar waits off-screen (translateY(-100%), printed [hidden] but display:block above) and its shadow
   still fell 26px into the viewport — a grey veil across the top of every page that carries one (visible on light headers:
   the post header system's claro grounds). The shadow belongs to the bar on screen only. */
.toma-hashbar.toma-hashbar--top:not(.is-visible) {
	box-shadow: none;
}

.toma-hashbar__inner {
	align-items: center;
	display: flex;
	justify-content: center;
	margin: 0 auto;
	max-width: 1200px;
	min-height: 44px;
	padding: 7px 46px 7px 16px;
	position: relative;
	width: 100%;
}

.toma-hashbar__content,
.toma-hashbar__content p,
.toma-hashbar__content a {
	color: inherit;
}

.toma-hashbar__content p {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	margin: 0;
}

.toma-hashbar__content .hashbar-free-wraper,
.toma-hashbar__content .wp-block-hashbar-hashbar-button {
	align-items: center;
	display: flex;
	flex-direction: row;
	gap: 10px;
	justify-content: center;
	text-align: center;
}

.toma-hashbar__content .ht_btn {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	justify-content: center;
	line-height: 1.2;
	min-height: 38px;
	padding: 8px 14px;
	text-decoration: none;
	white-space: nowrap;
}

.toma-hashbar__content .ht_btn:hover,
.toma-hashbar__content .ht_btn:focus {
	filter: none;
	text-decoration: none;
}

.toma-hashbar__close {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	display: flex;
	font-size: 24px;
	height: 34px;
	justify-content: center;
	line-height: 1;
	opacity: 0.9;
	padding: 0;
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
}

.toma-hashbar__close:hover,
.toma-hashbar__close:focus {
	opacity: 1;
}

/* 2026-09-23: always-shown bars sit in the page flow at the top of <body> and stick while scrolling; scroll-triggered
   bars stay fixed overlays. Nothing pushes the page any more (the old body padding-top push caused a layout shift). */
.toma-hashbar--static {
	position: sticky;
	transform: none;
	transition: none;
}

.toma-hashbar--static[hidden] {
	display: none;
}

@media screen and (max-width: 782px) {
	.admin-bar .toma-hashbar {
		top: 46px;
	}
}

@media screen and (max-width: 640px) {
	.toma-hashbar__inner {
		align-items: center;
		padding: 8px 42px 8px 12px;
	}

	.toma-hashbar__content .hashbar-free-wraper,
	.toma-hashbar__content .wp-block-hashbar-hashbar-button {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		text-align: left;
	}

	.toma-hashbar__content p {
		font-size: 12px;
		width: auto;
	}
}

/* At narrow phone widths, keep the full message readable above its action.
 * The previous two-column grid left roughly 56px for the message at 320px.
 * Larger phone/tablet/desktop layouts and the existing handlers stay unchanged.
 */
@media screen and (max-width: 380px) {
	.toma-hashbar__content {
		min-width: 0;
		width: 100%;
	}

	.toma-hashbar__content .hashbar-free-wraper,
	.toma-hashbar__content .wp-block-hashbar-hashbar-button {
		grid-template-columns: minmax(0, 1fr);
	}

	.toma-hashbar__close {
		top: 8px;
		transform: none;
	}
}

/* Yield to the article's authority ending while retaining the static bar's flow height. */
.toma-hashbar.is-authority-paused {
	visibility: hidden !important;
	pointer-events: none !important;
}

/* 2026-10-20 all-post rendered alignment review. */
/* Hide the notification bar while the full-screen mobile menu owns the viewport. */
body.fullb .toma-hashbar{
  display:none!important;
}

/* The floating control owns persistence on articles; the exact legacy message
 * remains readable and dismissible in the initial document flow. */
.toma-hashbar.toma-hashbar--in-flow {
	position: relative;
	top: auto;
	z-index: auto;
	box-shadow: none;
	transform: none;
}
/* Non-WhatsApp notification actions retain a local neutral button fallback.
 * WhatsApp paint is exclusively owned by whatsapp-cta.css. */
.toma-hashbar__content .ht_btn:not(:where([href*="wa.me"],[href*="whatsapp.com"])) {
	background: #202321;
	border: 1px solid #202321;
	color: #fff;
}
