.popup-wrap {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 1000;
	pointer-events: none;
}

.popup-wrap .popup-quick-consult {
	pointer-events: auto;
}

.popup-wrap.is-open {
	pointer-events: auto;
}

/* 햄버거 메뉴 열림 시 예약 팝업 숨김 */
body.mnav-on #popupQuickConsult {
	display: none !important;
}

.popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.40);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-wrap.is-open .popup-overlay {
	opacity: 1;
	visibility: visible;
}

.popup-quick-consult {
	position: absolute;
	left: 101px;
	bottom: -2px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	width: 455px;
	padding: 32px 36px 24px 36px;
	padding-top: 48px;
	box-sizing: border-box;
	background: #FFF;
	border: 1px solid #E1E1E1;
	border-radius: 20px;
	box-shadow: 0 -2px 20px 0 rgba(0, 0, 0, 0.15);
	transform: translateY(calc(100% - 22px));
	transition: transform 0.35s ease;
	overflow: visible;
}

.popup-wrap.is-open .popup-quick-consult {
	transform: translateY(-50px);
}

.popup-close {
	position: absolute;
	top: -26px;
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background-color: #8E5B48;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.popup-close img {
	display: block;
}

.popup-close .popup-open-icon {
	width: 32px;
	height: auto;
	max-height: 28px;
	object-fit: contain;
}

/* 닫힐 땐 banpo_sm(열기), 열리면 close 아이콘 */
.popup-close .popup-close-icon {
	display: none !important;
}

.popup-close .popup-open-icon {
	display: block !important;
}

.popup-wrap.is-open .popup-close .popup-close-icon {
	display: block !important;
}

.popup-wrap.is-open .popup-close .popup-open-icon {
	display: none !important;
}

.popup-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 120%;
	text-align: center;
}

.popup-title-brand {
	color: #8E5B48;
}

.popup-title-sub {
	color: #222;
}

.popup-form {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.popup-agree-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.popup-agree {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #525252;
	font-size: 13px;
	font-weight: 400;
	line-height: 120%;
	cursor: pointer;
}

.popup-agree-txt {
	flex: 1;
	min-width: 0;
}

.popup-agree-br {
	display: none;
}

.popup-agree input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.popup-agree-box {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: 1px solid #8E5B48;
	background: #fff;
	box-sizing: border-box;
	flex-shrink: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 9px 7px;
}

.popup-agree input[type="checkbox"]:checked + .popup-agree-box {
	background-color: #8E5B48;
	background-image: url("/img/common/check.svg");
}

.popup-agree input[type="checkbox"]:focus-visible + .popup-agree-box {
	outline: 2px solid rgba(142, 91, 72, 0.35);
	outline-offset: 2px;
}

.popup-submit {
	padding: 8px 16px;
	border-radius: 8px;
	background: #8E5B48;
	color: #FFF;
	border: none;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	flex-shrink: 0;
}

.popup-submit:hover {
	background-color: #7a4d3d;
}

.popup-input-row {
	display: flex;
	gap: 14px;
}

.popup-input-row input,
.popup-form input[type="tel"] {
	width: 100%;
	padding: 10px 16px;
	box-sizing: border-box;
	border-radius: 8px;
	border: 1px solid #E1E1E1;
	background: #FFF;
	box-shadow: none;
	font-size: 16px;
	font-weight: 400;
	line-height: 120%;
}

.popup-input-row input::placeholder,
.popup-form input[type="tel"]::placeholder {
	color: #9C9C9C;
}

.popup-input-row input:focus,
.popup-form input[type="tel"]:focus {
	outline: none;
	border-color: #8E5B48;
	box-shadow: 0 0 4px 0 rgba(142, 91, 72, 0.80);
}

.popup-input-row input:first-child {
	flex: 1;
}

.popup-input-row input:last-child {
	flex: 1;
	min-width: 0;
}

@media (max-width: 1024px) {
	.popup-quick-consult {
        min-width: 356px;
		left: 0;
		bottom: 124px;
		max-width: calc(100vw - 40px);
		transform: translateX(calc(-100% + 16px));
		border-radius: 0 20px 20px 0;
		border: 1px solid #E1E1E1;
		background: #FFF;
		box-shadow: 0 -2px 20px 0 rgba(0, 0, 0, 0.15);
		padding: 24px 32px 24px 22px;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}

	.popup-wrap.is-open .popup-quick-consult {
		transform: translateX(0);
	}

	.popup-title {
		font-size: 18px;
		text-align: left;
		align-self: flex-start;
	}

	.popup-form {
		gap: 4px;
	}

	.popup-input-row {
		gap: 4px;
	}

	.popup-input-row input,
	.popup-form input[type="tel"] {
		padding: 8px 16px;
	}

	.popup-agree-row {
		margin-top: 8px;
	}

	.popup-agree,
	.popup-agree-txt {
		font-size: 13px;
	}

	.popup-submit {
		font-size: 15px;
		padding: 8px 16px;
        min-width: 128px;
	}

	.popup-close {
		top: 50%;
		right: -17px;
		left: auto;
		width: 34px;
		height: 34px;
		transform: translateY(-50%);
	}

	.popup-close .popup-close-icon,
	.popup-close .popup-open-icon {
		width: 18px;
		height: 18px;
		max-height: none;
	}
}

/* 모바일만: 개인정보 동의 줄바꿈 */
@media (max-width: 768px) {
	.popup-agree-br {
		display: block;
	}
}
