/* Frontend styles for Magic Elements */

.menu-logo-desktop-gap {
	margin: 0;
}

@media (min-width: 992px) {
	.menu-logo-desktop-gap {
		margin: 0 60px;
	}
}

/* Layout one desktop alignment */
.magic-header-layout-one .mid-point {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
	overflow: visible;
}

.magic-header-layout-one .nav-menu-left,
.magic-header-layout-one .nav-menu-right {
	flex: 1 1 0;
	overflow: visible;
}

.magic-header-layout-one .nav-menu-left .cnw-nav {
	justify-content: flex-end;
}

.magic-header-layout-one .nav-menu-right .cnw-nav {
	justify-content: flex-start;
}

.magic-header-layout-one .menu-logo-desktop-gap {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin: 0 44px;
}

.magic-header-layout-one .menu-logo-desktop-gap img {
	display: block;
	max-width: 100%;
	object-fit: contain;
}

.magic-header-layout-one .menu-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 12px;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.magic-header-layout-one .menu-search i,
.magic-header-layout-one .menu-search svg {
	transition: color 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
}

.magic-header-layout-one .menu-search svg,
.magic-header-layout-one .menu-search svg path,
.magic-header-layout-one .menu-search svg circle,
.magic-header-layout-one .menu-search svg rect,
.magic-header-layout-one .menu-search svg polygon,
.magic-header-layout-one .menu-search svg ellipse,
.magic-header-layout-one .menu-search svg [fill]:not([fill="none"]) {
	fill: currentColor;
}

.magic-header-layout-one .menu-search svg [stroke]:not([stroke="none"]) {
	stroke: currentColor;
}

/* Layout two desktop: left menu | logo center | right menu | button */
.magic-header-layout-two .magic-menu {
	gap: 28px;
}

.magic-header-layout-two .mid-point {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
	overflow: visible;
}

.magic-header-layout-two .nav-menu-left,
.magic-header-layout-two .nav-menu-right {
	flex: 1 1 0;
	overflow: visible;
}

.magic-header-layout-two .nav-menu-left .cnw-nav {
	justify-content: flex-end;
}

.magic-header-layout-two .nav-menu-right .cnw-nav {
	justify-content: flex-start;
}

.magic-header-layout-two .menu-logo-desktop-gap {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin: 0 44px;
}

.magic-header-layout-two .menu-logo-desktop-gap img {
	display: block;
	max-width: 100%;
	object-fit: contain;
}

.magic-header-layout-two .book-button {
	flex: 0 0 auto;
}

.magic-header-layout-two .magic-menu-actions {
	margin-left: 0;
}

/* Layout three: logo + menu left, phone + button right */
.magic-header-layout-three .magic-menu {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.magic-header-layout-three .layout-three-left {
	display: flex;
	align-items: center;
	gap: 100px;
	min-width: 0;
	flex: 1 1 auto;
}

.magic-header-layout-three .layout-three-left .menu-logo {
	flex: 0 0 auto;
}

.magic-header-layout-three .layout-three-left .nav-menu-left {
	flex: 0 1 auto;
	min-width: 0;
}

.magic-header-layout-three .right-side {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-left: auto;
	flex: 0 0 auto;
}

.magic-header-layout-three .magic-menu-actions {
	margin-left: 0;
}

/* Layout Four: logo + title | menu center | search | user | subscribe | apps */
.magic-header-layout-four {
	background-color: #1a1a1a;
}

.magic-header-layout-four .layout-four-menu {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
}

.magic-header-layout-four .layout-four-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	min-width: 0;
	z-index: 30;
}

.magic-header-layout-four .layout-four-brand .menu-logo {
	display: inline-flex;
	flex: 0 0 auto;
	margin: 0;
}

.magic-header-layout-four .layout-four-brand .menu-logo img {
	display: block;
	max-width: 100%;
	object-fit: contain;
}

.magic-header-layout-four .nav-menu-center {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
	overflow: visible;
	z-index: 30;
}

.magic-header-layout-four .nav-menu-center .cnw-nav > li > a {
	color: #fff;
	position: relative;
	padding: 10px 0;
}

.magic-header-layout-four .nav-menu-center .cnw-nav > li > a::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 18px;
	height: 3px;
	transform: translateX(-50%);
	background-color: transparent;
	border-radius: 2px;
	transition: background-color 0.25s ease;
}

.magic-header-layout-four .nav-menu-center .cnw-nav > li.current-menu-item > a::after,
.magic-header-layout-four .nav-menu-center .cnw-nav > li.current-menu-ancestor > a::after,
.magic-header-layout-four .nav-menu-center .cnw-nav > li:hover > a::after {
	background-color: #E50914;
}

.magic-header-layout-four .layout-four-actions {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	flex: 0 0 auto;
	margin-left: 0;
	z-index: 40;
}

.magic-header-layout-four .layout-four-actions-group {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	flex: 0 0 auto;
}

.magic-header-layout-four .layout-four-divider {
	display: inline-block;
	width: 1px;
	height: 24px;
	background-color: rgba(255, 255, 255, 0.25);
	flex: 0 0 auto;
}

.magic-header-layout-four .layout-four-action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	line-height: 1;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	appearance: none;
}

.magic-header-layout-four .layout-four-action-icon i,
.magic-header-layout-four .layout-four-action-icon svg {
	display: block;
	color: inherit;
	fill: currentColor;
	transition: color 0.25s ease, fill 0.25s ease, stroke 0.25s ease;
}

.magic-header-layout-four .layout-four-action-icon svg path,
.magic-header-layout-four .layout-four-action-icon svg circle,
.magic-header-layout-four .layout-four-action-icon svg [fill]:not([fill="none"]) {
	fill: currentColor;
}

.magic-header-layout-four .layout-four-action-icon svg [stroke]:not([stroke="none"]) {
	stroke: currentColor;
}

.magic-header-layout-four .menu-search.layout-four-action-icon,
.magic-header-layout-four .menu-search.open_search {
	border: 0 !important;
	border-radius: 0;
	padding: 0 !important;
	width: auto;
	height: auto;
	min-width: 0;
	background: transparent !important;
	color: #fff;
	box-shadow: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.magic-header-layout-four .menu-search.layout-four-action-icon svg,
.magic-header-layout-four .menu-search.layout-four-action-icon i {
	width: 1em;
	height: 1em;
	font-size: 18px;
	color: inherit;
	fill: currentColor;
}

.magic-header-layout-four .layout-four-subscribe {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 50px;
	background-color: #E50914;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.magic-header-layout-four .layout-four-subscribe__icon {
	display: inline-flex;
	color: #F5C518;
	line-height: 1;
}

@media screen and (max-width: 1023px) {
	.magic-header-layout-one .mid-point {
		flex: 0 0 auto;
		justify-content: flex-start;
	}

	.magic-header-layout-one .menu-logo-desktop-gap {
		margin: 0;
	}

	.magic-header-layout-two .mid-point {
		flex: 0 0 auto;
		justify-content: flex-start;
	}

	.magic-header-layout-two .nav-menu-left,
	.magic-header-layout-two .nav-menu-right {
		display: none;
	}

	.magic-header-layout-two .menu-logo-desktop-gap {
		margin: 0;
	}

	.magic-header-layout-two .magic-menu-actions {
		margin-left: auto;
	}

	.magic-header-layout-three .layout-three-left .nav-menu-left {
		display: none;
	}

	.magic-header-layout-three .right-side {
		display: none;
	}

	.magic-header-layout-three .layout-three-left {
		gap: 0;
	}

	.magic-header-layout-three .magic-menu-actions {
		margin-left: auto;
	}

	.magic-header-layout-four .nav-menu-center {
		display: none;
	}

	.magic-header-layout-four .layout-four-divider,
	.magic-header-layout-four .layout-four-user,
	.magic-header-layout-four .layout-four-apps,
	.magic-header-layout-four .layout-four-subscribe {
		display: none;
	}

	.magic-header-layout-four .mobile-menu-toggle {
		display: inline-flex;
		color: #ffffff;
		border-color: rgba(255, 255, 255, 0.35);
	}

	.magic-header-layout-four .mobile-menu-toggle svg,
	.magic-header-layout-four .mobile-menu-toggle svg path,
	.magic-header-layout-four .mobile-menu-toggle svg [fill]:not([fill="none"]) {
		fill: currentColor;
	}

	.magic-header-layout-four .mobile-menu-panel {
		background: #1a1a1a;
		color: #ffffff;
	}

	.magic-header-layout-four .mobile-menu-panel__nav .cnw-nav-mobile > li > a {
		color: #ffffff;
		border-bottom-color: rgba(255, 255, 255, 0.08);
	}

	.magic-header-layout-four .mobile-menu-panel__nav .cnw-nav-mobile .sub-menu li > a {
		color: rgba(255, 255, 255, 0.75);
	}

	.magic-header-layout-four .mobile-menu-close {
		color: #ffffff;
	}

	.magic-header-layout-four .mobile-menu-panel__actions {
		display: none;
	}
}

.mobile-menu-panel__layout-four-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-layout-four-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #ffffff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
}

.mobile-layout-four-link__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.mobile-layout-four-link__icon i,
.mobile-layout-four-link__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	font-size: 16px;
	fill: currentColor;
}

.mobile-layout-four-subscribe {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 50px;
	background-color: #E50914;
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

.mobile-layout-four-subscribe__icon {
	display: inline-flex;
	color: #F5C518;
	line-height: 1;
}

.mobile-layout-four-subscribe__icon i,
.mobile-layout-four-subscribe__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Apps side offcanvas */
.magic-apps-offcanvas {
	--magic-apps-offcanvas-duration: 450ms;
	position: fixed;
	inset: 0;
	z-index: 999999;
	visibility: hidden;
	pointer-events: none;
}

.magic-apps-offcanvas[hidden] {
	display: none !important;
}

.magic-apps-offcanvas.is-open {
	visibility: visible;
	pointer-events: auto;
}

.magic-apps-offcanvas__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.65);
	opacity: 0;
	transition: opacity var(--magic-apps-offcanvas-duration) ease;
}

.magic-apps-offcanvas__panel {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: #0f0f0f;
	color: #fff;
	transition: transform var(--magic-apps-offcanvas-duration) cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.magic-apps-offcanvas--left .magic-apps-offcanvas__panel {
	transform: translateX(-105%);
}

.magic-apps-offcanvas--right .magic-apps-offcanvas__panel {
	transform: translateX(105%);
}

.magic-apps-offcanvas--top .magic-apps-offcanvas__panel {
	transform: translateY(-105%);
}

.magic-apps-offcanvas--bottom .magic-apps-offcanvas__panel {
	transform: translateY(105%);
}

.magic-apps-offcanvas.is-open .magic-apps-offcanvas__overlay {
	opacity: 1;
}

.magic-apps-offcanvas.is-open .magic-apps-offcanvas__panel {
	transform: translate(0, 0);
}

.magic-apps-offcanvas__close {
	position: absolute;
	top: 24px;
	right: 24px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.magic-apps-offcanvas__close i,
.magic-apps-offcanvas__close svg {
	display: block;
	width: 1em;
	height: 1em;
	font-size: 18px;
	color: inherit;
	fill: currentColor;
}

.magic-apps-offcanvas__close svg path,
.magic-apps-offcanvas__close svg [fill]:not([fill="none"]) {
	fill: currentColor;
}

.magic-apps-offcanvas__close:hover {
	transform: scale(1.05);
}

.magic-apps-offcanvas__content {
	width: 100%;
	min-height: 100%;
	padding: 40px;
	box-sizing: border-box;
}

.magic-apps-offcanvas__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 16px;
	text-align: center;
}

body.magic-apps-offcanvas-open {
	overflow: hidden;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
