/* 노블아이 병원 전용 꾸밈 파일 (본사 tenant-custom.css 자리 — core:pull이 건드리지 않음)
 * 2026-11-01 원장님 요청: 본사 진료 상태 표시(ClinicPresence)를 예전 둥근 알약 모양으로.
 * 동작·진료시간 계산은 본사 기능 그대로, 보이는 모양만 바꿈.
 * 상태별 점 색은 data-presence-state(open·break·closed·before·after·unknown) 기준. */

#main-header .cos-clinic-presence {
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 0;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
#main-header .cos-clinic-presence::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #94a3b8; /* 휴진·진료 전·진료 종료·확인 필요: 회색 */
}
#main-header .cos-clinic-presence[data-presence-state="open"]::before { background: #22c55e; }  /* 진료중: 초록 */
#main-header .cos-clinic-presence[data-presence-state="break"]::before { background: #eab308; } /* 휴게: 노랑 */

#main-header .cos-clinic-presence [data-presence-label] { font-weight: 700; }
#main-header .cos-clinic-presence .cos-presence-detail {
    color: #64748b;
    font-weight: 500;
    max-width: none;
}
#main-header .cos-clinic-presence .cos-presence-detail:not(:empty)::before { content: "· "; }

@media (max-width: 767px) {
    #main-header .cos-clinic-presence { padding: 2px 8px; font-size: 11px; gap: 4px; }
}

/* [2026-11-01] 본사 하단 연락 바 — 백록담과 같은 본사 방식 (전화 · 진료 문의 · 길찾기). 카톡 버튼은 원장님 결정으로 제거.
 * 버튼 순서는 본사 기본. */
/* 본사 연락 바가 보이는 페이지에서는 건강가이드의 노블아이 하단 버튼 줄을 숨겨 겹치지 않게 */
html:has(.cos-sticky-contact:not([hidden])) [data-section="mobile-fixed-cta"] { display: none !important; }

/* [2026-11-01] 고정 문구 "365일 입원 문의 가능" — 연락 바 첫 줄(움직이지 않음). 바 높이에 포함돼 페이지를 가리지 않음 */
.cos-sticky-contact::before {
    content: "🏥 365일 입원 문의 가능";
    order: 0;
    box-sizing: border-box;
    color: #fff;
    background: #0f3d36;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 1023px) {
    .cos-sticky-contact { flex-wrap: wrap; }
    .cos-sticky-contact::before { flex: 0 0 100%; height: 26px; line-height: 26px; }
}
@media (min-width: 1024px) {
    .cos-sticky-contact::before { content: "365일\A입원 문의"; white-space: pre; width: 66px; padding: 6px 0; border-radius: 12px; font-size: 11px; line-height: 1.35; }
}
