/* ==========================================================================
   Unicorn Elementor Blocks — Mobile Menu
   Fixed bottom navigation bar + categories bottom sheet.
   Shown only on small screens. Hand-written, theme-independent.

   All component rules are scoped under the wrapper's #ueb-mobile id so they
   reliably win over the active theme's / Elementor's generic button, link,
   heading and list styling without resorting to !important.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Visibility — desktop hides the whole thing
   -------------------------------------------------------------------------- */
#ueb-mobile {
	display: none;
}

#ueb-mobile *,
#ueb-mobile *::before,
#ueb-mobile *::after {
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	#ueb-mobile {
		display: block;
	}

	/* Reserve space so the fixed bar never covers page content. */
	body.ueb-has-mnav {
		padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
	}
}

/* Lock background scroll while the drawer is open. */
body.ueb-mnav-lock {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Bottom navigation bar
   -------------------------------------------------------------------------- */
#ueb-mobile .ueb-mnav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 4px;
	margin: 0;
	padding: 0 16px;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	min-height: 60px;
	background: #ffffff;
	border-top: 1px solid #f5f5f4;
	box-shadow: 0 -4px 6px rgba(59, 31, 110, 0.06);
}

#ueb-mobile .ueb-mnav__item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin: 0;
	padding: 8px 4px;
	background: transparent;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	color: #a8a29e;
	text-decoration: none;
	cursor: pointer;
	font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease;
}

#ueb-mobile .ueb-mnav__item:hover {
	color: #a8a29e;
	text-decoration: none;
}

#ueb-mobile .ueb-mnav__item.is-active,
#ueb-mobile .ueb-mnav__item.is-active:hover {
	color: #4c1d95;
}

#ueb-mobile .ueb-mnav__item:focus-visible {
	outline: 2px solid #4c1d95;
	outline-offset: -2px;
}

#ueb-mobile .ueb-mnav__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

#ueb-mobile .ueb-mnav__icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

#ueb-mobile .ueb-mnav__label {
	font-size: 10px;
	line-height: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-weight: 400;
	white-space: nowrap;
}

#ueb-mobile .ueb-mnav__item.is-active .ueb-mnav__label {
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Drawer — full-screen modal holding the bottom sheets
   -------------------------------------------------------------------------- */
#ueb-mobile .ueb-mdrawer {
	position: fixed;
	inset: 0;
	z-index: 9995;
	visibility: hidden;
	transition: visibility 0s linear 0.36s;
}

#ueb-mobile .ueb-mdrawer.is-open {
	visibility: visible;
	transition: visibility 0s linear 0s;
}

#ueb-mobile .ueb-mdrawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(27, 28, 25, 0.5);
	opacity: 0;
	transition: opacity 0.32s ease;
}

#ueb-mobile .ueb-mdrawer.is-open .ueb-mdrawer__overlay {
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Bottom sheet
   -------------------------------------------------------------------------- */
#ueb-mobile .ueb-msheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin: 0;
	max-height: 86vh;
	padding: 12px 24px calc(20px + env(safe-area-inset-bottom, 0px));
	background: #ffffff;
	border-radius: 28px 28px 0 0;
	box-shadow: 0 -8px 32px rgba(27, 28, 25, 0.16);
	/* Default (closed): parked below the viewport. */
	transform: translateY(110%);
	transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
	will-change: transform;
}

/* Visible sheet. */
#ueb-mobile .ueb-msheet.is-active {
	transform: translateX(0);
}

/* Parent sheet, drilled past — parked to the left. */
#ueb-mobile .ueb-msheet.is-left {
	transform: translateX(-100%);
}

/* Child sheet, waiting — parked to the right. */
#ueb-mobile .ueb-msheet.is-right {
	transform: translateX(100%);
}

/* Drag handle */
#ueb-mobile .ueb-msheet__handle {
	flex-shrink: 0;
	width: 58px;
	height: 6px;
	border-radius: 32px;
	background: #d1d5dc;
}

/* Header */
#ueb-mobile .ueb-msheet__head {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 32px;
}

#ueb-mobile .ueb-msheet__head-left {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

#ueb-mobile .ueb-msheet__title {
	margin: 0;
	padding: 0;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 22.5px;
	color: #3a124d;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Round icon buttons (close / back) */
#ueb-mobile .ueb-msheet__icon-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	background: #f9fafb;
	color: #3a124d;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease;
}

#ueb-mobile .ueb-msheet__icon-btn:hover {
	background: #efeff2;
}

#ueb-mobile .ueb-msheet__icon-btn:focus-visible {
	outline: 2px solid #3a124d;
	outline-offset: 2px;
}

#ueb-mobile .ueb-msheet__icon-btn svg {
	display: block;
	width: 16px;
	height: 16px;
}

/* Category list */
#ueb-mobile .ueb-msheet__list {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	margin: 0;
	padding: 2px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

#ueb-mobile .ueb-msheet__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

#ueb-mobile .ueb-msheet__item::before,
#ueb-mobile .ueb-msheet__item::after {
	content: none;
}

/* Category pill — anchor or button, styled identically */
#ueb-mobile .ueb-mcat {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 15px 18px;
	background: #f9fafb;
	border: 0;
	border-radius: 32px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 22.5px;
	color: #1b1c19;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease;
}

#ueb-mobile .ueb-mcat:hover,
#ueb-mobile .ueb-mcat:focus-visible {
	background: #f0f0f4;
	text-decoration: none;
	color: #1b1c19;
}

#ueb-mobile .ueb-mcat:focus-visible {
	outline: 2px solid #3a124d;
	outline-offset: 2px;
}

#ueb-mobile .ueb-mcat:active {
	background: #e8e8ef;
}

#ueb-mobile .ueb-mcat__name {
	flex: 1 1 auto;
	min-width: 0;
}

#ueb-mobile .ueb-mcat__chevron {
	flex-shrink: 0;
	display: inline-flex;
	color: #9ca3af;
}

#ueb-mobile .ueb-mcat__chevron svg {
	display: block;
	width: 16px;
	height: 16px;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	#ueb-mobile .ueb-msheet,
	#ueb-mobile .ueb-mdrawer__overlay {
		transition-duration: 0.01ms;
	}
}
