/* Loaded only for reviewed articles on phones. The original notification or
   the header's own booking link takes over only between inline invitations. */
:root { --jt-article-booking-ui: ready; }
body:has(.jt-ah__pill) .toma-hashbar--in-flow {
	position: fixed;
	inset: auto 0 0;
	/* Restore the existing notification layer above legacy article blocks. */
	z-index: 999999;
	visibility: hidden;
	background: #f4eee8;
	border: 0;
	border-top: 1px solid rgba(32, 35, 33, .18);
	padding: 0 0 env(safe-area-inset-bottom, 0px);
}

body:has(.jt-ah__pill) .toma-hashbar--in-flow[data-booking-dock] {
	visibility: visible;
}
body:has(.jt-ah__pill) .toma-hashbar--in-flow p {
	display: none;
}
body:has(.jt-ah__pill) .toma-hashbar__inner {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px max(8px, env(safe-area-inset-right, 0px)) 6px max(8px, env(safe-area-inset-left, 0px));
}
body:has(.jt-ah__pill) .toma-hashbar__content {
	flex: 1;
	min-width: 0;
}
body:has(.jt-ah__pill) .toma-hashbar .hashbar-free-wraper {
	display: flex;
}
body:has(.jt-ah__pill) .toma-hashbar .ht_btn {
	flex: 1;
	min-height: 46px;
	white-space: normal;
}
body:has(.jt-ah__pill) .toma-hashbar__close {
	position: static;
	flex: 0 0 44px;
	height: 44px;
	transform: none;
}

body.jt-booking-mobile-ready .whatsapp-button__trigger,
body:has(.sidebar-form:not(.hidden), .menu-toggle[aria-expanded="true"], input:focus, select:focus, textarea:focus, [contenteditable="true"]:focus) .toma-hashbar--in-flow,
body:has(dialog[open], [role="dialog"][aria-modal="true"]:not([hidden], .hidden)) .toma-hashbar--in-flow {
	display: none;
}

/* The last footer action and focus/anchor targets can clear the reading dock. */
body.jt-booking-mobile-ready {
	padding-bottom: var(--jt-booking-dock-height, 60px);
}
html:has(body.jt-booking-mobile-ready) {
	scroll-padding-bottom: calc(var(--jt-booking-dock-height, 60px) + 8px);
}
