/* ==========================================================================
   Haramain Pure - header

   Measured off the approved shop reference at a 1440px page and scaled with
   the viewport below that; the 1440 measurement is noted beside each value.
   Scoped to body.hp-new-header (see haramain_uses_new_header()), so pages
   still on the dark V1.2 hero keep their own header.

   Markup: header-elements/logo.php (child override) for the lockup, and
   Woodmart's own nav, search, account and cart elements, restyled here.
   ========================================================================== */

@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/PlayfairDisplay.woff2") format("woff2-variations");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

.hp-new-header {
	--hh-bg:        #FDF6E9;
	--hh-divider:   #F3EBD9;
	--hh-wordmark:  #101616;
	--hh-sub:       #2B2E2A;
	--hh-tagline:   #4D4D47;
	--hh-nav:       #2C3631;
	--hh-nav-on:    #1C2620;
	--hh-rule:      #2F4A37;
	--hh-pill-bg:   #FDFAF2;
	--hh-pill-line: #EFE7D3;
	--hh-pill-ink:  #8B8E86;
	--hh-glyph:     #7C847D;
	--hh-account:   #222A2A;
	--hh-cart:      #D4892E;
	--hh-badge:     #755B0E;
	--hh-badge-ink: #EDE3C4;
	--hh-sans:      "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--hh-serif:     "Playfair Display", Georgia, "Times New Roman", serif;

	/* hp-shop.css clears the overlaid header with this */
	--sh-header-h:  98px;

	--hh-icon-search:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M15.8 15.8 21 21'/%3E%3C/svg%3E");
	--hh-icon-account: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 25' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='7' r='5.6'/%3E%3Cpath d='M1.5 23.8v-1.6c0-4.2 3.4-7.6 7.6-7.6h3.8c4.2 0 7.6 3.4 7.6 7.6v1.6z'/%3E%3C/svg%3E");
	--hh-icon-cart:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 32' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 3.5h4.2l3.7 17.2a2 2 0 0 0 2 1.6h12.3a2 2 0 0 0 1.9-1.4L28.5 9.5H7'/%3E%3Cpath d='M8.6 15.5h17.6'/%3E%3Ccircle cx='12.4' cy='28' r='2.1'/%3E%3Ccircle cx='23.3' cy='28' r='2.1'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Bar: 98px of warm cream with a hairline under it
   -------------------------------------------------------------------------- */

.hp-new-header .whb-header,
.hp-new-header .whb-header.whb-boxed,
.hp-new-header .whb-main-header {
	max-width: none !important;
}
.hp-new-header .whb-main-header {
	/* boxed mode insets it 36px each side and pushes the row 30px down */
	left: 0 !important;
	right: 0 !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	height: auto !important;
	background: var(--hh-bg) !important;
	box-shadow: 0 1px 0 var(--hh-divider) !important;
}
/* Boxed mode also adds a 30px spacer above the row as a ::before, and the
   header builder drops a 30px space element beside the logo. */
.hp-new-header .whb-main-header::before { display: none !important; }
.hp-new-header .whb-col-left.whb-visible-lg .whb-space-element { display: none !important; }

.hp-new-header .whb-main-header > .whb-row {
	top: 0 !important;
	margin: 0 !important;
	transform: none !important;
}
.hp-new-header .whb-row,
.hp-new-header .whb-general-header {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.hp-new-header .whb-sticked .whb-main-header,
.hp-new-header .whb-sticked .whb-row {
	background: var(--hh-bg) !important;
	box-shadow: 0 1px 0 var(--hh-divider), 0 6px 20px rgba(2, 32, 23, .06) !important;
}

.hp-new-header .whb-row > .container {
	max-width: 1440px !important;
	margin-inline: auto;
	padding: 0 !important;
}
.hp-new-header .whb-general-header .whb-flex-row {
	height: 98px !important;                           /* 98 */
	max-height: none !important;
	max-width: none;
	margin: 0;
	/* logo at 95, cart badge's outer edge at 1393 of 1440 */
	/* logo at 95; cart glyph's right edge at 1381 (badge overhangs to 1393) */
	padding: 0 clamp(16px, 4.1vw, 59px) 0 clamp(16px, 6.6vw, 95px) !important;
	display: flex;
	align-items: center;
}
/* The same row also holds Woodmart's mobile columns (.whb-hidden-lg), which
   it hides with display:none. Only the desktop columns are touched here, and
   never their display, or the mobile logo, cart and burger reappear. */
.hp-new-header .whb-general-header .whb-column.whb-visible-lg {
	margin: 0 !important;
	padding: 0 !important;
	align-items: center;
}
.hp-new-header .whb-general-header .whb-col-left.whb-visible-lg   { flex: 0 0 auto; }
.hp-new-header .whb-general-header .whb-col-center.whb-visible-lg { flex: 1 1 auto; justify-content: flex-start !important; min-width: 0; }
.hp-new-header .whb-general-header .whb-col-right.whb-visible-lg  { flex: 0 0 auto; margin-left: auto !important; }

/* --------------------------------------------------------------------------
   Lockup: 72px emblem, 18px gap, three centred lines
   -------------------------------------------------------------------------- */

.hp-new-header .site-logo.hp-logo { padding: 0 !important; margin: 0 !important; }
.hp-new-header .hp-logo__link {
	display: flex !important;
	align-items: center;
	gap: clamp(9px, 1.04vw, 15px);                     /* 15 - HARAMAIN at 183 */
	text-decoration: none;
	line-height: 1;
}
.hp-new-header .hp-logo__mark {
	display: block;
	padding: 0 !important;
	max-height: none !important;
	flex: none;
	width: clamp(48px, 4.6vw, 66px) !important;
	height: auto !important;
	max-width: none !important;
	border-radius: 50%;
	background: #fff;
}
/* The footer's wordmark (hp-footer.css), in the header's dark green: the
   site's own Haramain face, left aligned, the second line widely spaced. */
.hp-new-header .hp-logo__words {
	display: grid;
	justify-items: start;
	text-align: left;
	line-height: 1.1;
	font-family: "Haramain", Arial, Helvetica, sans-serif;
	color: var(--hh-wordmark);
}
.hp-new-header .hp-logo__words b {
	font-family: inherit;
	font-weight: 700;
	font-size: clamp(16px, 1.6vw, 23px);
	letter-spacing: .06em;
	color: var(--hh-wordmark);
	line-height: 1.1;
}
.hp-new-header .hp-logo__words > span {
	font-family: inherit;
	font-weight: 700;
	font-size: clamp(8.5px, .82vw, 12px);
	letter-spacing: .17em;
	color: var(--hh-wordmark);
	line-height: 1.1;
	margin-top: 2px;
}
.hp-new-header .hp-logo__words em {
	font-family: inherit;
	font-style: normal;
	font-weight: 400;
	font-size: clamp(7.5px, .7vw, 10px);
	letter-spacing: .04em;
	color: var(--hh-tagline);
	line-height: 1.1;
	margin-top: 3px;
}

/* --------------------------------------------------------------------------
   Nav: Inter 16, 39px between words, first word at 436
   -------------------------------------------------------------------------- */

.hp-new-header .whb-general-header .whb-col-center.whb-visible-lg > * {
	margin: 0 0 0 clamp(20px, 8.47vw, 122px) !important; /* lockup ends 314, Shop at 436 */
	padding: 0 !important;
}
.hp-new-header .whb-general-header .wd-nav {
	display: flex;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 0;
	margin: 0 !important;
	white-space: nowrap;
}
.hp-new-header .whb-general-header .wd-nav > li { margin: 0 !important; padding: 0 !important; }
.hp-new-header .whb-general-header .wd-nav > li > a {
	display: flex;
	align-items: center;
	height: 98px;
	padding: 0 clamp(10px, 1.36vw, 19.5px) !important; /* 39 between words */
	font-family: var(--hh-sans) !important;
	font-size: clamp(13px, 1.11vw, 16px) !important;   /* 16 */
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--hh-nav) !important;
	line-height: 1 !important;
}
.hp-new-header .whb-general-header .wd-nav > li:first-child > a { padding-left: 0 !important; }
.hp-new-header .whb-general-header .wd-nav > li > a .nav-link-text {
	position: relative;
	box-shadow: none !important;
	padding: 0 !important;
}
/* Woodmart's own hover/active underline styles */
.hp-new-header .whb-general-header .wd-nav > li > a::after,
.hp-new-header .whb-general-header .wd-nav > li > a::before { content: none !important; }

.hp-new-header .whb-general-header .wd-nav > li.current-menu-item > a,
.hp-new-header .whb-general-header .wd-nav > li.current_page_item > a,
.hp-new-header .whb-general-header .wd-nav > li.current-menu-ancestor > a {
	color: var(--hh-nav-on) !important;
	font-weight: 600 !important;
}
/* The rule under the current page: 2.5px, the word's width, 66px down */
.hp-new-header .whb-general-header .wd-nav > li.current-menu-item > a .nav-link-text::after,
.hp-new-header .whb-general-header .wd-nav > li.current_page_item > a .nav-link-text::after,
.hp-new-header .whb-general-header .wd-nav > li.current-menu-ancestor > a .nav-link-text::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -13px;
	height: 2.5px;
	border-radius: 2px;
	background: var(--hh-rule);
}
.hp-new-header .whb-general-header .wd-nav > li > a:hover { color: var(--hh-nav-on) !important; }

/* --------------------------------------------------------------------------
   Tools: search pill, account, cart - in that order
   Every rule here is held to .whb-main-header: Woodmart's sticky mobile
   toolbar reuses the same element classes, and must keep its own styling.
   -------------------------------------------------------------------------- */

.hp-new-header .whb-col-right { gap: 0; }
.hp-new-header .whb-col-right > * { margin: 0 !important; padding: 0 !important; }
.hp-new-header .whb-main-header .wd-header-search     { order: 1; }
.hp-new-header .whb-main-header .wd-header-my-account { order: 2; }
.hp-new-header .whb-main-header .wd-header-cart       { order: 3; }
.hp-new-header .whb-main-header .wd-header-wishlist,
.hp-new-header .whb-main-header .wd-header-compare    { display: none !important; }

/* Search: Woodmart's form already sits in a hover dropdown; bring it inline. */
.hp-new-header .whb-main-header .wd-header-search > a { display: none !important; }
.hp-new-header .whb-main-header .wd-header-search .wd-search-dropdown {
	position: static !important;
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: none !important;
	box-shadow: none !important;
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	width: auto !important;
}
.hp-new-header .whb-main-header .wd-header-search .wd-search-dropdown::before,
.hp-new-header .whb-main-header .wd-header-search .wd-search-dropdown::after { content: none !important; }
.hp-new-header .whb-main-header .wd-header-search .searchform {
	position: relative;
	display: block;
	width: clamp(150px, 14.93vw, 215px);               /* 215 */
	margin: 0 !important;
}
.hp-new-header .whb-main-header .wd-header-search .searchform input.s {
	display: block;
	width: 100% !important;
	height: clamp(38px, 3.06vw, 44px) !important;      /* 44 */
	padding: 0 14px 0 clamp(38px, 3.4vw, 49px) !important; /* text at 49 */
	border: 1px solid var(--hh-pill-line) !important;
	border-radius: 999px !important;
	background: var(--hh-pill-bg) !important;
	box-shadow: none !important;
	font-family: var(--hh-sans) !important;
	font-size: clamp(12px, .9vw, 13px) !important;     /* 13 */
	font-weight: 400;
	color: var(--hh-nav) !important;
}
.hp-new-header .whb-main-header .wd-header-search .searchform input.s::placeholder { color: var(--hh-pill-ink); opacity: 1; }
.hp-new-header .whb-main-header .wd-header-search .searchform input.s:focus {
	border-color: #CFC4A6 !important;
	outline: none;
}
.hp-new-header .whb-main-header .wd-header-search .searchform::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: 50%;
	left: clamp(13px, 1.25vw, 18px);                   /* glyph at 18 */
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	background: var(--hh-glyph);
	-webkit-mask: var(--hh-icon-search) center / contain no-repeat;
	mask: var(--hh-icon-search) center / contain no-repeat;
	pointer-events: none;
}
.hp-new-header .whb-main-header .wd-header-search .searchsubmit {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	width: 44px !important;
	height: 100% !important;
	opacity: 0 !important;
	padding: 0 !important;
	cursor: pointer;
}
.hp-new-header .whb-main-header .wd-header-search .search-results-wrapper { text-align: left; }

/* Account: 22x25 outline figure, 28px after the pill */
.hp-new-header .whb-main-header .wd-header-my-account { margin-left: clamp(16px, 1.94vw, 28px) !important; }
.hp-new-header .whb-main-header .wd-header-my-account > a {
	display: block !important;
	width: 22px;
	height: 25px;
	padding: 0 !important;
}
.hp-new-header .whb-main-header .wd-header-my-account .wd-tools-text { display: none !important; }
.hp-new-header .whb-main-header .wd-header-my-account .wd-tools-icon {
	display: block !important;
	width: 22px;
	height: 25px;
	background: var(--hh-account);
	-webkit-mask: var(--hh-icon-account) center / contain no-repeat;
	mask: var(--hh-icon-account) center / contain no-repeat;
}
.hp-new-header .whb-main-header .wd-header-my-account .wd-tools-icon::before { content: none !important; }

/* Cart: amber outline, 31px after the account, badge on its shoulder */
.hp-new-header .whb-main-header .wd-header-cart { margin-left: clamp(18px, 2.15vw, 31px) !important; }
.hp-new-header .whb-main-header .wd-header-cart > a {
	position: relative;
	display: block !important;
	width: 30px;
	height: 32px;
	padding: 0 !important;
	margin-top: -6px;                                   /* glyph sits 3px above centre */
	background: none !important;
}
.hp-new-header .whb-main-header .wd-header-cart .wd-tools-text { display: none !important; }
.hp-new-header .whb-main-header .wd-header-cart .wd-tools-icon {
	position: static !important;
	display: block !important;
	width: 30px;
	height: 32px;
}
.hp-new-header .whb-main-header .wd-header-cart .wd-tools-icon::before {
	content: "" !important;
	position: absolute;
	inset: 0;
	background: var(--hh-cart);
	-webkit-mask: var(--hh-icon-cart) center / contain no-repeat;
	mask: var(--hh-icon-cart) center / contain no-repeat;
}
.hp-new-header .whb-main-header .wd-header-cart > a .wd-cart-number {
	position: absolute !important;
	top: -6px !important;                               /* badge top 24, cart top 30 */
	left: 22px !important;                              /* badge left 1373, cart left 1351 */
	right: auto !important;
	width: 20px !important;
	min-width: 20px !important;
	height: 20px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--hh-badge) !important;
	color: var(--hh-badge-ink) !important;
	font-family: var(--hh-sans) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
	text-align: center !important;
	display: block !important;
	transform: none !important;
}
.hp-new-header .whb-main-header .wd-header-cart > a .wd-cart-number span { display: none !important; }

/* --------------------------------------------------------------------------
   Narrower screens: the search gives way first
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.hp-new-header .whb-main-header .wd-header-search { display: none !important; }
	.hp-new-header .whb-main-header .wd-header-my-account { margin-left: 0 !important; }
}


/* --------------------------------------------------------------------------
   Drop-downs: mini cart, account, live search results
   (header-elements/cart.php, account.php, search.php)
   -------------------------------------------------------------------------- */
.hp-new-header .whb-main-header .wd-header-cart .wd-dropdown,
.hp-new-header .whb-main-header .wd-header-my-account .wd-dropdown {
	border: 1px solid #E6DDC8 !important;
	border-radius: 16px !important;
	background: #FFFBF2 !important;
	box-shadow: 0 18px 40px rgba(15, 58, 41, .14) !important;
}

/* anchored to the icon: centred beneath it, below the header bar, with a
   pointer at the icon (positions set by hp-header.js) */
.hp-new-header .whb-main-header .wd-header-cart > .wd-dropdown,
.hp-new-header .whb-main-header .wd-header-my-account > .wd-dropdown {
	top: var(--hp-dd-top, calc(100% + 12px)) !important;
	left: var(--hp-dd-left, 50%) !important;
	right: auto !important;
	margin: 0 !important;
}
.hp-new-header .whb-main-header .wd-header-cart > .wd-dropdown::before,
.hp-new-header .whb-main-header .wd-header-my-account > .wd-dropdown::before {
	content: "";
	position: absolute;
	top: -8px;
	left: var(--hp-dd-caret, 50%);
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-top: 1px solid #E6DDC8;
	border-left: 1px solid #E6DDC8;
	background: #FFFBF2;
	transform: rotate(45deg);
}
/* keep the hover alive across the gap between the icon and the panel */
.hp-new-header .whb-main-header .wd-header-cart > .wd-dropdown::after,
.hp-new-header .whb-main-header .wd-header-my-account > .wd-dropdown::after {
	content: "" !important;
	display: block !important;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: calc(var(--hp-dd-top, 40px) + 6px);   /* the whole gap back up to the icon */
	background: transparent;
}
/* held open by hp-header.js for a moment after the pointer leaves */
.hp-new-header .whb-main-header .wd-header-cart.hp-dd-open > .wd-dropdown,
.hp-new-header .whb-main-header .wd-header-my-account.hp-dd-open > .wd-dropdown {
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: visible !important;
	transform: none !important;
}

/* mini cart */
.hp-new-header .whb-main-header .wd-header-cart .wd-dropdown { width: 340px; padding: 6px 18px 18px !important; }
.hp-new-header .whb-main-header .wd-header-cart .woocommerce-mini-cart-item { border-color: #E6DDC8 !important; }
.hp-new-header .whb-main-header .wd-header-cart .woocommerce-mini-cart-item img {
	width: 56px !important;
	height: 56px !important;
	padding: 4px;
	border-radius: 10px;
	background: #F6EBD3;
	object-fit: contain;
}
.hp-new-header .whb-main-header .wd-header-cart .wrapp-thumb { flex: none; }
.hp-new-header .whb-main-header .wd-header-cart .wd-entities-title { font: 600 15px/1.3 "Playfair Display", Georgia, serif !important; color: #0F3A29 !important; }
.hp-new-header .whb-main-header .wd-header-cart .quantity { color: #5C5E55 !important; font-size: 13px; }
.hp-new-header .whb-main-header .wd-header-cart .woocommerce-mini-cart__total { border-color: #E6DDC8 !important; }
.hp-new-header .whb-main-header .wd-header-cart .woocommerce-mini-cart__total strong { font: 600 16px/1 "Inter", sans-serif; color: #2D2E2B; }
.hp-new-header .whb-main-header .wd-header-cart .woocommerce-mini-cart__total .amount { font: 700 20px/1 "Playfair Display", Georgia, serif; color: #0F3A29; }
.hp-new-header .whb-main-header .wd-header-cart .woocommerce-mini-cart__buttons .button {
	height: 44px;
	border-radius: 999px !important;
	font: 600 14px/1 "Inter", sans-serif !important;
	letter-spacing: .02em;
}
.hp-new-header .whb-main-header .wd-header-cart .woocommerce-mini-cart__buttons .button:not(.checkout) { border: 1px solid #B9B29E !important; background: transparent !important; color: #0F3A29 !important; }
.hp-new-header .whb-main-header .wd-header-cart .woocommerce-mini-cart__buttons .checkout {
	background: linear-gradient(180deg, #0E4A31 0%, #07311F 100%) !important;
	color: #F4EFDD !important;
}

/* account */
.hp-new-header .whb-main-header .wd-header-my-account .wd-dropdown { padding: 18px 20px 20px !important; }
.hp-new-header .whb-main-header .wd-header-my-account .login-form-footer a,
.hp-new-header .whb-main-header .wd-header-my-account .create-account-link { color: #0F3A29 !important; }
.hp-new-header .whb-main-header .wd-header-my-account input.input-text {
	height: 44px !important;
	border: 1px solid #E6DDC8 !important;
	border-radius: 10px !important;
	background: #FFFDF8 !important;
}
.hp-new-header .whb-main-header .wd-header-my-account .button {
	height: 44px;
	border-radius: 999px !important;
	background: linear-gradient(180deg, #0E4A31 0%, #07311F 100%) !important;
	color: #F4EFDD !important;
}
.hp-new-header .whb-main-header .wd-header-my-account .wd-sub-menu a { padding: 9px 16px !important; color: #2D2E2B !important; border-radius: 8px; }
.hp-new-header .whb-main-header .wd-header-my-account .wd-sub-menu a:hover { background: #E9EEDA; color: #0F3A29 !important; }


/* --------------------------------------------------------------------------
   Signed in (header-elements/account.php): initials in place of the person
   icon, an "online" dot, and "Signed in as" atop the drop-down
   -------------------------------------------------------------------------- */
.hp-new-header .whb-main-header .wd-header-my-account.hp-signed-in > a { width: 36px; height: 36px; }
.hp-new-header .whb-main-header .wd-header-my-account.hp-signed-in .hp-avatar--header {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(180deg, #0E4A31 0%, #07311F 100%);
	-webkit-mask: none;
	mask: none;
	color: #F4EFDD;
	font: 700 13px/1 "Inter", system-ui, sans-serif;
	letter-spacing: .04em;
}
.hp-new-header .whb-main-header .wd-header-my-account.hp-signed-in .hp-avatar--header::after {
	content: "";
	position: absolute;
	right: -1px;
	bottom: 0;
	width: 11px;
	height: 11px;
	border: 2px solid #FDF6E9;
	border-radius: 50%;
	background: #3FA34D;
}
.hp-new-header .whb-main-header .hp-dd-who {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 10px;
	padding: 0 4px 14px;
	border-bottom: 1px solid #E6DDC8;
}
.hp-new-header .whb-main-header .hp-dd-who small { display: block; font: 500 12px/1.3 "Inter", sans-serif; color: #6A6B62; }
.hp-new-header .whb-main-header .hp-dd-who strong { display: block; font: 700 16px/1.25 "Playfair Display", Georgia, serif; color: #0F3A29; }


/* --------------------------------------------------------------------------
   Loading feedback (assets/js/hp-header.js): top bar + one centred spinner.
   Replaces the spinners that sat in the middle of each busy box.
   -------------------------------------------------------------------------- */
html { scrollbar-gutter: stable; }   /* a popup hiding the scrollbar must not shift the header */
#hp-bar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100001;
	width: 0;
	height: 3px;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(90deg, #2E6B45, #E2B54C);
	opacity: 0;
	pointer-events: none;
}
#hp-bar.is-on { width: 88%; opacity: 1; transition: width 9s cubic-bezier(.08, .8, .2, 1); }
#hp-bar.is-done { width: 100%; opacity: 0; transition: width .2s ease, opacity .3s ease .15s; }
#hp-spin {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	background: rgba(251, 245, 228, .4);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, visibility .18s;
}
#hp-spin.is-on { opacity: 1; visibility: visible; }
#hp-spin i {
	width: 58px;
	height: 58px;
	box-sizing: border-box;
	border: 4px solid rgba(15, 58, 41, .14);
	border-top-color: #0F3A29;
	border-radius: 50%;
	background: #FFFBF2;
	box-shadow: 0 10px 30px rgba(15, 58, 41, .16);
	animation: hp-spin .8s linear infinite;
}
@keyframes hp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	#hp-spin i { animation-duration: 2.4s; }
	#hp-bar.is-on { transition: none; }
}
/* the old spinners: the busy box keeps its dim, the spinner is the centred one */
.blockUI.blockOverlay::before,
.blockUI.blockOverlay::after,
.wd-sticky-loader,
.wd-loader-overlay::before,
.wd-loader-overlay::after { display: none !important; }
