/*
 * Desktop mega-menu treatment for the dynamic product_cat navigation.
 * Partdo retains ownership of the outer trigger, dropdown and mobile drawer.
 */
.gh-product-category-menu__custom-link--first {
	border-top: 1px solid rgba(33, 37, 41, 0.1);
	margin-top: 0.375rem;
	padding-top: 0.5rem;
}

.site-header .gh-product-category-menu__help-center {
	display: none;
}

.site-drawer .gh-product-category-menu__help-center {
	border-top: 1px solid rgba(33, 37, 41, 0.1);
	margin-top: 0.5rem;
	padding-top: 0.5rem;
}

.site-drawer .gh-product-category-menu__help-center > .notice-link {
	align-items: center;
	display: flex;
	gap: 0.625rem;
}

.site-drawer .gh-product-category-menu__help-center .notice-icon {
	color: var(--color-primary, #07a898);
	display: inline-flex;
	font-size: 1rem;
}

@media (min-width: 1200px) {
	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu > .gh-product-category-menu__root > .gh-product-category-menu__panel {
		--gh-category-panel-width: 23.5rem;
		bottom: auto;
		left: calc(100% - 0.5rem);
		max-height: calc(100vh - 4.5rem);
		overflow-y: auto;
		padding: 1.25rem 1.5rem;
		/* The Partdo category rail sits in the left half of the header. */
		width: min(var(--gh-category-panel-width), calc(50vw + 20rem));
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu > .gh-product-category-menu__root--columns-2 > .gh-product-category-menu__panel {
		--gh-category-panel-width: 48rem;
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu > .gh-product-category-menu__root--columns-3 > .gh-product-category-menu__panel {
		--gh-category-panel-width: 69rem;
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__panel-content {
		padding: 0;
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__grid {
		align-items: start;
		display: grid;
		gap: 1.35rem 2.5rem;
		grid-template-columns: minmax(0, 1fr);
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu > .gh-product-category-menu__root--columns-2 .gh-product-category-menu__grid {
		grid-template-columns: repeat(2, minmax(220px, 1fr));
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu > .gh-product-category-menu__root--columns-3 .gh-product-category-menu__grid {
		grid-template-columns: repeat(3, minmax(220px, 1fr));
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__group {
		break-inside: avoid;
		min-width: 0;
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__child-heading {
		color: var(--color-text-primary);
		display: -webkit-box;
		font-size: 0.875rem;
		font-weight: 700;
		line-height: 1.35;
		overflow: hidden;
		padding: 0 0 0.45rem;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__child-heading::after,
	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__grandchildren a::after,
	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__descendants a::after {
		display: none;
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__grandchildren,
	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__descendants {
		background: transparent;
		border: 0;
		box-shadow: none;
		left: auto;
		opacity: 1;
		overflow: visible;
		padding: 0;
		pointer-events: auto;
		position: static;
		transform: none;
		visibility: visible;
		width: auto;
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__grandchildren a,
	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__descendants a {
		font-size: 0.8125rem;
		line-height: 1.4;
		overflow-wrap: break-word;
		padding: 0.34rem 0;
	}

	.site-header .dropdown-cats .dropdown-menu .klbth-menu.gh-product-category-menu .gh-product-category-menu__descendants {
		padding-left: 0.75rem;
	}
}
