/* Header module (includes/header.php). */

/* The whole header stays on top; the theme's own sticky clone is not needed. */
.whb-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 390;
	background: #fff;
}

.whb-clone {
	display: none !important;
}

/* Rounded search box with a brand-coloured border. */
.whb-header form.searchform input.s {
	height: 44px;
	padding-left: 18px;
	border: 1.5px solid var(--wd-primary-color, #439665);
	border-radius: 24px;
	background: #fff;
	font-size: 15px;
}

.whb-header form.searchform.wd-with-cat input.s {
	border-radius: 0 24px 24px 0;
}

.whb-header form.searchform .searchsubmit {
	top: 4px;
	right: 4px;
	bottom: 4px;
	width: 44px;
	height: auto;
	border-radius: 20px;
}

.whb-header .wd-search-form,
.whb-header form.searchform {
	border: 0;
	box-shadow: none;
}

/* The shop-page layout (Woodmart layout 30955) still has the theme demo's
   black strip "By October 13th: Up to 50% off Autumn Collections". */
.elementor-30955 .elementor-element-46a4f9b6 {
	display: none !important;
}

/* Bottom bar, phones only. */
.hbs-bar {
	display: none;
}

@media (max-width: 1024px) {
	.wd-toolbar {
		display: none !important;
	}

	.hbs-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 380;
		display: flex;
		align-items: stretch;
		justify-content: space-around;
		height: 58px;
		padding-bottom: env(safe-area-inset-bottom);
		border-top: 1px solid #eee;
		background: #fff;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, .05);
	}

	body {
		padding-bottom: calc(58px + env(safe-area-inset-bottom));
	}
}

.hbs-bar-item {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #555;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
}

.hbs-bar-item:hover,
.hbs-bar-item:focus {
	background: none;
	color: var(--wd-primary-color, #439665);
}

.hbs-bar-item.is-here {
	color: var(--wd-primary-color, #439665);
}

.hbs-bar-item.is-wa {
	color: #1a9e4b;
}

.hbs-bar-count {
	position: absolute;
	top: 5px;
	left: 50%;
	min-width: 17px;
	height: 17px;
	margin-left: 4px;
	padding: 0 4px;
	border-radius: 9px;
	background: #e0473b;
	color: #fff;
	font-size: 10px;
	line-height: 17px;
	text-align: center;
}

.hbs-bar-count[data-count="0"] {
	display: none;
}

/* Extra block at the end of the phone side menu. */
.hbs-side-info {
	margin: 16px 15px 24px;
	padding-top: 14px;
	border-top: 1px solid #eee;
	font-size: 14px;
}

.hbs-side-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.hbs-side-links a {
	padding: 6px 12px;
	border-radius: 16px;
	background: #f3faf6;
	color: #2c6b47;
	font-weight: 600;
}

.hbs-side-note {
	margin: 0 0 6px;
	color: #555;
	font-size: 13px;
}

.hbs-side-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.hbs-side-actions a {
	flex: 1;
	padding: 10px 0;
	border: 1px solid var(--wd-primary-color, #439665);
	border-radius: 8px;
	color: var(--wd-primary-color, #439665);
	font-weight: 600;
	text-align: center;
}

.hbs-side-actions a.is-wa {
	border-color: #1a9e4b;
	background: #1a9e4b;
	color: #fff;
}
