/* BASIC css start */
#ai-chatbot-icon-wrapper {
  position: fixed;
  right: 24px;
  bottom: 156px;
  z-index: 2147483647;
  cursor: pointer;
  width: 54px;
  min-height: 54px;
  padding: 8px 6px 7px;
  box-sizing: border-box;
  border-radius: 18px;
  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: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  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: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

#ai-chatbot-icon-wrapper .ai-chatbot-label {
  display: block;
  font-size: 10px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #555555;
  white-space: nowrap;
}

#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: 8px 16px 8px;
  overflow-y: auto;
  background: #f4f5f7;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bot-message {
  background: #eceff3;
  border: 1px solid #dde3ec;
  padding: 14px 16px;
  border-radius: 18px;
  align-self: flex-start;
  max-width: 92%;
  font-size: 16px;
  line-height: 1.58;
  word-break: break-word;
  color: #1e2a3b;
}

.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: #ffffff;
  border: 1px solid #dee4ed;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  color: #2a3a52;
  font-size: 15px;
  line-height: 1.58;
  word-break: keep-all;
  box-shadow: 0 2px 8px rgba(16, 28, 42, 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;
}

.ai-reco-card {
  flex: 0 0 210px;
  max-width: 210px;
  border: 1px solid #d9e0ea;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(18, 31, 46, 0.06);
}

.ai-reco-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eef1f5;
  overflow: hidden;
}

.ai-reco-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-reco-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-reco-name {
  font-size: 15px;
  line-height: 1.45;
  color: #1a2740;
  font-weight: 700;
  word-break: keep-all;
}

.ai-reco-meta {
  font-size: 13px;
  color: #6d7786;
  line-height: 1.5;
}

.ai-reco-price {
  font-size: 15px;
  color: #0f2850;
  font-weight: 800;
}

.ai-reco-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #dce7f9;
  color: #15325d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.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: 15px;
  line-height: 1.58;
  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 {
    right: 14px;
    bottom: 134px;
    width: 50px;
    min-height: 50px;
    border-radius: 16px;
    padding: 7px 5px 6px;
  }

  #ai-chatbot-icon-wrapper .ai-chatbot-label {
    font-size: 9px;
  }

  #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 12px 8px;
    gap: 12px;
  }

  .bot-message,
  .user-message {
    max-width: 88%;
    font-size: 14px;
    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: 176px;
    max-width: 176px;
  }

  .ai-reco-body {
    padding: 12px 12px 14px;
  }

  .ai-reco-name {
    font-size: 14px;
  }

  .ai-reco-meta,
  .ai-reco-link {
    font-size: 12px;
  }
}
/* BASIC css end */

