

/* =========================================================
   여기 값만 바꾸면 팝업 위치·크기·간격을 조정할 수 있습니다.
   ========================================================= */
:root {
	/* 팝업 카드 크기 */
	--bp-popup-width: 460px;
	--bp-popup-height: 520px;

	/* 브랜드 마크부터 내용이 시작되는 위치 */
	--bp-content-top: 24%;
	--bp-content-right: 10%;
	--bp-content-bottom: 12%;
	--bp-content-left: 10%;

	/* 브랜드 마크 위치·간격 */
	--bp-brand-margin-top: 24px;
	--bp-brand-margin-bottom: 7px;
	--bp-brand-offset-y: 0px;

	/* 타이틀 간격 */
	--bp-title-margin-top: 20px;
	--bp-title-margin-bottom: 8px;

	/* 인트로 → 날짜 → 시장 안내 → 노란 박스 간격 */
	--bp-intro-date-gap: 15px;
	--bp-date-market-gap: 5px;
	--bp-market-reopen-gap: 15px;
	--bp-reopen-offset-y: 12px;

	/* 글자 크기 */
	--bp-title-size: 24px;
	--bp-intro-size: 13px;
	--bp-date-size: 14px;
	--bp-market-size: 12px;
	--bp-reopen-size: 18px;
}
.bp-holiday-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000000;
	font-family: "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
}

.bp-holiday-overlay,
.bp-holiday-overlay * {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.bp-holiday-dim {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(13, 25, 24, .76);
}

.bp-holiday-dialog {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 68px 28px 26px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.bp-holiday-topbar {
	position: absolute;
	top: 19px;
	left: 30px;
	right: 30px;
	height: 43px;
	z-index: 3;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}

.bp-holiday-check {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.bp-holiday-check input {
	width: 21px;
	height: 21px;
	margin: 0;
	accent-color: #75aa56;
}

.bp-holiday-close {
	width: 43px;
	height: 43px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 10px;
	background: rgba(0, 0, 0, .30);
	color: #fff;
	font-size: 34px;
	font-weight: 200;
	line-height: 35px;
	cursor: pointer;
}

.bp-holiday-close:hover,
.bp-holiday-close:focus {
	background: rgba(255, 255, 255, .22);
	outline: none;
}

.bp-holiday-slider {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	min-height: 0;
}

.bp-holiday-viewport {
	width: 100%;
	overflow: hidden;
}

.bp-holiday-track {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-transition: -webkit-transform .35s ease;
	transition: -webkit-transform .35s ease;
	transition: transform .35s ease;
	transition: transform .35s ease, -webkit-transform .35s ease;
	will-change: transform;
}

.bp-holiday-slide {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 33.333333%;
	flex: 0 0 33.333333%;
	padding: 0 11px;
	min-width: 0;
}

.bp-holiday-card {
	position: relative;
	width: 100%;
	height: 620px;
	max-height: calc(100vh - 170px);
	min-height: 450px;
	margin: 0 auto;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	-webkit-filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .24));
	filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .24));
}

.bp-holiday-card-inner {
	position: absolute;
	top: 21%;
	right: 10%;
	bottom: 12%;
	left: 10%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	min-height: 0;
	color: #24342e;
	text-align: left;
}

.bp-holiday-brand {
	height: 30px;
	margin-bottom: 7px;
}

.bp-holiday-brand img {
	display: block;
	width: 132px;
	height: auto;
	max-height: 30px;
	object-fit: contain;
	object-position: left center;
}

.bp-holiday-season {
	display: none;
	-ms-flex-item-align: start;
	align-self: flex-start;
	max-width: 100%;
	margin-bottom: 7px;
	padding: 5px 12px;
	border-radius: 16px;
	background: rgba(56, 120, 83, .95);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.bp-holiday-slide.seol .bp-holiday-season { background: #b34a51; }
.bp-holiday-slide.newyear .bp-holiday-season { background: #2d6e7d; }
.bp-holiday-slide.summer .bp-holiday-season { background: #247e90; }

.bp-holiday-title {
	margin: 20px 0 10px;
	color: #1f302a;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -1.1px;
	word-break: keep-all;
        text-align: center;
	width: 100%;
}

.bp-holiday-intro {
	min-height: 42px;
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.48;
	word-break: keep-all;
}

.bp-holiday-date {
	margin-bottom: 9px;
	padding: 10px 11px;
	border: 2px solid rgba(73, 135, 88, .62);
	border-radius: 13px;
	background: rgba(255, 255, 255, .82);
	font-size: 14px;
	line-height: 1.42;
	word-break: keep-all;
}

.bp-holiday-slide.seol .bp-holiday-date { border-color: rgba(179, 74, 81, .54); }
.bp-holiday-slide.newyear .bp-holiday-date { border-color: rgba(45, 110, 125, .55); }
.bp-holiday-slide.summer .bp-holiday-date { border-color: rgba(36, 126, 144, .55); }

.bp-holiday-date-label {
	display: inline-block;
	margin-right: 4px;
	color: #317342;
	font-weight: 800;
}

.bp-holiday-slide.seol .bp-holiday-date-label { color: #a43f48; }
.bp-holiday-slide.newyear .bp-holiday-date-label { color: #276c7b; }
.bp-holiday-slide.summer .bp-holiday-date-label { color: #23798b; }

.bp-holiday-date-value {
	display: inline;
	font-size: 13px;
	font-weight: 1000;
	letter-spacing: -.25px;
}

.bp-holiday-market {
	margin: 0;
	padding: 0 2px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.48;
	word-break: keep-all;
        text-align: center;
}

.bp-holiday-market:before {
	content: "*";
	margin-right: 5px;
	color: #3e8653;
	font-weight: 900;
}

.bp-holiday-market:after {
	content: "*";
	margin-right: 5px;
	color: #3e8653;
	font-weight: 900;
}

.bp-holiday-slide.seol .bp-holiday-market:before { color: #b34a51; }
.bp-holiday-slide.newyear .bp-holiday-market:before { color: #2d6e7d; }
.bp-holiday-slide.summer .bp-holiday-market:before { color: #247e90; }

.bp-holiday-reopen {
	/* 위 내용과의 간격만 두고, 박스의 아래쪽은 기존 위치에 고정합니다. */
	position: static !important;
	top: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin-top: 10px !important;
	margin-bottom: 0 !important;
	transform: none !important;
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	padding: 9px 11px;
	border-radius: 12px;
	background: rgba(244, 237, 198, .92);
	color: #000 !important;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.55;
	word-break: keep-all;
   text-align: center;
}

.bp-holiday-slide.seol .bp-holiday-reopen { background: rgba(250, 227, 207, .94); color: #7d3e3d; }
.bp-holiday-slide.newyear .bp-holiday-reopen { background: rgba(223, 241, 235, .94); color: #285d66; }
.bp-holiday-slide.summer .bp-holiday-reopen { background: rgba(217, 246, 235, .94); color: #21606a; }

.bp-holiday-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	-webkit-box-flex: 0;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
	width: 45px;
	height: 70px;
	margin: -35px 0 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: rgba(0, 0, 0, .34);
	color: #fff;
	font-size: 42px;
	font-weight: 200;
	line-height: 58px;
	cursor: pointer;
}

.bp-holiday-nav.prev { left: 0; }
.bp-holiday-nav.next { right: 0; }

.bp-holiday-nav:hover,
.bp-holiday-nav:focus {
	background: rgba(255, 255, 255, .22);
	outline: none;
}

.bp-holiday-nav[disabled] {
	display: none;
}

.bp-holiday-bottom {
	position: relative;
	min-height: 33px;
	margin-top: 8px;
	text-align: center;
	color: rgba(255, 255, 255, .88);
	font-size: 13px;
}

.bp-holiday-dots button {
	width: 8px;
	height: 8px;
	margin: 0 4px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .42);
	vertical-align: middle;
	cursor: pointer;
}

.bp-holiday-dots button.on {
	width: 23px;
	border-radius: 6px;
	background: #fff;
}

.bp-holiday-count {
	display: block;
	margin-top: 7px;
	font-size: 12px;
	opacity: .78;
}

body.bp-holiday-open {
	overflow: hidden;
}

@media screen and (max-width: 1180px) {
	.bp-holiday-slide {
		-ms-flex-preferred-size: 50%;
		flex-basis: 50%;
	}
	.bp-holiday-card {
		max-width: 500px;
	}
}

@media screen and (max-width: 720px) {
	.bp-holiday-dialog {
		padding: 64px 8px 15px;
	}
	.bp-holiday-topbar {
		top: 12px;
		left: 13px;
		right: 13px;
		font-size: 13px;
	}
	.bp-holiday-close {
		width: 38px;
		height: 38px;
		font-size: 29px;
		line-height: 31px;
	}
	.bp-holiday-slide {
		-ms-flex-preferred-size: 100%;
		flex-basis: 100%;
		padding: 0 17px;
	}
	.bp-holiday-card {
		width: 60%;
		height: calc(100vh - 135px);
		max-height: 690px;
		min-height: 300px;
	}
	.bp-holiday-card-inner {
		top: 24%;
		right: 11%;
		bottom: 6%;
		left: 11%;
	}
	.bp-holiday-brand img {
		width: 113px;
		max-height: 26px;
	}
	.bp-holiday-brand {
		height: 27px;
	}
	.bp-holiday-season {
		display: none;
	}
	.bp-holiday-title {
		font-size: 25px;
		letter-spacing: -.8px;
	}
	.bp-holiday-intro,
	.bp-holiday-date,
	.bp-holiday-market {
		font-size: 14px;
	}
	.bp-holiday-date-value {
		display: inline;
		font-size: 15px;
	}
	.bp-holiday-reopen {
		font-size: 12px;
		line-height: 1.5;
		margin-top: 8px !important;
		margin-bottom: 0 !important;
		color: #000 !important;
	}
	.bp-holiday-nav {
		position: absolute;
		top: 50%;
		z-index: 2;
		width: 38px;
		height: 52px;
		margin-top: -26px;
		font-size: 32px;
		line-height: 42px;
	}
	.bp-holiday-nav.prev { left: 2px; }
	.bp-holiday-nav.next { right: 2px; }
}

/* =========================================================
   아래 규칙은 위 설정값을 실제 팝업에 적용합니다.
   ========================================================= */
.bp-holiday-dialog {
	overflow: auto;
}

/* 브라우저 확대/축소로 CSS 높이가 바뀌지 않도록 고정합니다. */
.bp-holiday-card {
	width: var(--bp-popup-width) !important;
	max-width: var(--bp-popup-width) !important;
	min-width: var(--bp-popup-width) !important;
	height: var(--bp-popup-height) !important;
	max-height: var(--bp-popup-height) !important;
	min-height: var(--bp-popup-height) !important;
}

/* 브랜드부터 아래 내용까지의 시작 위치 */
.bp-holiday-card-inner {
	top: var(--bp-content-top) !important;
	right: var(--bp-content-right) !important;
	bottom: var(--bp-content-bottom) !important;
	left: var(--bp-content-left) !important;
	display: -webkit-box !important;
	display: -ms-flexbox !important;
	display: flex !important;
	-webkit-box-orient: vertical !important;
	-webkit-box-direction: normal !important;
	-ms-flex-direction: column !important;
	flex-direction: column !important;
}

/* 개별 이동은 실제 레이아웃을 깨지 않도록 기본값을 0으로 둡니다. */
.bp-holiday-brand {
	position: relative !important;
	top: var(--bp-brand-offset-y) !important;
	height: 30px !important;
	margin: var(--bp-brand-margin-top) 0 var(--bp-brand-margin-bottom) !important;
}

.bp-holiday-title {
	position: static !important;
	margin: var(--bp-title-margin-top) 0 var(--bp-title-margin-bottom) !important;
	font-size: var(--bp-title-size) !important;
}

.bp-holiday-intro {
	position: static !important;
	min-height: 0 !important;
	margin: 0 0 var(--bp-intro-date-gap) !important;
	font-size: var(--bp-intro-size) !important;
}

.bp-holiday-date {
	position: static !important;
	margin-top: 0 !important;
	margin-bottom: var(--bp-date-market-gap) !important;
	font-size: var(--bp-date-size) !important;
}

.bp-holiday-market {
	position: static !important;
	margin: 0 0 var(--bp-market-reopen-gap) !important;
	font-size: var(--bp-market-size) !important;
}

/* 노란 박스 위치·크기 */
.bp-holiday-reopen {
	position: relative !important;
	top: var(--bp-reopen-offset-y) !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	-webkit-box-flex: 0 !important;
	-ms-flex: 0 0 auto !important;
	flex: 0 0 auto !important;
	font-size: var(--bp-reopen-size) !important;
}

/* 모바일에서도 카드의 고정 크기와 설정값을 유지합니다. */
@media screen and (max-width: 720px) {
	.bp-holiday-card {
		width: var(--bp-popup-width) !important;
		max-width: var(--bp-popup-width) !important;
		min-width: var(--bp-popup-width) !important;
		height: var(--bp-popup-height) !important;
		max-height: var(--bp-popup-height) !important;
		min-height: var(--bp-popup-height) !important;
	}
	.bp-holiday-card-inner {
		top: var(--bp-content-top) !important;
		right: var(--bp-content-right) !important;
		bottom: var(--bp-content-bottom) !important;
		left: var(--bp-content-left) !important;
	}
}

/* =========================================================
   팝업 카드 사이 간격 보정
   - 3개가 나란히 표시될 때 서로 붙지 않도록 약 28px 간격
   - 브라우저 확대/축소 시 카드가 겹치지 않도록 폭 자동 축소 허용
   ========================================================= */
@media screen and (min-width: 1181px) {
	.bp-holiday-slider {
		max-width: 1464px !important;
	}

	.bp-holiday-slide {
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	.bp-holiday-card {
		width: 100% !important;
		max-width: var(--bp-popup-width) !important;
		min-width: 0 !important;
	}
}

/* 2개 표시 구간에서도 카드 사이 여백 유지 */
@media screen and (min-width: 721px) and (max-width: 1180px) {
	.bp-holiday-slide {
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	.bp-holiday-card {
		width: 100% !important;
		max-width: var(--bp-popup-width) !important;
		min-width: 0 !important;
	}
}

