/* modal */
.modal-layer {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	background: transparent;
	padding: 16px;
	z-index: 1000;
}
.modal-layer:before {
	content: '';
	position: absolute;
	top: 64px;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: -1;
}
.modal-layer.on {
	display: block;
}
.modal-layer .modal-wrap {
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	max-height: 70vh;
	max-height: 70dvh;
	min-height: 300px;
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
}
.modal-layer .modal-top {
	flex-shrink: 0;
	position: relative;
	background: #fff;
	padding: 24px 24px 0;
}
.modal-layer .modal-inner {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	padding: 0 24px;
	overflow-y: auto;
	overflow-x: hidden;
}
.modal-layer .modal-bottom {
	flex-shrink: 0;
	padding: 16px 24px 24px;
	background: #fff;
}
.modal-layer .modal-title {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.333;
	color: #171717;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid #E5E5E5;
}
.modal-layer .btn-close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 16px;
	height: 16px;
	-webkit-mask: url('https://vgzol4tn11543.edge.naverncp.com/toxnfill/images/common/icon-close.svg') center / 12px no-repeat;
	mask: url('https://vgzol4tn11543.edge.naverncp.com/toxnfill/images/common/icon-close.svg') center / 12px no-repeat;
	background: #171717;
}
.modal-layer .btn--primary {
	border-radius: 16px;
}
.modal-layer .btn-refresh {
	display: flex;
	align-items: center;
	font-size: 0.813rem;
	font-weight: 700;
	line-height: 1.385;
	color: var(--secondary);
	gap: 4px;
}
.modal-layer .btn-refresh:before {
	content: '';
	width: 16px;
	height: 16px;
	-webkit-mask: url('https://vgzol4tn11543.edge.naverncp.com/toxnfill/images/common/icon-refresh.svg') center / 100% no-repeat;
	mask: url('https://vgzol4tn11543.edge.naverncp.com/toxnfill/images/common/icon-refresh.svg') center / 100% no-repeat;
	background: var(--secondary);
}
.modal-layer .no-data {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	font-weight: 500;
	color: #171717;
	line-height: 1.429;
	gap: 4px;
	padding: 0 16px;
	margin: 48px 0;
}
.modal-layer .no-data strong {
	font-size: 1rem;
	font-weight: 700;
	color: #171717;
	line-height: 1.5;
}
/* dark-ver */
.modal-layer.dark-ver .modal-wrap,
.modal-layer.dark-ver .modal-top,
.modal-layer.dark-ver .modal-bottom {
	background: #171717;
}
.modal-layer.dark-ver .btn-close {
	background: #fff;
}

/* 근처 지점 선택 */
#nearBranchSelectLayer .modal-top {
	height: 64px;
}
#nearBranchSelectLayer .branch-tab {
	position: sticky;
	top: 0;
	z-index: 2;
	margin: 0 -24px;
	padding-bottom: 24px;
	background: #fff;
}
#nearBranchSelectLayer .branch-tab:before {
	content: '';
	position: absolute;
	left: 0;
	top: -1px;
	height: 1px;
	width: 100%;
	background: #fff;
}
#nearBranchSelectLayer .branch-tab .branch-category {
	overflow: hidden;
}
#nearBranchSelectLayer .branch-category .swiper-slide {
	width: auto;
}
#nearBranchSelectLayer .branch-category .btn-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 0.813rem;
	font-weight: 700;
	line-height: 1.385;
	color: #171717;
	height: 40px;
	padding: 0 16px;
	background: #fff;
	border-radius: 999px;
	border: 1px solid #E5E5E5;
}
#nearBranchSelectLayer .branch-category .btn-tab.active {
	background: #171717;
	color: #fff;
	border-color: #171717;
}
#nearBranchSelectLayer .branch-category .btn-tab .num {
	font-family: 'Lato';
	font-style: normal;
	font-size: 0.625rem;
	font-weight: 500;
	line-height: 1.4;
}
#nearBranchSelectLayer .branch-list {
	display: none;
}
#nearBranchSelectLayer .branch-list.on {
	display: block;
}
#nearBranchSelectLayer .branch-list li {
	margin-bottom: 16px;
}
#nearBranchSelectLayer .branch-list .radio-chk-ver label {
	padding-left: 36px;
}
#nearBranchSelectLayer .branch-list .radio-chk-ver .addr {
	font-size: 0.75rem;
	color: #4a4a4a;
	font-weight: 500;
	line-height: 1.333;
	margin-top: 4px;
}
#nearBranchSelectLayer .btn-apply {
	width: 100%;
}

/* 캘린더 (상담예약) */
#calendarLayer .modal-top {
	height: 32px;
	padding: 0;
}
#calendarInner .calendar-swiper {
	overflow: hidden;
}
.datepicker-wrap {
	padding-bottom: 32px;
}
.datepicker-header {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	margin-bottom: 8px;
	gap: 20px;
}
.datepicker-title {
	font-family: 'Lato';
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1.4;
}
.datepicker-prev,
.datepicker-next {
	width: 20px;
	height: 20px;
	-webkit-mask: url('https://vgzol4tn11543.edge.naverncp.com/toxnfill/images/common/icon-arrow-right.svg') center / 100% no-repeat;
	mask: url('https://vgzol4tn11543.edge.naverncp.com/toxnfill/images/common/icon-arrow-right.svg') center / 100% no-repeat;
	background: #171717;
}
.datepicker-prev {
	transform: rotate(180deg);
}
.datepicker-prev:disabled,
.datepicker-next:disabled,
.datepicker-prev.swiper-button-disabled,
.datepicker-next.swiper-button-disabled {
	background: #C9C9C9;
	cursor: not-allowed;
}
.datepicker-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 8px;
	text-align: center;
}
.datepicker-table th {
	font-size: 0.813rem;
	font-weight: 700;
	line-height: 1.385;
	padding: 10px;
}
.datepicker-table td {
	padding: 0;
}
.datepicker-table .selectDateBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	font-family: 'Lato';
	font-size: 0.813rem;
	font-weight: 700;
	line-height: 1.385;
	color: #171717;
	background: transparent;
	border: 0;
	border-radius: 50%;
}
@media (hover: hover) and (pointer: fine) {
	.datepicker-table .selectDateBtn:hover:not(.disabled):not(.active) {
		background: #F5F5F5;
	}
}
.datepicker-table .selectDateBtn:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}
.datepicker-table .selectDateBtn.holiday {
	color: var(--primary);
}
.datepicker-table .selectDateBtn.disabled {
	color: #C9C9C9;
	cursor: not-allowed;
}
.datepicker-table .selectDateBtn.active {
	color: #fff;
	background: #171717;
}

/* 남은 시술/관리권 추가 */
#ticketAddLayer .chk-item label {
	font-weight: 500;
}
#ticketAddLayer .treatment-list {
	display: grid;
	grid-gap: 16px;
}

/* 지점(소팅) 선택 */
#sortBranchLayer .modal-top {
	padding-bottom: 24px;
}
#sortBranchLayer .modal-inner {
	position: relative;
    padding-top: 24px;
}
#sortBranchLayer .modal-inner:before {
	content: '';
	position: absolute;
	top: 0;
	left: 24px;
	right: 24px;
	height: 1px;
	background: #272727;
}
#sortBranchLayer .branch-group {
	margin-bottom: 40px;
}

/* 지역(소팅) 선택 */
#sortRegionLayer .modal-top {
	padding-bottom: 24px;
}
#sortRegionLayer .modal-inner {
	position: relative;
    padding-top: 24px;
}
#sortRegionLayer .modal-inner:before {
	content: '';
	position: absolute;
	top: 0;
	left: 24px;
	right: 24px;
	height: 1px;
	background: #272727;
}

/* 전후사진 이미지 */
#bnaImgSwiperLayer .modal-wrap {
	background: transparent;
	border-radius: 0;
}
#bnaImgSwiperLayer .modal-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--primary-dark);
	padding: 16px 50px 16px 24px;
}
#bnaImgSwiperLayer .modal-title {
	color: #fff;
	border: 0;
	padding: 0;
	margin: 0;
}
#bnaImgSwiperLayer .swiper-pagination {
	position: static;
	width: auto;
	font-family: 'Lato';
	font-size: 0.813rem;
	font-weight: 700;
	color: #fff;
}
#bnaImgSwiperLayer .swiper-pagination .swiper-pagination-total {
	opacity: 0.7;
}
#bnaImgSwiperLayer .btn-close {
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	background: #fff;
}
#bnaImgSwiperLayer .modal-inner {
	background: #fff;
	padding: 0;
}
#bnaImgSwiperLayer .img-gallery .main-swiper {
	position: relative;
	width: 100%;
}
#bnaImgSwiperLayer .img-gallery .main-swiper .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 106/75;
}
#bnaImgSwiperLayer .img-gallery .main-swiper .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
#bnaImgSwiperLayer .img-gallery .thumb-swiper {
	position: relative;
	width: 100%;
	background: #171717;
	padding: 24px 0;
}
#bnaImgSwiperLayer .img-gallery .thumb-swiper .swiper-slide {
	width: 80px;
	height: 62px;
	opacity: 0.5;
	cursor: pointer;
}
#bnaImgSwiperLayer .img-gallery .thumb-swiper .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
#bnaImgSwiperLayer .img-gallery .thumb-swiper .swiper-slide-thumb-active {
	opacity: 1;
}
#bnaImgSwiperLayer .img-gallery .swiper-button-next,
#bnaImgSwiperLayer .img-gallery .swiper-button-prev {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.70) url('https://vgzol4tn11543.edge.naverncp.com/toxnfill/images/common/icon-arrow-right.svg') center / 20px no-repeat;
	margin-top: -16px;
}
#bnaImgSwiperLayer .img-gallery .swiper-button-prev {
	transform: rotate(180deg);
}
#bnaImgSwiperLayer .img-gallery .swiper-button-next.next2,
#bnaImgSwiperLayer .img-gallery .swiper-button-prev.prev2 {
	background-color: transparent;
}
#bnaImgSwiperLayer .img-gallery.is-single .swiper-button-next,
#bnaImgSwiperLayer .img-gallery.is-single .swiper-button-prev {
	display: none;
}

/* 약관 공통 */
.modal-accept-view .modal-inner {
	padding-bottom: 24px;
}
.modal-accept-view .modal-bottom {
	display: none;
}
.modal-accept .accept-content .accept-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 8px;
}
.modal-accept .accept-content .accept-desc {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.429;
	margin-bottom: 24px;
}
.modal-accept .accept-table table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #E5E5E5;
	margin: 8px 0;
}
.modal-accept .accept-table thead th {
	font-weight: 700;
	background: #eee;
}
.modal-accept .accept-table th,
.modal-accept .accept-table td {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.429;
	padding: 5px;
	border: 1px solid #E5E5E5;
}
.modal-accept .accept-content strong {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.429;
}

/* 이번주 BEST TOP10 한 눈에 보기 */
#eventAllViewLayer {
	padding: 0;
}
#eventAllViewLayer .modal-wrap {
	top: 64px;
	height: 100vh;
	height: 100dvh;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	transform: none;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.7);
}
#eventAllViewLayer .modal-top {
	height: 60px;
	background: rgba(0, 0, 0, 0.7);
}
#eventAllViewLayer .modal-inner {
	padding: 0 16px 48px;
}
#eventAllViewLayer .best-event-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 320px;
	margin: 0 auto;
}
#eventAllViewLayer .img-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#eventAllViewLayer .img-thumb .icon-more {
	right: 12px;
	bottom: 12px;
}
#eventAllViewLayer .img-thumb .badge-wrap {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	gap: 2px;
}

/* sweetalert */
.swal-overlay {
	background: transparent;
	opacity: 1 !important;
}
.swal-modal, .swal-overlay {
	will-change: auto !important;
}
.swal-modal {
	max-width: 300px;
	padding: 14px;
	border-radius: 20px;
	border: 1px solid #fff;
	background: rgba(245, 245, 245, 0.6);
	-webkit-backdrop-filter: blur(40px);
	backdrop-filter: blur(40px);
	box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.04);
}
.swal-modal .swal-title {
	margin: 0;
    font-size: 1rem;
    line-height: 1.5;
	color: #000;
	padding: 8px;
	text-align: left;
}
.swal-modal .swal-text {
	display: block;
	max-width: 100%;
	font-size: 0.875rem;
	line-height: 1.429;
	color: #000;
	padding: 2px 8px;
	margin-bottom: 22px;
	text-align: center;
}
.swal-modal .swal-text:first-child {
	margin-top: 25px;
}
.swal-modal .swal-footer {
	display: flex;
	justify-content: center;
	padding: 0;
	margin-top: 0;
	gap: 16px;
}

.swal-modal .swal-button-container {
	display: block;
	width: 50%;
	margin: 0;
}
.swal-modal .swal-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
	color: #fff;
	padding: 0 16px;
	border-radius: 999px;
	background: #0088FF;
}
.swal-button:not([disabled]):hover {
	background: #0088FF;
}
.swal-button--cancel:not([disabled]):hover {
	background: rgba(120, 120, 128, 0.16);
}
.swal-modal .swal-button:focus {
	box-shadow: none;
}
.swal-modal .swal-button--cancel {
	color: #000;
	background: rgba(120, 120, 128, 0.16);
}
/* 전화 연결 알럿 */
.call-alert .swal-footer {
	flex-direction: column-reverse;
	gap: 10px;
}
.call-alert .swal-button-container {
	width: 100%;
}
/* 토스페이먼츠 위젯(패스트트랙) */
#paymentWidgetDiv {
	overflow-y: auto;
	background-color: #FFFFFF;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	-webkit-overflow-scrolling: touch;
}

@media screen and (min-width: 480px) {
	#bnaImgSwiperLayer .modal-wrap {
		max-height: 100vh;
		max-height: 100dvh;
	}
}