/*
 * ABS Header Menu 1.0.2 (Dan Lee)
 *
 * Every rule is scoped to abs-hm-* classes, or to Flatsome header rows that
 * contain them (:has), so nothing changes until the shortcodes are placed in
 * Flatsome > Header.
 *
 * Breakpoints follow Flatsome: phones and tablets below 850px.
 */

:root {
	--abs-hm-navy: #1c2a63;
	--abs-hm-navy-hover: #26387f;
	--abs-hm-blue: #2f66c9;
	--abs-hm-green: #00a650;
	--abs-hm-text: #1b2233;
	--abs-hm-muted: #5b6170;
	--abs-hm-line: #e2e5ea;
	--abs-hm-tint: #f3f5f9;
}

/* Shared resets against Flatsome's button and list defaults */
.abs-hm-actions button,
.abs-hm-bar button,
.abs-hm-burger,
.abs-hm-panel button {
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	line-height: 1.2;
	text-transform: none;
	text-shadow: none;
	cursor: pointer;
}

.abs-hm-bar ul,
.abs-hm-panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.abs-hm-bar li,
.abs-hm-panel li {
	margin: 0;
	list-style: none;
}

.abs-hm-ico {
	display: block;
	flex: none;
	width: 18px;
	height: 18px;
}

.abs-hm-actions :focus-visible,
.abs-hm-bar :focus-visible,
.abs-hm-burger:focus-visible,
.abs-hm-panel :focus-visible {
	outline: 2px solid var(--abs-hm-blue);
	outline-offset: 2px;
}

/* Quote Cart count badge (filled in by the script) */
.abs-hm-count {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--abs-hm-green);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

.abs-hm-count[hidden] {
	display: none;
}

/* ===================================================================== *
 * Row one: search, phone, Contact Sales, Quote Cart
 * ===================================================================== */

.abs-hm-actions {
	width: 100%;
	color: var(--abs-hm-text);
	font-size: 14px;
	line-height: 1.3;
}

.abs-hm-actions__desk {
	display: flex;
	align-items: center;
	gap: 22px;
	width: 100%;
}

.abs-hm-actions__mob {
	display: none;
	align-items: center;
}

/* Let row one stretch across Flatsome's Header Main */
.header-main .header-nav-main:has(.abs-hm-actions) {
	flex-wrap: nowrap;
}

.header-main .header-nav-main > li.html:has(.abs-hm-actions) {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 0 0 24px;
	color: var(--abs-hm-text);
	font-size: 14px;
}

.header-main .mobile-nav > li.html:has(.abs-hm-actions),
.header-main .mobile-nav > li.html:has(.abs-hm-burger) {
	margin: 0;
	font-size: 14px;
}

/* The child theme stacks the header and hides its right side between 850
   and 1200px (style.css, "Header"). Keep row one on one line instead. */
@media (min-width: 850px) and (max-width: 1200px) {
	.header .header-inner:has(.abs-hm-actions) {
		flex-direction: row;
	}
}

/* Flatsome's search form, restyled as a rounded box */
.abs-hm-search {
	flex: 1 1 auto;
	min-width: 180px;
	max-width: 620px;
	margin-inline: auto;
}

.abs-hm-search .searchform-wrapper,
.abs-hm-search .searchform {
	width: 100%;
	margin: 0;
}

.abs-hm-search .searchform .flex-row {
	position: relative;
	align-items: center;
}

/* Live search results float over the page as a card. Flatsome only floats
   them for its own header search element; inside an HTML element they would
   sit in the layout and push row one apart. */
.abs-hm-search .searchform,
.abs-hm-panel__search .searchform {
	position: relative;
}

.header .abs-hm-search .searchform .live-search-results {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 60;
	overflow: hidden;
	border: 1px solid var(--abs-hm-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 40px -12px rgba(10, 20, 50, .35);
	color: var(--abs-hm-text);
	text-align: left;
}

.abs-hm-panel__search .searchform .live-search-results {
	position: static;
	margin-top: 8px;
	overflow: hidden;
	border: 1px solid var(--abs-hm-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	color: var(--abs-hm-text);
	text-align: left;
}

.abs-hm-search .live-search-results:not(:has(.autocomplete-suggestion, .autocomplete-no-suggestion)),
.abs-hm-panel__search .live-search-results:not(:has(.autocomplete-suggestion, .autocomplete-no-suggestion)) {
	display: none;
}

.header .abs-hm-search .autocomplete-suggestions {
	max-height: 60vh;
}

.abs-hm-search .autocomplete-suggestion,
.abs-hm-panel__search .autocomplete-suggestion {
	padding: 10px 16px;
	border-bottom: 1px solid #eef0f3;
	font-size: 13.5px;
	line-height: 1.4;
	cursor: pointer;
}

.abs-hm-search .autocomplete-suggestion:last-child,
.abs-hm-panel__search .autocomplete-suggestion:last-child {
	border-bottom: 0;
}

.abs-hm-search .autocomplete-selected,
.abs-hm-search .autocomplete-suggestion:hover,
.abs-hm-panel__search .autocomplete-selected,
.abs-hm-panel__search .autocomplete-suggestion:hover {
	background: var(--abs-hm-tint);
}

.abs-hm-search .autocomplete-suggestion strong,
.abs-hm-panel__search .autocomplete-suggestion strong {
	color: var(--abs-hm-navy);
}

.abs-hm-search input[type="search"],
.abs-hm-panel__search input[type="search"] {
	height: 46px;
	margin: 0;
	padding: 0 52px 0 18px;
	border: 1.5px solid #cdd3dd;
	border-radius: 23px;
	box-shadow: none;
	background: #fff;
	color: var(--abs-hm-text);
	font-size: 14px;
}

.abs-hm-search input[type="search"]:focus,
.abs-hm-panel__search input[type="search"]:focus {
	border-color: var(--abs-hm-blue);
	box-shadow: 0 0 0 3px rgba(47, 102, 201, .15);
}

.abs-hm-search .searchform .flex-col:last-child,
.abs-hm-panel__search .searchform .flex-col:last-child {
	position: absolute;
	top: 50%;
	right: 5px;
	transform: translateY(-50%);
}

.abs-hm-search .ux-search-submit,
.abs-hm-panel__search .ux-search-submit {
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: var(--abs-hm-navy);
	color: #fff;
	line-height: 36px;
}

.abs-hm-search .ux-search-submit:hover,
.abs-hm-panel__search .ux-search-submit:hover {
	background: var(--abs-hm-navy-hover);
}

.abs-hm-actions a.abs-hm-phone {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	color: var(--abs-hm-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.15;
	white-space: nowrap;
	text-decoration: none;
}

.abs-hm-phone .abs-hm-ico {
	color: var(--abs-hm-blue);
}

.abs-hm-phone small {
	display: block;
	color: var(--abs-hm-muted);
	font-size: 11px;
	font-weight: 500;
}

.abs-hm-actions a.abs-hm-contact {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border: 1.5px solid var(--abs-hm-navy);
	border-radius: 22px;
	color: var(--abs-hm-navy);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.abs-hm-actions a.abs-hm-contact:hover {
	background: var(--abs-hm-navy);
	color: #fff;
}

.abs-hm-actions a.abs-hm-cart {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	color: var(--abs-hm-navy);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
}

.abs-hm-cart .abs-hm-ico {
	width: 24px;
	height: 24px;
}

.abs-hm-cart .abs-hm-count {
	position: absolute;
	top: -8px;
	left: 14px;
}

.abs-hm-actions .abs-hm-ibtn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 44px;
	color: var(--abs-hm-navy);
}

.abs-hm-actions .abs-hm-ibtn .abs-hm-ico {
	width: 22px;
	height: 22px;
}

.abs-hm-actions__mob .abs-hm-cart .abs-hm-count {
	top: 4px;
	left: auto;
	right: 0;
}

@media (max-width: 1100px) {
	.abs-hm-actions__desk {
		gap: 16px;
	}

	.abs-hm-cart__label {
		display: none;
	}
}

@media (max-width: 980px) {
	.abs-hm-phone__text {
		display: none;
	}

	.abs-hm-actions a.abs-hm-contact {
		padding: 0 14px;
	}
}

@media (max-width: 849px) {
	.abs-hm-actions__desk {
		display: none;
	}

	.abs-hm-actions__mob {
		display: flex;
	}
}

/* ===================================================================== *
 * Row two: navy category bar
 * ===================================================================== */

.header-bottom:has(.abs-hm-bar) {
	min-height: 0;
	background-color: var(--abs-hm-navy);
}

.header-bottom .flex-col:has(.abs-hm-bar) {
	flex: 1 1 auto;
	min-width: 0;
}

.header-bottom .nav:has(.abs-hm-bar) {
	flex-wrap: nowrap;
}

.header-bottom .nav > li.html:has(.abs-hm-bar) {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: #fff;
	font-size: 14px;
}

@media (max-width: 849px) {
	.header-bottom:has(.abs-hm-bar):not(:has(.mobile-nav)) {
		display: none;
	}
}

.abs-hm-bar {
	position: relative;
	width: 100%;
}

.abs-hm-bar__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.abs-hm-bar .abs-hm-bar__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 52px;
	padding: 0 14px;
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color .2s;
}

.abs-hm-bar__btn .abs-hm-ico {
	width: 12px;
	height: 12px;
	opacity: .8;
	transition: transform .2s;
}

.abs-hm-bar .abs-hm-bar__btn:hover {
	background: rgba(255, 255, 255, .08);
}

.abs-hm-bar .abs-hm-bar__btn[aria-expanded="true"] {
	background: rgba(255, 255, 255, .13);
}

.abs-hm-bar__btn[aria-expanded="true"]::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--abs-hm-green);
}

.abs-hm-bar__btn[aria-expanded="true"] .abs-hm-ico {
	transform: rotate(180deg);
}

@media (max-width: 1100px) {
	.abs-hm-bar .abs-hm-bar__btn {
		padding: 0 10px;
		font-size: 12.5px;
		letter-spacing: .02em;
	}
}

@media (max-width: 959px) {
	.abs-hm-bar .abs-hm-bar__btn {
		gap: 5px;
		padding: 0 6px;
		font-size: 11.5px;
		letter-spacing: 0;
	}
}

/* Picture panel, laid out as the theme's panel is today */
.abs-hm-mega {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 50;
	max-height: 75vh;
	overflow-y: auto;
	padding: 22px 40px 0;
	background: #fff;
	color: #111;
	box-shadow: 0 18px 30px -18px rgba(10, 20, 50, .35);
	text-align: left;
}

.abs-hm-mega[hidden] {
	display: none;
}

.abs-hm-mega::before {
	content: "";
	display: block;
	height: 3px;
	background:
		linear-gradient(to right, #207eb2, #4fcbf1) left / 48% 100% no-repeat,
		linear-gradient(#4a525d, #4a525d) right / 48% 100% no-repeat;
}

.abs-hm-bar .abs-hm-mega__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.abs-hm-mega__grid > li {
	border-right: 1px solid #cdcdcd;
	border-bottom: 1px solid #cdcdcd;
}

.abs-hm-mega__grid > li:nth-child(6n) {
	border-right: 0;
}

.abs-hm-mega a.abs-hm-mega__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 26px 12px 20px;
	color: #111;
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
}

.abs-hm-mega a.abs-hm-mega__link:hover {
	background: #f9f9f9;
}

.abs-hm-mega a.abs-hm-mega__link:hover .abs-hm-mega__name {
	color: #005083;
	text-decoration: underline;
}

.abs-hm-mega__img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
}

.abs-hm-mega__img img {
	width: auto;
	max-height: 120px;
}

.abs-hm-mega__all {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.abs-hm-mega .abs-hm-mega__all a {
	display: inline-block;
	max-width: 180px;
	padding: 14px 22px;
	border-radius: 3px;
	background: var(--abs-hm-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

.abs-hm-mega .abs-hm-mega__all a:hover {
	background: var(--abs-hm-navy-hover);
}

@media (max-width: 959px) {
	.abs-hm-bar .abs-hm-mega__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.abs-hm-mega__grid > li:nth-child(6n) {
		border-right: 1px solid #cdcdcd;
	}

	.abs-hm-mega__grid > li:nth-child(4n) {
		border-right: 0;
	}
}

/* ===================================================================== *
 * Phones: menu button and slide-over panel
 * ===================================================================== */

.abs-hm-burger {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--abs-hm-navy);
}

.abs-hm-burger .abs-hm-ico {
	width: 24px;
	height: 24px;
}

@media (min-width: 850px) {
	.abs-hm-burger {
		display: none;
	}
}

/* The child theme hides Flatsome's left mobile elements on phones (style.css,
   ".mobile-nav.nav.nav-left"). Show them when they hold the menu button. */
@media (max-width: 849px) {
	.header-main .mobile-nav.nav-left:has(.abs-hm-burger) {
		display: flex;
	}
}

html.abs-hm-locked,
html.abs-hm-locked body {
	overflow: hidden;
}

/* Above the quote cart tab and the chat bubble (both z-index 99999) */
.abs-hm-scrim {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(12, 18, 34, .45);
	opacity: 0;
	transition: opacity .3s;
}

.abs-hm-scrim[hidden] {
	display: none;
}

.abs-hm-scrim.is-open {
	opacity: 1;
}

.abs-hm-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	width: min(100%, 420px);
	/* The two menu screens sit side by side; hide the one not in view (it
	   showed beside the panel on screens wider than 420px). */
	overflow: hidden;
	background: #fff;
	color: var(--abs-hm-text);
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	box-shadow: 8px 0 30px rgba(10, 20, 50, .2);
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform .3s ease, visibility 0s linear .3s;
}

.abs-hm-panel.is-open {
	transform: none;
	visibility: visible;
	transition: transform .3s ease;
}

.abs-hm-panel a {
	color: inherit;
	text-decoration: none;
}

.abs-hm-panel__track {
	display: flex;
	flex: 1 1 auto;
	width: 200%;
	min-height: 0;
	transition: transform .3s ease;
}

.abs-hm-panel__track.is-sub {
	transform: translateX(-50%);
}

.abs-hm-panel__level {
	width: 50%;
	height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-bottom: 16px;
}

.abs-hm-panel__top {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	padding: 0 4px 0 16px;
	border-bottom: 1px solid var(--abs-hm-line);
	background: #fff;
}

.abs-hm-panel__top--sub {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	padding: 0 4px;
}

.abs-hm-panel__top--sub .abs-hm-panel__close {
	justify-self: end;
}

.abs-hm-panel__title {
	font-size: 16px;
	font-weight: 600;
}

.abs-hm-panel .abs-hm-ibtn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--abs-hm-navy);
}

.abs-hm-panel .abs-hm-ibtn .abs-hm-ico {
	width: 22px;
	height: 22px;
}

.abs-hm-panel .abs-hm-panel__back {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	justify-self: start;
	height: 44px;
	padding: 0 6px;
	color: var(--abs-hm-blue);
	font-size: 14px;
	font-weight: 500;
}

.abs-hm-panel__search {
	margin: 14px 16px 4px;
}

.abs-hm-panel__search .searchform .flex-row {
	position: relative;
	align-items: center;
}

/* 16px stops iPhones zooming the page when the search box is tapped */
.abs-hm-panel__search input[type="search"] {
	font-size: 16px;
}

.abs-hm-panel__label {
	margin: 18px 16px 6px;
	color: var(--abs-hm-muted);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.abs-hm-panel .abs-hm-panel__cat {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 60px;
	padding: 6px 14px 6px 16px;
	border-bottom: 1px solid #eef0f3;
	font-size: 15px;
	font-weight: 500;
	text-align: left;
}

.abs-hm-panel__catname {
	flex: 1 1 auto;
}

.abs-hm-panel__cat .abs-hm-ico {
	width: 16px;
	height: 16px;
	color: #9aa1ad;
}

.abs-hm-thumb {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--abs-hm-tint);
}

.abs-hm-thumb img {
	width: auto;
	max-width: 36px;
	max-height: 40px;
}

.abs-hm-thumb--sm {
	width: 40px;
	height: 40px;
	border-radius: 8px;
}

.abs-hm-thumb--sm img {
	max-width: 32px;
	max-height: 36px;
}

.abs-hm-panel .abs-hm-panel__links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 0 16px;
}

.abs-hm-panel .abs-hm-panel__links a {
	display: block;
	padding: 11px 12px;
	border-radius: 10px;
	background: var(--abs-hm-tint);
	color: #273046;
	font-size: 13px;
}

.abs-hm-panel .abs-hm-panel__all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 12px 16px 6px;
	padding: 13px 14px;
	border-radius: 10px;
	background: var(--abs-hm-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.abs-hm-panel__kids a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 6px 16px;
	border-bottom: 1px solid #eef0f3;
	font-size: 13.5px;
	line-height: 1.3;
}

.abs-hm-panel__foot {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--abs-hm-line);
	background: #fff;
}

.abs-hm-panel .abs-hm-btn {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 46px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
}

.abs-hm-panel .abs-hm-btn--ghost {
	border: 1.5px solid var(--abs-hm-navy);
	color: var(--abs-hm-navy);
}

.abs-hm-panel .abs-hm-btn--solid {
	background: var(--abs-hm-navy);
	color: #fff;
}

.abs-hm-panel .abs-hm-call {
	display: flex;
	flex: 1 1 100%;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	border-radius: 10px;
	background: var(--abs-hm-tint);
	color: var(--abs-hm-navy);
	font-size: 13.5px;
	font-weight: 600;
}

.abs-hm-call .abs-hm-ico {
	color: var(--abs-hm-blue);
}

@media (prefers-reduced-motion: reduce) {
	.abs-hm-panel,
	.abs-hm-panel__track,
	.abs-hm-scrim,
	.abs-hm-bar__btn,
	.abs-hm-bar__btn .abs-hm-ico {
		transition: none;
	}
}
