/*
 * Shared mobile-shell utility menu.
 *
 * Owns the fixed shell placement, in-header variant, panel, overlay and site
 * information accordion. Loaded immediately after the mobile-shell base.
 */

.iks-mobile-shell__utility-menu {
	position: fixed;
	top: calc(env(safe-area-inset-top, 0px) + 10px);
	right: 10px;
	z-index: 3300;
	font-family: inherit;
}

.iks-mobile-shell__utility-menu--header {
	position: relative;
	top: auto;
	right: auto;
	flex: 0 0 auto;
}

.iks-mobile-shell__utility-menu--header .iks-mobile-shell__utility-menu-toggle {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #475569;
	backdrop-filter: none;
}

.iks-mobile-shell__utility-menu--header .iks-mobile-shell__utility-menu-toggle:hover,
.iks-mobile-shell__utility-menu--header .iks-mobile-shell__utility-menu-toggle:focus-visible,
.iks-mobile-shell__utility-menu.iks-mobile-shell__utility-menu--header[open] > .iks-mobile-shell__utility-menu-toggle {
	border-color: transparent;
	background: transparent;
	color: var(--ikc-target-accent, #475569);
}

.iks-mobile-shell__utility-menu--header .iks-mobile-shell__utility-menu-icon {
	position: relative;
	display: block;
	width: 20px;
	height: 18px;
}

.iks-mobile-shell__utility-menu--header .iks-mobile-shell__utility-menu-icon span {
	position: absolute;
	top: 50%;
	left: 1px;
	width: 18px;
	transform-origin: center;
	transition: transform 200ms ease, opacity 160ms ease;
}

.iks-mobile-shell__utility-menu--header .iks-mobile-shell__utility-menu-icon span:first-child {
	transform: translateY(-6px);
}

.iks-mobile-shell__utility-menu--header .iks-mobile-shell__utility-menu-icon span:nth-child(2) {
	transform: translateY(0);
}

.iks-mobile-shell__utility-menu--header .iks-mobile-shell__utility-menu-icon span:last-child {
	transform: translateY(6px);
}

.iks-mobile-shell__utility-menu--header[open] .iks-mobile-shell__utility-menu-icon span:first-child {
	transform: translateY(0) rotate(45deg);
}

.iks-mobile-shell__utility-menu--header[open] .iks-mobile-shell__utility-menu-icon span:nth-child(2) {
	opacity: 0;
	transform: translateY(0) scaleX(.4);
}

.iks-mobile-shell__utility-menu--header[open] .iks-mobile-shell__utility-menu-icon span:last-child {
	transform: translateY(0) rotate(-45deg);
}

.iks-mobile-shell__utility-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(148, 163, 184, 0.42);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
	color: #334155;
	cursor: pointer;
	list-style: none;
	backdrop-filter: blur(14px);
}

.iks-mobile-shell__utility-menu-toggle::-webkit-details-marker {
	display: none;
}

.iks-mobile-shell__utility-menu-toggle:hover,
.iks-mobile-shell__utility-menu-toggle:focus-visible,
.iks-mobile-shell__utility-menu[open] .iks-mobile-shell__utility-menu-toggle {
	border-color: rgba(249, 115, 22, 0.55);
	background: #fff7ed;
	color: #c2410c;
	outline: none;
}

.iks-mobile-shell__utility-menu-icon {
	display: grid;
	gap: 4px;
	width: 19px;
}

.iks-mobile-shell__utility-menu-icon span {
	display: block;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.iks-mobile-shell__utility-menu-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	display: grid;
	gap: 8px;
	box-sizing: border-box;
	width: min(340px, calc(100vw - 20px));
	max-height: calc(100vh - env(safe-area-inset-top, 0px) - 70px);
	max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 70px);
	padding: 10px;
	border: 1px solid rgba(203, 213, 225, 0.76);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	touch-action: pan-y;
}

.iks-mobile-shell__utility-menu:not([open]) .iks-mobile-shell__utility-menu-panel {
	display: none;
}

.iks-mobile-shell__utility-menu-link {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	min-height: 58px;
	padding: 9px 11px;
	border: 1px solid rgba(203, 213, 225, 0.66);
	border-radius: 14px;
	color: #334155;
	text-decoration: none;
}

.iks-mobile-shell__utility-menu-link--save {
	background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.iks-mobile-shell__utility-menu-link--watch {
	background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.iks-mobile-shell__utility-menu-link:hover,
.iks-mobile-shell__utility-menu-link:focus-visible,
.iks-mobile-shell__utility-menu-link.is-active {
	border-color: rgba(249, 115, 22, 0.46);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
	color: #9a3412;
	outline: none;
}

.iks-mobile-shell__utility-menu-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.82);
	color: currentColor;
}

.iks-mobile-shell__utility-menu-link-icon svg {
	width: 21px;
	height: 21px;
}

.iks-mobile-shell__utility-menu-link-icon path,
.iks-mobile-shell__utility-menu-link-icon rect,
.iks-mobile-shell__utility-menu-link-icon circle {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.iks-mobile-shell__utility-menu-link-copy {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.iks-mobile-shell__utility-menu-link-copy strong {
	font-size: 0.9rem;
	line-height: 1.25;
}

.iks-mobile-shell__utility-menu-link-copy small {
	font-size: 0.72rem;
	font-weight: 650;
	line-height: 1.3;
	color: #64748b;
}

.iks-mobile-shell__utility-site-info {
	border: 1px solid rgba(203, 213, 225, 0.66);
	border-radius: 14px;
	background: #f8fafc;
	overflow: hidden;
}

.iks-mobile-shell__utility-site-info-toggle {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 16px;
	gap: 10px;
	align-items: center;
	width: 100%;
	min-height: 58px;
	padding: 9px 11px;
	border: 0;
	background: transparent;
	color: #334155;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	text-align: left;
	cursor: pointer;
}

.iks-mobile-shell__utility-site-info-toggle:hover,
.iks-mobile-shell__utility-site-info-toggle:focus-visible {
	background: #ffffff;
	color: #9a3412;
	outline: none;
}

.iks-mobile-shell__utility-site-info-arrow {
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 180ms ease;
}

.iks-mobile-shell__utility-site-info.is-open .iks-mobile-shell__utility-site-info-arrow {
	transform: translateY(2px) rotate(225deg);
}

.iks-mobile-shell__utility-site-info-panel[hidden] {
	display: none;
}

.iks-mobile-shell__utility-site-info-panel ul {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0 10px 10px 58px;
	list-style: none;
}

.iks-mobile-shell__utility-site-info-panel a {
	display: block;
	padding: 7px 8px;
	border-radius: 9px;
	color: #475569;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.iks-mobile-shell__utility-site-info-panel a:hover,
.iks-mobile-shell__utility-site-info-panel a:focus-visible {
	background: #ffffff;
	color: #c2410c;
	outline: none;
}

.iks-mobile-shell__utility-menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 3290;
	background: rgba(15, 23, 42, 0.2);
	backdrop-filter: blur(2px);
}

.iks-mobile-shell__utility-menu-overlay[hidden] {
	display: none;
}

body.iks-shell-utility-menu-open {
	overscroll-behavior: none;
}

@media (min-width: 768px) {
	.iks-mobile-shell__utility-menu:not(.iks-mobile-shell__utility-menu--header) {
		top: 14px;
		right: 16px;
	}

	body.admin-bar .iks-mobile-shell__utility-menu:not(.iks-mobile-shell__utility-menu--header) {
		top: 46px;
	}
}
