﻿/* Snowroller.eu – modern mobilmeny i sajtens befintliga färgskala */

.sr-mobile-menu-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.sr-mobile-menu-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	padding: 0 14px 0 18px;
	background: #2F4F4F;
}

.sr-mobile-menu-title {
	color: #ffffff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
}

.sr-mobile-menu-button {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 10px;
	cursor: pointer;
	border-radius: 6px;
	-webkit-tap-highlight-color: transparent;
}

.sr-mobile-menu-button:hover,
.sr-mobile-menu-button:focus {
	background: #4169E1;
}

.sr-mobile-menu-button span {
	display: block;
	width: 24px;
	height: 2px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 2px;
	transform-origin: center;
	transition: transform .25s ease, opacity .2s ease;
}

.sr-mobile-menu-toggle:checked ~ .sr-mobile-menu-bar .sr-mobile-menu-button span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.sr-mobile-menu-toggle:checked ~ .sr-mobile-menu-bar .sr-mobile-menu-button span:nth-child(2) {
	opacity: 0;
}

.sr-mobile-menu-toggle:checked ~ .sr-mobile-menu-bar .sr-mobile-menu-button span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.sr-mobile-menu-panel {
	max-height: 0;
	overflow: hidden;
	visibility: hidden;
	background: #4169E1;
	border-top: 1px solid transparent;
	transition: max-height .35s ease, visibility 0s linear .35s, border-color .2s ease;
}

.sr-mobile-menu-toggle:checked ~ .sr-mobile-menu-panel {
	max-height: 1800px;
	visibility: visible;
	border-top-color: #00008B;
	transition: max-height .35s ease, visibility 0s linear 0s, border-color .2s ease;
}

.sr-mobile-start,
.sr-mobile-start:visited,
.sr-mobile-group summary,
.sr-mobile-subitem,
.sr-mobile-subitem:visited {
	color: #000000;
	font-family: Verdana, Arial, sans-serif;
	text-decoration: none;
}

.sr-mobile-start {
	display: block;
	padding: 13px 18px;
	background: #B0C4DE;
	border-bottom: 1px solid #00008B;
	font-size: 15px;
	font-weight: 700;
}

.sr-mobile-start:hover,
.sr-mobile-start:focus,
.sr-mobile-start.is-active {
	color: #000000;
	background: #ffffff;
	text-decoration: none;
}

.sr-mobile-group {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #00008B;
	background: #4169E1;
}

.sr-mobile-group summary {
	position: relative;
	padding: 13px 42px 13px 18px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	list-style: none;
	user-select: none;
}

.sr-mobile-group summary::-webkit-details-marker {
	display: none;
}

.sr-mobile-group summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: #ffffff;
	font-size: 22px;
	font-weight: 400;
}

.sr-mobile-group[open] summary::after {
	content: "−";
}

.sr-mobile-group summary:hover,
.sr-mobile-group summary:focus {
	background: #5B7CE3;
}

.sr-mobile-subitem {
	display: block;
	padding: 11px 18px 11px 30px;
	background: #B0C4DE;
	border-top: 1px solid rgba(0, 0, 139, .25);
	font-size: 14px;
}

.sr-mobile-subitem:hover,
.sr-mobile-subitem:focus {
	color: #800000;
	background: #ffffff;
	text-decoration: none;
}

.sr-mobile-subitem.is-active {
	background: #ffffff;
	box-shadow: inset 4px 0 0 #FFA500;
	font-weight: 700;
}

.sr-mobile-menu-toggle:focus ~ .sr-mobile-menu-bar .sr-mobile-menu-button {
	outline: 2px solid #ffffff;
	outline-offset: -3px;
}
