/* Base Styles using Variables */
:root {
	--wmbm-height: 60px;
	--wmbm-overlay-z: 99999;
}

/* Container */
.wmbm-container {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: var(--wmbm-height);
	background-color: var(--wmbm-bg, #fff);
	/* Default fallback */
	border-top-left-radius: var(--wmbm-radius);
	border-top-right-radius: var(--wmbm-radius);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: var(--wmbm-overlay-z);
	transition: transform 0.3s ease-in-out;
}

/* Hide on Desktop */
@media (min-width: 768px) {
	.wmbm-container {
		display: none !important;
	}
}

/* Nav List */
.wmbm-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0 10px;
	height: 100%;
}

.wmbm-item {
	flex: 1;
	text-align: center;
}

.wmbm-item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--wmbm-icon);
	font-size: 10px;
	transition: color 0.2s;
}

.wmbm-item.active a,
.wmbm-item a:hover {
	color: var(--wmbm-active);
}

.wmbm-item i {
	font-family: "dashicons" !important;
	font-size: 22px;
	width: 22px;
	height: 22px;
	line-height: 22px;
	display: inline-block;
	margin-bottom: 4px;
	vertical-align: middle;
	text-align: center;
}

/* Cart Item Special Styling */
.wmbm-cart-item {
	position: relative;
	top: -15px;
	/* Float effect */
}

.wmbm-cart-encircle {
	background: var(--wmbm-bg);
	/* Match bg to hide bar behind */
	border-radius: 50%;
	padding: 5px;
	/* simulated border/gap */
	display: inline-block;
}

/* Inner Cart Circle (The highlighted part) */
.wmbm-cart-encircle a {
	background: var(--wmbm-active);
	color: #fff !important;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	justify-content: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.wmbm-cart-encircle i {
	margin-bottom: 0;
	font-size: 20px;
}

.wmbm-label-cart {
	display: none;
	/* Hide label for the floating button usually */
}

/* Cart Bubble Count */
.wmbm-cart-count {
	position: absolute;
	top: -5px;
	right: -5px;
	background: var(--wmbm-bubble-bg);
	color: var(--wmbm-bubble-text);
	font-size: 10px;
	font-weight: bold;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #fff;
}

/* Hide/Show classes for scroll */
.wmbm-hidden {
	transform: translateY(100%);
}

/* Search Modal - Premium Design */
/* Search Modal - Premium Design */
#wmbm-search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 999999;
	display: none;
	/* Hidden by default */
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* Open State Class */
#wmbm-search-overlay.wmbm-open {
	display: flex !important;
	opacity: 1;
}

.wmbm-search-box {
	background: #fff;
	padding: 30px;
	border-radius: 16px;
	width: 85%;
	max-width: 400px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: wmbmSlideUp 0.3s ease-out forwards;
}

@keyframes wmbmSlideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Form Styling */
.wmbm-search-box form {
	display: flex;
	position: relative;
	align-items: center;
}

.wmbm-search-box input[type="search"],
.wmbm-search-box input.search-field {
	width: 100%;
	border: none;
	border-bottom: 2px solid #eee;
	padding: 15px 50px 15px 10px;
	/* Space for button */
	font-size: 18px;
	outline: none;
	background: transparent;
	border-radius: 0;
	color: #333;
	font-family: inherit;
}

.wmbm-search-box input[type="search"]:focus {
	border-bottom-color: var(--wmbm-active, #008080);
}

.wmbm-search-box button[type="submit"] {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #666;
	font-size: 20px;
	cursor: pointer;
	padding: 10px;
}

.wmbm-close-search {
	position: absolute;
	top: -50px;
	right: 0;
	background: #fff;
	/* White bg for visibility */
	border: none;
	color: #333;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s;
}

.wmbm-close-search:active {
	transform: scale(0.9);
}