/*
 * Header presentation for the Astra builder.
 * Namespace: .sdp-info and #masthead.
 * Astra still owns the markup, the menu, and the mobile toggle.
 */

:root {
	--sdp-accent: #e5322c;
	--sdp-accent-dark: #c42822;
	--sdp-ink: #1f1f1f;
	--sdp-muted: #4a4a4a;
	--sdp-line: #e6e6e6;
}

.sdp-info {
	background: #f7f7f7;
	border-bottom: 1px solid var(--sdp-line);
	color: var(--sdp-muted);
	font-size: 13px;
	line-height: 1.45;
	max-width: 100%;
}

.sdp-info__row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	justify-content: space-between;
	padding-bottom: 8px;
	padding-top: 8px;
}

.sdp-info__contacts {
	display: flex;
	flex: 1 1 320px;
	flex-wrap: wrap;
	gap: 6px 18px;
	list-style: none;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.sdp-info__item {
	align-items: flex-start;
	display: flex;
	gap: 6px;
	margin: 0;
	min-width: 0;
}

.sdp-info__item--address {
	flex: 1 1 240px;
}

.sdp-info__item--phone,
.sdp-info__item--email {
	flex: 0 1 auto;
}

.sdp-info__item a {
	align-items: flex-start;
	color: inherit;
	display: inline-flex;
	gap: 6px;
	text-decoration: none;
}

.sdp-info__icon {
	color: var(--sdp-accent);
	display: block;
	flex: 0 0 auto;
	height: 15px;
	margin-top: 1px;
	width: 15px;
}

.sdp-info__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-left: auto;
}

.sdp-info__nav a {
	color: var(--sdp-ink);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.sdp-info a:hover,
.sdp-info a:focus-visible {
	color: var(--sdp-accent);
}

.sdp-info a:focus-visible {
	outline: 2px solid var(--sdp-accent);
	outline-offset: 2px;
}

#masthead,
#masthead .ast-primary-header-bar,
#masthead .main-header-bar,
#masthead .ast-below-header-bar {
	background: #ffffff;
}

#masthead .ast-primary-header-bar {
	border-bottom: 1px solid var(--sdp-line);
}

#masthead .ast-site-title-wrap {
	display: none;
}

#masthead .ast-header-account,
#masthead .ast-site-header-cart,
#masthead .ast-header-woo-cart,
#ast-mobile-popup .ast-header-account,
#ast-mobile-popup .ast-site-header-cart,
#ast-mobile-popup .ast-header-woo-cart {
	display: none !important;
}

#masthead .main-header-menu > .menu-item > .menu-link {
	border-bottom: 2px solid transparent;
	color: var(--sdp-ink);
	font-weight: 600;
}

#masthead .main-header-menu > .menu-item > .menu-link:hover,
#masthead .main-header-menu > .menu-item > .menu-link:focus-visible {
	color: var(--sdp-accent);
}

#masthead .main-header-menu > .current-menu-item > .menu-link,
#masthead .main-header-menu > .current_page_item > .menu-link,
#masthead .main-header-menu > .current-menu-ancestor > .menu-link {
	border-bottom-color: var(--sdp-accent);
	color: var(--sdp-accent);
}

#masthead .menu-toggle {
	color: var(--sdp-ink);
}

@media (min-width: 922px) {
	#ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row {
    align-items: center;
    column-gap: 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    padding-bottom: 14px;
    padding-top: 14px;
}

	#ast-desktop-header .site-header-primary-section-left {
		display: contents;
	}

	#ast-desktop-header .ast-header-html-1,
	#ast-desktop-header .ast-header-html-1 .ast-header-html,
	#ast-desktop-header .ast-header-html-1 .ast-builder-html-element,
	#ast-desktop-header .ast-header-html-1 .sdp-search {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	#ast-desktop-header .site-header-primary-section-right {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
}

	#ast-desktop-header .ast-builder-menu-1,
	#ast-desktop-header .ast-main-header-bar-alignment,
	#ast-desktop-header .main-header-bar-navigation,
	#ast-desktop-header .main-navigation,
	#ast-desktop-header .main-header-menu {
		align-items: center;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: flex-end;
		margin-left: 0;
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	#ast-desktop-header .main-header-menu > .menu-item > .menu-link {
		font-size: 15px;
		padding: 6px 0;
		text-transform: uppercase;
		white-space: nowrap;
	}

	#ast-desktop-header .main-header-menu > .menu-item {
		flex: 0 0 auto;
		margin-left: 0.85rem;
	}

	#ast-desktop-header .main-header-menu > .menu-item:first-child {
		margin-left: 0;
	}

	#ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row:not(:has(.sdp-search)) {
		grid-template-columns: auto minmax(0, 1fr);
	}

	#ast-desktop-header .ast-header-html-1:not(:has(.sdp-search)) {
		display: none;
	}

	#ast-desktop-header .main-header-menu > .menu-item:has(.dgwt-wcas-search-wrapp) {
		flex: 1 1 auto;
		margin-left: 1.25rem;
		max-width: 420px;
		min-width: 0;
		overflow: visible;
		position: relative;
		width: auto;
	}

	#ast-desktop-header .main-header-menu .dgwt-wcas-search-wrapp,
	#ast-desktop-header .main-header-menu .dgwt-wcas-sf-wrapp,
	#ast-desktop-header .main-header-menu .dgwt-wcas-search-form,
	#ast-desktop-header .main-header-menu .dgwt-wcas-search-input {
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}
}

@media (min-width: 922px) and (max-width: 1180px) {
	#ast-desktop-header .main-header-menu > .menu-item {
		margin-left: 0.55rem;
	}

	#ast-desktop-header .main-header-menu > .menu-item:has(.dgwt-wcas-search-wrapp) {
		margin-left: 0.85rem;
	}

	#ast-desktop-header .main-header-menu > .menu-item > .menu-link {
		font-size: 13px;
	}
}

@media (max-width: 921px) {
	.sdp-info {
		font-size: 12.5px;
	}

	.sdp-info__row {
		align-items: flex-start;
		gap: 8px 12px;
	}

	.sdp-info__nav {
		margin-left: 0;
		width: 100%;
	}

	#ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row {
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	#ast-mobile-header .ast-below-header-bar {
		border-bottom: 1px solid var(--sdp-line);
	}

	#ast-mobile-header .ast-below-header-bar .ast-builder-grid-row {
		box-sizing: border-box;
		padding: 0 20px 12px;
		width: 100%;
	}

	#ast-mobile-header .site-header-below-section-center,
	#ast-mobile-header .ast-header-html-2,
	#ast-mobile-header .ast-header-html-2 .ast-header-html,
	#ast-mobile-header .ast-header-html-2 .ast-builder-html-element,
	#ast-mobile-header .ast-header-html-2 .sdp-search,
	#ast-mobile-header .ast-header-html-2 .dgwt-wcas-search-wrapp,
	#ast-mobile-header .ast-header-html-2 .dgwt-wcas-search-form {
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	.ast-mobile-header-content .menu-item:has(.dgwt-wcas-search-wrapp),
	#ast-hf-mobile-menu .menu-item:has(.dgwt-wcas-search-wrapp),
	#ast-mobile-site-navigation .menu-item:has(.dgwt-wcas-search-wrapp),
	#ast-mobile-popup .menu-item:has(.dgwt-wcas-search-wrapp),
	.ast-mobile-header-content .dgwt-wcas-search-wrapp,
	#ast-hf-mobile-menu .dgwt-wcas-search-wrapp,
	#ast-mobile-site-navigation .dgwt-wcas-search-wrapp,
	#ast-mobile-popup .dgwt-wcas-search-wrapp {
		display: none !important;
		height: 0 !important;
		margin: 0 !important;
		overflow: hidden !important;
		padding: 0 !important;
		pointer-events: none !important;
		visibility: hidden !important;
	}
}
