@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
	--cmm-black: #000000;
	--cmm-white: #ffffff;
	--cmm-gray: #808080;

	--cmm-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

	--cmm-font-body:
		'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		sans-serif;

	--cmm-transition-fade: 0.25s ease-in-out;

	--cmm-z-overlay: 999998;
	--cmm-z-container: 999999;
}

body .custom-mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: var(--cmm-z-overlay);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity var(--cmm-transition-fade),
		visibility var(--cmm-transition-fade);
	backdrop-filter: blur(4px);
}

body .custom-mobile-menu-overlay.cmm-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

body .custom-mobile-menu-overlay .cmm-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 380px;
	height: 100%;
	background: var(--cmm-white);
	border-right: 3px solid var(--cmm-black);
	box-shadow: 8px 0 24px rgba(0, 0, 0, 0.3);
	z-index: var(--cmm-z-container);
	opacity: 0;
	transition: opacity var(--cmm-transition-fade);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body .custom-mobile-menu-overlay.cmm-active .cmm-container {
	opacity: 1;
}

body .custom-mobile-menu-overlay .cmm-header {
	height: 62px;
	background: var(--cmm-black);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	position: relative;
}

body .custom-mobile-menu-overlay .cmm-back {
	background: transparent;
	border: 2px solid var(--cmm-white);
	padding: 8px 16px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cmm-white);
	font-size: 10.5px;
	font-weight: 600;
	font-family: var(--cmm-font-body);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	min-height: 44px;
}

body .custom-mobile-menu-overlay .cmm-title {
	font-size: 18px;
	font-weight: 600;
	font-family: var(--cmm-font-display);
	color: var(--cmm-white);
	letter-spacing: 0.01em;
	margin: 0;
	padding: 0 12px;
	flex: 1;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: capitalize;
	font-style: normal;
}

body .custom-mobile-menu-overlay .cmm-close {
	background: transparent;
	border: 2px solid var(--cmm-white);
	width: 44px;
	height: 44px;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cmm-white);
}

body .custom-mobile-menu-overlay .cmm-content {
	flex: 1;
	position: relative;
	background: var(--cmm-white);
	min-height: 0;
}

body .custom-mobile-menu-overlay .cmm-container::-webkit-scrollbar {
	width: 6px;
}

body .custom-mobile-menu-overlay .cmm-container::-webkit-scrollbar-track {
	background: transparent;
}

body .custom-mobile-menu-overlay .cmm-container::-webkit-scrollbar-thumb {
	background: var(--cmm-black);
	border-radius: 3px;
}

body .custom-mobile-menu-overlay .cmm-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	min-height: 200px;
}

body .custom-mobile-menu-overlay .cmm-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--cmm-white);
	border-top-color: var(--cmm-black);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin-bottom: 16px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

body .custom-mobile-menu-overlay .cmm-loading-text {
	font-size: 10.5px;
	font-weight: 600;
	font-family: var(--cmm-font-body);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--cmm-black);
}

body .custom-mobile-menu-overlay .cmm-level {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 100%;
	background: var(--cmm-white);
	opacity: 0;
	transform: translateX(100%);
	transition:
		transform var(--cmm-transition-fade),
		opacity var(--cmm-transition-fade);
}

body .custom-mobile-menu-overlay .cmm-level.cmm-active {
	opacity: 1;
	transform: translateX(0);
	z-index: 2;
}

body .custom-mobile-menu-overlay .cmm-level.cmm-forward {
	transform: translateX(100%);
	opacity: 0;
}

body .custom-mobile-menu-overlay .cmm-level.cmm-backward {
	transform: translateX(-100%);
	opacity: 0;
	z-index: 1;
}

body .custom-mobile-menu-overlay .cmm-level.cmm-hidden {
	transform: translateX(-100%);
	opacity: 0;
	z-index: 1;
}

body .custom-mobile-menu-overlay .cmm-level.cmm-no-transition {
	transition: none;
}

body .custom-mobile-menu-overlay .cmm-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

body .custom-mobile-menu-overlay .cmm-item {
	border-bottom: 1px solid #00000012;
	margin-bottom: 0;
}

body .custom-mobile-menu-overlay .cmm-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 53px;
	padding: 16px 24px;
	background: transparent;
	border: none;
	text-align: left;
	color: var(--cmm-black);
	font-size: 15px;
	font-weight: 500;
	font-family: var(--cmm-font-body);
	text-decoration: none;
	cursor: pointer;
	position: relative;
	letter-spacing: 0.005em;
}

body .custom-mobile-menu-overlay .cmm-link:focus {
	outline: 3px solid var(--cmm-black);
	outline-offset: -3px;
}

body .custom-mobile-menu-overlay .cmm-link.cmm-selected {
	font-weight: 700;
	color: var(--cmm-black) !important;
}

body .custom-mobile-menu-overlay .cmm-link.cmm-selected .cmm-text {
	text-overflow: clip;
}

body .custom-mobile-menu-overlay .cmm-text {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-transform: none !important;
}

body .custom-mobile-menu-overlay .cmm-arrow {
	flex-shrink: 0;
	margin-left: 12px;
}

body .custom-mobile-menu-overlay .cmm-arrow.cmm-arrow-rotated {
	transform: rotate(180deg);
}

body .custom-mobile-menu-overlay .cmm-dropdown {
	max-height: 0;
	overflow: hidden;
	background: #f5f5f5;
	transition: max-height 0.3s ease;
}

body .custom-mobile-menu-overlay .cmm-dropdown.cmm-expanded {
	max-height: 2000px;
	border-top: 1px solid #00000012;
}

body .custom-mobile-menu-overlay .cmm-dropdown .cmm-list {
	padding: 8px 0 8px 32px;
}

body .custom-mobile-menu-overlay .cmm-dropdown .cmm-item {
	border-bottom: 1px solid #00000012;
}

body .custom-mobile-menu-overlay .cmm-dropdown .cmm-link {
	font-size: 14px;
	padding: 12px 16px;
	min-height: 44px;
	letter-spacing: 0.005em;
	font-weight: 400;
}

body .custom-mobile-menu-overlay .cmm-dropdown .cmm-link.cmm-selected {
	font-weight: 700;
	color: var(--cmm-black) !important;
}

body .cmm-trigger,
body .cmm-trigger-custom,
body button#cmmTrigger {
	background: var(--cmm-black);
	border: 2px solid var(--cmm-black);
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 10px;
	position: relative;
	min-width: 44px;
	min-height: 44px;
}

body .cmm-trigger .cmm-trigger-line,
body .cmm-trigger-custom .cmm-trigger-line,
body button#cmmTrigger .cmm-trigger-line {
	width: 24px;
	height: 3px;
	background: var(--cmm-white);
	transition: all 0.3s ease;
	display: block;
}

body .cmm-trigger[aria-expanded='true'] .cmm-trigger-line:nth-child(1),
body .cmm-trigger-custom[aria-expanded='true'] .cmm-trigger-line:nth-child(1),
body button#cmmTrigger[aria-expanded='true'] .cmm-trigger-line:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

body .cmm-trigger[aria-expanded='true'] .cmm-trigger-line:nth-child(2),
body .cmm-trigger-custom[aria-expanded='true'] .cmm-trigger-line:nth-child(2),
body button#cmmTrigger[aria-expanded='true'] .cmm-trigger-line:nth-child(2) {
	opacity: 0;
}

body .cmm-trigger[aria-expanded='true'] .cmm-trigger-line:nth-child(3),
body .cmm-trigger-custom[aria-expanded='true'] .cmm-trigger-line:nth-child(3),
body button#cmmTrigger[aria-expanded='true'] .cmm-trigger-line:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

body.cmm-no-scroll {
	overflow: hidden;
	position: fixed;
	width: 100%;
	height: 100%;
}

body .custom-mobile-menu-overlay .cmm-empty {
	padding: 40px;
	text-align: center;
	color: var(--cmm-gray);
	font-size: 12px;
	font-family: var(--cmm-font-body);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
}

@media (min-width: 768px) {
	body .custom-mobile-menu-overlay .cmm-container {
		max-width: 400px;
	}
}

@media (min-width: 1025px) {
	body .cmm-trigger {
		display: none !important;
	}
	body .custom-mobile-menu-overlay {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	body .custom-mobile-menu-overlay,
	body .cmm-trigger {
		display: none !important;
	}
}

body .custom-mobile-menu-overlay .cmm-link:focus-visible {
	outline: 3px solid var(--cmm-black);
	outline-offset: -3px;
}

body .custom-mobile-menu-overlay .cmm-link:focus:not(:focus-visible) {
	outline: none;
}
