/*
 * Header builder (header_style = "builder").
 * Logical properties only (inline = start/end), so the same rules work in RTL and LTR.
 * Colours and sizes come from CSS custom properties printed by src/HeaderBuilder/Renderer.php.
 */

.jhb {
	position: relative;
	z-index: 100;
	background: #fff;
	color: #151515;
	font-size: 14px;
	line-height: 1.4;
}

.jhb *,
.jhb-drawer * {
	box-sizing: border-box;
}

.jhb a,
.jhb-drawer a {
	text-decoration: none;
}

/* Rows and zones */

.jhb-row {
	background: var(--jhb-row-bg, transparent);
	color: var(--jhb-row-color, inherit);
}

.jhb-row--border {
	border-block-end: 1px solid var(--jhb-row-border, rgba(0, 0, 0, .08));
}

.jhb-container {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	width: 100%;
	max-width: 1320px;
	min-height: var(--jhb-row-h, 70px);
	margin-inline: auto;
	padding-inline: 15px;
}

.jhb-row--full .jhb-container {
	max-width: none;
	padding-inline: 24px;
}

.jhb-row--has-center .jhb-container {
	grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
}

/* Only the centre zone has content (announcement bar, search row): it takes the full width. */
.jhb-row--center-only .jhb-container {
	grid-template-columns: minmax(0, 1fr);
}

.jhb-row--center-only .jhb-zone--start,
.jhb-row--center-only .jhb-zone--end {
	display: none;
}

.jhb-row--center-only .jhb-el--search {
	flex: 1 1 auto;
	justify-content: center;
}

.jhb-mobile .jhb-row--center-only .jhb-search-box {
	padding-block: 6px;
}

.jhb-mobile .jhb-container {
	min-height: var(--jhb-row-h-m, 60px);
	gap: 8px;
	padding-inline: 12px;
}

.jhb-zone {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.jhb-mobile .jhb-zone {
	gap: 4px;
}

.jhb-zone--center {
	justify-content: center;
}

.jhb-zone--end {
	justify-content: flex-end;
}

.jhb-el {
	display: flex;
	align-items: center;
	min-width: 0;
}

.jhb-placeholder {
	font-size: 12px;
	opacity: .6;
}

/* Logo */

.jhb-logo {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.jhb-logo img {
	display: block;
	width: auto;
	max-width: var(--jhb-logo-w, 150px);
	height: auto;
}

.jhb-logo .custom-logo-link {
	display: block;
}

.jhb-site-title {
	color: var(--jhb-title-color, inherit);
	font-size: var(--jhb-title-size, 24px);
	font-weight: 800;
	line-height: 1.1;
}

.jhb-tagline {
	font-size: 12px;
	opacity: .7;
}

/* Icon buttons (search, cart, account, phone, WhatsApp, menu) */

.jhb .jhb-icon-btn,
.jhb-drawer .jhb-icon-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	min-width: 40px;
	justify-content: center;
	margin: 0;
	padding: 6px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: var(--jhb-el-color, inherit);
	font: inherit;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	transition: color .2s, background-color .2s;
}

.jhb .jhb-icon-btn:hover,
.jhb .jhb-icon-btn:focus-visible,
.jhb-drawer .jhb-icon-btn:hover {
	background: rgba(0, 0, 0, .05);
	color: var(--jhb-el-color, var(--jhb-accent, inherit));
}

.jhb .jhb-label,
.jhb-drawer .jhb-label {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.jhb-label-text {
	opacity: .75;
	font-weight: 500;
}

/* Cart */

.jhb-cart-icon {
	position: relative;
	display: inline-flex;
}

.jhb-cart-count {
	position: absolute;
	inset-block-start: -8px;
	inset-inline-end: -10px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--jhb-badge-bg, var(--jhb-accent, #453ec1));
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.jhb-cart-count[data-count="0"] {
	display: none;
}

.jhb-cart-total {
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

/* Menus */

.jhb-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jhb-menu li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jhb-menu a {
	display: block;
	color: var(--jhb-menu-color, inherit);
	font-size: var(--jhb-menu-size, 15px);
	font-weight: 600;
	transition: color .2s;
}

.jhb-menu a:hover,
.jhb-menu .current-menu-item > a,
.jhb-menu .current-menu-ancestor > a {
	color: var(--jhb-menu-hover, var(--jhb-accent, inherit));
}

.jhb-menu--horizontal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 24px;
}

.jhb-menu--horizontal > li > a {
	padding-block: 10px;
	/* Underline that grows from the centre on hover and marks the current page. */
	background: linear-gradient(currentColor, currentColor) no-repeat 50% calc(100% - 4px) / 0 2px;
	transition: color .2s, background-size .25s ease;
}

.jhb-menu--horizontal > li > a:hover,
.jhb-menu--horizontal > li > a:focus-visible,
.jhb-menu--horizontal > .current-menu-item > a,
.jhb-menu--horizontal > .current-menu-ancestor > a {
	background-size: 100% 2px;
}

.jhb-menu--horizontal .menu-item-has-children > a {
	padding-inline-end: 14px;
}

.jhb-menu--horizontal .menu-item-has-children > a::after {
	content: "";
	position: absolute;
	inset-inline-end: 0;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -5px;
	border-inline-end: 1.5px solid currentColor;
	border-block-end: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: .6;
}

.jhb-menu--horizontal .sub-menu {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: -16px;
	z-index: 20;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}

.jhb-menu--horizontal .sub-menu .sub-menu {
	inset-block-start: -8px;
	inset-inline-start: 100%;
}

.jhb-menu--horizontal li:hover > .sub-menu,
.jhb-menu--horizontal li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.jhb-menu--horizontal .sub-menu a {
	padding: 9px 18px;
	color: #222;
	font-size: 14px;
	font-weight: 500;
}

.jhb-menu--horizontal .sub-menu .menu-item-has-children > a::after {
	inset-inline-end: 14px;
	transform: rotate(-45deg);
}

[dir="rtl"] .jhb-menu--horizontal .sub-menu .menu-item-has-children > a::after {
	transform: rotate(135deg);
}

/* Search */

.jhb-search-box {
	width: var(--jhb-search-w, 320px);
	max-width: 100%;
}

.jhb-mobile .jhb-search-box,
.jhb-drawer .jhb-search-box {
	width: 100%;
}

.jhb-search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 999px;
	background: #fff;
}

.jhb-search-form:focus-within {
	border-color: var(--jhb-accent, #453ec1);
}

.jhb .jhb-search-form input.jhb-search-input,
.jhb-drawer .jhb-search-form input.jhb-search-input,
.jhb-bb-search .jhb-search-form input.jhb-search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: #151515;
	font: inherit;
	font-size: 14px;
	outline: none;
}

.jhb .jhb-search-form .jhb-search-submit,
.jhb-drawer .jhb-search-form .jhb-search-submit,
.jhb-bb-search .jhb-search-form .jhb-search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	margin: 0 3px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--jhb-accent, #453ec1);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

/* AJAX results of js/custom-header.js (appended inside the form). */
.jhb-search-form .search-results {
	position: absolute;
	inset-block-start: calc(100% + 6px);
	inset-inline: 0;
	z-index: 50;
	max-height: 70vh;
	overflow-y: auto;
	padding: 6px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
	color: #151515;
}

.jhb-search-form .search-result-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 8px;
	color: inherit;
}

.jhb-search-form .search-result-item a:hover {
	background: rgba(0, 0, 0, .04);
}

.jhb-search-form .result-image img {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
}

.jhb-search-form .result-content h4 {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
}

.jhb-search-form .result-price {
	font-size: 13px;
	color: var(--jhb-accent, #453ec1);
}

.jhb-search-form .no-results,
.jhb-search-form .search-results-more {
	display: block;
	padding: 10px;
	text-align: center;
	font-size: 13px;
}

.jhb-search-bar {
	border-block-start: 1px solid rgba(0, 0, 0, .08);
	background: #fff;
	color: #151515;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.jhb-search-bar[hidden] {
	display: none;
}

.jhb-search-bar .jhb-container {
	display: flex;
	min-height: 72px;
}

.jhb-search-bar .jhb-search-form {
	flex: 1 1 auto;
	max-width: 760px;
	margin-inline: auto;
}

/* Buttons */

.jhb .jhb-btn,
.jhb-drawer .jhb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: var(--jhb-btn-radius, 6px);
	background: var(--jhb-btn-bg, var(--jhb-accent, #453ec1));
	color: var(--jhb-btn-color, #fff);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	transition: filter .2s;
}

.jhb .jhb-btn:hover,
.jhb-drawer .jhb-btn:hover {
	color: var(--jhb-btn-color, #fff);
	filter: brightness(.92);
}

.jhb-whatsapp {
	color: var(--jhb-el-color, #25d366);
}

.jhb .jhb-whatsapp--button,
.jhb-drawer .jhb-whatsapp--button {
	background: var(--jhb-el-color, #25d366);
	color: #fff;
}

.jhb .jhb-whatsapp--button i {
	font-size: 18px;
}

/* Text, social, announcement */

.jhb-html {
	color: var(--jhb-el-color, inherit);
}

.jhb-html p {
	margin: 0;
}

.jhb-social ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jhb-social li {
	margin: 0;
	padding: 0;
}

.jhb-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--jhb-social-size, 15px) + 16px);
	height: calc(var(--jhb-social-size, 15px) + 16px);
	border-radius: 50%;
	color: var(--jhb-el-color, inherit);
	font-size: var(--jhb-social-size, 15px);
	transition: background-color .2s;
}

.jhb-social a:hover {
	background: rgba(127, 127, 127, .15);
}

.jhb-announcement {
	font-size: 13px;
	font-weight: 500;
	text-align: center;
}

.jhb-announcement a {
	color: inherit;
	text-decoration: underline;
}

.jhb-announcement p {
	margin: 0;
}

.jhb-el--announcement:has(.jhb-announcement--scroll) {
	flex: 1 1 auto;
	width: 100%;
}

.jhb-announcement--scroll {
	width: 100%;
	overflow: hidden;
}

.jhb-marquee {
	display: flex;
	width: max-content;
	animation: jhb-marquee var(--jhb-marquee-speed, 25s) linear infinite;
}

.jhb-marquee > span {
	flex: 0 0 auto;
	padding-inline: 3rem;
	white-space: nowrap;
}

.jhb-announcement--scroll:hover .jhb-marquee {
	animation-play-state: paused;
}

[dir="rtl"] .jhb-marquee {
	animation-name: jhb-marquee-rtl;
}

@keyframes jhb-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@keyframes jhb-marquee-rtl {
	from { transform: translateX(0); }
	to { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
	.jhb-marquee {
		animation: none;
	}
}

/*
 * Sticky header (js/header-builder.js adds .jhb-is-stuck once the page scrolls past the header or its main
 * row, sizes .jhb-spacer so the page does not jump, and sets --jhb-top to the admin bar height).
 */

.jhb.jhb-sticky-header.jhb-is-stuck {
	position: fixed;
	top: var(--jhb-top, 0px);
	left: 0;
	right: 0;
	z-index: 1000;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
	animation: jhb-slide-down .3s ease;
}

.jhb.jhb-sticky-main.jhb-is-stuck .jhb-row--main {
	position: fixed;
	top: var(--jhb-top, 0px);
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--jhb-row-bg, #fff);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
	animation: jhb-slide-down .3s ease;
}

.jhb-spacer {
	display: none;
}

.jhb-spacer.is-active {
	display: block;
}

/* Smaller main row and logo while stuck. */
.jhb-shrink .jhb-row--main .jhb-container,
.jhb-shrink .jhb-row--main .jhb-logo img {
	transition: min-height .25s ease, max-width .25s ease;
}

.jhb-shrink.jhb-is-solid .jhb-desktop .jhb-row--main .jhb-container {
	min-height: calc(var(--jhb-row-h, 70px) * .78);
}

.jhb-shrink.jhb-is-solid .jhb-mobile .jhb-row--main .jhb-container {
	min-height: calc(var(--jhb-row-h-m, 60px) * .85);
}

.jhb-shrink.jhb-is-solid .jhb-row--main .jhb-logo img {
	max-width: calc(var(--jhb-logo-w, 150px) * .82);
}

/* Hidden while scrolling down (mobile option), shown again when scrolling up. */
.jhb.jhb-sticky-header.jhb-is-stuck,
.jhb.jhb-sticky-main.jhb-is-stuck .jhb-row--main {
	transition: transform .25s ease;
}

.jhb.jhb-sticky-header.jhb-is-stuck.jhb-is-hidden,
.jhb.jhb-sticky-main.jhb-is-stuck.jhb-is-hidden .jhb-row--main {
	transform: translateY(calc(-100% - var(--jhb-top, 0px)));
}

@keyframes jhb-slide-down {
	from { transform: translateY(-100%); }
	to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.jhb.jhb-is-stuck,
	.jhb.jhb-is-stuck .jhb-row--main {
		animation: none;
	}
}

/*
 * Transparent header (home page, over the slider).
 * States set by js/header-builder.js: .jhb-tr-fixed (sticky whole header: fixed over the slider from the
 * start) and .jhb-is-solid (scrolled: white background, normal colours, shadow). Without sticky the header
 * simply scrolls away with the slider.
 */

.jhb.jhb-transparent {
	transition: background-color .35s ease, box-shadow .35s ease, transform .25s ease;
}

.jhb.jhb-transparent .jhb-row {
	transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

/* Out of the page flow (over the slider) unless fixed; stays so when only the main row sticks. */
.jhb.jhb-transparent:not(.jhb-tr-fixed) {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

.admin-bar .jhb.jhb-transparent:not(.jhb-tr-fixed) {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .jhb.jhb-transparent:not(.jhb-tr-fixed) {
		top: 46px;
	}
}

.jhb.jhb-transparent:not(.jhb-is-solid) {
	background: transparent;
	box-shadow: none;
}

.jhb.jhb-transparent.jhb-tr-fixed {
	position: fixed;
	top: var(--jhb-top, 0px);
	left: 0;
	right: 0;
	z-index: 1000;
	animation: none;
}

.jhb.jhb-transparent.jhb-tr-fixed.jhb-is-solid {
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

/* Scrolled: the announcement bar folds away so the fixed header stays compact. */
.jhb.jhb-transparent.jhb-tr-fixed.jhb-is-solid .jhb-row--top {
	display: none;
}

.jhb.jhb-transparent.jhb-tr-fixed.jhb-is-hidden {
	transform: translateY(calc(-100% - var(--jhb-top, 0px)));
}

/* Soft shade at the top of the slider so white text stays readable on light images. */
.jhb.jhb-transparent.jhb-tr-overlay::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: -40px;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .22) 55%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
	opacity: 1;
	transition: opacity .35s ease;
}

.jhb.jhb-transparent.jhb-tr-overlay.jhb-is-solid::before {
	opacity: 0;
}

/* The top bar (announcement) keeps its colours; the main and bottom rows become transparent. */
.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) {
	background: transparent;
	color: var(--jhb-tr-color, #fff);
	border-color: rgba(255, 255, 255, .22);
}

/* Element colours give way to the transparent colour (!important beats the inline custom properties);
 * the current menu item too, so it stays readable over a photo. */
.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-nav,
.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-logo,
.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-icon-btn,
.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-social,
.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-html {
	--jhb-menu-color: var(--jhb-tr-color, #fff) !important;
	--jhb-menu-hover: var(--jhb-tr-color, #fff) !important;
	--jhb-el-color: var(--jhb-tr-color, #fff) !important;
	--jhb-title-color: var(--jhb-tr-color, #fff) !important;
}

.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-icon-btn:hover {
	background: rgba(255, 255, 255, .14);
}

/* Search box on the slider: glass look. */
.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-search-form {
	border-color: rgba(255, 255, 255, .45);
	background: rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-search-form input.jhb-search-input {
	color: var(--jhb-tr-color, #fff);
}

.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-search-form input.jhb-search-input::placeholder {
	color: var(--jhb-tr-color, #fff);
	opacity: .8;
}

/* Logo for the transparent header: shown instead of the normal logo until the header turns solid. */
.jhb-logo-tr {
	display: none;
}

.jhb-logo-tr img {
	display: block;
	width: auto;
	max-width: var(--jhb-logo-w, 150px);
	height: auto;
}

.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-logo:has(.jhb-logo-tr) > :not(.jhb-logo-tr):not(.jhb-tagline) {
	display: none;
}

.jhb.jhb-transparent:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-logo-tr {
	display: block;
}

.jhb.jhb-transparent.jhb-tr-logo-white:not(.jhb-is-solid) .jhb-row:not(.jhb-row--top) .jhb-logo img {
	filter: brightness(0) invert(1);
	transition: filter .35s ease;
}

/* Mobile bottom navigation bar (hidden above the breakpoint by the inline media query). */

.jhb-bottom-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	display: flex;
	align-items: stretch;
	height: calc(62px + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	border-block-start: 1px solid rgba(0, 0, 0, .08);
	background: var(--jhb-bb-bg, #fff);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}

.jhb-bottom-bar .jhb-bb-item {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 0;
	margin: 0;
	padding: 6px 2px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--jhb-bb-color, #555);
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.jhb-bottom-bar .jhb-bb-item i {
	font-size: 19px;
}

.jhb-bottom-bar .jhb-bb-item.is-active,
.jhb-bottom-bar .jhb-bb-item[aria-expanded="true"] {
	color: var(--jhb-bb-active, var(--jhb-accent, #453ec1));
}

.jhb-bottom-bar .jhb-bb-whatsapp i {
	color: #25d366;
}

.jhb-bb-label {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jhb-bb--no-labels .jhb-bb-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.jhb-bb-search {
	position: fixed;
	left: 0;
	right: 0;
	bottom: calc(62px + env(safe-area-inset-bottom));
	z-index: 9989;
	padding: 12px;
	background: #fff;
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .1);
}

.jhb-bb-search[hidden] {
	display: none;
}

.jhb-bb-search .jhb-search-form .search-results {
	inset-block-start: auto;
	inset-block-end: calc(100% + 6px);
}

/* Mobile drawer */

.jhb-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	transition: opacity .25s;
}

.jhb-drawer-overlay.is-visible {
	opacity: 1;
}

.jhb-drawer-overlay[hidden] {
	display: none;
}

.jhb-drawer {
	--jhb-drawer-off: -100%;
	position: fixed;
	inset-block: 0;
	inset-inline-start: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	width: min(86vw, 360px);
	background: var(--jhb-drawer-bg, #fff);
	color: var(--jhb-drawer-color, #111);
	box-shadow: 0 0 40px rgba(0, 0, 0, .2);
	transform: translateX(var(--jhb-drawer-off));
	visibility: hidden;
	transition: transform .3s ease, visibility .3s;
	outline: none;
}

[dir="rtl"] .jhb-drawer {
	--jhb-drawer-off: 100%;
}

.jhb-drawer--end {
	inset-inline-start: auto;
	inset-inline-end: 0;
	--jhb-drawer-off: 100%;
}

[dir="rtl"] .jhb-drawer--end {
	--jhb-drawer-off: -100%;
}

.jhb-drawer.is-open {
	transform: none;
	visibility: visible;
}

.jhb-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-block-end: 1px solid rgba(127, 127, 127, .2);
}

.jhb-drawer-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 8px 16px 24px;
}

.jhb-drawer-body > .jhb-el {
	display: block;
	padding-block: 10px;
}

.jhb-drawer .jhb-icon-btn {
	justify-content: flex-start;
	padding-inline: 0;
	font-size: 17px;
}

.jhb-drawer .jhb-menu--vertical > li {
	border-block-end: 1px solid rgba(127, 127, 127, .18);
}

.jhb-drawer .jhb-menu--vertical a {
	padding-block: 13px;
	padding-inline-end: 44px;
	font-size: 15px;
}

.jhb-drawer .jhb-menu--vertical .sub-menu {
	display: none;
	margin: 0 0 8px;
	padding: 0;
	padding-inline-start: 14px;
	list-style: none;
}

.jhb-drawer .jhb-menu--vertical .sub-menu a {
	padding-block: 9px;
	font-size: 14px;
	font-weight: 500;
}

.jhb-drawer .jhb-menu--vertical li.is-open > .sub-menu {
	display: block;
}

.jhb-drawer .jhb-sub-toggle {
	position: absolute;
	inset-block-start: 4px;
	inset-inline-end: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.jhb-drawer .jhb-sub-toggle::before {
	content: "";
	width: 8px;
	height: 8px;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
}

.jhb-drawer li.is-open > .jhb-sub-toggle::before {
	transform: rotate(-135deg);
}

.jhb-drawer .jhb-social ul {
	gap: 4px;
}

body.jhb-drawer-open {
	overflow: hidden;
}

/* Wrapper used as the Customizer live preview target; no box of its own. */
.jhb-wrap {
	display: contents;
}

/* Customizer preview: layout chosen with the device buttons (attribute set by js/admin/header-builder-preview.js). */
html[data-jhb-device="desktop"] .jhb .jhb-desktop {
	display: block !important;
}

html[data-jhb-device="desktop"] .jhb .jhb-mobile,
html[data-jhb-device="desktop"] .jhb-drawer,
html[data-jhb-device="desktop"] .jhb-drawer-overlay,
html[data-jhb-device="desktop"] .jhb-bottom-bar,
html[data-jhb-device="desktop"] .jhb-bb-search,
html[data-jhb-device="mobile"] .jhb .jhb-desktop {
	display: none !important;
}

html[data-jhb-device="mobile"] .jhb .jhb-mobile {
	display: block !important;
}

html[data-jhb-device="mobile"] .jhb-drawer {
	display: flex !important;
}

html[data-jhb-device="mobile"] .jhb-drawer-overlay:not([hidden]) {
	display: block !important;
}

html[data-jhb-device="mobile"] .jhb-bottom-bar {
	display: flex !important;
}
