/* 2026-11-23 두 홈페이지 공용: 상담 위젯(PC 우측 하단) · 모바일 하단 고정 버튼 · 앱 설치 QR
   - 기존 채팅(guest-chat, z-index 100000)·메뉴(9999~10002) 아래(9000)에 둔다 → 채팅/메뉴를 가리지 않음 */
:root{
  --aw-ink:#0f172a; --aw-sub:#475569; --aw-line:#e2e8f0; --aw-bg:#ffffff;
  --aw-blue:#1d4ed8; --aw-blue-d:#1e3a8a; --aw-kakao:#fee500; --aw-green:#16a34a;
}

/* ---------- PC 상담 위젯 ---------- */
.aw-launcher{
  position:fixed; right:24px; bottom:24px; z-index:9000;
  display:flex; align-items:center; gap:8px;
  height:56px; padding:0 22px 0 18px; border:0; border-radius:28px; cursor:pointer;
  background:var(--aw-blue); color:#fff; font:700 15px/1 'Pretendard',system-ui,sans-serif;
  box-shadow:0 10px 28px rgba(29,78,216,.35); transition:transform .2s, box-shadow .2s;
}
.aw-launcher:hover{ transform:translateY(-2px); box-shadow:0 14px 32px rgba(29,78,216,.42); }
.aw-launcher svg{ width:22px; height:22px; }
.aw-launcher[aria-expanded="true"]{ background:var(--aw-blue-d); }

.aw-panel{
  position:fixed; right:24px; bottom:92px; z-index:9001; width:320px; max-width:calc(100vw - 32px);
  background:var(--aw-bg); color:var(--aw-ink); border-radius:18px; overflow:hidden;
  box-shadow:0 24px 60px rgba(15,23,42,.22); border:1px solid var(--aw-line);
  font-family:'Pretendard',system-ui,sans-serif;
  opacity:0; visibility:hidden; transform:translateY(10px); transition:opacity .2s, transform .2s, visibility .2s;
}
.aw-panel.on{ opacity:1; visibility:visible; transform:none; }
.aw-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 18px 12px; }
.aw-head b{ display:block; font-size:17px; line-height:1.35; }
.aw-head p{ margin:4px 0 0; font-size:13px; color:var(--aw-sub); line-height:1.45; }
.aw-close{ flex:none; width:32px; height:32px; border:0; border-radius:50%; background:#f1f5f9; color:var(--aw-sub); cursor:pointer; font-size:18px; line-height:32px; }
.aw-close:hover{ background:#e2e8f0; }
.aw-list{ list-style:none; margin:0; padding:0 12px 8px; }
.aw-list li{ margin:0 0 8px; }
.aw-item{
  display:flex; align-items:center; gap:12px; width:100%; padding:12px; border-radius:12px;
  border:1px solid var(--aw-line); background:#fff; color:var(--aw-ink); text-decoration:none; text-align:left;
  font:600 15px/1.3 inherit; cursor:pointer; transition:background .15s, border-color .15s;
}
.aw-item:hover{ background:#f8fafc; border-color:#cbd5e1; }
.aw-item small{ display:block; margin-top:2px; font-weight:400; font-size:12px; color:var(--aw-sub); }
.aw-ic{ flex:none; width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.aw-ic svg{ width:20px; height:20px; }
.aw-ic.tel{ background:#dcfce7; color:var(--aw-green); }
.aw-ic.kakao{ background:var(--aw-kakao); color:#191919; }
.aw-ic.chat{ background:#dbeafe; color:var(--aw-blue); }
.aw-ic.app{ background:#0f172a; color:#fff; }
.aw-hours{ margin:0; padding:12px 18px 16px; border-top:1px solid var(--aw-line); background:#f8fafc; font-size:12.5px; color:var(--aw-sub); line-height:1.55; }
.aw-hours b{ color:var(--aw-ink); }

/* ---------- 모바일 하단 탭 바 (2026-11-23 앱처럼 교체) ---------- */
.aw-bar, .aw-dim{ display:none; }
@media (max-width:768px){
  .aw-launcher{ display:none; }
  .aw-bar{
    display:flex; align-items:stretch; position:fixed; left:0; right:0; bottom:0; z-index:9000;
    height:calc(64px + env(safe-area-inset-bottom)); padding:0 4px env(safe-area-inset-bottom);
    background:rgba(255,255,255,.94); -webkit-backdrop-filter:saturate(180%) blur(16px); backdrop-filter:saturate(180%) blur(16px);
    border-top:1px solid rgba(15,23,42,.08); box-shadow:0 -4px 24px rgba(15,23,42,.08);
    font-family:'Pretendard',-apple-system,system-ui,sans-serif;
  }
  .aw-tab{
    flex:1 1 0; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:4px;
    padding:6px 2px 9px; margin:0; border:0; background:none; color:#94a3b8; cursor:pointer;
    -webkit-tap-highlight-color:transparent; transition:color .2s;
  }
  .aw-ti{ position:relative; display:flex; align-items:center; justify-content:center; width:44px; height:28px; border-radius:14px; transition:background .2s, transform .15s; }
  .aw-ti svg{ width:23px; height:23px; }
  .aw-tl{ font-size:11px; font-weight:600; line-height:1.1; letter-spacing:-.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  .aw-tab:active .aw-ti{ transform:scale(.9); }
  .aw-tab.cur, .aw-tab.on{ color:var(--aw-blue); }
  .aw-tab.cur .aw-ti, .aw-tab.on .aw-ti{ background:#e0eaff; }
  .aw-tab.cur .aw-tl, .aw-tab.on .aw-tl{ font-weight:800; }
  /* 가운데 = 가장 중요한 동작 (떠 있는 둥근 버튼) */
  .aw-tab.aw-main{ color:var(--aw-blue); justify-content:flex-end; }
  .aw-tab.aw-main .aw-ti{
    width:56px; height:56px; border-radius:50%; margin-top:-26px; color:#fff;
    background:linear-gradient(145deg,#3b82f6 0%,#1d4ed8 55%,#1e3a8a 100%);
    box-shadow:0 8px 20px rgba(29,78,216,.42), 0 0 0 5px #fff;
  }
  .aw-tab.aw-main .aw-ti svg{ width:26px; height:26px; }
  .aw-tab.aw-main .aw-tl{ font-weight:800; }
  .aw-tab.aw-main.on .aw-ti{ background:linear-gradient(145deg,#1e40af,#1e3a8a); }
  body.aw-has-bar{ padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
  /* 상담은 하단 시트로 */
  .aw-dim{ display:block; position:fixed; inset:0; z-index:8999; background:rgba(15,23,42,.45); opacity:0; visibility:hidden; transition:opacity .25s, visibility .25s; }
  .aw-dim.on{ opacity:1; visibility:visible; }
  .aw-panel{
    left:0; right:0; bottom:calc(64px + env(safe-area-inset-bottom)); width:auto; max-width:none;
    border-radius:22px 22px 0 0; border:0; transform:translateY(24px); max-height:calc(100vh - 140px); overflow-y:auto;
    box-shadow:0 -12px 40px rgba(15,23,42,.2);
  }
  .aw-panel::before{ content:''; display:block; width:40px; height:4px; border-radius:2px; background:#cbd5e1; margin:10px auto 0; }
  .aw-panel .aw-head{ padding-top:12px; }
  .aw-panel .aw-list{ display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:0 14px 12px; }
  .aw-panel .aw-list li{ margin:0; }
  .aw-panel .aw-item{ flex-direction:column; align-items:flex-start; gap:8px; height:100%; padding:14px 12px; font-size:14px; }
  .aw-panel .aw-hours{ padding-bottom:18px; }
}
/* 2026-11-23 이전 하단 버튼 2개 스타일 (사용 안 함, 되돌릴 때 참고)
@media (max-width:768px){
  .aw-bar{
    display:flex; gap:8px; position:fixed; left:0; right:0; bottom:0; z-index:9000;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.97);
    border-top:1px solid var(--aw-line); box-shadow:0 -6px 20px rgba(15,23,42,.08);
    font-family:'Pretendard',system-ui,sans-serif;
  }
  .aw-bar button,.aw-bar a{
    flex:1; display:flex; align-items:center; justify-content:center; gap:6px; height:48px; border-radius:12px;
    font:700 15px/1 inherit; text-decoration:none; cursor:pointer; border:0;
  }
  .aw-bar svg{ width:20px; height:20px; }
  .aw-bar .aw-b-consult{ background:#eff6ff; color:var(--aw-blue); border:1px solid #bfdbfe; }
  .aw-bar .aw-b-app{ background:var(--aw-blue); color:#fff; }
  body.aw-has-bar{ padding-bottom:calc(66px + env(safe-area-inset-bottom)); }
  (모바일 위젯 패널) .aw-panel{ left:12px; right:12px; bottom:calc(74px + env(safe-area-inset-bottom)); width:auto; max-width:none; }
}
이전 스타일 끝 */

/* 아랍어(오른쪽→왼쪽) */
[dir="rtl"] .aw-item, .aw-rtl .aw-item{ text-align:right; }
.aw-rtl.aw-bar, .aw-rtl.aw-panel, .aw-rtl .aw-head, .aw-rtl .aw-list, .aw-rtl .aw-hours{ direction:rtl; }

/* ---------- 앱 설치 QR (PC 에서만) ---------- */
.aw-qr{ display:none; }
@media (min-width:769px){
  .aw-qr{
    display:inline-flex; align-items:center; gap:14px; margin-top:18px; padding:12px 16px 12px 12px;
    background:#fff; border-radius:14px; box-shadow:0 8px 24px rgba(15,23,42,.10); border:1px solid #e2e8f0;
  }
  .aw-qr img{ width:104px; height:104px; display:block; }
  .aw-qr b{ display:block; font-size:15px; color:#0f172a; line-height:1.35; }
  .aw-qr span{ display:block; margin-top:4px; font-size:13px; color:#475569; line-height:1.45; }
}
