/* Happy Life Offers — bottom bar on phones (every page except the offers pages, which have their own bar of the same look).
   The sheets "Обади се в клуба" / "Пиши ни във Viber" reuse the chooser's popup styles (hlo-chooser.css). */
.hlb { display: none; }

@media (max-width: 780px) {
	body.hlb-on { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	/* The cookie button (Happy Life Leads) sits above the bar instead of on top of it. */
	body.hlb-on .hll-cc-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

	/* Above the page (the theme's sections use z-index up to 10). */
	.hlb { --hlb-o: #FF7518; --hlb-t: #2C2A20; --hlb-p2: #FDEFE8; display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 990; gap: 8px; box-sizing: border-box; padding: 6px; background: rgba(255, 255, 255, .97); border-radius: 18px; box-shadow: 0 6px 26px rgba(28, 16, 6, .3); font-family: inherit; transition: transform .25s, opacity .25s, visibility .25s; }
	.hlb.is-off { transform: translateY(150%); opacity: 0; visibility: hidden; pointer-events: none; }
	.hlb .hlb-call, .hlb .hlb-viber, .hlb .hlb-book { appearance: none; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 7px; height: 46px; min-height: 0; margin: 0; border: 0; border-radius: 13px; box-shadow: none; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.1; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
	.hlb .hlb-call { flex: 0 0 auto; padding: 0 14px; background: var(--hlb-p2); color: var(--hlb-t); }
	.hlb .hlb-viber { flex: 0 0 46px; width: 46px; padding: 0; background: #F1EEFC; color: #7360F2; }
	.hlb .hlb-book, .hlb .hlb-book:hover, .hlb .hlb-book:focus, .hlb .hlb-book:visited { flex: 1 1 auto; min-width: 0; padding: 0 12px; background: var(--hlb-o); color: #fff; }
	.hlb .hlb-call:focus-visible, .hlb .hlb-viber:focus-visible, .hlb .hlb-book:focus-visible { outline: 3px solid #1a56db; outline-offset: 2px; }
	.hlb-ic { flex: 0 0 auto; display: inline-flex; width: 20px; height: 20px; }
	.hlb-call .hlb-ic { color: var(--hlb-o); }
	.hlb-viber .hlb-ic { width: 22px; height: 22px; }
	.hlb-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
	/* Three buttons: the main one drops its icon to keep the text on one line. */
	.hlb--3 .hlb-book .hlb-ic { display: none; }
}

/* The theme's mobile menu lives in a header with z-index 10, under the bar: while it is open, the bar and the cookie button step aside. */
body:has(.gutenverse-menu-wrapper.active) .hlb,
body:has(.gutenverse-menu-wrapper.active) .hll-cc-fab { visibility: hidden; opacity: 0; pointer-events: none; }

@media (max-width: 360px) {
	/* Very narrow phones: "Обади се" becomes an icon so the main button keeps its text. */
	.hlb .hlb-call { flex: 0 0 46px; width: 46px; padding: 0; }
	.hlb .hlb-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.hlb .hlb-book .hlb-ic { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hlb { transition: none; }
}
