/* 샵 FAQ 챗봇 위젯 (펀치) — Tailwind 미포함 유틸 보완용 */
#dp-chatbot {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: calc(100vw - 2.5rem);
}

#dp-chatbot .dp-chat-panel {
  display: none;
  flex-direction: column;
  width: min(100vw - 2.5rem, 22rem);
  height: min(70vh, 32rem);
  margin-bottom: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

#dp-chatbot .dp-chat-panel.is-open {
  display: flex;
}

#dp-chatbot .dp-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #4f46e5;
  color: #fff;
  flex-shrink: 0;
}

#dp-chatbot .dp-chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

#dp-chatbot .dp-chat-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 900;
  flex-shrink: 0;
}

#dp-chatbot .dp-chat-title {
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#dp-chatbot .dp-chat-sub {
  font-size: 10px;
  color: #e0e7ff;
  font-weight: 500;
}

#dp-chatbot .dp-chat-close {
  padding: 0.375rem;
  border-radius: 0.5rem;
  cursor: pointer;
  color: #fff;
  background: transparent;
  border: 0;
  line-height: 0;
}

#dp-chatbot .dp-chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

#dp-chatbot .dp-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

#dp-chatbot .dp-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

#dp-chatbot .dp-chat-row.is-user {
  justify-content: flex-end;
}

#dp-chatbot .dp-chat-row.is-bot {
  justify-content: flex-start;
}

#dp-chatbot .dp-chat-msg-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: #4f46e5;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

#dp-chatbot .dp-chat-bubble {
  max-width: 80%;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  line-height: 1.625;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#dp-chatbot .dp-chat-bubble.is-user {
  background: #4f46e5;
  color: #fff;
  border-bottom-right-radius: 0.375rem;
}

#dp-chatbot .dp-chat-bubble.is-bot {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 0.375rem;
}

#dp-chatbot .dp-chat-actions {
  padding: 0 0.75rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  flex-shrink: 0;
  max-height: 7rem;
  overflow-y: auto;
}

#dp-chatbot .dp-chat-action {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

#dp-chatbot .dp-chat-action:hover {
  background: #e0e7ff;
}

#dp-chatbot .dp-chat-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.625rem;
  flex-shrink: 0;
}

#dp-chatbot .dp-chat-input {
  flex: 1;
  min-width: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  outline: none;
}

#dp-chatbot .dp-chat-input:focus {
  box-shadow: 0 0 0 2px #6366f1;
}

#dp-chatbot .dp-chat-send {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  background: #4f46e5;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.75rem;
  border: 0;
  cursor: pointer;
}

#dp-chatbot .dp-chat-send:hover {
  background: #4338ca;
}

#dp-chatbot .dp-chat-send:disabled,
#dp-chatbot .dp-chat-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#dp-chatbot .dp-chat-fab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: #4f46e5;
  color: #fff;
  border: 0;
  border-radius: 9999px;
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.35);
  cursor: pointer;
  transition: background 0.15s ease;
}

#dp-chatbot .dp-chat-fab:hover {
  background: #4338ca;
}

#dp-chatbot .dp-chat-fab-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 900;
}

#dp-chatbot .dp-chat-fab-label {
  font-size: 0.875rem;
  font-weight: 700;
}
