/* ============================================================
popup 框架設定
============================================================ */
.popup-window {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	position: fixed;
	display: none;
	z-index: 1000;
	background: rgba(0, 0, 0, .4);
	backdrop-filter: blur(5px);
}

.popup-window.active {
	display: block;
}

.popup-window-close {
	width: 36px;
	height: 36px;
	right: 5px;
	top: 5px;
	position: absolute;
	cursor: pointer;
}

.popup-window-close::before {
	content: '';
	display: table;
	position: absolute;
	top: 50%;
	right: 0;
	width: 100%;
	height: 1px;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg)
}

.popup-window-close.black::before {
	background: black;
}

.popup-window-close::after {
	content: '';
	display: table;
	position: absolute;
	top: 50%;
	right: 0;
	width: 100%;
	height: 1px;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg)
}

.popup-window-close.black::after {
	background: black;
}

.popup-bg {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	position: fixed;
	overflow: hidden;
	z-index: 1000;
	/* background: black; */
	/* backdrop-filter: blur(5px) */
}

.popup-bg.popup-bg-fade {
	opacity: 0;
	transition: all 0.3s ease-out;
}

.popup-bg.popup-bg-fade.popup-bg-active {
	opacity: .6;
}

.popup-content {
	top: 0;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: center; /* 水平置中 */
	align-items: center; /* 垂直置中 */
	height: 100%; /* 父元素的高度設為 100% */
	overflow: hidden auto;
	z-index: 1001;
	position: fixed;
	opacity: 0;
	transition: all 0.5s ease-out;
	/* backdrop-filter: blur(5px) */
}

.popup-content.popup-content-active {
	opacity: 1;
}

.popup-box {
	text-align: center;
	background: #fff;
	overflow-y: auto;
	border-radius: 10px;
	padding: 40px 30px;
	max-width: 700px;
	max-height: inherit;
	overflow-x: auto;
	width : 90%;
	box-sizing: border-box;
}

.popup-box.small {
	max-width: 360px;
}


.popup-box h4 {
	font-size: 24px;
    font-weight: 700 !important;
    color: #000;
    text-align: center;
	
}
.popup-box .popup-infor-content{
	 margin: 20px 0 20px 0;
}

.popup-box .popup-flow-btn {
	text-align: center;
	width: 100%;
	clear: both;
	overflow: hidden;
	margin-top: 40px;
}

.popup-box .popup-flow-btn .btn {
	min-width: 100px;
	margin-left: 6px;
	margin-right: 6px;
}

@media screen and (min-width: 540px) {
	.popup-box .popup-flow-btn .btn {
	  min-width: 122px;
	}
}


/* ============================================================
訊息吐司
============================================================ */
.message-toast.message-toast-fade {
	width: 100vw;
	bottom: 2vh;
	position: fixed;
	display: flex;
	justify-content: center;
	align-content: center;
	opacity: 0;
	visibility: hidden; 
	pointer-events: none;
	transition: all 1s ease;
}

.message-toast.message-toast-fade.message-active {
	opacity: 1;
	bottom: 10vh;
	visibility: visible;
  	pointer-events: auto;
	z-index: 1003;
}

.message-toast-box {
	width: 80vw;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	text-align: center;
	background-color: rgba(115, 120, 138, 0.8);
	color: #E2EAF2;
	font-weight: 250 !important;
	font-size: 1em;
	border-radius: 35px;
	padding: 10px;
}

@media screen and (min-width: 780px) {
	.message-toast-box {
		font-weight: 500 !important;
		font-size: 1em;
	}
}

.message-toast-msg {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    width : 100%;
}

.message-toast-close {
	position: inherit;
	margin-left: auto;
	cursor: pointer;
	width: 30px;
	height: 30px;
}

.message-toast .message-toast-close::before {
	content: '';
	display: table;
	position: absolute;
	top: 50%;
	right: 0;
	width: 100%;
	height: 1px;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
	background: #fff;
}

.message-toast .message-toast-close::after {
	content: '';
	display: table;
	position: absolute;
	top: 50%;
	right: 0;
	width: 100%;
	height: 1px;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	background: #fff;
}

/* ============================================================
多裝置
============================================================ */
.multi-device-list{
    margin: 0;
}

.multi-device-list h4 {
	font-weight: 500 !important;
}

.multi-device-list h2 {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 400;
    text-align: left;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.multi-device-list ul{
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    max-height: calc(90vh - 240px);
    overflow: auto;
}

.multi-device-list li{
    box-sizing: border-box;
    margin: 10px;
    padding: 20px 10px 10px 10px;
    width: 100%;
    height: 100%;
    min-height: 290px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, .3);
    color: #666;
    text-align: center;
}

.multi-device-list hr {
	margin: 10px 0px;
}

.multi-device-list .mulit-device-name {
	line-height: 16px;
	font-weight: 1000 !important;
}

.multi-device-list img {
	box-sizing: border-box;
	height: 60px;
	margin-bottom: 10px;
}

.multi-device-list .mulit-device-desc{
    display: flex;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin: 10px 0px;
    padding-left: 0;
    font-size: 16px;
}

.multi-device-list .btn-info {
	margin: 10px 0px;
}

@media all and (min-width: 540px){
    .multi-device-list li{
            width: calc(50% - 20px);
    }
}

@media all and (min-width: 768px){
    .multi-device-list li{
            width: calc(33% - 20px);
    }
}

.popup-window .multi-device-list ul::-webkit-scrollbar {
    width: 8px;
}

.popup-window .multi-device-list ul::-webkit-scrollbar-track {
    border-radius: 10px;
    background: rgba(18, 23, 44, 0.1);
}

.popup-window .multi-device-list ul::-webkit-scrollbar-thumb {
    background: rgba(18, 23, 44, 0.2);
    border-radius: 10px;
}

.popup-window .multi-device-list ul::-webkit-scrollbar-thumb:hover {
    background: rgba(18, 23, 44, 0.4);
}

/* ============================================================
詳細頁購買popup
============================================================ */
.for-purchase .popup-content {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	position: fixed;
	top: 0;
	left: 0;
	overflow: hidden;
}

.for-purchase .popup-content .popup-box {
	padding: 0;
	margin: 0;
	width: 100%;
	max-width: 760px;
	height: 80vh;
	position: absolute;
	top: auto;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 0);
	overflow: initial;
	border-radius: 25px 25px 0 0;
}

.for-purchase .popup-content .popup-box .popup-window-close {
	width: 36px;
	height: 36px;
	position: absolute;
	top: 0;
	right: 15px;
	transform: translate(0, -120%);
	cursor: pointer;
}

.for-purchase .popup-content .popup-box .popup-window-close span {
	display: none;
}

.for-purchase .popup-content .popup-box .popup-window-close::before,
	.for-purchase .popup-content .popup-box .popup-window-close::after {
	background: #fff;
}

.purchase-popup-title {
	width: 86%;
	max-width: 515px;
	position: relative;
	margin: -10% auto 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
}

.purchase-popup-title .purchase-poster {
	width: 24%;
	position: relative;
	padding-bottom: 35.68%;
	border-radius: 7px;
	overflow: hidden;
	box-shadow: 2px 4px 7px rgba(0, 0, 0, .25);
}

.purchase-popup-title .purchase-poster img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
	position: absolute;
	left: 0;
}

.purchase-popup-title h2 {
	width: 72%;
	position: relative;
	font-size: 1.375em;
	font-weight: 700;
	line-height: 1.4em;
	text-align: left;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	word-wrap: break-word;
}

.purchase-popup-tabs {
	width: 100%;
	position: relative;
	margin: 16px auto;
	display: flex;
	justify-content: center;
	align-items: stretch;
	flex-wrap: wrap;
}

.purchase-popup-tab {
	width: fit-content;
	position: relative;
	padding: 6px 10px;
	background: #e7e7e7;
	border-left: 1px solid #cecece;
	box-sizing: border-box;
	color: #333;
	font-size: 1em;
	font-weight: 400;
	text-align: center;
	cursor: pointer;
	margin: 5px 0;
}

.purchase-popup-tab:nth-child(1) {
	border-left: none;
	border-radius: 5px 0 0 5px;
}

.purchase-popup-tab:nth-last-child(1) {
	border-radius: 0 5px 5px 0;
}

.purchase-popup-tab.active {
	color: #fff;
	font-weight: 700;
	background: #00AFEB;
}

@media screen and (min-width: 768px) {
	.for-purchase .popup-content .popup-box .popup-window-close {
		position: absolute;
		top: 15px;
		right: 15px;
		transform: translate(0, 0);
	}
	.for-purchase .popup-content .popup-box .popup-window-close::before,
		.for-purchase .popup-content .popup-box .popup-window-close::after {
		background: #000;
	}
	.purchase-popup-title h2 {
		font-size: 1.875em;
	}
	.purchase-popup-tabs {
		border-bottom: 1px solid #cecece;
		box-sizing: border-box;
		margin: 16px 0 0 0;
	}
	.purchase-popup-tab {
		margin: 0;
		font-size: 1.125em;
		background: none;
		padding: 8px 22px;
		border: none;
		border-radius: 0;
	}
	.purchase-popup-tab.active {
		background: none;
		color: #00AFEB;
		border-bottom: 3px solid #00AFEB;
	}
	.purchase-popup-tab:nth-child(1) {
		border-radius: 0;
	}
	.purchase-popup-tab:nth-last-child(1) {
		border-radius: 0;
	}
}

.purchase-popup-info {
	width: 100%;
	display: none;
}

.purchase-popup-info.active {
	display: block;
}

.purchase-popup-body {
	width: 86%;
	position: relative;
	margin: 0 auto;
	max-height: calc(80vh - 142px - 76px - 65px + 11px);
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	flex-wrap: wrap;
	overflow: auto;
	padding: 15px 5px 15px 0;
}

.purchase-popup-body::-webkit-scrollbar {
	width: 8px;
	height: 0;
}

.purchase-popup-body::-webkit-scrollbar-track {
	border-radius: 10px;
	background: #e7e7e7;
}

.purchase-popup-body::-webkit-scrollbar-thumb {
	border-radius: 10px;
	background: #cecece;
}

.purchase-popup-body::-webkit-scrollbar-thumb:hover {
	background: #bbbbbb;
}

.purchase-popup-body p {
	font-size: 1em;
	font-weight: 500;
	color: #333;
	text-align: center;
	width: 100%;
	position: relative;
}

.purchase-popup-item {
	width: 100%;
	position: relative;
	background: #FAFAFA;
	border: 1px solid #cecece;
	border-radius: 7px;
	box-sizing: border-box;
	margin: 8px 0;
	cursor: pointer;
}

.purchase-popup-item.active {
	background: rgba(0, 175, 235, .1);
	border: 3px solid #00AFEB;
}

.purchase-item-container {
	width: 92%;
	position: relative;
	margin: 0 auto;
	display: flex;
	justify-content: right;
	align-items: stretch;
	flex-wrap: wrap;
	padding: 15px 0;
}

.purchase-item-title {
	width: 100%;
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	flex-wrap: wrap;
}

.purchase-item-title input[type="radio"] {
	width: 20px;
	height: 20px;
	position: relative;
	display: block !important;
	appearance: none;
	margin: 3px 10px 0 0;
}

.purchase-item-title input[type="radio"]::before {
	content: '';
	display: table;
	position: absolute;
	width: 20px;
	height: 20px;
	top: 0;
	left: 0;
	background: url('/img/new_friday/radio_default.svg') no-repeat;
	background-size: contain;
	background-position: center;
}

.purchase-item-title input[type="radio"]:checked::before {
	background: url('/img/new_friday/radio_checked.svg') no-repeat;
}

.purchase-item-name {
	width: calc(100% - 110px);
	position: relative;
	font-size: 1.125em;
	font-weight: 700;
	color: #000;
	text-align: left;
	line-height: 1.4em;
}

.purchase-item-name em {
	color: #999;
	font-weight: 500;
}

.purchase-popup-item .purchase-item-name {
	width: calc(100% - 110px);
}

.purchase-popup-item.purchase-item-ticket .purchase-item-name {
	width: calc(100% - 30px);
}

.purchase-item-price {
	width: 80px;
	position: relative;
	font-size: 1.125em;
	font-weight: 700;
	color: #000;
	text-align: right;
}

.purchase-item-intro {
	width: calc(100% - 30px);
	position: relative;
	font-size: .875em;
	font-weight: 400;
	color: #727272;
	text-align: justify;
	margin-top: 10px;
}

.purchase-item-intro p {
	text-align: justify;
}

@media screen and (min-width: 640px) {
	.purchase-popup-item {
		width: 49%;
	}
}

.btn-controller {
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 12px 0 20px 0;
	background: #fff;
	box-shadow: 0 0 5px rgba(0, 0, 0, .25);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.step-container {
	width: calc(94% - 130px);
	max-width: 250px;
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	margin-right: 20px;
}

.step-item {
	width: fit-content;
	position: relative;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
}

.step-container span {
	width: calc(( 100% - 97px - 38px - 38px)/2);
	position: relative;
	height: 1px;
	position: relative;
	border-top: 1px solid #cecece;
}

.step-num {
	width: 28px;
	height: 28px;
	position: relative;
	border-radius: 50%;
	border: 1px solid #cecece;
	box-sizing: border-box;
	text-align: center;
	line-height: 27px;
	font-size: .9375em;
	font-weight: 400;
	color: #cecece;
}

.step-intro {
	width: fit-content;
	position: relative;
	font-size: 1em;
	font-weight: 700;
	text-align: left;
	margin-left: 5px;
}

.step-item.active .step-num {
	background: #00AFEB;
	border: 1px solid #00AFEB;
	color: #fff;
	font-weight: 700;
}

.step-item.active .step-intro {
	color: #00AFEB;
}

.btn-controller .btn.btn-primary {
	transition: .15s linear;
}

@media screen and (min-width: 640px) {
	.btn-controller .btn.btn-primary:hover {
		background: none;
		border: 1px solid #1b62b4;
		box-sizing: border-box;
		color: #1b62b4;
	}
}

/* ============================================================
照片預覽popup
============================================================ */
.popup-photo-preview {
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	position: fixed;
	overflow: hidden;
	z-index: 1001;
	background: black;
	opacity: 0;
	display: none;
	transition: all 0.5s ease-out;
}

.popup-photo-preview.active {
	display: block;
	opacity: 1;
}

.popup-photo-preview .photo-preview-close {
	width: 36px;
	height: 36px;
	right: 15px;
	top: 15px;
	position: absolute;
	cursor: pointer;
	z-index: 1002;
}

.popup-photo-preview .photo-preview-close::before {
	content: '';
	display: table;
	position: absolute;
	top: 50%;
	right: 0;
	width: 100%;
	height: 1px;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
	background: #fff;
}

.popup-photo-preview .photo-preview-close::after {
	content: '';
	display: table;
	position: absolute;
	top: 50%;
	right: 0;
	width: 100%;
	height: 1px;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	background: #fff;
}

.popup-photo-preview .photo-maximum {
	height: 80%;
	width: 100%;
}

.popup-photo-preview .photo-maximum .swiper-slide {
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: center;
}

.popup-photo-preview .photo-maximum img {
	height: 100%;
	width: 100%;
	object-fit: contain;
}

.popup-photo-preview .photo-list {
	height: 20%;
	box-sizing: border-box;
	padding: 10px 10px;
}

.popup-photo-preview .photo-list .swiper-slide {
	height: 100%;
	opacity: 0.4;
	cursor: pointer;
	object-fit: cover;
}

.popup-photo-preview .photo-list .swiper-slide img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.popup-photo-preview .photo-list .swiper-slide.swiper-slide-thumb-active
	{
	opacity: 1;
}

@media screen and (min-width: 768px) {
	.popup-photo-preview .photo-list .swiper-slide {
		width: 25%;
	}
}

@media screen and (min-width: 960px) {
	.popup-photo-preview .photo-list .swiper-slide {
		width: 16.5%;
	}
}

@media screen and (min-width: 1200px) {
	.popup-photo-preview .photo-list .swiper-slide {
		width: 12.5%;
	}
}

/* ============================================================
對於popup-box 內容使用清單ol 處理
============================================================ */

.popup-window ol.popup-items-container::-webkit-scrollbar {
	width: 8px;
}

.popup-window ol.popup-items-container::-webkit-scrollbar-track {
	border-radius: 10px;
	background: rgba(18, 23, 44, 0.1);
}

.popup-window ol.popup-items-container::-webkit-scrollbar-thumb {
	background: rgba(18, 23, 44, 0.2);
	border-radius: 10px;
}

.popup-window ol.popup-items-container::-webkit-scrollbar-thumb:hover {
	background: rgba(18, 23, 44, 0.4);
}

.popup-window  ol.popup-items-container {
  max-height: calc(90vh - 233px);
  overflow: auto;
  margin: 10px auto;
  text-align: left;
}

.popup-window ol.popup-items-container li {
  font-size: .9375em;
  font-weight: 500;
  color: #333;
  line-height: 1.5em;
  margin-bottom: 5px;
  margin-left: -0.5em;
  list-style-type: decimal;
  padding-left: 1.5em; /* 加一點內縮讓編號能顯示出來 */
}

.popup-window ol.popup-items-container li li{
  list-style-type: disc;
  padding-left: 1.5em; /* 加一點內縮讓編號能顯示出來 */
}