/**
 * Keep the Entravision Divi global header on one row.
 *
 * The full navigation needs more room than Divi's default desktop menu allows.
 * Compact it on wide screens and switch to the existing mobile menu before the
 * links can wrap at laptop and tablet widths.
 */

@media (min-width: 1400px) {
	.et-l--header .et_pb_row_0_tb_header {
		max-width: 1440px !important;
		width: calc(100% - 24px) !important;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_menu_inner_container {
		position: relative;
		width: 100%;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__wrap {
		flex: 0 0 auto !important;
		left: 50%;
		position: absolute;
		transform: translateX(-50%);
		width: max-content;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__logo-wrap {
		left: calc(50% - 390px);
		position: absolute;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_code_0_tb_header {
		margin-left: auto !important;
	}

	.et-l--header .et_pb_menu_0_tb_header #menu-main-menu {
		align-items: center;
		flex-wrap: nowrap !important;
	}

	.et-l--header .et_pb_menu_0_tb_header #menu-main-menu > li {
		flex: 0 0 auto !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
	}

	.et-l--header .et_pb_menu_0_tb_header #menu-main-menu > li > a {
		white-space: nowrap !important;
	}

	.et-l--header .et_pb_button_0_tb_header_wrapper {
		flex: 0 0 220px !important;
		width: 220px !important;
	}

	.et-l--header .et_pb_button_0_tb_header {
		box-sizing: border-box;
		max-width: 220px !important;
		min-width: 0 !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
		text-align: center;
		width: 220px !important;
	}
}

@media (min-width: 981px) and (max-width: 1399px) {
	.et-l--header .et_pb_menu_0_tb_header .et_pb_menu_inner_container {
		justify-content: center !important;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__menu {
		display: none !important;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_mobile_nav_menu {
		align-items: center !important;
		display: flex !important;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__wrap {
		align-items: center !important;
		flex-wrap: nowrap !important;
		justify-content: flex-end !important;
	}
}

.et-l--header .et_pb_group_0_tb_header,
.et-l--header .et_pb_group_2_tb_header {
	align-items: center !important;
	flex: 0 0 auto !important;
	flex-wrap: nowrap !important;
	justify-content: center !important;
	min-width: 93px;
	white-space: nowrap !important;
}

.et-l--header .et_pb_group_0_tb_header > *,
.et-l--header .et_pb_group_2_tb_header > * {
	flex: 0 0 auto !important;
}

@media (max-width: 1399px) {
	html.evc-mobile-menu-open,
	body.evc-mobile-menu-open {
		overflow: hidden !important;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_menu_inner_container,
	.et-l--header .et_pb_menu_1_tb_header .et_pb_menu_inner_container {
		justify-content: center !important;
		box-sizing: border-box;
		min-height: 64px;
		padding-top: 12px !important;
		padding-bottom: 14px !important;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__wrap,
	.et-l--header .et_pb_menu_1_tb_header .et_pb_menu__wrap {
		flex: 0 0 auto !important;
		order: 1;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__logo-wrap,
	.et-l--header .et_pb_menu_1_tb_header .et_pb_menu__logo-wrap {
		flex: 0 0 auto !important;
		max-width: 210px !important;
		order: 2;
		width: auto !important;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__logo img,
	.et-l--header .et_pb_menu_1_tb_header .et_pb_menu__logo img {
		height: 32px !important;
		max-width: min(190px, 50vw) !important;
		object-fit: contain;
		width: auto !important;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_code_0_tb_header,
	.et-l--header .et_pb_group_0_tb_header,
	.et-l--header .et_pb_group_1_tb_header {
		display: none !important;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_button_0_tb_header_wrapper,
	.et-l--header .et_pb_menu_1_tb_header .et_pb_button_1_tb_header_wrapper {
		display: block !important;
		flex: 0 0 clamp(100px, 16vw, 150px) !important;
		margin-left: auto !important;
		order: 3;
		width: clamp(100px, 16vw, 150px) !important;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_button_0_tb_header,
	.et-l--header .et_pb_menu_1_tb_header .et_pb_button_1_tb_header {
		box-sizing: border-box;
		align-items: center;
		display: flex !important;
		justify-content: center;
		font-size: clamp(10px, 1.2vw, 12px) !important;
		letter-spacing: 0 !important;
		line-height: 1.2 !important;
		max-width: 100% !important;
		min-height: 36px;
		min-width: 0 !important;
		padding: 6px 8px !important;
		text-align: center;
		white-space: normal !important;
		overflow-wrap: normal;
		width: 100% !important;
	}

	.et-l--header .et_pb_menu_0_tb_header .et_pb_button_0_tb_header::after,
	.et-l--header .et_pb_menu_1_tb_header .et_pb_button_1_tb_header::after {
		display: none !important;
	}

	.et-l--header .et_mobile_menu {
		background: #080808 !important;
		border: 0 !important;
		box-shadow: none !important;
		display: flex !important;
		flex-direction: column;
		height: 100dvh !important;
		left: 0 !important;
		max-height: none !important;
		overflow-y: auto !important;
		overscroll-behavior: contain;
		padding: 0 24px 36px !important;
		position: fixed !important;
		right: auto !important;
		top: 0 !important;
		transform: translateX(-100%);
		transition: transform 0.32s ease, visibility 0.32s ease !important;
		visibility: hidden;
		width: 100vw !important;
		z-index: 1000000 !important;
	}

	.et-l--header .mobile_nav.opened .et_mobile_menu {
		transform: translateX(0);
		visibility: visible;
	}

	.et-l--header .evc-mobile-drawer-header {
		align-items: center;
		border-bottom: 1px solid rgba(255, 255, 255, 0.13);
		display: flex;
		justify-content: space-between;
		margin-bottom: 24px;
		min-height: 76px;
	}

	.et-l--header .evc-mobile-drawer-brand img {
		height: 42px;
		object-fit: contain;
		width: auto;
	}

	.et-l--header .evc-mobile-drawer-close {
		align-items: center;
		background: transparent;
		border: 1px solid rgba(255, 255, 255, 0.3);
		border-radius: 50%;
		color: #fff;
		cursor: pointer;
		display: inline-flex;
		font-size: 30px;
		height: 44px;
		justify-content: center;
		line-height: 1;
		padding: 0 !important;
		width: 44px;
	}

	.et-l--header .evc-mobile-drawer-close span {
		display: block;
		font-family: Arial, sans-serif;
		font-size: 30px;
		line-height: 1;
		margin: 0;
	}

	.et-l--header .evc-mobile-drawer-tools {
		align-items: stretch;
		box-sizing: border-box;
		display: grid;
		gap: 16px;
		grid-template-columns: 1fr;
		justify-items: center;
		margin: 0 auto 28px;
		max-width: 760px !important;
		width: 100% !important;
	}

	.et-l--header .evc-mobile-drawer-languages {
		align-items: center;
		justify-content: center !important;
		width: 100%;
		color: #fff;
		display: flex;
		font-weight: 700;
		gap: 10px;
		white-space: nowrap;
	}

	.et-l--header .evc-mobile-drawer-languages a {
		border: 0 !important;
		display: inline-flex !important;
		flex: 0 0 auto !important;
		width: auto !important;
		color: rgba(255, 255, 255, 0.62) !important;
		padding: 10px 2px !important;
	}

	.et-l--header .evc-mobile-drawer-languages a[aria-current="page"] {
		color: #fff !important;
	}

	.et-l--header .evc-mobile-drawer-search {
		align-items: stretch;
		border: 1px solid rgba(255, 255, 255, 0.28);
		border-radius: 999px;
		display: flex;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
		max-width: 480px !important;
		min-height: 42px;
		overflow: hidden;
		width: 100% !important;
	}

	.et-l--header .evc-mobile-drawer-search input {
		background: transparent;
		border: 0;
		color: #fff;
		font-family: inherit;
		font-size: 16px !important;
		line-height: 1.3;
		height: 40px !important;
		min-height: 40px;
		min-width: 0;
		padding: 8px 14px !important;
		width: 100%;
	}

	.et-l--header .evc-mobile-drawer-search button {
		background: #c126a3;
		border: 0;
		color: #fff;
		cursor: pointer;
		height: 40px;
		min-width: 42px;
	}

	.et-l--header .evc-mobile-drawer-search button svg {
		height: 20px;
		width: 20px;
	}

	.et-l--header .et_mobile_menu > li {
		margin: 0 auto;
		max-width: 760px;
		position: relative;
	}

	.et-l--header .et_mobile_menu li {
		list-style: none !important;
		padding: 0 !important;
	}

	.et-l--header .et_mobile_menu li a {
		background: transparent !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
		color: #fff !important;
		font-size: clamp(22px, 3vw, 34px) !important;
		font-weight: 700;
		line-height: 1.2 !important;
		padding: 17px 54px 17px 4px !important;
		text-transform: uppercase;
	}

	.et-l--header .et_mobile_menu .sub-menu {
		background: transparent !important;
		padding: 0 !important;
	}

	.et-l--header .et_mobile_menu .sub-menu[hidden] {
		display: none !important;
	}

	.et-l--header .et_mobile_menu .sub-menu li a {
		color: #fff !important;
		font-size: clamp(22px, 3vw, 34px) !important;
		font-weight: 700 !important;
		line-height: 1.2 !important;
		padding: 17px 54px 17px 20px !important;
		text-transform: uppercase;
	}

	.et-l--header .et_mobile_menu li a:hover,
	.et-l--header .et_mobile_menu li.current-menu-item > a {
		background: transparent !important;
		color: #e742c5 !important;
		opacity: 1 !important;
	}

	.et-l--header .et_mobile_menu .menu-item-has-children > a:after {
		display: none !important;
	}

	.et-l--header .evc-mobile-submenu-toggle {
		align-items: center;
		background: transparent;
		border: 0;
		color: #fff;
		cursor: pointer;
		display: flex;
		height: 58px;
		justify-content: center;
		padding: 0;
		position: absolute;
		right: 0;
		top: 0;
		width: 48px;
		z-index: 2;
	}

	.et-l--header .evc-mobile-submenu-toggle span,
	.et-l--header .evc-mobile-submenu-toggle span:after {
		background: currentColor;
		content: '';
		display: block;
		height: 2px;
		position: absolute;
		transition: transform 0.2s ease;
		width: 16px;
	}

	.et-l--header .evc-mobile-submenu-toggle span:after {
		transform: rotate(90deg);
	}

	.et-l--header .evc-mobile-submenu-toggle[aria-expanded="true"] span:after {
		transform: rotate(0deg);
	}

	.et-l--header .evc-mobile-drawer-cta {
		align-items: center;
		background: linear-gradient(135deg, #8f159c, #d62cae);
		border-radius: 999px;
		color: #fff !important;
		display: flex;
		font-size: 15px !important;
		font-weight: 800;
		justify-content: center;
		margin: auto auto 0;
		max-width: 760px;
		min-height: 52px;
		padding: 14px 24px !important;
		text-align: center;
		text-transform: uppercase;
		width: 100%;
	}

	@media (max-width: 600px) {
		.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__logo img,
		.et-l--header .et_pb_menu_1_tb_header .et_pb_menu__logo img {
			height: 28px !important;
			max-width: 140px !important;
		}

		.et-l--header .evc-mobile-drawer-tools {
			grid-template-columns: 1fr;
		}

		.et-l--header .evc-mobile-drawer-languages {
			justify-content: center;
		}
	}
}
