/* 유니파이 상담 안내 챗봇 — 황금 나무 톤 */
.ufc { --c-bg: #f8ecd2; --c-panel: #fdf6e7; --c-ink: #4f3418; --c-sub: #7a5a34; --c-gold: #c9963a; --c-gold2: #e2b356; --c-brown: #5e3d1c; --c-line: rgba(140, 98, 40, .22);
  position: fixed; right: 20px; bottom: 20px; z-index: 99990; font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif; font-size: 15px; line-height: 1.6; color: var(--c-ink); word-break: keep-all; }
.ufc *, .ufc *::before, .ufc *::after { box-sizing: border-box; }
.ufc button, .ufc input, .ufc select, .ufc textarea { font: inherit; }
.ufc-fab { display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 20px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: radial-gradient(circle at 30% 25%, #f6d488, var(--c-gold) 60%, #9c6a22); color: #3f2810; font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 28px rgba(94, 61, 28, .35), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .15s; }
.ufc-fab:hover { transform: translateY(-2px); }
.ufc-fab svg { width: 30px; height: 30px; color: #4a2f12; }
.ufc.is-open .ufc-fab { display: none; }
.ufc-panel { position: absolute; right: 0; bottom: 0; width: 380px; height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 20px; box-shadow: 0 24px 60px rgba(70, 45, 15, .32); }
.ufc-panel[hidden] { display: none; }
.ufc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff4dc;
  background: linear-gradient(135deg, #6b4520, #4a2f12); border-bottom: 2px solid var(--c-gold2); }
.ufc-head strong { display: block; font-family: 'Nanum Myeongjo', 'Noto Serif KR', Batang, serif; font-size: 17px; letter-spacing: -.01em; }
.ufc-head small { display: block; font-size: 12px; color: #e9d3a6; }
.ufc-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #f6d488, var(--c-gold)); color: #4a2f12; flex: none; }
.ufc-av svg { width: 26px; height: 26px; }
.ufc-x { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff4dc; font-size: 24px; line-height: 1; cursor: pointer; }
.ufc-x:hover { background: rgba(255, 255, 255, .22); }
.ufc-body { flex: 1; overflow-y: auto; padding: 16px 14px; background: linear-gradient(180deg, var(--c-bg), var(--c-panel) 60%); overscroll-behavior: contain; }
.ufc-msg { max-width: 92%; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; }
.ufc-msg p { margin: 0 0 8px; } .ufc-msg p:last-child { margin-bottom: 0; }
.ufc-b { background: #fffaf0; border: 1px solid var(--c-line); border-top-left-radius: 4px; }
.ufc-u { margin-left: auto; background: var(--c-brown); color: #fff4dc; border-top-right-radius: 4px; width: fit-content; }
.ufc-q { font-weight: 800; color: var(--c-brown); }
.ufc-sub { font-size: 13px; color: var(--c-sub); margin-top: 10px !important; }
.ufc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ufc-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(160, 112, 40, .45);
  background: #fff3d9; color: var(--c-brown) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; cursor: pointer; text-align: left; line-height: 1.35; }
.ufc-chip:hover { background: #ffe7b5; }
.is-role .ufc-chip { background: linear-gradient(180deg, #f3cf7f, #e0ac4f); border-color: #b9842e; font-weight: 800; padding: 8px 16px; }
.is-link .ufc-chip:first-child { background: var(--c-brown); color: #fff4dc !important; border-color: var(--c-brown); }
.is-sug { flex-direction: column; align-items: stretch; } .is-sug .ufc-chip { border-radius: 12px; }
.is-contact .ufc-chip { flex: 1 1 100%; justify-content: center; padding: 10px; }
.is-contact .ufc-chip:first-child { background: #fee500; border-color: #e6cf00; color: #3a1d1d !important; }
.ufc-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--c-line); font-size: 13px; color: var(--c-sub); }
.ufc-fb button { border: 1px solid var(--c-line); background: transparent; border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--c-brown); cursor: pointer; min-height: 32px; }
.ufc-fb .ufc-chips { margin-top: 0; }
.ufc-quick { display: flex; gap: 6px; padding: 8px 12px 0; background: var(--c-panel); }
.ufc-quick button { border: 1px solid var(--c-line); background: #fff8ea; color: var(--c-brown); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; min-height: 32px; }
.ufc-in { display: flex; gap: 8px; padding: 10px 12px 12px; background: var(--c-panel); }
.ufc-in input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid rgba(140, 98, 40, .35); border-radius: 12px; background: #fff; color: var(--c-ink); font-size: 16px; }
.ufc-in input:focus { outline: 2px solid var(--c-gold); outline-offset: 0; border-color: transparent; }
.ufc-in button { height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--c-brown); color: #fff4dc; font-weight: 800; cursor: pointer; }
.ufc-dots { display: inline-flex; gap: 4px; padding: 4px 0; } .ufc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-gold); animation: ufcd 1s infinite; }
.ufc-dots i:nth-child(2) { animation-delay: .15s; } .ufc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ufcd { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ufc-lead label { display: block; margin: 8px 0; font-size: 13px; font-weight: 700; color: var(--c-brown); }
.ufc-lead input:not([type=radio]):not([type=checkbox]), .ufc-lead select, .ufc-lead textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid rgba(140, 98, 40, .35); border-radius: 10px; background: #fff; font-size: 16px; font-weight: 400; color: var(--c-ink); }
.ufc-lead fieldset { border: 0; padding: 0; margin: 8px 0; } .ufc-lead legend { font-size: 13px; font-weight: 700; color: var(--c-brown); padding: 0; margin-bottom: 4px; }
.ufc-lead .ufc-r { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 0 0; font-weight: 600; min-height: 36px; }
.ufc-lead .ufc-ck { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; }
.ufc-lead .ufc-ck input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.ufc-lead .ufc-ck small { display: block; font-weight: 400; color: var(--c-sub); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.ufc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ufc-err { color: #b3261e; font-size: 13px; min-height: 1em; }
.ufc-send { width: 100%; height: 46px; border: 0; border-radius: 12px; background: var(--c-brown); color: #fff4dc; font-weight: 800; cursor: pointer; }
.ufc-send:disabled { opacity: .6; }
.ufc-fab:focus-visible, .ufc-chip:focus-visible, .ufc-x:focus-visible, .ufc-quick button:focus-visible, .ufc-fb button:focus-visible, .ufc-send:focus-visible { outline: 2px solid #704817; outline-offset: 2px; }
@media (max-width: 760px) {
  .ufc { right: 14px; bottom: 14px; }
  .ufc-fab { height: 54px; padding: 0 16px 0 12px; font-size: 15px; }
  .ufc.is-open { inset: 0; right: 0; bottom: 0; }
  .ufc-panel { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .ufc-in { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .ufc-dots i { animation: none; opacity: .7; } .ufc-fab { transition: none; } }
@media print { .ufc { display: none !important; } }
/* 테마·플러그인의 「맨 위로」 버튼을 챗봇 버튼 위로 올림 */
html body .scroll-to-top, html body #scroll-to-top, html body .back-to-top, html body #back-to-top, html body .go-to-top, html body #toTop, html body .scrollup, html body #wpfront-scroll-top-container {
  bottom: 92px !important; right: 26px !important; left: auto !important; z-index: 99980 !important; }
html.ufc-on .scroll-to-top, html.ufc-on #scroll-to-top, html.ufc-on .back-to-top, html.ufc-on #back-to-top, html.ufc-on .go-to-top, html.ufc-on #toTop, html.ufc-on .scrollup, html.ufc-on #wpfront-scroll-top-container { display: none !important; }
@media (max-width: 760px) {
  html body .scroll-to-top, html body #scroll-to-top, html body .back-to-top, html body #back-to-top, html body .go-to-top, html body #toTop, html body .scrollup, html body #wpfront-scroll-top-container { bottom: 80px !important; right: 18px !important; }
}
