/* 재사용 바텀시트 셸 전용 — 도메인(쿠폰/OTP 등) 스타일은 넣지 않는다. */

body.bottom-sheet-open {
	overflow: hidden;
}

.bottom-sheet {
	position: fixed;
	inset: 0;
	z-index: 11000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
	visibility: hidden;
}

.bottom-sheet.is-open {
	pointer-events: auto;
	visibility: visible;
}

.bottom-sheet__dim {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.46);
	opacity: 0;
	transition: opacity 0.24s ease;
}

.bottom-sheet.is-open .bottom-sheet__dim {
	opacity: 1;
}

.bottom-sheet__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 560px);
	min-height: 40vh;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -12px 40px rgba(17, 17, 17, 0.14);
	transform: translateY(100%);
	transition: transform 0.28s ease;
	overflow: hidden;
	will-change: transform;
}

.bottom-sheet.is-open .bottom-sheet__panel {
	transform: translateY(0);
}

.bottom-sheet__handle {
	flex: 0 0 auto;
	width: 40px;
	height: 4px;
	margin: 10px auto 0;
	border-radius: 999px;
	background: #ddd;
}

.bottom-sheet__header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px 12px;
	border-bottom: 1px solid #f0f0f0;
}

.bottom-sheet__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.bottom-sheet__close {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
}

.bottom-sheet__close img {
	width: 22px;
	height: 22px;
}

.bottom-sheet__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 16px 20px 24px;
}

.bottom-sheet__footer {
	flex: 0 0 auto;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #f0f0f0;
	background: #fff;
}

.bottom-sheet__footer[hidden] {
	display: none !important;
}
