.docent-request-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10001;
	align-items: flex-end;
	justify-content: center;
	/* PC에서도 바닥 시트처럼 붙어 보여야 해서 하단 여백은 두지 않는다. */
	padding: 16px 16px 0;
	background: rgba(34, 34, 34, 0.56);
}

.docent-request-modal.is-open {
	display: flex !important;
}

.docent-request-modal__dialog {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: flex-end;
}

.docent-request-modal__box {
	width: min(100%, 640px);
	max-width: 640px;
	max-height: min(88vh, 860px);
	margin-top: auto;
	display: flex;
	flex-direction: column;
	border-radius: 28px 28px 0 0;
	background: #fff;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
	/* 닫힐 때도 아래로 내려가는 방향이 분명하게 보이도록 초기 위치를 더 아래에 둔다. */
	transform: translateY(96px);
	opacity: 0;
	transition: transform 0.24s ease, opacity 0.24s ease;
	overflow: hidden;
	will-change: transform, opacity;
}

.docent-request-modal.is-open .docent-request-modal__box {
	transform: translateY(0);
	opacity: 1;
}

.docent-request-modal__header {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 16px;
	background: #fff;
	border-bottom: 1px solid #f2f2f2;
	flex-shrink: 0;
}

.docent-request-modal__close {
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.docent-request-modal__content {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 20px 24px;
	background: #fff;
}

.docent-request-modal.is-result-step .docent-request-modal__content {
	flex: 0 0 auto;
	overflow: visible;
	padding-bottom: 0;
}

.docent-request-modal.is-result-step .docent-request-summary {
	margin-bottom: 0;
}

.docent-request-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.docent-request-summary__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #f7f7f7;
	color: #222;
	font-size: 13px;
}

.docent-request-summary__label {
	color: #777;
	font-weight: 500;
}

.docent-request-summary__value {
	font-weight: 700;
}

.docent-request-panel {
	animation: docent-request-panel-in 0.22s ease;
}

.docent-request-panel__header {
	margin-bottom: 16px;
}

.docent-request-panel__title {
	color: #222;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.docent-request-panel__guide {
	margin-top: 6px;
	color: #666;
	font-size: 13px;
	line-height: 1.5;
}

.docent-request-calendar {
	overflow: hidden;
}

.docent-request-calendar__anchor {
	display: none;
}

/* 신청형 도슨트 모달은 기존 숙박용 flatpickr 전역 스타일을 그대로 쓰면
 * 월 헤더/일자 간격이 깨지므로, 모달 내부에서만 달력 레이아웃을 다시 고정한다. */
.docent-request-calendar .flatpickr-calendar {
	position: static !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	max-width: none !important;
	width: 100% !important;
	min-width: 100% !important;
	height: auto !important;
	box-shadow: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

.docent-request-calendar .flatpickr-months {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 56px !important;
	margin-bottom: 8px !important;
	padding: 0 40px !important;
}

.docent-request-calendar .flatpickr-months .flatpickr-month {
	position: static !important;
	height: 56px !important;
	padding-top: 0 !important;
	margin-bottom: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.docent-request-calendar .flatpickr-months .flatpickr-month::after {
	display: none !important;
}

.docent-request-calendar .flatpickr-current-month {
	position: static !important;
	left: auto !important;
	top: auto !important;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transform: none !important;
}

.docent-request-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.docent-request-calendar .flatpickr-current-month input.cur-year {
	position: static !important;
	left: auto !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.docent-request-calendar .flatpickr-prev-month,
.docent-request-calendar .flatpickr-next-month {
	top: 50% !important;
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transform: translateY(-50%) !important;
	border: 0 !important;
	background: transparent !important;
}

.docent-request-calendar .flatpickr-prev-month {
	left: 0 !important;
}

.docent-request-calendar .flatpickr-next-month {
	right: 0 !important;
}

.docent-request-calendar .flatpickr-prev-month svg,
.docent-request-calendar .flatpickr-next-month svg {
	width: 16px !important;
	height: 16px !important;
	fill: #222 !important;
}

.docent-request-calendar .flatpickr-innerContainer,
.docent-request-calendar .flatpickr-rContainer,
.docent-request-calendar .flatpickr-days,
.docent-request-calendar .dayContainer {
	width: 100% !important;
	max-width: none !important;
	min-width: 100% !important;
}

.docent-request-calendar .flatpickr-weekdays {
	margin-bottom: 8px !important;
	border-bottom: 0 !important;
}

.docent-request-calendar .flatpickr-weekdaycontainer {
	width: 100% !important;
}

.docent-request-calendar .flatpickr-day {
	margin-top: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	max-width: 14.2857% !important;
	height: 44px !important;
	line-height: 44px !important;
}

.docent-request-calendar .flatpickr-day.selected,
.docent-request-calendar .flatpickr-day.startRange,
.docent-request-calendar .flatpickr-day.endRange {
	background: var(--main-color);
	border-color: var(--main-color);
}

.docent-request-slot-list,
.docent-request-option-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.docent-request-time-stage {
	position: relative;
	min-height: 154px;
	transition: min-height 0.2s ease, opacity 0.2s ease;
}

.docent-request-time-stage.is-loading .docent-request-slot-list {
	opacity: 0;
}

.docent-request-slot-loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: transparent;
	z-index: 1;
}

.docent-request-slot-list {
	position: relative;
	z-index: 0;
	opacity: 1;
	transition: opacity 0.18s ease;
}

/* 공통 spinner 스타일은 그대로 재사용하되,
 * 신청형 모달 슬롯 영역에서는 전체화면/absolute 배치를 제거하고
 * 슬롯 높이 안에서만 자연스럽게 보이도록 래퍼만 덮어쓴다. */
.docent-request-slot-loading__spinner {
	position: static;
	top: auto;
	left: auto;
	width: auto;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
}

.docent-request-slot-loading__spinner .spinner {
	width: 36px;
	height: 36px;
	border-width: 8px;
}

.docent-request-slot-loading__text {
	color: #666;
	font-size: 13px;
	line-height: 1.5;
}

.docent-request-slot,
.docent-request-option {
	flex: 1 1 calc(50% - 5px);
	width: calc(50% - 5px) !important;
	max-width: calc(50% - 5px);
	padding: 15px 16px;
	border-radius: 5px !important;
	background: #f7f7f7;
	color: #222;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.docent-request-option {
	flex-basis: 100%;
	width: 100% !important;
	max-width: 100%;
}

.docent-request-option.is-name-only {
	justify-content: center;
}

.docent-request-option.is-name-only .docent-request-option__main {
	align-items: center;
	text-align: center;
}

.docent-request-option.is-price-split {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	text-align: left;
}

.docent-request-slot.is-active,
.docent-request-option.is-active {
	background: var(--main-color);
	color: #fff;
}

.docent-request-option.is-disabled {
	opacity: 0.45;
}

.docent-request-option__name {
	display: block;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 0;
}

.docent-request-slot__time,
.docent-request-slot__state,
.docent-request-option__state {
	display: block;
}

.docent-request-slot__time {
	font-size: 15px;
	font-weight: 700;
}

.docent-request-slot__state,
.docent-request-option__state {
	margin-top: 6px;
	font-size: 12px;
	color: #777;
}

.docent-request-slot.is-active .docent-request-slot__state,
.docent-request-option.is-active .docent-request-option__state {
	color: rgba(255, 255, 255, 0.88);
}

.docent-request-option__main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.docent-request-option__price {
	display: block;
	font-size: 13px;
	color: inherit;
	white-space: nowrap;
	text-align: right;
	margin-left: 12px;
}

.docent-request-result-card {
	margin-top: 20px;
	/* 결과 카드는 본문 영역 밖에 분리되어 있어 기본 본문 패딩을 상속받지 못하므로
	 * 카드 자체에 좌우 여백을 준다. */
	padding: 20px 24px 0;
	border-top: 1px solid #f2f2f2;
}

.docent-request-result-card__title {
	color: #222;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 14px;
}

.docent-request-result-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.docent-request-result-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: nowrap;
}

.docent-request-result-card__row.is-total {
	margin-top: 4px;
	padding-top: 14px;
}

.docent-request-result-card__label {
	color: #777;
	font-size: 13px;
	flex-shrink: 0;
}

.docent-request-result-card__value {
	color: #222;
	font-size: 15px;
	font-weight: 700;
	text-align: right;
	flex: 1 1 auto;
}

.docent-request-quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	width: 92px;
	height: 28px;
	padding: 0 10px;
	justify-content: space-between;
}

.docent-request-result-card__label-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.docent-request-quantity__remaining {
	color: #777;
	font-size: 13px;
	white-space: nowrap;
}

.docent-request-quantity__btn {
	width: 16px;
	height: 16px;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	font-size: 0;
	line-height: 0;
	flex-shrink: 0;
	color: transparent;
	text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
}

.docent-request-quantity__btn--minus {
	background-image: url('/images/content/ic_minus02.svg');
}

.docent-request-quantity__btn--plus {
	background-image: url('/images/content/ic_plus01.svg');
}

.docent-request-quantity__btn:disabled {
	opacity: 0.35;
}

.docent-request-quantity__value {
	min-width: 40px;
	text-align: center;
	color: #222;
	font-size: 14px;
	font-weight: 500;
}

.docent-request-modal__footer {
	position: sticky;
	bottom: 0;
	z-index: 2;
	padding: 16px 24px 24px;
	background: #fff;
	flex-shrink: 0;
}

.docent-request-modal__submit {
	width: 100% !important;
	min-height: 60px !important;
	height: 60px !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 4px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.docent-request-modal__submit:disabled {
	background: #d7d7d7 !important;
	color: #fff !important;
}

.docent-request-empty {
	color: #777;
	font-size: 13px;
	text-align: center;
	padding: 12px 0;
}

@keyframes docent-request-panel-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 767px) {
	.docent-request-modal {
		padding: 0;
	}

	.docent-request-modal__box {
		width: 100%;
		max-height: 92vh;
		border-radius: 24px 24px 0 0;
	}

	.docent-request-modal__header {
		padding: 18px 16px 14px;
	}

	.docent-request-modal__content {
		padding: 16px;
	}

	.docent-request-slot,
	.docent-request-option {
		width: calc(50% - 5px) !important;
		max-width: calc(50% - 5px);
	}

	.docent-request-option {
		flex-basis: 100%;
		width: 100% !important;
		max-width: 100%;
	}

	.docent-request-modal__footer {
		padding: 14px 16px 20px;
	}

	.docent-request-modal__submit {
		min-height: 56px !important;
		height: 56px !important;
		font-size: 16px !important;
	}

	.docent-request-result-card {
		padding: 20px 16px 0;
	}

	.docent-request-result-card__value {
		text-align: right;
	}
}
