/**
 * crown 联赛设定底部弹窗（对齐正网 popup + league_set）
 */
html.crown-zw-root {
	--crown-popup-head-bg: #0c2565;
	--crown-popup-head-tx: #fff;
	--crown-popup-content-bg: #fff;
	--crown-popup-info-bg: #f1f5ff;
	--crown-popup-info-bd: #d5dcec;
	--crown-popup-info-fi: #46566d;
	--crown-popup-info-fi-ac: #047ef6;
	--crown-popup-switch-tx: #46566d;
	--crown-popup-switch-tx-on: #fff;
	--crown-popup-switch-bg: #047ef6;
	--crown-popup-switch-bg-hv: #e8f4ff;
	--crown-popup-switch-tx-hv: #047ef6;
	--crown-popup-switch-bg-ac: #d5e9fc;
	--crown-popup-switch-tx-ac: #0366c7;
	--crown-popup-check-bg-on: #047ef6;
	--crown-popup-mask: rgba(12, 37, 101, 0.45);
}

html.crown-zw-root #league_setting_show.league_set {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1200;
	display: flex;
	width: 100%;
	height: 100%;
	align-items: flex-end;
	justify-content: center;
	visibility: hidden;
	overflow: hidden;
	pointer-events: none;
}

html.crown-zw-root #league_setting_show.league_set.on {
	visibility: visible;
}

html.crown-zw-root #league_setting_show.league_set > div {
	pointer-events: auto;
}

html.crown-zw-root #league_setting_show .league_set_popup {
	overflow: hidden;
	width: 100%;
	max-width: 480px;
	border-radius: 8px 8px 0 0;
	background-color: var(--crown-popup-content-bg);
	transform: translate3d(0, calc(50vh + 50%), 0);
	transition: transform 0.3s ease, visibility 0s 0.3s;
}

html.crown-zw-root #league_setting_show.on .league_set_popup {
	transform: translate3d(0, 0, 0) !important;
	transition: transform 0.3s ease, visibility 0s;
}

html.crown-zw-root #league_setting_show .popup_title {
	position: relative;
	flex: none;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 48px;
	line-height: 16px;
	padding: 4px 0;
	font-size: 14px;
	font-weight: 700;
	background-color: var(--crown-popup-head-bg);
	color: var(--crown-popup-head-tx);
}

html.crown-zw-root #league_setting_show .popup_title:before {
	display: block;
	width: 100%;
	padding: 4px 16px;
	content: attr(data-cn);
}

html.crown-zw-root #league_setting_show .popup_title .btn_close {
	position: absolute;
	top: 0;
	right: 0;
	width: 48px;
	height: 48px;
	padding: 12px;
	cursor: pointer;
}

html.crown-zw-root #league_setting_show .popup_title .btn_close svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: rgba(255, 255, 255, 0.85);
}

html.crown-zw-root #league_setting_show #league_setting_loading {
	display: none;
}

html.crown-zw-root #league_setting_show .popup_content {
	margin-bottom: 0;
	padding-bottom: env(safe-area-inset-bottom, 0);
}

html.crown-zw-root #league_setting_show .popup_league_sort {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 16px 16px;
}

html.crown-zw-root #league_setting_show .popup_league_sort > div {
	padding: 4px 16px 16px;
	background-color: var(--crown-popup-info-bg);
	border-radius: 4px;
}

html.crown-zw-root #league_setting_show .popup_league_sort > div:nth-child(2) {
	padding: 4px 16px;
}

html.crown-zw-root #league_setting_show .popup_league_sort span {
	display: block;
	height: 32px;
	line-height: 32px;
	font-weight: 700;
	color: #0c2565;
}

html.crown-zw-root #league_setting_show .popup_league_sort p {
	display: block;
	height: auto;
	line-height: 16px;
	margin-bottom: 8px;
	font-size: 13px;
	color: #75829b;
}

html.crown-zw-root #league_setting_show .modal_radio {
	overflow: hidden;
	display: flex;
	width: 100%;
	height: 48px;
	border-radius: 4px;
	outline: 1px solid var(--crown-popup-info-bd);
}

html.crown-zw-root #league_setting_show .modal_radio > div {
	position: relative;
	flex: 1 1 50%;
	width: 50%;
	height: 100%;
}

html.crown-zw-root #league_setting_show .modal_radio input {
	position: absolute;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

html.crown-zw-root #league_setting_show .modal_radio label {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	width: 100%;
	height: 100%;
	color: var(--crown-popup-switch-tx);
	cursor: pointer;
}

html.crown-zw-root #league_setting_show .modal_radio input:checked ~ label {
	background-color: var(--crown-popup-switch-bg);
	color: var(--crown-popup-switch-tx-on);
}

html.crown-zw-root #league_setting_show .modal_radio i {
	display: block;
	width: 12px;
	height: 12px;
}

html.crown-zw-root #league_setting_show .modal_sort i {
	fill: var(--crown-popup-info-fi);
}

html.crown-zw-root #league_setting_show .modal_sort input:checked ~ label > i {
	fill: #fff;
}

html.crown-zw-root #league_setting_show .modal_filters i {
	border-radius: 2px;
	background-color: rgba(0, 0, 0, 0.16);
	fill: #f2f4f7;
}

html.crown-zw-root #league_setting_show .modal_filters input:checked ~ label > i {
	background-color: var(--crown-popup-check-bg-on);
}

html.crown-zw-root #league_setting_show .modal_btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	height: 40px;
	line-height: 40px;
	gap: 4px;
	margin-top: 4px;
	padding: 0 12px;
	cursor: pointer;
	color: #047ef6;
	fill: var(--crown-popup-info-fi);
}

html.crown-zw-root #league_setting_show .switch_row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 40px;
}

html.crown-zw-root #league_setting_show .switch_row label.switch_acc_menu {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex: none;
}

html.crown-zw-root #league_setting_show .switch_row label.switch_acc_menu input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

html.crown-zw-root #league_setting_show .switch_row label.switch_acc_menu span {
	display: block;
	width: 44px;
	height: 24px;
	border-radius: 12px;
	background: #c5cedd;
	transition: background 0.2s;
}

html.crown-zw-root #league_setting_show .switch_row label.switch_acc_menu span i.switch {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s;
}

html.crown-zw-root #league_setting_show .switch_row label.switch_acc_menu input:checked + span {
	background: #047ef6;
}

html.crown-zw-root #league_setting_show .switch_row label.switch_acc_menu input:checked + span i.switch {
	transform: translateX(20px);
}

html.crown-zw-root #league_setting_show #leagueSet_pop.mask_popup {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 0;
	opacity: 0;
	background: var(--crown-popup-mask);
	transition: opacity 0.3s ease, height 0s ease 0.3s;
}

html.crown-zw-root #league_setting_show.on #leagueSet_pop.mask_popup {
	opacity: 1;
	height: 100%;
	transition: opacity 0.3s ease, height 0s ease;
}

@media screen and (min-width: 1024px) {
	html.crown-zw-root #league_setting_show.league_set {
		width: calc(200% / 3);
		left: 0;
		right: 0;
		margin: 0 auto;
	}

	html.crown-zw-root #league_setting_show #leagueSet_pop.mask_popup {
		top: 48px;
	}
}
