/* One shared notice window; legacy per-notice position and dimensions are unused. */
html.clinic-popup-open { overflow:hidden; }
.clinic-popup { position:fixed; inset:0; margin:auto; padding:0; width:480px; max-width:calc(100% - 32px); max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); border:1px solid #e2e8ef; border-radius:18px; background:#fff; color:#263c51; box-shadow:0 20px 70px #142d4933; font-family:"noto sans kr","Malgun Gothic",sans-serif; font-size:14px; font-weight:400; line-height:1.6; letter-spacing:-.3px; overflow:hidden; }
.clinic-popup:not([open]) { display:none; }
.clinic-popup[open] { display:flex; flex-direction:column; }
.clinic-popup::backdrop { background:rgba(21,38,57,.38); }
.clinic-popup:focus { outline:none; }
.clinic-popup *, .clinic-popup *::before, .clinic-popup *::after { box-sizing:border-box; }
.clinic-popup [hidden] { display:none !important; }
.clinic-popup button { font:inherit; cursor:pointer; }
.clinic-popup button:focus-visible, .clinic-popup a:focus-visible, .clinic-popup input:focus-visible, .clinic-popup-panel:focus-visible { outline:2px solid #286199; outline-offset:-3px; }
.clinic-popup-heading { display:flex; justify-content:space-between; align-items:flex-start; padding:22px 25px 18px; background:linear-gradient(120deg,#f2f7fb,#fff); flex-shrink:0; }
.clinic-popup-brand { color:#295d91; font-size:13px; font-weight:600; }
.clinic-popup-heading h2 { font-size:19px; font-weight:600; margin-top:5px; color:#263c51; }
.clinic-popup-x { display:flex; justify-content:center; align-items:center; width:44px; height:44px; margin:-8px -10px 0 10px; color:#65798b; border:0; background:transparent; flex-shrink:0; }
.clinic-popup-x span { font-size:27px; line-height:1; font-weight:300; }
.clinic-popup-navigation { flex-shrink:0; padding:0 24px; border-bottom:1px solid #e7edf3; background:#fff; max-height:28vh; overflow:auto; }
.clinic-popup-tabs { display:flex; gap:5px; overflow-x:auto; padding:0 0 4px; scrollbar-width:thin; }
.clinic-popup-tabs [role="tab"] { border:0; border-bottom:2px solid transparent; background:transparent; color:#607386; padding:10px 12px; white-space:nowrap; font-size:14px; min-height:44px; }
.clinic-popup-tabs [aria-selected="true"] { color:#245d95; border-bottom-color:#245d95; font-weight:600; }
.clinic-popup-playback { display:flex; justify-content:flex-end; align-items:center; gap:12px; color:#697c8d; font-size:12px; }
.clinic-popup-playback button { border:0; background:transparent; color:#405d77; padding:8px 0 8px 8px; min-height:36px; font-size:12px; }
.clinic-popup-body { display:grid; overflow:auto; overscroll-behavior:contain; min-height:0; scrollbar-width:thin; flex:1 1 auto; }
.clinic-popup-panel { grid-area:1 / 1; align-self:start; min-width:0; padding:22px 25px; }
/* Reserve the tallest notice so automatic tab changes never move the controls. */
.clinic-popup .clinic-popup-panel[hidden] { display:block !important; visibility:hidden; pointer-events:none; }
.clinic-popup-content { overflow-wrap:anywhere; }
.clinic-popup-content p { word-break:normal; margin:0 0 12px; }
.clinic-popup-content img { max-width:100% !important; height:auto; }
.clinic-popup-content iframe, .clinic-popup-content video { max-width:100%; }
.clinic-popup-content table { max-width:100%; }
.clinic-popup-content h1, .clinic-popup-content h2, .clinic-popup-content h3 { font-size:24px; line-height:1.4; margin:0 0 12px; }
.clinic-popup-content a { color:#245d95; text-decoration:underline; }
.clinic-popup-footer { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; padding:4px 17px 4px 25px; padding-bottom:max(4px,env(safe-area-inset-bottom)); border-top:1px solid #e5ebf1; background:#fff; }
.clinic-popup-footer label { display:flex; align-items:center; gap:8px; min-height:44px; font-size:13px; color:#657789; cursor:pointer; }
.clinic-popup-footer input { width:16px; height:16px; margin:0; accent-color:#295d91; }
.clinic-popup-footer button { background:transparent; border:0; min-width:54px; min-height:44px; color:#2c455c; font-size:14px; }
/* Existing editor calendars retain their dates and text; presentation is scoped here. */
.clinic-popup-calendar .popCon { text-align:center; }
.clinic-popup-calendar .popConText { color:#697c8d; font-size:13px; line-height:1.7; }
.clinic-popup-calendar .popConText b { font-weight:600; }
.clinic-popup-calendar .popConText span { display:inline-block; font-size:26px !important; color:#263c51; margin-bottom:5px; }
.clinic-popup-calendar .tview { display:block; }
.clinic-popup-calendar .popCal { width:100% !important; margin:0; border-collapse:separate; border-spacing:3px 5px; table-layout:fixed; color:#263c51; font-size:14px; }
.clinic-popup-calendar .popCal th { border:0; padding:4px 0 9px; color:#6e7f8f; font-weight:400; font-size:12px; background:transparent; text-align:center; }
.clinic-popup-calendar .popCal td { border:0; height:49px; padding:5px 0; border-radius:7px; vertical-align:top; text-align:center; font-size:13px; font-weight:400; line-height:1.5; overflow-wrap:normal; word-break:keep-all; }
.clinic-popup-calendar .popCal .red { color:#a45560; }
.clinic-popup-calendar .popCal .clinic-popup-holiday { background:#fcf1f3; }
.clinic-popup-calendar .popCal .clinic-popup-partial { color:#2b608e; background:#f0f5fa; }
.clinic-popup-calendar .popCon > p:last-child { margin:16px 0 0; padding:13px 8px; border-radius:8px; background:#f2f7fb; color:#355772; font-size:14px; font-weight:500 !important; }
.clinic-popup-calendar .popCon > p:last-child br { display:none; }
@media(max-width:480px) {
    .clinic-popup { max-width:calc(100% - 24px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); border-radius:14px; }
    .clinic-popup-heading { padding:17px 18px 14px; }
    .clinic-popup-panel { padding:16px 14px; }
    .clinic-popup-navigation { padding:0 14px; }
    .clinic-popup-footer { padding-left:17px; }
    .clinic-popup-calendar .popCal { border-spacing:2px 4px; }
    .clinic-popup-calendar .popCal td { font-size:11px; height:48px; }
    .clinic-popup-calendar .popConText span { font-size:24px !important; }
}
