/* DX Weather FX — 켜기/끄기 버튼과 설정 창
   DesignOneX License 1.0 · Copyright © DesignOneX — designonex.com · All Rights Reserved.
   그림자 없음, 사각에 가까운 모서리, 색 있는 테두리 버튼. 사이트 색(--p)을 따라갑니다. */
.dxwfx-ui{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:8100;font-family:inherit;line-height:1.4}
.dxwfx-ui.dxwfx-pos-left{left:calc(16px + env(safe-area-inset-left,0px))}
.dxwfx-ui.dxwfx-pos-right{right:calc(16px + env(safe-area-inset-right,0px))}
.dxwfx-btn{display:flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;margin:0;cursor:pointer;
  background:#fff;color:#64748b;border:1px solid #94a3b8;border-radius:4px;box-shadow:none;-webkit-appearance:none;appearance:none}
.dxwfx-btn:hover{color:var(--p,#2563eb);border-color:var(--p,#2563eb)}
.dxwfx-btn:focus-visible,.dxwfx-sw:focus-visible,.dxwfx-seg button:focus-visible{outline:2px solid var(--p,#2563eb);outline-offset:2px}
.dxwfx-btn svg{display:block}
.dxwfx-ui .dxwfx-slash{display:none}
.dxwfx-ui[data-on="0"] .dxwfx-slash{display:block}
.dxwfx-ui[data-on="1"] .dxwfx-btn{color:var(--p,#2563eb);border-color:var(--p,#2563eb)}

.dxwfx-panel{position:absolute;bottom:52px;width:272px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:18px;
  background:#fff;color:#1e293b;border:1px solid #cbd5e1;border-radius:6px;box-shadow:none;font-size:13px}
.dxwfx-pos-left .dxwfx-panel{left:0}
.dxwfx-pos-right .dxwfx-panel{right:0}
.dxwfx-panel[hidden]{display:none}
.dxwfx-hd{display:flex;flex-direction:column;gap:4px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #e2e8f0}
.dxwfx-hd b{font-size:14px;font-weight:700}
.dxwfx-now{font-size:12px;color:#64748b}
.dxwfx-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.dxwfx-row>span{font-size:13px;font-weight:600}
.dxwfx-sw{position:relative;width:42px;height:22px;padding:0;margin:0;cursor:pointer;background:#fff;border:1px solid #94a3b8;border-radius:3px;-webkit-appearance:none;appearance:none}
.dxwfx-sw i{position:absolute;top:2px;left:2px;width:16px;height:16px;background:#94a3b8;border-radius:2px;transition:transform .15s,background .15s}
.dxwfx-sw[aria-checked="true"]{border-color:var(--p,#2563eb)}
.dxwfx-sw[aria-checked="true"] i{transform:translateX(20px);background:var(--p,#2563eb)}
.dxwfx-seg{display:flex}
.dxwfx-seg button{min-width:44px;height:30px;padding:0 10px;margin:0 0 0 -1px;cursor:pointer;font-size:12px;font-family:inherit;background:#fff;color:#475569;border:1px solid #94a3b8;border-radius:0;-webkit-appearance:none;appearance:none}
.dxwfx-seg button:first-child{margin-left:0;border-radius:3px 0 0 3px}
.dxwfx-seg button:last-child{border-radius:0 3px 3px 0}
.dxwfx-seg button[aria-pressed="true"]{color:var(--p,#2563eb);border-color:var(--p,#2563eb);font-weight:700;position:relative;z-index:1}
.dxwfx-note{margin:2px 0 12px;font-size:12px;line-height:1.6;color:#64748b}
.dxwfx-ft{font-size:11px;color:#94a3b8}

/* 다크모드 (DXCMS는 body.dark 를 씁니다) */
body.dark .dxwfx-btn,html.dark .dxwfx-btn{background:#1e293b;color:#94a3b8;border-color:#475569}
body.dark .dxwfx-ui[data-on="1"] .dxwfx-btn,html.dark .dxwfx-ui[data-on="1"] .dxwfx-btn{color:var(--p,#60a5fa);border-color:var(--p,#60a5fa)}
body.dark .dxwfx-panel,html.dark .dxwfx-panel{background:#1e293b;color:#e2e8f0;border-color:#475569}
body.dark .dxwfx-hd,html.dark .dxwfx-hd{border-bottom-color:#334155}
body.dark .dxwfx-now,body.dark .dxwfx-note,html.dark .dxwfx-now,html.dark .dxwfx-note{color:#94a3b8}
body.dark .dxwfx-sw,body.dark .dxwfx-seg button,html.dark .dxwfx-sw,html.dark .dxwfx-seg button{background:#1e293b;border-color:#475569;color:#cbd5e1}
body.dark .dxwfx-sw[aria-checked="true"],body.dark .dxwfx-seg button[aria-pressed="true"],html.dark .dxwfx-sw[aria-checked="true"],html.dark .dxwfx-seg button[aria-pressed="true"]{border-color:var(--p,#60a5fa);color:var(--p,#60a5fa)}
body.dark .dxwfx-sw[aria-checked="true"] i,html.dark .dxwfx-sw[aria-checked="true"] i{background:var(--p,#60a5fa)}

@media print{.dxwfx-ui,.dxwfx-canvas{display:none!important}}
@media (prefers-reduced-motion:reduce){.dxwfx-sw i{transition:none}}

/* 내 지역 선택 */
.dxwfx-sel{width:150px;max-width:62%;height:30px;padding:0 8px;margin:0;font-size:12px;font-family:inherit;color:#475569;background:#fff;border:1px solid #94a3b8;border-radius:3px;box-shadow:none;-webkit-appearance:menulist;appearance:auto}
.dxwfx-sel:focus-visible{outline:2px solid var(--p,#2563eb);outline-offset:2px}
.dxwfx-row-place[hidden],.dxwfx-pmsg[hidden]{display:none}
.dxwfx-pmsg{margin:-6px 0 12px;font-size:12px;line-height:1.6;color:#b45309}
body.dark .dxwfx-sel,html.dark .dxwfx-sel{background:#1e293b;color:#cbd5e1;border-color:#475569}
body.dark .dxwfx-pmsg,html.dark .dxwfx-pmsg{color:#fbbf24}
