/* BASIC css start */
#ai-chatbot-icon-wrapper {
  --quick-chip-w: 54px;
  --quick-chip-h: 54px;
  --quick-chip-radius: 18px;
  --quick-icon-slot: 20px;
  --quick-label-slot: 14px;
  --quick-icon-size: 20px;
  --quick-label-size: 10px;
  --quick-gap: 4px;
  position: fixed;
  right: 24px;
  bottom: 156px;
  z-index: 2147483647;
  cursor: pointer;
  width: var(--quick-chip-w);
  height: var(--quick-chip-h);
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: var(--quick-chip-radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  grid-template-rows: var(--quick-icon-slot) var(--quick-label-slot);
  align-content: center;
  justify-items: center;
  row-gap: var(--quick-gap);
  opacity: 0.72;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease, background .2s ease;
}

#ai-chatbot-icon-wrapper:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

#ai-chatbot-icon-wrapper img {
  width: var(--quick-icon-size);
  height: var(--quick-icon-size);
  display: block;
  object-fit: contain;
}

#ai-chatbot-icon-wrapper .ai-chatbot-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--quick-label-slot);
  font-size: var(--quick-label-size);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #555555;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

#ai-chatbot-window {
  display: none;
  position: fixed;
  right: 60px;
  bottom: 80px;
  width: 430px;
  height: 700px;
  background: #f4f5f7;
  border: 1px solid #d5dce6;
  border-radius: 30px;
  box-shadow: 0 16px 36px rgba(17, 28, 44, 0.22);
  z-index: 2147483647;
  flex-direction: column;
  overflow: hidden;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.chat-header {
  background: #f4f5f7;
  color: #1b2c44;
  padding: 18px 18px 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.chat-header span {
  font-weight: 800 !important;
  font-size: 23px;
  line-height: 1.2;
  color: #102a4d;
}

#ai-chatbot-close-btn {
  background: transparent;
  border: none;
  color: #2e4f83;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  order: -1;
}

#ai-chatbot-close-btn::before {
  content: "\2039";
  font-size: 34px;
  line-height: 1;
  position: relative;
  top: -1px;
}

#ai-chatbot-close-btn:hover {
  background: rgba(56, 96, 166, 0.12);
}

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

.bot-message {
  background: #ffffff;
  border: 1px solid #dfe6f0;
  padding: 12px 14px;
  border-radius: 18px;
  align-self: flex-start;
  max-width: 92%;
  font-size: 14px;
  line-height: 1.62;
  word-break: break-word;
  color: #1e2a3b;
  box-shadow: 0 2px 10px rgba(16, 28, 42, 0.05);
}

.chat-input-area {
  padding: 12px 14px 16px;
  background: #f4f5f7;
  border-top: none;
  display: flex;
  gap: 10px;
  position: relative;
}

#ai-chat-input {
  flex: 1;
  padding: 14px 64px 14px 16px;
  border: 1px solid #d7dde7;
  border-radius: 18px;
  outline: none;
  font-size: 16px;
  color: #1f2c3f;
  background: #eceef2;
}

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

#ai-chat-input:focus {
  border-color: #4a6fa8;
  box-shadow: 0 0 0 3px rgba(70, 110, 176, 0.14);
}

#ai-chatbot-send-btn {
  background: #bfcfee;
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: 0;
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ai-chatbot-send-btn::before {
  content: "\2191";
  font-size: 20px;
  line-height: 1;
}

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

.ai-reco-summary {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
  border: 1px solid #e0e7f1;
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 10px;
  color: #243751;
  font-size: 13px;
  line-height: 1.62;
  word-break: keep-all;
  box-shadow: 0 2px 8px rgba(16, 28, 42, 0.05);
}

.ai-reco-slider {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 2px 2px 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;
}

.ai-reco-card {
  flex: 0 0 198px;
  max-width: 198px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(18, 31, 46, 0.07);
}

.ai-reco-card__desc {
  margin: 10px 10px 0;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.52;
  color: #354860;
  word-break: keep-all;
  background: #f7f9fc;
  border: 1px solid #e5ebf3;
  border-radius: 10px;
  display: block;
  overflow: visible;
  min-height: 114px;
}

.ai-reco-card__image-wrap {
  width: 100%;
  height: 126px;
  background: #fbfcfe;
  overflow: hidden;
  margin-top: 10px;
  border-top: 1px solid #edf2f8;
  border-bottom: 1px solid #edf2f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-reco-card__image {
  width: 88%;
  height: 88%;
  object-fit: contain;
  padding: 0;
  box-sizing: border-box;
}

.ai-reco-card__noimage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8896;
  font-size: 12px;
}

.ai-reco-card__name {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.42;
  color: #152b49;
  font-weight: 800;
  word-break: keep-all;
  padding: 0 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.ai-reco-card__price {
  margin-top: 3px;
  font-size: 18px;
  color: #0c2f61;
  font-weight: 900;
  letter-spacing: -0.01em;
  padding: 0 11px;
}

.ai-reco-card__status {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
  color: #7a8698;
  min-height: 16px;
  padding: 0 11px;
}

.ai-reco-card__status.is-soldout {
  color: #9a2b4a;
  font-weight: 700;
}

.ai-reco-card__btn {
  margin: 10px 11px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #d7e3f7;
  color: #173767;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ai-reco-card__btn:hover {
  background: #ccdcf7;
  transform: translateY(-1px);
}

.ai-reco-card__btn.is-soldout {
  background: #f0dbe2;
  color: #7a1f3a;
}

.ai-reco-card__btn.is-soldout:hover {
  background: #ead0d9;
}

.user-message {
  align-self: flex-end;
  max-width: 80%;
  background: #dbe7fb;
  color: #1b3258;
  border: 1px solid #c7d7f3;
  padding: 13px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.loading-message {
  align-self: flex-start;
  color: #6d7787;
  font-size: 14px;
  padding: 2px 4px 0;
}

@media (max-width: 768px) {
  #ai-chatbot-icon-wrapper {
    --quick-chip-w: 50px;
    --quick-chip-h: 50px;
    --quick-chip-radius: 16px;
    --quick-label-size: 9px;
    right: 14px;
    bottom: 134px;
    padding: 0 5px;
  }

  #ai-chatbot-window {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
    height: calc(100vh - 28px);
    border-radius: 24px;
  }

  .chat-header {
    padding: 16px 16px 10px;
  }

  .chat-header span {
    font-size: 20px;
  }

  #ai-chatbot-close-btn::before {
    font-size: 32px;
  }

  #ai-chat-messages {
    padding: 8px 10px 8px;
    gap: 10px;
  }

  .bot-message,
  .user-message {
    max-width: 90%;
    font-size: 13px;
    border-radius: 16px;
  }

  .chat-input-area {
    padding: 10px 12px 14px;
  }

  #ai-chat-input {
    font-size: 15px;
    padding: 13px 58px 13px 14px;
  }

  #ai-chatbot-send-btn {
    right: 20px;
    bottom: 19px;
  }

  .ai-reco-card {
    flex-basis: 174px;
    max-width: 174px;
    border-radius: 15px;
  }

  .ai-reco-card__desc {
    margin: 9px 9px 0;
    padding: 8px 9px;
    font-size: 10.5px;
    min-height: 112px;
  }

  .ai-reco-card__image-wrap {
    height: 112px;
    margin-top: 8px;
  }

  .ai-reco-card__name {
    font-size: 14px;
    padding: 0 9px;
    min-height: 36px;
  }

  .ai-reco-card__price {
    margin-top: 2px;
    font-size: 16px;
    padding: 0 9px;
  }

  .ai-reco-card__status {
    font-size: 10.5px;
    padding: 0 9px;
  }

  .ai-reco-card__btn {
    font-size: 11px;
    margin: 9px 9px 9px;
    min-height: 32px;
    padding: 0 9px;
  }
}

/* BASIC css end */

