/* YAJTOOL – header cart, account, search (site-wide) */
:root {
	--yaj-blue: #0056b3;
	--yaj-blue-dark: #002e5b;
}

/* Right header icons – aligned row */
.site-header-primary-section-right .site-header-section-inner-wrap,
.site-header-secondary-section-right .site-header-section-inner-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	flex-wrap: nowrap;
}

.site-header-primary-section-right .ast-builder-layout-element,
.site-header-secondary-section-right .ast-builder-layout-element {
	display: flex;
	align-items: center;
	margin: 0 !important;
}

/* Hide cart total price box (icon + badge only) */
.ast-woo-header-cart-info-wrap,
.ast-woo-header-cart-total,
.ast-woo-header-cart .ast-woo-header-cart-info-wrap {
	display: none !important;
}

/* Cart icon */
.ast-header-woo-cart .ast-site-header-cart,
.ast-header-woo-cart .ast-cart-menu-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ast-header-woo-cart .ast-icon,
.ast-header-woo-cart .astra-icon,
.ast-header-woo-cart svg {
	color: var(--yaj-blue) !important;
	fill: var(--yaj-blue) !important;
}

.ast-header-woo-cart .count,
.ast-header-woo-cart .ast-count-text,
.ast-site-header-cart .count {
	background: var(--yaj-blue) !important;
	color: #fff !important;
	border: 2px solid #fff;
	min-width: 18px;
	height: 18px;
	line-height: 14px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 50%;
	top: -6px;
	right: -8px;
}

/* Account – icon only, hide broken demo avatars */
.ast-header-account-wrap .ast-header-account-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.ast-header-account-wrap .ast-header-account-link:hover {
	background: rgba(0, 86, 179, 0.08);
}

.ast-header-account-type-avatar img,
.ast-header-account-link img[src*="websitedemos"],
.ast-header-account-link img[src=""],
.ast-header-account-link img:not([src]) {
	display: none !important;
}

.ast-header-account-type-icon::before,
.ast-header-account-type-avatar.ast-header-account-type-icon::before {
	content: none;
}

.ast-header-account .ast-account-icon-svg,
.ast-header-account-link .astra-icon-svg,
.ast-header-account svg {
	width: 22px;
	height: 22px;
	color: var(--yaj-blue) !important;
	fill: var(--yaj-blue) !important;
}

/* Search toggle */
.ast-search-menu-icon,
.ast-search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ast-search-menu-icon a,
.ast-search-menu-icon .search-field,
.ast-search-menu-icon .astra-search-icon,
.ast-search-icon svg {
	color: var(--yaj-blue) !important;
	fill: var(--yaj-blue) !important;
}

.ast-search-menu-icon.slide-search a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ast-search-menu-icon.slide-search a:hover {
	background: rgba(0, 86, 179, 0.08);
}

/* Search dropdown field */
.ast-search-menu-icon .search-form,
.ast-header-search .search-form {
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ast-search-menu-icon .search-field,
.ast-header-search .search-field {
	border: 1px solid #ddd !important;
	min-width: 220px;
}

.ast-search-menu-icon .search-submit,
.ast-header-search .search-submit {
	background: var(--yaj-blue) !important;
	color: #fff !important;
	border-color: var(--yaj-blue) !important;
}

@media (max-width: 921px) {
	.site-header-primary-section-right .site-header-section-inner-wrap {
		gap: 10px;
	}

	.ast-header-account-wrap .ast-header-account-link,
	.ast-search-menu-icon.slide-search a {
		width: 36px;
		height: 36px;
	}
}
