/**
 * site.css — 공통·푸터·미제작 링크 (designer-html-base + 달링 레이아웃)
 */

.footer__copyright .design-credit,
#footer .copyright .design-credit {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

#footer .copyright .design-credit:hover,
.footer__copyright .design-credit:hover {
  text-decoration: underline;
}

#gnb a.is-unlinked,
.lnb a.is-unlinked,
.mobile-navigation a.is-unlinked,
.header__mega a.is-unlinked,
.header__gnb a.is-unlinked {
  cursor: default;
}

.header__bar {
  position: relative;
  z-index: 2;
}

.header__cta {
  position: relative;
  z-index: 3;
}

/* 챗봇 — 시안 퀵메뉴(오른쪽 원형 버튼)와 같은 축. TOP은 .quick__top */
#cb-t3-widget {
  position: fixed;
  right: 4px;
  bottom: 24px;
  z-index: 220;
  width: 56px;
  height: 56px;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-dark);
}

#chat-fab {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-footer);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

#chat-fab .fab-ic,
.chat-head-ic .fab-ic {
  display: block;
  width: 24px;
  height: 24px;
  max-width: none;
}

.chat-head-ic .fab-ic {
  width: 20px;
  height: 20px;
}

#chat-fab .fab-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-white);
}

#chat-win {
  display: none;
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(360px, calc(100vw - 24px));
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.12);
  flex-direction: column;
}

#chat-win.open {
  display: flex;
}

body:has(#chat-win.open) .quick {
  visibility: hidden;
  pointer-events: none;
}

.chat-resize {
  flex: none;
  height: 10px;
  background: var(--color-footer);
  cursor: ns-resize;
}

.chat-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 14px;
  background: var(--color-footer);
  color: var(--color-white);
}

.chat-head-ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-head-tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.chat-head-tx strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.chat-head-tx span {
  font-size: 12px;
  opacity: 0.75;
}

.chat-reset,
.chat-close {
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}

.chat-reset {
  font-size: 13px;
  text-decoration: underline;
}

.chat-close {
  width: 32px;
  font-size: 26px;
  line-height: 1;
}

.chat-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: var(--color-section-mint);
}

.chat-welcome-hero {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.chat-welcome-tx,
.chat-welcome-note {
  margin: 0;
  font-size: 13px;
  color: var(--color-gray);
}

.chat-welcome-label {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.chat-welcome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-welcome-chip {
  padding: 8px 12px;
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-dark);
  font-size: 13px;
  cursor: pointer;
}

.chat-welcome-note {
  margin-top: 14px;
}

.chat-bubble {
  max-width: 88%;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.chat-bubble.me {
  margin-left: auto;
  background: var(--color-primary);
  color: var(--color-white);
  border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-bottom-left-radius: 4px;
}

.chat-bubble.bot p {
  margin: 0 0 8px;
}

.chat-bubble.bot p:last-child {
  margin: 0;
}

.chat-bubble .cb-t1-list {
  margin: 6px 0;
  padding-left: 1.1em;
  list-style: disc;
}

.cb-related {
  margin-top: 8px;
}

.cb-related-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.cb-related-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.cb-related-media {
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 6px;
}

.cb-related-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.chat-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gray-light);
  animation: chat-typing 1s infinite ease-in-out;
}

.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-typing {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

.chat-foot {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-gray-border);
  background: var(--color-white);
}

#chat-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font: inherit;
  font-size: 16px;
  color: var(--color-dark);
}

#chat-send {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#chat-send img {
  display: block;
  width: 18px;
  height: 18px;
  max-width: none;
}

@media (max-width: 767px) {
  #cb-t3-widget {
    right: calc(var(--space-container, 16px) + 4px);
    bottom: 16px;
  }

  #chat-win {
    right: 0;
    bottom: 68px;
    width: min(360px, calc(100vw - 32px));
  }
}
