/* BASIC css start */
#ai-chatbot-icon-wrapper {
  position: fixed;
  right: 60px;
  bottom: 210px;
  z-index: 2147483647;
  cursor: pointer;
}

#ai-chatbot-icon-wrapper img {
  width: 44px;
  border-radius: 50%;
  border: 1px solid #dfe4eb;
  box-shadow: 0 3px 8px rgba(20, 30, 48, 0.14);
}

#ai-chatbot-window {
  display: none;
  position: fixed;
  right: 60px;
  bottom: 80px;
  width: 430px;
  height: 570px;
  background: #ffffff;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(20, 30, 48, 0.14);
  z-index: 2147483647;
  flex-direction: column;
  overflow: hidden;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.chat-header {
  background: #1b2c44;
  color: #ffffff;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#ai-chatbot-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

#ai-chatbot-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

#ai-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f7f8fb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-message {
  background: #f1f4f8;
  border: 1px solid #e1e7f0;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  align-self: flex-start;
  max-width: 82%;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  color: #243246;
}

.chat-input-area {
  padding: 10px;
  background: #ffffff;
  border-top: 1px solid #e8ecf2;
  display: flex;
  gap: 8px;
}

#ai-chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ced7e3;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  color: #1f2c3f;
}

#ai-chat-input::placeholder {
  color: #8c98aa;
}

#ai-chat-input:focus {
  border-color: #1b2c44;
  box-shadow: 0 0 0 2px rgba(27, 44, 68, 0.1);
}

#ai-chatbot-send-btn {
  background: #1b2c44;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

#ai-chatbot-send-btn:hover {
  background: #233a58;
}

.ai-reco-summary {
  background: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  color: #1f2c3f;
  font-size: 14px;
  line-height: 1.72;
  word-break: keep-all;
  box-shadow: 0 2px 8px rgba(25, 38, 58, 0.06);
}

.ai-reco-slider {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.ai-reco-slider::-webkit-scrollbar {
  display: none;
}

.ai-reco-slider.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.ai-reco-slider.is-dragging a,
.ai-reco-slider.is-dragging img {
  pointer-events: none;
}

.ai-reco-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  box-shadow: 0 2px 10px rgba(25, 38, 58, 0.06);
}

.ai-reco-card__desc {
  font-size: 12px;
  color: #5f6e82;
  line-height: 1.55;
  min-height: 36px;
  margin-bottom: 10px;
  overflow: hidden;
}

.ai-reco-card__image-wrap {
  background: #f7f8fb;
  border-radius: 12px;
  text-align: center;
  padding: 12px;
  margin-bottom: 12px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-reco-card__image {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.ai-reco-card__name {
  font-size: 16px;
  font-weight: 800;
  color: #1f2c3f;
  line-height: 1.4;
  margin-bottom: 6px;
  word-break: keep-all;
}

.ai-reco-card__price {
  font-size: 18px;
  font-weight: 800;
  color: #16263b;
  margin-bottom: 6px;
}

.ai-reco-card__status {
  font-size: 12px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 12px;
}

.ai-reco-card__status.is-soldout {
  color: #c63f3f;
}

.ai-reco-card__btn {
  margin-top: auto;
  display: block;
  width: 100%;
  text-align: center;
  background: #1b2c44;
  color: #ffffff !important;
  text-decoration: none;
  padding: 13px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  box-sizing: border-box;
}

.ai-reco-card__btn:hover {
  background: #233a58;
}

.ai-reco-card__btn.is-soldout {
  background: #6f7a86;
}

.ai-reco-card__noimage {
  font-size: 13px;
  color: #888;
}

@media (max-width: 768px) {
  #ai-chatbot-icon-wrapper {
    right: 18px;
    bottom: 90px;
  }

  #ai-chatbot-window {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 18px;
    height: 78vh;
    border-radius: 14px;
  }
}

/* BASIC css end */

