.cgs-site-header {
	--cgs-header-top: 0px;
	--cgs-header-orange: #f36527;
	--cgs-header-navy: #172f3f;
	--cgs-header-text: #28343b;
	--cgs-header-muted: #68737b;
	--cgs-header-border: rgba(23, 47, 63, 0.12);
	--cgs-header-shadow: 0 12px 28px rgba(23, 47, 63, 0.1);
	--cgs-header-surface: #fbfaf8;
	background: var(--cgs-header-surface);
	border-bottom: 1px solid var(--cgs-header-border);
	color: var(--cgs-header-text);
	position: sticky;
	top: var(--cgs-header-top);
	z-index: 900;
	transition: box-shadow 180ms ease, background-color 180ms ease;
	width: 100%;
}

body.admin-bar .cgs-site-header {
	--cgs-header-top: 32px;
}

.cgs-site-header--compact {
	box-shadow: var(--cgs-header-shadow);
}

.cgs-site-header__inner {
	margin: 0 auto;
	max-width: 1280px;
	padding: 0 24px;
	position: relative;
	width: 100%;
}

.cgs-site-header__primary-row {
	align-items: center;
	display: grid;
	gap: 20px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	min-height: 92px;
	transition: min-height 180ms ease, opacity 180ms ease, transform 180ms ease, padding 180ms ease;
}

.cgs-site-header__mobile-top-row,
.cgs-site-header__mobile-logo-row {
	display: none;
}

.cgs-site-header--compact .cgs-site-header__primary-row {
	min-height: 64px;
}

.cgs-site-header--logged-in.cgs-site-header--primary-hidden .cgs-site-header__primary-row {
	max-height: 0;
	min-height: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	transform: translateY(-12px);
}

.cgs-site-header__brand {
	align-items: center;
	display: flex;
	min-width: 0;
}

.cgs-site-header__logo,
.cgs-site-header__logo-link {
	align-items: center;
	color: var(--cgs-header-navy);
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
	transform-origin: left center;
	transition: transform 180ms ease;
}

.cgs-site-header__logo-image,
.cgs-site-header .custom-logo {
	display: block;
	height: auto;
	max-height: 72px;
	max-width: 380px;
	width: auto;
}

.cgs-site-header__logo-image--icon {
	max-height: 42px;
	max-width: 54px;
}

.cgs-site-header__logo-image--full {
	max-height: 72px;
	max-width: min(380px, 42vw);
}

.cgs-site-header__logo-main {
	color: var(--cgs-header-navy);
	display: block;
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.cgs-site-header__logo-tagline {
	color: var(--cgs-header-orange);
	display: block;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	margin-top: 4px;
	white-space: nowrap;
}

.cgs-site-header--compact .cgs-site-header__logo,
.cgs-site-header--compact .cgs-site-header__logo-link {
	transform: scale(0.84);
}

.cgs-site-header__nav {
	align-items: center;
	display: flex;
	justify-content: flex-end;
	min-width: 0;
}

.cgs-site-header__menu {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cgs-site-header__menu li {
	margin: 0;
	padding: 0;
}

.cgs-site-header__menu a,
.cgs-site-header .mega-menu-link {
	color: var(--cgs-header-text);
	display: inline-flex;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.2;
	padding: 8px 2px;
	text-decoration: none;
	transition: color 160ms ease;
}

.cgs-site-header__menu a:hover,
.cgs-site-header__menu a:focus,
.cgs-site-header .mega-menu-link:hover,
.cgs-site-header .mega-menu-link:focus {
	color: var(--cgs-header-orange);
}

.cgs-site-header__desktop-actions,
.cgs-site-header__mobile-actions,
.cgs-site-header__actions,
.cgs-site-header__member-inner,
.cgs-site-header__mobile-panel-actions {
	align-items: center;
	display: flex;
	gap: 10px;
}

.cgs-site-header__button {
	align-items: center;
	border: 1px solid var(--cgs-header-border);
	border-radius: 6px;
	color: var(--cgs-header-navy);
	display: inline-flex;
	font-size: 14px;
	font-weight: 750;
	justify-content: center;
	line-height: 1.1;
	min-height: 38px;
	padding: 9px 13px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
	white-space: nowrap;
}

.cgs-site-header__button:hover,
.cgs-site-header__button:focus {
	border-color: rgba(243, 101, 39, 0.55);
	color: var(--cgs-header-orange);
}

.cgs-site-header__button--primary {
	background: var(--cgs-header-orange);
	border-color: var(--cgs-header-orange);
	color: #fff;
}

.cgs-site-header__button--primary:hover,
.cgs-site-header__button--primary:focus {
	background: #d95419;
	border-color: #d95419;
	color: #fff;
}

.cgs-site-header__marketplace {
	background: rgba(243, 101, 39, 0.09);
	border-color: rgba(243, 101, 39, 0.28);
	color: var(--cgs-header-orange);
}

.cgs-site-header__member-bar {
	background: var(--cgs-header-surface);
	border-top: 1px solid var(--cgs-header-border);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 46px;
	padding: 5px 24px;
	transition: box-shadow 180ms ease, padding 180ms ease, transform 180ms ease;
	width: 100vw;
}

.cgs-site-header--compact .cgs-site-header__member-bar {
	padding-bottom: 4px;
	padding-top: 4px;
}

.cgs-site-header--logged-in.cgs-site-header--member-row-pinned .cgs-site-header__member-bar {
	box-shadow: var(--cgs-header-shadow);
	position: sticky;
	top: var(--cgs-header-top);
	z-index: 2;
}

.cgs-site-header__member-inner {
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	max-width: 1280px;
	min-height: 36px;
	min-width: 0;
	width: 100%;
}

.cgs-site-header__mp-nav {
	align-items: center;
	display: inline-flex;
	min-width: 0;
}

.cgs-site-header__actions {
	align-items: center;
	flex: 0 1 auto;
	justify-content: center;
	min-width: 0;
}

.cgs-site-header__action {
	align-items: center;
	display: inline-flex;
	min-width: 0;
}

.cgs-site-header__action:empty,
.cgs-site-header__mp-nav:empty,
.cgs-site-header__marketplace-toggle:empty {
	display: none;
}

.cgs-site-header__mp-nav .cgs-mp-nav--public,
.cgs-site-header__mp-nav .cgs-mp-nav__inner,
.cgs-site-header__mp-nav .cgs-mp-nav__left,
.cgs-site-header__action--cart .cgs-mp-cartbar,
.cgs-site-header__action--seller .cgs-mp-seller-cta {
	align-items: center;
	display: inline-flex;
	margin-bottom: 0 !important;
	margin-top: 0 !important;
}

.cgs-site-header__mp-nav .cgs-mp-nav--public {
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: auto;
}

.cgs-site-header__mp-nav .cgs-mp-nav__inner {
	padding: 0;
	width: auto;
}

.cgs-site-header__mp-nav .cgs-mp-nav__left {
	overflow: visible;
	width: auto;
}

.cgs-site-header__mobile-tool {
	align-items: center;
	display: inline-flex;
}

.cgs-site-header__mobile-tool:empty {
	display: none;
}

.cgs-marketplace-toggle [hidden] {
	display: none !important;
}

.cgs-marketplace-toggle__icon,
.cgs-marketplace-toggle__icon-svg,
.cgs-marketplace-toggle__icon-img {
	display: inline-flex;
	height: 20px;
	width: 20px;
}

.cgs-marketplace-toggle__icon-img {
	object-fit: contain;
}

.cgs-site-header a:focus-visible,
.cgs-site-header button:focus-visible {
	outline: 2px solid var(--cgs-header-orange);
	outline-offset: 3px;
}

@media (max-width: 782px) {
	.cgs-site-header__inner {
		padding-left: 0;
		padding-right: 0;
	}

	.cgs-site-header__primary-row {
		display: none;
	}

	.cgs-site-header__mobile-top-row {
		align-items: center;
		background: var(--cgs-header-surface);
		border-bottom: 1px solid var(--cgs-header-border);
		display: grid;
		gap: 10px;
		grid-template-columns: auto minmax(0, 1fr);
		min-height: 68px;
		padding: 8px 16px;
		position: relative;
		transition: min-height 180ms ease, padding 180ms ease;
		z-index: 4;
	}

	.cgs-site-header--compact .cgs-site-header__mobile-top-row {
		min-height: 52px;
		padding-bottom: 5px;
		padding-top: 5px;
	}

	.cgs-site-header__mobile-logo-row {
		align-items: center;
		background: var(--cgs-header-surface);
		border-bottom: 1px solid var(--cgs-header-border);
		display: flex;
		justify-content: center;
		max-height: 72px;
		opacity: 1;
		overflow: hidden;
		padding: 8px 16px;
		transform: translateY(0);
		transition: max-height 180ms ease, opacity 180ms ease, padding 180ms ease, transform 180ms ease;
	}

	.cgs-site-header--compact .cgs-site-header__mobile-logo-row,
	.cgs-site-header--primary-hidden .cgs-site-header__mobile-logo-row {
		border-bottom-width: 0;
		max-height: 0;
		opacity: 0;
		padding-bottom: 0;
		padding-top: 0;
		transform: translateY(-8px);
	}

	.cgs-site-header__mobile-actions {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		min-width: 0;
	}

	.cgs-site-header__mobile-icon-brand {
		align-items: center;
		display: flex;
		min-width: 42px;
	}

	.cgs-site-header__mobile-icon-brand .cgs-site-header__logo-image,
	.cgs-site-header__mobile-icon-brand .custom-logo {
		max-height: 38px;
		max-width: 42px;
		transition: max-height 180ms ease, max-width 180ms ease;
	}

	.cgs-site-header--compact .cgs-site-header__mobile-icon-brand .cgs-site-header__logo-image,
	.cgs-site-header--compact .cgs-site-header__mobile-icon-brand .custom-logo {
		max-height: 30px;
		max-width: 34px;
	}

	.cgs-site-header__mobile-logo-row .cgs-site-header__logo-image--full {
		max-height: 48px;
		max-width: min(300px, 88vw);
	}

	.cgs-site-header__nav,
	.cgs-site-header__desktop-actions {
		display: none;
	}

	.cgs-site-header__member-bar {
		overflow-x: hidden;
		min-height: 44px;
		padding-bottom: 4px;
		padding-left: 16px;
		padding-right: 16px;
		padding-top: 4px;
	}

	.cgs-site-header__member-inner {
		align-items: center;
		flex-wrap: wrap;
		gap: 10px;
		min-width: 0;
	}

	.cgs-site-header__actions {
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
		justify-content: center;
	}

	.cgs-site-header__action,
	.cgs-site-header__mp-nav,
	.cgs-site-header__action--cart .cgs-mp-cartbar {
		align-items: center;
		display: inline-flex;
		margin-bottom: 0 !important;
		margin-top: 0 !important;
	}

	.cgs-site-header__mp-nav .cgs-mp-nav__left {
		gap: 8px;
	}

	.cgs-site-header__mp-nav .cgs-mp-tab,
	.cgs-site-header__action--quick .cgs-header-action-bar__link,
	.cgs-site-header__action--seller .cgs-mp-seller-cta__pill {
		align-items: center;
		display: inline-flex;
		font-size: 12px;
		justify-content: center;
		line-height: 1;
		min-height: 32px;
		padding-bottom: 6px;
		padding-top: 6px;
	}

	.cgs-site-header__action--cart .cgs-mp-cart-trigger {
		align-items: center;
		display: inline-flex;
		height: 32px !important;
		justify-content: center;
		margin: 0;
		width: 32px !important;
	}

	.cgs-site-header__action--tools,
	.cgs-site-header__action--species-wishlist,
	.cgs-site-header__action--help,
	.cgs-site-header__action--search {
		display: none;
	}

	.cgs-site-header__mobile-mega {
		align-items: center;
		display: inline-flex;
		flex: 0 0 auto;
		min-height: 38px;
		min-width: 44px;
	}

	.cgs-site-header--logged-in .cgs-site-header__mobile-actions {
		gap: 8px;
	}

	.cgs-site-header--logged-in .cgs-site-header__mobile-tool,
	.cgs-site-header--logged-in .cgs-site-header__mobile-marketplace-toggle {
		align-items: center;
		display: inline-flex;
		flex: 0 0 28px;
		height: 34px;
		justify-content: center;
		margin: 0;
		min-width: 28px;
		width: 28px;
	}

	.cgs-site-header--logged-in .cgs-site-header__mobile-tool > *,
	.cgs-site-header--logged-in .cgs-site-header__mobile-marketplace-toggle > * {
		align-items: center;
		display: inline-flex;
		justify-content: center;
		margin: 0;
	}

	.cgs-site-header--logged-in .cgs-site-header__mobile-tool .cgs-tools-shortcode,
	.cgs-site-header--logged-in .cgs-site-header__mobile-tool .cgs-doc-context-help,
	.cgs-site-header--logged-in .cgs-site-header__mobile-tool .cgs-species-wishlist-drawerbar {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.cgs-site-header--logged-in .cgs-site-header__mobile-tool .cgs-tools-toggle,
	.cgs-site-header--logged-in .cgs-site-header__mobile-tool .cgs-doc-context-help__toggle,
	.cgs-site-header--logged-in .cgs-site-header__mobile-tool .cgs-species-wishlist-drawerbar__trigger {
		align-items: center;
		display: inline-flex;
		height: 28px;
		justify-content: center;
		margin: 0;
		min-height: 28px;
		min-width: 28px;
		padding: 0 !important;
		width: 28px;
	}

	.cgs-site-header--logged-in .cgs-site-header__mobile-marketplace-toggle a,
	.cgs-site-header--logged-in .cgs-site-header__mobile-marketplace-toggle button {
		align-items: center;
		display: inline-flex;
		justify-content: center;
		margin: 0;
		min-height: 28px;
		padding: 0;
	}

	.cgs-site-header__mobile-mega .cgs-site-header__menu {
		display: flex;
		gap: 0;
	}

	.cgs-site-header__mobile-mega .cgs-site-header__menu > li:not(:first-child) {
		display: none;
	}

	.cgs-site-header__mobile-mega .cgs-site-header__menu > li:first-child > a {
		border: 1px solid var(--cgs-header-border);
		border-radius: 6px;
		font-size: 0;
		height: 38px;
		justify-content: center;
		padding: 0;
		position: relative;
		width: 48px;
	}

	.cgs-site-header--compact .cgs-site-header__mobile-mega .cgs-site-header__menu > li:first-child > a {
		height: 34px;
		width: 44px;
	}

	.cgs-site-header__mobile-mega .cgs-site-header__menu > li:first-child > a::before {
		color: var(--cgs-header-navy);
		content: "\2630";
		font-size: 24px;
		line-height: 1;
	}
}

@media (max-width: 640px) {
	.cgs-site-header__mobile-top-row {
		gap: 6px;
		grid-template-columns: 36px minmax(0, 1fr);
		padding-left: 14px;
		padding-right: 14px;
	}

	.cgs-site-header__mobile-actions {
		gap: 8px;
	}

	.cgs-site-header__button {
		font-size: 11px;
		min-height: 34px;
		padding: 7px 8px;
	}

	.cgs-site-header__login--mobile {
		padding-left: 9px;
		padding-right: 9px;
	}

	.cgs-site-header__mobile-mega .cgs-site-header__menu > li:first-child > a {
		height: 34px;
		width: 44px;
	}

	.cgs-site-header__mobile-logo-row .cgs-site-header__logo-image--full {
		max-height: 40px;
		max-width: min(260px, 86vw);
	}
}

@media (max-width: 420px) {
	.cgs-site-header__join--mobile {
		max-width: none;
	}

	.cgs-site-header__login--mobile {
		max-width: none;
	}
}

@media (max-width: 782px) {
	body.admin-bar .cgs-site-header {
		--cgs-header-top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cgs-site-header,
	.cgs-site-header *,
	.cgs-site-header *::before,
	.cgs-site-header *::after {
		transition-duration: 0.01ms !important;
	}
}
