/* 화면 아래 상담 바 — 폰 빠른 상담 판 · 희망 일시 달력 · PC 하단 폼 · 폰 하단 바 강조
   글자 12px 이상 · 누르는 요소 44px 이상 · 색은 하단 바와 같은 파랑(#2284c6)과 사이트 글자색(#1d1d1d·#333) */

html.ce-mosheet-lock, html.ce-mosheet-lock body { overflow: hidden !important; }

.ce-mosheet {
	position: fixed; inset: 0; z-index: 2147483000;
	font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	-webkit-text-size-adjust: 100%;
}
.ce-mosheet[hidden] { display: none !important; }
.ce-mosheet *, .ce-mosheet *::before, .ce-mosheet *::after { box-sizing: border-box; }

.ce-mosheet__dim {
	position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5);
	animation: ce-mosheet-fade 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ce-mosheet__panel {
	position: absolute; left: 0; right: 0;
	bottom: var(--ce-mosheet-lift, 0px);
	max-height: calc(var(--ce-mosheet-vh, 100vh) - 24px);
	max-height: calc(var(--ce-mosheet-vh, 100dvh) - 24px);
	overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
	background: #fff; color: #1d1d1d;
	border-radius: 16px 16px 0 0;
	padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
	outline: none;
	animation: ce-mosheet-up 280ms cubic-bezier(0.32, 0.72, 0, 1);
}
@media (min-width: 600px) {
	.ce-mosheet__panel { left: 50%; right: auto; width: 480px; transform: translateX(-50%); animation-name: ce-mosheet-up-c; }
}

.ce-mosheet__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.ce-mosheet__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; color: #1d1d1d; letter-spacing: -0.02em; }
.ce-mosheet__close {
	width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: transparent;
	display: inline-flex; align-items: center; justify-content: center; color: #333; cursor: pointer; border-radius: 50%;
}
.ce-mosheet__close:active { transform: scale(0.97); }

.ce-mosheet__form { margin: 0; display: flex; flex-direction: column; }
.ce-mosheet__label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; color: #333; }
.ce-mosheet__field {
	display: block; width: 100%; height: 48px; margin: 0 0 14px; padding: 0 14px;
	border: 1px solid #bebebf; border-radius: 6px; background: #fff; color: #1d1d1d;
	font-size: 16px; font-family: inherit; line-height: 1.2;
	-webkit-appearance: none; appearance: none;
}
.ce-mosheet__field::placeholder { color: #8c8c8c; }
.ce-mosheet__field:focus { outline: 2px solid #2284c6; outline-offset: 0; border-color: #2284c6; }
.ce-mosheet__field[aria-invalid="true"] { border-color: #cb3219; }
.ce-mosheet__select {
	padding-right: 36px;
	background-image: linear-gradient(45deg, transparent 50%, #575757 50%), linear-gradient(135deg, #575757 50%, transparent 50%);
	background-position: right 19px center, right 14px center;
	background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.ce-mosheet__select[data-filled="no"] { color: #8c8c8c; }
.ce-mosheet__select option { color: #1d1d1d; }

.ce-mosheet__agree {
	display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0;
	font-size: 14px; line-height: 1.4; color: #333; cursor: pointer;
}
.ce-mosheet__agree input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: #2284c6; }
.ce-mosheet__agree a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin-left: 0;
	color: #1d1d1d; text-decoration: underline; text-underline-offset: 3px;
}

.ce-mosheet__note { margin: 0 0 4px; font-size: 12px; line-height: 1.5; color: #666; }
.ce-mosheet__msg { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #1d1d1d; }
.ce-mosheet__msg:empty { display: none; }
.ce-mosheet__msg[data-tone="err"] { color: #cb3219; }

.ce-mosheet__submit {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin: 14px 0 0;
	border: 0; border-radius: 6px; background: #2284c6; color: #fff; cursor: pointer;
	font-family: inherit; font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
	transition: transform 120ms ease-out, opacity 120ms ease-out;
}
.ce-mosheet__submit:active { transform: scale(0.97); }
.ce-mosheet__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.ce-mosheet__more {
	display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 6px 0 0;
	font-size: 14px; color: #333; text-decoration: underline; text-underline-offset: 3px;
}

/* ── 희망 일시(판 안) ── */
.ce-mosheet__slot { margin: 0; }
.ce-mosheet__slot[hidden] { display: none !important; }
.ce-mosheet__slotbtn {
	display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; color: #8c8c8c;
}
.ce-mosheet__slotbtn[data-filled="yes"] { color: #1d1d1d; font-weight: 500; }
.ce-mosheet__slotbtn svg { flex: 0 0 auto; color: #2284c6; }
.ce-mosheet__slotbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-mosheet__slotbtn[aria-invalid="true"] { border-color: #cb3219; }
.ce-qb-pick--sheet { margin: -4px 0 14px; padding: 14px 12px; border: 1px solid #e3e8ee; border-radius: 10px; background: #f7fafd; }
.ce-qb-pick[hidden] { display: none !important; }

/* ── 달력·시간 칩(판·PC 공통) ── */
.ce-qb-pick { font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: #1d1d1d; box-sizing: border-box; }
.ce-qb-pick *, .ce-qb-pick *::before, .ce-qb-pick *::after { box-sizing: border-box; }
.ce-qb-cal__head { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.ce-qb-cal__title { font-size: 15px; font-weight: 700; }
.ce-qb-cal__nav {
	width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #1d1d1d;
	font-size: 24px; line-height: 1; cursor: pointer; font-family: inherit; padding: 0;
}
.ce-qb-cal__nav:hover:not(:disabled) { background: #e8f1f8; }
.ce-qb-cal__nav:disabled { color: #c4c4c4; cursor: default; }
.ce-qb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ce-qb-cal__wd { height: 28px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: #666; }
.ce-qb-cal__wd:first-child { color: #cb3219; }
.ce-qb-cal__day {
	height: 40px; min-width: 0; border: 0; border-radius: 50%; background: transparent; color: #1d1d1d;
	font-family: inherit; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0;
}
.ce-qb-cal__day:hover:not(:disabled) { background: #e8f1f8; }
.ce-qb-cal__day:disabled { color: #c4c4c4; cursor: default; }
.ce-qb-cal__day[aria-pressed="true"] { background: #2284c6; color: #fff; font-weight: 700; }
.ce-qb-cal__day:focus-visible, .ce-qb-pick__chip:focus-visible, .ce-qb-cal__nav:focus-visible { outline: 2px solid #2284c6; outline-offset: 1px; }
.ce-qb-pick__times { margin-top: 12px; }
.ce-qb-pick__day { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #1d1d1d; }
.ce-qb-pick__group { margin: 8px 0 6px; font-size: 12px; font-weight: 500; color: #666; }
.ce-qb-pick__chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ce-qb-pick__chip {
	height: 44px; border: 1px solid #bebebf; border-radius: 8px; background: #fff; color: #1d1d1d; cursor: pointer;
	font-family: inherit; font-size: 14px; font-variant-numeric: tabular-nums; padding: 0;
}
.ce-qb-pick__chip:hover { border-color: #2284c6; }
.ce-qb-pick__chip[aria-pressed="true"] { background: #2284c6; border-color: #2284c6; color: #fff; font-weight: 700; }
.ce-qb-pick__hint, .ce-qb-pick__empty { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #666; }

/* ── PC 하단 "온라인상담하기" 폼 — 눈에 띄게(파랑 바 · 흰 입력칸 · 흰 버튼) ── */
@media screen and (min-width: 961px) {
	.btm_counsel { background: #2284c6; box-shadow: 0 -6px 20px rgba(9, 45, 74, 0.22); }
	.btm_counsel_inner { position: relative; width: auto; max-width: 1240px; padding: 0 24px; box-sizing: border-box; }
	.btm_counsel form { gap: 10px; }
	.btm_counsel form h2 { flex: 0 0 auto; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #fff; white-space: nowrap; margin-right: 6px; }
	.btm_counsel form fieldset { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; }
	.btm_counsel form input[type="text"], .btm_counsel form select, .btm_counsel form .ce-qb-slot {
		height: 46px; margin: 0; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 6px;
		background: #fff; color: #1d1d1d; font-size: 15px; font-family: "Noto Sans KR", sans-serif; box-sizing: border-box;
	}
	.btm_counsel form input[type="text"]::placeholder { color: #767676; }
	.btm_counsel form input[type="text"]:focus, .btm_counsel form select:focus, .btm_counsel form .ce-qb-slot:focus-visible {
		outline: 3px solid #fff; outline-offset: 1px;
	}
	.btm_counsel form select {
		width: 212px; flex: 0 1 212px; min-width: 140px; padding-right: 32px; -webkit-appearance: none; appearance: none;
		background-image: linear-gradient(45deg, transparent 50%, #575757 50%), linear-gradient(135deg, #575757 50%, transparent 50%);
		background-position: right 17px center, right 12px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
	}
	.btm_counsel form .ipt_name { width: 120px; flex: 0 1 120px; min-width: 80px; }
	.btm_counsel form .ipt_ph { width: 150px; flex: 0 1 150px; min-width: 110px; }
	.btm_counsel form .ce-qb-slot {
		display: inline-flex; align-items: center; gap: 6px; width: 196px; flex: 0 1 196px; min-width: 150px;
		color: #767676; text-align: left; cursor: pointer; white-space: nowrap;
	}
	.btm_counsel form .ce-qb-slot[hidden] { display: none; }
	.btm_counsel form .ce-qb-slot[data-filled="yes"] { color: #1d1d1d; font-weight: 500; }
	.btm_counsel form .ce-qb-slot svg { flex: 0 0 auto; color: #2284c6; }
	.btm_counsel form .ce-qb-slot span { overflow: hidden; text-overflow: ellipsis; }
	.btm_counsel form label { flex: 0 0 auto; font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; }
	/* 동의 체크칸 — 옛 15px 그림 대신 파란 바탕에서 또렷한 흰 칸 */
	.btm_counsel form input#btm_check + label,
	.btm_counsel form input#btm_check:checked + label {
		position: relative; margin-left: 4px; padding-left: 28px; line-height: 20px; background: none; cursor: pointer;
	}
	.btm_counsel form input#btm_check + label::before {
		content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px;
		border: 2px solid #fff; border-radius: 4px; box-sizing: border-box;
	}
	.btm_counsel form input#btm_check:checked + label::before { background: #fff; }
	.btm_counsel form input#btm_check:checked + label::after {
		content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 11px; margin-top: -8px;
		border: solid #2284c6; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
	}
	.btm_counsel form button[type="submit"] {
		flex: 0 0 auto; width: 150px; height: 52px; border: 0; border-radius: 6px; background: #fff; color: #1a6aa0;
		font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(9, 45, 74, 0.18);
		transition: transform 120ms ease-out;
	}
	.btm_counsel form button[type="submit"]:active { transform: scale(0.97); }
	.btm_counsel form button[type="submit"]:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

	.ce-qb-pop {
		position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 2;
		width: 560px; max-width: calc(100vw - 32px); padding: 16px 20px 18px; background: #fff; border-radius: 12px;
		box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22); box-sizing: border-box;
	}
	.ce-qb-pop[hidden] { display: none !important; }
	/* 희망 일시 창이 열려 있는 동안만 옛 사이트 공지 팝업(z 99999999)보다 위로 */
	.btm_counsel:has(.ce-qb-pop:not([hidden])) { z-index: 100000000; }
	.ce-qb-pop .ce-qb-pick { display: grid; grid-template-columns: 1fr 210px; gap: 20px; }
	.ce-qb-pop .ce-qb-pick__times { margin-top: 0; padding-left: 20px; border-left: 1px solid #e3e8ee; }
	.ce-qb-pop .ce-qb-pick__chips { grid-template-columns: repeat(3, 1fr); }
	.ce-qb-pop__msg { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #cb3219; }
	.ce-qb-pop__msg:empty { display: none; }

	.btm_counsel form .ce-qb-privacy {
		flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
		font-size: 13px; color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
	}
	.btm_counsel form .ce-qb-privacy:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
}
@media screen and (min-width: 961px) and (max-width: 1239px) {
	.btm_counsel form h2 { font-size: 17px; }
	.btm_counsel form select { width: 200px; flex-basis: 200px; font-size: 14px; padding-right: 28px; }
	.btm_counsel form .ipt_name { width: 86px; flex-basis: 86px; }
	.btm_counsel form .ipt_ph { width: 124px; flex-basis: 124px; }
	.btm_counsel form .ce-qb-slot { width: 172px; flex-basis: 172px; font-size: 14px; }
	.btm_counsel form label { font-size: 13px; }
	.btm_counsel form button[type="submit"] { width: 112px; font-size: 16px; }
}
/* 가장 좁은 PC 폭 — 진료과목 칸 글자가 잘리지 않게 다른 칸을 조금씩 줄인다 */
@media screen and (min-width: 961px) and (max-width: 1099px) {
	.btm_counsel form fieldset { gap: 6px; }
	.btm_counsel form select { min-width: 196px; }
	.btm_counsel form .ipt_name { min-width: 64px; }
	.btm_counsel form .ipt_ph { min-width: 100px; }
	.btm_counsel form .ce-qb-slot { min-width: 140px; }
}
/* 폭이 더 좁으면 "온라인상담하기" 제목은 화면에서만 숨긴다(읽기 도구에는 남는다) */
@media screen and (min-width: 961px) and (max-width: 1179px) {
	.btm_counsel form h2 {
		position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
		clip: rect(0 0 0 0); white-space: nowrap; border: 0;
	}
}

/* ── 폰 하단 바 — "온라인예약" 칸을 앞세우고 글자를 또렷하게 ── */
@media screen and (max-width: 960px) {
	.btm_menu { box-shadow: 0 -4px 16px rgba(9, 45, 74, 0.25); }
	.btm_menu ul li.ce-qb-main { background: #14629a; border-radius: 10px; }
	.btm_menu ul li.ce-qb-main::after { display: none; }
	.btm_menu ul li.ce-qb-main a em { font-weight: 700; }
	.btm_menu a em { font-weight: 600; }
}

/* 폰 하단 바 칸 아이콘 — 칸마다 색 배지(네이버 초록 · 카카오 노랑은 각 회사 표기 색) */
@media screen and (max-width: 960px) {
	.btm_menu { background: #1a72ad; }
	.btm_menu ul li.ce-qb-main { background: #0f5283; }
	.btm_menu ul li a > span {
		display: flex; align-items: center; justify-content: center;
		width: 32px; height: 32px; border-radius: 9px;
		background-position: center; background-repeat: no-repeat; background-size: 20px 20px;
		box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(9, 45, 74, 0.3);
	}
	.btm_menu ul li a > span img { display: none; }
	.btm_menu ul li a[href*="/sub/sub7-4.php"] > span,
	.btm_menu ul li a[data-quickbar-button="reserve"] > span { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a72ad' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
	.btm_menu ul li[data-ce-extra="naver-booking"] a > span,
	.btm_menu ul li a[data-quickbar-button="naver_booking"] > span { background-color: #03c75a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14.6 12.4 9.2 4.6H4.8v14.8h4.6v-7.8l5.4 7.8h4.4V4.6h-4.6z'/%3E%3C/svg%3E"); background-size: 18px 18px; }
	.btm_menu ul li a[href^="tel:"] > span,
	.btm_menu ul li a[data-quickbar-button="phone"] > span { background-color: #ff7a1a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
	.btm_menu ul li a[href*="pf.kakao.com"] > span,
	.btm_menu ul li a[data-quickbar-button="kakao"] > span { background-color: #fee500; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23191919' d='M12 3.6c-5.1 0-9.2 3.2-9.2 7.2 0 2.6 1.7 4.8 4.3 6.1l-1.1 4c-.1.3.3.6.6.4l4.7-3.1c.2 0 .5.1.7.1 5.1 0 9.2-3.2 9.2-7.2S17.1 3.6 12 3.6z'/%3E%3C/svg%3E"); background-size: 22px 22px; }
	.btm_menu ul li a[href*="/sub/sub1-5.php"] > span,
	.btm_menu ul li a[data-quickbar-button="directions"] > span { background-color: #f04452; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2.5a7 7 0 0 0-7 7c0 5.2 7 12 7 12s7-6.8 7-12a7 7 0 0 0-7-7zm0 9.6a2.6 2.6 0 1 1 0-5.2 2.6 2.6 0 0 1 0 5.2z'/%3E%3C/svg%3E"); }
	.btm_menu ul li a em { margin-top: 6px; }
}

@keyframes ce-mosheet-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ce-mosheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes ce-mosheet-up-c { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.ce-mosheet__dim, .ce-mosheet__panel { animation: none; }
}
