/* BlueCoconut Chat widget — brand: navy → blue, Noto Sans KR inherits from theme */

.bc-chat-root { position: relative; z-index: 2147482000; font-size: 14px; line-height: 1.55; }

.bc-chat-bubble {
  position: fixed; bottom: 20px; z-index: 2147482000;
  width: 56px; height: 56px; border: none; border-radius: 50%;
  background: linear-gradient(135deg, #1f2d4d, #2563eb);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 4px 16px rgba(31, 45, 77, .35);
  transition: transform .15s ease;
}
.bc-chat-bubble svg { display: block; }
.bc-chat-bubble:hover { transform: scale(1.06); }
.bc-chat-right .bc-chat-bubble { right: 20px; }
.bc-chat-left .bc-chat-bubble { left: 20px; }

.bc-chat-panel {
  position: fixed; bottom: 90px; z-index: 2147482000;
  width: 360px; max-width: calc(100vw - 32px);
  height: 65vh; max-height: 560px;
  display: none; flex-direction: column;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
.bc-chat-panel.bc-open { display: flex; }
.bc-chat-right .bc-chat-panel { right: 20px; }
.bc-chat-left .bc-chat-panel { left: 20px; }

.bc-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; color: #fff;
  background: linear-gradient(135deg, #1f2d4d, #2563eb);
}
.bc-chat-header-title strong { display: block; font-size: 15px; }
.bc-chat-header-sub { display: block; font-size: 11px; opacity: .85; margin-top: 2px; }
.bc-chat-close {
  background: none; border: none; color: #fff; font-size: 22px;
  cursor: pointer; padding: 0 4px; line-height: 1;
}

.bc-chat-body { flex: 1; overflow-y: auto; padding: 14px; background: #f5f7fb; }

.bc-chat-msg { display: flex; margin-bottom: 10px; }
.bc-chat-msg-user { justify-content: flex-end; }
.bc-chat-msg-inner {
  max-width: 85%; padding: 9px 12px; border-radius: 12px;
  white-space: pre-wrap; word-break: break-word;
}
.bc-chat-msg-bot .bc-chat-msg-inner { background: #fff; color: #1f2937; border: 1px solid #e5e9f2; border-bottom-left-radius: 4px; }
.bc-chat-msg-user .bc-chat-msg-inner { background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
.bc-chat-typing .bc-chat-msg-inner { color: #6b7280; font-style: italic; }

.bc-chat-quicks { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; background: #f5f7fb; }
.bc-chat-quick {
  border: 1px solid #c7d4f0; background: #fff; color: #1f2d4d;
  border-radius: 16px; padding: 6px 12px; font-size: 12.5px; cursor: pointer;
}
.bc-chat-quick:hover { background: #eef3ff; }

.bc-chat-footer { border-top: 1px solid #e5e9f2; background: #fff; }
.bc-chat-form { display: flex; gap: 8px; padding: 10px 12px 6px; }
.bc-chat-input {
  flex: 1; border: 1px solid #d4dbe8; border-radius: 8px;
  padding: 9px 12px; font-size: 14px; outline: none;
}
.bc-chat-input:focus { border-color: #2563eb; }
.bc-chat-send {
  border: none; border-radius: 8px; background: #1f2d4d; color: #fff;
  padding: 0 16px; font-size: 13px; cursor: pointer;
}
.bc-chat-send:disabled { opacity: .5; cursor: default; }
.bc-chat-notice { padding: 0 14px 10px; font-size: 11px; color: #8a94a6; }
.bc-chat-notice a { color: #2563eb; text-decoration: underline; }

.bc-chat-lead {
  background: #fff; border: 1px solid #c7d4f0; border-radius: 12px;
  padding: 14px; margin: 4px 0 10px;
}
.bc-chat-lead-title { font-weight: 700; color: #1f2d4d; margin-bottom: 10px; font-size: 13.5px; }
.bc-chat-lead-input {
  width: 100%; box-sizing: border-box; margin-bottom: 8px;
  border: 1px solid #d4dbe8; border-radius: 8px; padding: 8px 10px; font-size: 13.5px;
}
.bc-chat-lead-consent {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11.5px; color: #4b5563; margin: 4px 0 10px; cursor: pointer;
}
.bc-chat-lead-consent input { margin-top: 2px; }
.bc-chat-lead-consent a { color: #2563eb; }
.bc-chat-lead-submit {
  width: 100%; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #1f2d4d, #2563eb); color: #fff;
  padding: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.bc-chat-lead-submit:disabled { opacity: .6; }
.bc-chat-lead-msg { font-size: 12px; color: #b91c1c; margin-top: 6px; min-height: 14px; }

@media (max-width: 767px) {
  .bc-chat-panel { height: 70vh; }
}
