/* SOFASOFA 全站樣式：頁首、頁尾、按鈕與共用元件 */
:root {
	--sf-ink: #1D1D1F;
	--sf-ink-2: #6E6E73;
	--sf-line: #D2D2D7;
	--sf-line-2: #E8E8ED;
	--sf-bg: #FFFFFF;
	--sf-bg-2: #F5F5F7;
	--sf-font: 'Noto Sans TC', -apple-system, 'PingFang TC', sans-serif;
	--sf-font-num: Manrope, 'Noto Sans TC', sans-serif;
	--sf-radius: 20px;
	--sf-head-h: 48px;
}

body.sf { font-family: var(--sf-font); color: var(--sf-ink); background: var(--sf-bg); letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; }
.sf-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--sf-ink); color: #fff; padding: 8px 14px; }
.sf-skip:focus { left: 12px; top: 12px; }

/* 按鈕 */
.sf-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--sf-ink); color: #fff !important; text-decoration: none !important; border-radius: 999px; padding: 11px 22px; font-size: 16px; line-height: 1.2; border: 1px solid var(--sf-ink); transition: opacity .2s; }
.sf-btn:hover { opacity: .85; }
.sf-btn--sm { padding: 6px 14px; font-size: 12px; }
.sf-btn--ghost { background: transparent; color: var(--sf-ink) !important; border-color: var(--sf-line); }

/* 頁首 */
.sf-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.admin-bar .sf-header { top: 32px; }
.sf-header__inner { max-width: 1000px; margin: 0 auto; padding: 0 20px; height: var(--sf-head-h); display: flex; align-items: center; gap: 24px; box-sizing: border-box; }
.sf-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.sf-header__logo img { height: 30px !important; width: auto !important; max-width: none !important; display: block; }
.sf-nav { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 32px; white-space: nowrap; font-size: 12px; letter-spacing: .04em; }
.sf-nav a { color: var(--sf-ink); text-decoration: none; padding: 14px 0; opacity: .86; }
.sf-nav a:hover, .sf-nav a[aria-current] { opacity: 1; }
.sf-nav a[aria-current] { font-weight: 600; }
.sf-menu { display: none; margin-left: auto; }
.sf-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--sf-line); border-radius: 999px; font-size: 13px; color: var(--sf-ink); }
.sf-menu summary::-webkit-details-marker { display: none; }
.sf-menu__panel { position: absolute; left: 0; right: 0; top: var(--sf-head-h); background: #fff; border-bottom: 1px solid var(--sf-line-2); padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
.sf-menu__panel a { display: block; padding: 14px 0; border-bottom: 1px solid var(--sf-bg-2); color: var(--sf-ink); text-decoration: none; font-size: 19px; font-weight: 500; }
.sf-menu__panel a:last-child { border-bottom: 0; }

/* 頁尾 */
.sf-footer { background: var(--sf-bg-2); margin-top: 120px; }
.sf-footer__inner { max-width: 1000px; margin: 0 auto; padding: 24px 20px 40px; font-size: 12px; line-height: 1.9; color: var(--sf-ink-2); box-sizing: border-box; }
.sf-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--sf-line); }
.sf-footer__cols a, .sf-footer__cols span { display: block; color: var(--sf-ink-2); text-decoration: none; }
.sf-footer__cols a:hover { color: var(--sf-ink); }
.sf-footer__title { margin: 0 0 6px; color: var(--sf-ink); }
.sf-footer__legal { margin: 16px 0 0; }

/* 手機底部預約列、回到頁首 */
.sf-mbar { display: none; }
.sf-totop { position: fixed; right: 20px; bottom: 24px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--sf-line-2); display: flex; align-items: center; justify-content: center; color: var(--sf-ink); text-decoration: none; }
.sf-totop[hidden] { display: none; }

@media (max-width: 733px) {
	.sf-nav { display: none; }
	.sf-menu { display: block; }
	.sf-header__inner { gap: 12px; }
	.sf-mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--sf-line-2); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
	.sf-mbar .sf-btn { height: 48px; padding: 0 18px; }
	.sf-mbar__main { flex: 1; font-weight: 500; }
	body.sf { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.sf-totop { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); }
	.sf-footer { margin-top: 72px; }
}
@media (max-width: 782px) { .admin-bar .sf-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .sf-header { top: 0; } }

/* 頁面共用 */
.sf-page details summary { list-style: none; cursor: pointer; }
.sf-page details summary::-webkit-details-marker { display: none; }
.sf-page img { max-width: 100%; height: auto; }
/* 標題一律跟著外層的字型和顏色，不吃 Themify 自訂的標題字型與顏色（深色區塊的標題才會是白字） */
.sf-page :is(h1, h2, h3, h4, h5, h6) { font-family: inherit; color: inherit; }
.sf-page a { transition: opacity .2s; }
@media (max-width: 733px) {
	.sf-chips { flex-wrap: wrap !important; overflow: visible !important; }
}

/* 共用排版 */
.sf-h1 { margin: 0; font-size: clamp(40px, 6vw, 80px); line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.sf-h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.25; font-weight: 600; letter-spacing: 0; }
.sf-h3 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 600; }
.sf-lead { margin: 16px auto 0; max-width: 640px; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.5; }
.sf-sub { margin: 12px auto 0; max-width: 680px; font-size: 19px; color: var(--sf-ink-2); }
.sf-muted { margin: 6px 0 0; font-size: 15px; color: var(--sf-ink-2); }
.sf-small { margin: 16px 0 0; font-size: 13px; color: var(--sf-ink-2); }
.sf-eyebrow { margin: 0; font-family: var(--sf-font-num); font-weight: 600; font-size: 13px; letter-spacing: .16em; color: var(--sf-ink-2); }
.sf-num { font-family: var(--sf-font-num); }
.sf-center { text-align: center; }
.sf-sec { max-width: 1100px; margin: 0 auto; padding: 120px 24px 0; box-sizing: border-box; }
.sf-narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.sf-card { background: var(--sf-bg-2); border-radius: var(--sf-radius); padding: 32px 28px; }
.sf-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--sf-line-2); }
.sf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.sf-link { display: inline-block; margin-top: 20px; color: var(--sf-ink); text-decoration: none; font-size: 17px; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 24px; }
@media (max-width: 733px) { .sf-sec { padding-top: 80px; } }

/* Cookie 同意提示（CookieYes）改成全站的黑白灰，手機上放在底部預約列上方 */
.cky-consent-container .cky-consent-bar, .cky-consent-container .cky-notice { border-radius: 16px !important; border: 1px solid var(--sf-line-2) !important; box-shadow: 0 8px 32px rgba(0,0,0,.12) !important; font-family: var(--sf-font, inherit) !important; }
.cky-notice-des, .cky-notice-des p { color: var(--sf-ink-2) !important; font-size: 14px !important; line-height: 1.6 !important; }
.cky-btn { border-radius: 999px !important; font-size: 14px !important; }
.cky-btn-accept { background: var(--sf-ink) !important; border-color: var(--sf-ink) !important; color: #FFF !important; }
.cky-btn-customize, .cky-btn-reject, .cky-btn-preferences { background: transparent !important; border-color: var(--sf-ink) !important; color: var(--sf-ink) !important; }
@media (max-width: 733px) {
	.cky-consent-container { left: 12px !important; right: 12px !important; width: auto !important; bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
	.cky-btn-revisit-wrapper { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}
/* Cookie 同意提示（GDPR Cookie Consent 舊版）：按鈕顏色是外掛用 JS 寫在 style，要用 !important 蓋過 */
#cookie-law-info-bar { border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.12); border: 1px solid var(--sf-line-2) !important; background: #FFF !important; color: var(--sf-ink-2) !important; font-size: 14px; line-height: 1.6; }
#cookie-law-info-bar .cli-plugin-main-button, #cookie-law-info-bar .wt-cli-accept-btn, #cookie_action_close_header { background: var(--sf-ink) !important; border: 1px solid var(--sf-ink) !important; color: #FFF !important; border-radius: 999px !important; padding: 8px 18px !important; font-size: 14px !important; }
#cookie-law-info-bar .cli-plugin-main-button:hover, #cookie_action_close_header:hover { background: #000 !important; }
#cookie-law-info-bar .cli_settings_button { color: var(--sf-ink-2) !important; text-decoration: underline; }
#cookie-law-info-again { background: #FFF !important; color: var(--sf-ink) !important; border: 1px solid var(--sf-line-2) !important; }
.cli-modal .cli-switch input:checked + .cli-slider, .cli-modal .wt-cli-privacy-accept-btn, .cli-modal .cli-btn { background: var(--sf-ink) !important; border-color: var(--sf-ink) !important; color: #FFF !important; }
.cli-modal .cli-tab-header a, .cli-modal a { color: var(--sf-ink) !important; }

/* 門市人員休假月曆 */
.sf-cal-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 32px auto 0; }
.sf-cal { width: 280px; text-align: center; }
.sf-cal__title { margin: 0 0 12px; font-weight: 600; font-size: 16px; color: var(--sf-ink); }
.sf-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-family: var(--sf-font-num); font-size: 14px; }
.sf-cal__wk { color: var(--sf-ink-2); font-size: 12px; padding-bottom: 4px; }
.sf-cal__d { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 50%; color: var(--sf-ink); }
.sf-cal__d.is-past { color: #C7C7CC; }
.sf-cal__d.is-today { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sf-cal__d.is-off { background: var(--sf-ink); color: #FFF; }
.sf-cal__d.is-off.is-past { background: #D2D2D7; color: #FFF; }
.sf-cal__legend { max-width: 560px; margin: 16px auto 0; font-size: 13px; color: var(--sf-ink-2); text-align: center; }
.sf-cal__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sf-ink); margin-right: 6px; vertical-align: 0; }
