/**
 * Top bar + account dropdown (Panels/TopMenu.html).
 * Replaces Tailwind Play CDN utilities removed from production so the account menu stays styled.
 */

.top-menu-shell {
	box-sizing: border-box;
	width: 100%;
	font-family: var(--theme-font-sans, "Manrope", "Helvetica Neue", sans-serif);
	color: #e2e8f0;
	background: rgba(2, 6, 23, 0.92);
	border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.top-menu-bar {
	box-sizing: border-box;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	max-width: 1536px;
	margin: 0 auto;
	padding: 0.55rem 1rem;
}

.top-menu-left {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.top-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border-radius: 0.65rem;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(15, 23, 42, 0.65);
	color: #f1f5f9;
	cursor: pointer;
}

.top-menu-toggle:hover,
.top-menu-toggle:focus-visible {
	border-color: rgba(94, 234, 212, 0.45);
	outline: none;
}

@media (min-width: 1024px) {
	.top-menu-toggle {
		display: none !important;
	}
}

.top-menu-account {
	position: relative;
}

.top-menu-account-button {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(15, 23, 42, 0.55);
	color: #f8fafc;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}

.top-menu-account-button:hover,
.top-menu-account-button:focus-visible {
	border-color: rgba(94, 234, 212, 0.5);
	background: rgba(30, 41, 59, 0.85);
	outline: none;
}

.top-menu-account-button svg {
	flex-shrink: 0;
}

.top-menu-account .top-menu-dropdown,
.DropdownCustommer.top-menu-dropdown {
	position: absolute;
	left: 0;
	top: calc(100% + 0.35rem);
	min-width: 13.5rem;
	padding: 0.65rem 0.5rem;
	margin: 0;
	border-radius: 0.85rem;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(15, 23, 42, 0.98);
	box-shadow: 0 18px 48px rgba(2, 6, 23, 0.55);
	z-index: 60;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease, visibility 0.18s ease;
}

.top-menu-account.is-open .top-menu-dropdown,
.top-menu-account.is-open .DropdownCustommer.top-menu-dropdown {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.top-menu-dropdown-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: #e2e8f0;
}

.top-menu-dropdown-list > li + li {
	margin-top: 0.35rem;
}

.top-menu-dropdown-list a {
	display: block;
	padding: 0.45rem 0.65rem;
	border-radius: 0.75rem;
	color: inherit;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.top-menu-dropdown-list a:hover,
.top-menu-dropdown-list a:focus-visible {
	background: rgba(94, 234, 212, 0.12);
	color: #fff;
	outline: none;
}

.top-menu-dropdown-list > li.rounded-2xl {
	padding: 0.45rem 0.65rem;
	border-radius: 0.75rem;
	color: #cbd5e1;
	font-size: 0.8125rem;
}

.top-menu-dropdown-list > li.rounded-2xl a {
	display: inline;
	padding: 0;
	border-radius: 0;
	color: #5eead4;
	font-weight: 600;
}

.top-menu-dropdown-list > li.rounded-2xl a:hover {
	text-decoration: underline;
	background: transparent;
}

/* Centre links: visibility from .hidden + .lg:flex (global fallbacks at end of file) */
.top-menu-links {
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #cbd5e1;
}

.top-menu-link {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.top-menu-link:hover,
.top-menu-link:focus-visible {
	background: rgba(94, 234, 212, 0.1);
	border-color: rgba(94, 234, 212, 0.25);
	color: #fff;
	outline: none;
}

.top-menu-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.top-menu-cart-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(15, 23, 42, 0.55);
	color: #f8fafc;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.top-menu-cart-link:hover,
.top-menu-cart-link:focus-visible {
	border-color: rgba(94, 234, 212, 0.45);
	color: #fff;
	outline: none;
}

/* Mobile link row: .lg:hidden from global fallbacks hides this at desktop */
.top-menu-mobile-links {
	border-top: 1px solid rgba(148, 163, 184, 0.15);
	background: rgba(2, 6, 23, 0.88);
	padding: 0.5rem 1rem 0.65rem;
}

.top-menu-mobile-links > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	max-width: 1536px;
	margin: 0 auto;
	font-size: 0.875rem;
	font-weight: 600;
}

.top-menu-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.3);
	background: rgba(15, 23, 42, 0.55);
	color: #e2e8f0;
	text-decoration: none;
}

.top-menu-pill:hover,
.top-menu-pill:focus-visible {
	border-color: rgba(94, 234, 212, 0.4);
	color: #fff;
	outline: none;
}

/* Tailwind-style helpers used only inside top menu (optional class collisions) */
.top-menu-shell .invisible {
	visibility: hidden;
}

.top-menu-shell .opacity-0 {
	opacity: 0;
}

.top-menu-shell .opacity-100 {
	opacity: 1;
}

.top-menu-shell .transition {
	transition-property: opacity, visibility, transform, background-color, border-color, color;
	transition-duration: 0.2s;
	transition-timing-function: ease;
}

.top-menu-shell .duration-200 {
	transition-duration: 0.2s;
}

.top-menu-shell .absolute {
	position: absolute;
}

.top-menu-shell .relative {
	position: relative;
}

.top-menu-shell .left-0 {
	left: 0;
}

.top-menu-shell .top-full {
	top: 100%;
}

.top-menu-shell .z-50 {
	z-index: 50;
}

/**
 * Global utility fallbacks (were Tailwind JIT via CDN). Used by TopMenu, PageMenu (hidden lg:block), etc.
 */
.flex {
	display: flex;
}

.inline-flex {
	display: inline-flex;
}

.items-center {
	align-items: center;
}

.flex-wrap {
	flex-wrap: wrap;
}

.justify-center {
	justify-content: center;
}

.gap-2 {
	gap: 0.5rem;
}

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.max-w-screen-2xl {
	max-width: 1536px;
}

.text-sm {
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.font-medium {
	font-weight: 500;
}

.whitespace-nowrap {
	white-space: nowrap;
}

.hidden {
	display: none !important;
}

@media (min-width: 1024px) {
	.lg\:block {
		display: block !important;
	}

	.lg\:flex {
		display: flex !important;
	}

	.lg\:hidden {
		display: none !important;
	}
}
