.modnmedi-chatbot-container {
  z-index: 9999;
}

/* FAQ 선택지 버튼 스타일 */
.faq-choice-message {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.faq-choice-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 14px;
  color: #495057;
}

.faq-choice-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.faq-choice-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
  font-weight: 500;
}

.faq-choice-btn.active:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.faq-choice-btn.selected {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
  cursor: not-allowed;
  opacity: 0.7;
}

.faq-choice-btn.selected:hover {
  background: #6c757d;
  border-color: #6c757d;
}

/* 선택이 완료된 말풍선의 모든 버튼 상호작용 차단 */
.faq-choice-message.choiced .faq-choice-btn,
.faq-choice-message.choiced .faq-back-btn {
  pointer-events: none;
  cursor: not-allowed;
}

.faq-choice-message.choiced .faq-choice-btn.selected {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
  opacity: 0.7;
}

.faq-choice-message.choiced .faq-choice-btn:not(.selected) {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  opacity: 0.5;
}

/* 이전으로 버튼 스타일 */
.faq-back-btn {
  background: #6c757d !important;
  border-color: #6c757d !important;
  color: white !important;
  font-weight: 500;
}

.faq-back-btn:hover {
  background: #5a6268 !important;
  border-color: #5a6268 !important;
}

.faq-back-btn.active {
  background: #495057 !important;
  border-color: #495057 !important;
}

/* 다시 질문하기 버튼 스타일 */
.faq-restart-btn {
  background: #28a745;
  border: 1px solid #28a745;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 14px;
  color: white;
  font-weight: 500;
  margin-top: 12px !important;
  width: 100%;
}

.faq-restart-btn:hover {
  background: #218838;
  border-color: #1e7e34;
}

.modnmedi-chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  background: unset;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: block;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: unset;
  margin-bottom: 0.5rem;
  color: var(--wp--preset--color--accent);
  font-weight: 700;
}

.modnmedi-chatbot-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.modnmedi-chatbot-toggle p {
  margin: 0;
}

.modnmedi-chatbot-toggle img {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
}

.modnmedi-chatbot-toggle .dashicons {
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.modnmedi-chatbot-window {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 700px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.modnmedi-chatbot-container.open .modnmedi-chatbot-window {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.modnmedi-chatbot-container.open .modnmedi-chatbot-toggle {
  display: none;
}

.modnmedi-chatbot-header {
  background: rgb(124, 90, 255);
  padding: 1rem;
  position: relative;
}

.modnmedi-chatbot-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.modnmedi-chatbot-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: #f7f5ff;
  margin: 0.25rem 0 0;
}

.modnmedi-chatbot-minimize {
  position: absolute;
  bottom: -20px;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #fff;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 999999;
}

.modnmedi-chatbot-minimize:hover {
  background: #f3f4f6;
  transform: scale(1.05);
}

.modnmedi-chatbot-minimize svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #4b5563;
}

.modnmedi-chatbot-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modnmedi-chatbot-tabs {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modnmedi-chatbot-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.modnmedi-chatbot-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  height: 100%;
}

.modnmedi-chatbot-avatar {
  background: #f3e8ff;
  border-radius: 9999px;
  padding: unset;
  margin-bottom: 1rem;
}

.modnmedi-chatbot-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: #9333ea;
  color: #fff;
  border-radius: 9999px;
  font-size: 1.25rem;
}

.modnmedi-chatbot-welcome h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.modnmedi-chatbot-welcome-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.modnmedi-chatbot-welcome-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1.5rem;
}

.modnmedi-chatbot-start-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: #7c5aff;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.modnmedi-chatbot-start-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modnmedi-chatbot-history-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.modnmedi-chatbot-history-content h3 {
  font-weight: 700;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  margin: 0;
}

.modnmedi-chatbot-history-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.modnmedi-chatbot-history-item {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
}

.modnmedi-chatbot-history-item:hover {
  background: #f9fafb;
}

.modnmedi-chatbot-history-item-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.modnmedi-chatbot-history-item-avatar {
  display: flex;
  align-items: center;
}

.modnmedi-chatbot-history-item-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #9333ea;
  color: #fff;
  border-radius: 9999px;
  margin-right: 0.75rem;
}

.modnmedi-chatbot-history-item-info h4 {
  font-weight: 500;
  margin: 0;
}

.modnmedi-chatbot-history-item-info p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0 0;
}

.modnmedi-chatbot-history-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 0.5rem;
}

.modnmedi-chatbot-history-item-time {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.modnmedi-chatbot-history-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.5rem;
  background: #ef4444;
  color: #fff;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.modnmedi-chatbot-history-item-delete {
  display: flex;
  padding: unset;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0.75rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  color: #9ca3af;
  opacity: 0;
  transition: all 0.2s;
  cursor: pointer;
}

.modnmedi-chatbot-history-item:hover .modnmedi-chatbot-history-item-delete {
  opacity: 1;
}

.modnmedi-chatbot-history-item-delete:hover {
  color: #ef4444;
  background: #fee2e2;
}

.modnmedi-chatbot-history-footer {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
}

.modnmedi-chatbot-new-chat-button {
  width: 100%;
  padding: 0.625rem 1rem;
  background: #7c5aff;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modnmedi-chatbot-new-chat-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modnmedi-chatbot-tab-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
  padding: 0.25rem;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
}

.modnmedi-chatbot-tab-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  color: #6b7280;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  gap: 0.5rem;
}

.modnmedi-chatbot-tab-button.active {
  background: #fff;
  color: #7c5aff;
}

.modnmedi-chatbot-tab-icon {
  display: flex;
}

.modnmedi-chatbot-tab-button span {
  font-size: 0.75rem;
}

.modnmedi-chatbot-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: #ff4444;
  border-radius: 50%;
  display: none;
}

.modnmedi-chatbot-input-container {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
}

.modnmedi-chatbot-input {
  flex: 1;
  padding: 0.625rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  resize: none;
  height: 2.5rem;
  font-size: 0.875rem;
}

.modnmedi-chatbot-send {
  padding: 0.625rem 1rem;
  background: #7c5aff;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.modnmedi-chatbot-send:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.modnmedi-chatbot-send:not(:disabled):hover {
  opacity: 0.9;
}

.modnmedi-chatbot-message {
  display: flex;
  margin-bottom: 1rem;
}

.assistant-message {
  justify-content: flex-start;
  width: 100%;
}

.user-message {
  margin-left: auto;
  justify-content: flex-start;
  flex-direction: row-reverse;
}

.message-content {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  position: relative;
  word-break: break-word;
  max-width: calc(100% - 75px);
}

.message-content > * {
  margin-top: 1rem;
}

.message-content > *:first-child {
  margin-top: 0;
}

.message-content ol,
.message-content ul {
  padding-left: 1rem;
}

.message-content ol li,
.message-content ul li {
  margin-top: 0.5rem;
}

.message-content ol li:first-child,
.message-content ul li:first-child {
  margin-top: 0;
}

.assistant-message .message-content {
  background-color: #f0f0f0;
  color: #333;
  border-top-left-radius: 0;
}

.assistant-message .message-content::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  border: 8px solid transparent;
  border-right-color: #f0f0f0;
  border-top-color: #f0f0f0;
}

.user-message .message-content {
  background-color: #7c5aff;
  color: white;
  border-top-right-radius: 0;
}

.user-message .message-content::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 0;
  border: 8px solid transparent;
  border-left-color: #7c5aff;
  border-top-color: #7c5aff;
}

.message-timestamp {
  font-size: 0.75rem;
  color: #666;
  align-self: end;
  white-space: nowrap;
  word-break: keep-all;
  width: 75px;
}

.error-message .message-content {
  background-color: #dc3545;
  color: white;
  border-top-left-radius: 0;
}

.error-message .message-content::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  border: 8px solid transparent;
  border-right-color: #dc3545;
  border-top-color: #dc3545;
}

.error-message .message-timestamp {
  right: 0.75rem;
}

.modnmedi-chatbot-container .product-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 10px 0;
  overflow: hidden;
}

.modnmedi-chatbot-container .product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.modnmedi-chatbot-container .product-image {
  width: 100%;
  height: 200px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modnmedi-chatbot-container .product-image img {
  object-fit: cover;
  width: 100%;
}

.modnmedi-chatbot-container .product-info {
  padding: 15px;
}

.modnmedi-chatbot-container .product-title {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  color: #333;
}

.modnmedi-chatbot-container .product-price {
  font-weight: bold;
  color: #007bff;
  margin-bottom: 10px;
}

.modnmedi-chatbot-container .product-description {
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}

.modnmedi-chatbot-loading {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem;
  margin: 0.5rem 0;
}

.modnmedi-chatbot-loading .loading-dots {
  display: flex;
  gap: 0.5rem;
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.loading-dots .dot {
  width: 8px;
  height: 8px;
  background: #666;
  border-radius: 50%;
  animation: dotAnimation 1.4s infinite ease-in-out;
}

.loading-dots .dot:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

.modnmedi-chatbot-content .day-box {
  margin-top: 1rem;
  border: 1px solid rgb(233, 233, 233);
  border-radius: 6px;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.03) 0px 4px 14px 0px;
  background-color: #fff;
}

.modnmedi-chatbot-content .day-box .order-number {
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.02em;
  flex-direction: column;
  align-items: start;
}

.modnmedi-chatbot-content .day-box .order-number .left-order {
  display: flex;
  gap: 12px;
}

.modnmedi-chatbot-content .day-box .order-number h2 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 32px;
}

.modnmedi-chatbot-content .day-box .left-order p {
  font-size: 1rem;
}

.modnmedi-chatbot-content .day-box .order-number .day-order p {
  color: rgb(102, 102, 102);
  text-align: right;
  font-size: 15px;
  font-weight: 400;
  line-height: 160%;
  letter-spacing: -0.3px;
}

.modnmedi-chatbot-content .details-box {
  border: 1px solid rgb(233, 233, 233);
  border-radius: 6px;
  padding: 5px;
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  align-items: center;
  margin-top: 0.5rem;
  flex-direction: column;
}

.modnmedi-chatbot-content .details-box .order-details-wrap {
  display: flex;
  gap: 22px;
  cursor: pointer;
  width: 100%;
  flex-direction: column;
}

.modnmedi-chatbot-content .details-box .order-img {
  width: 100%;
  height: 118px;
  background-size: 85%;
  background-repeat: no-repeat;
  background-position: center center;
}

.modnmedi-chatbot-content .details-box .order-details-wrap .wrap {
  width: 100%;
}

.modnmedi-chatbot-content .details-box .order-details-wrap .date-box {
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 13px;
  line-height: 160%;
  letter-spacing: -0.02em;
  color: rgb(102, 102, 102);
  margin-bottom: 4px;
  margin-top: 5px;
}

.modnmedi-chatbot-content .details-box .order-details-wrap .order-detail {
  font-weight: 400;
  font-size: 11px;
  line-height: 160%;
  letter-spacing: -0.22px;
  color: rgb(124, 90, 255);
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 6px;
}

.modnmedi-chatbot-content .row-container a {
  transition: 0.4s;
}

.modnmedi-chatbot-content .row-container a:hover {
  opacity: 0.6;
}

.modnmedi-chatbot-content .details-box .order-details-wrap .order-detail img {
  position: relative;
  top: 1px;
}

.modnmedi-chatbot-content .details-box .order-details-wrap .pro-detail {
  font-weight: 700;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: -0.02em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.modnmedi-chatbot-content .details-box .order-details-wrap .option-detail {
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 2px;
}

.modnmedi-chatbot-content .details-box .order-details-wrap .option-detail p {
  color: rgb(124, 90, 255);
  font-size: 13px;
  font-weight: 400;
  line-height: 160%;
  letter-spacing: -0.26px;
}

.modnmedi-chatbot-content .details-box .order-details-wrap .pro-amount {
  font-weight: 700;
  font-size: 17px;
  line-height: 160%;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.modnmedi-chatbot-content .details-box .btn-wrap {
  width: 100%;
  margin-top: 10px;
}

.modnmedi-chatbot-content .details-box .btn-wrap .btn-box {
  width: 100%;
  margin-top: 10px;
}

.modnmedi-chatbot-content .details-box button {
  background: rgb(255, 255, 255);
  border: 1px solid rgb(124, 90, 255);
  border-radius: 6px;
  padding: 13px;
  font-weight: 500;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: -0.02em;
  color: rgb(124, 90, 255);
  word-break: keep-all;
  width: 100%;
  cursor: pointer;
}

.modnmedi-chatbot-content .details-box .btn-wrap .btn-box button {
  display: block;
  background: rgb(255, 255, 255);
  border: 1px solid rgb(124, 90, 255);
  border-radius: 6px;
  padding: 13px 53px;
  width: 100%;
  font-weight: 500;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: -0.02em;
  color: rgb(124, 90, 255);
  cursor: pointer;
}

.modnmedi-chatbot-content .details-box .btn-box2 .inquiry-btn {
  background-color: rgb(124, 90, 255);
  color: rgb(255, 255, 255);
  display: block;
  border-radius: 6px;
  padding: 13px 53px;
  width: 100%;
  font-weight: 500;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: -0.02em;
  text-align: center;
}

.modnmedi-chatbot-content .details-box .btn-wrap .btn-box .inquiry-btn {
  background-color: rgb(124, 90, 255);
  color: rgb(255, 255, 255);
  margin-bottom: 10px;
  display: block;
  border-radius: 6px;
  padding: 13px 0px;
  width: 100%;
  min-width: 66px;
  font-weight: 500;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: -0.02em;
  text-align: center;
  cursor: pointer;
}

@keyframes dotAnimation {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
}

.chat-bot-inquire {
  position: relative;
  width: 100%;
  margin-top: 1rem;
}

.chat-bot-inquire .popup-wrapper {
  display: block;
  position: relative;
  width: 100%;
  opacity: 1;
  visibility: visible;
  z-index: unset;
}

.chat-bot-inquire .overlay {
  display: none;
}

.chat-bot-inquire .modal-wrap {
  position: relative;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  width: 100%;
  border: 1px solid #e5e7eb;
}

.chat-bot-inquire .top-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.chat-bot-inquire .top-menu h2 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.chat-bot-inquire .h-modal {
  max-height: 400px;
  overflow-y: auto;
}

.chat-bot-inquire .inquiry-product-sc {
  margin-bottom: 15px;
}

.chat-bot-inquire .product-choice-sc {
  height: 45px;
  border: 1px solid #7c5aff;
  background-color: rgba(123, 90, 255, 0.125);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.4s;
}

.chat-bot-inquire .product-choice-sc p {
  font-size: 13px;
  font-weight: 500;
  line-height: 45px;
  text-align: center;
  color: #7c5aff;
  margin: 0;
}

.chat-bot-inquire .b-line {
  margin: 15px 0;
  border-bottom: 1px solid #e5e7eb;
}

.chat-bot-inquire .inquiry-kind select {
  width: 100%;
  height: 45px;
  line-height: 45px;
  margin-bottom: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  padding: 0 15px;
  appearance: none;
  background-image: url(/images/select-arrow.svg);
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  cursor: pointer;
}

.chat-bot-inquire .inquiry-text-sc {
  margin-bottom: 15px;
}

.chat-bot-inquire .inquiry-text-sc textarea {
  width: 100%;
  height: 100px;
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  resize: none;
}

.chat-bot-inquire .gallery-list-sc {
  margin-bottom: 15px;
}

.chat-bot-inquire .gallery-list-sc .box {
  display: inline-block;
  width: 100%;
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: 0.3s;
}

.chat-bot-inquire .upload-sc {
  display: block;
  text-align: center;
  position: relative;
  line-height: 45px;
  cursor: pointer;
}

.chat-bot-inquire .upload-sc input {
  display: none;
}

.chat-bot-inquire .gallery-list-sc label span {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin-left: 6px;
}

.chat-bot-inquire .gallery-scroll-sc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chat-bot-inquire .gallery-box-sc {
  width: calc(20% - 8px);
}

.chat-bot-inquire .gallery-sc {
  width: 100%;
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
}

.chat-bot-inquire .remove-image {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
}

.chat-bot-inquire .chat-bot-inquire-complete-button-sc {
  margin-top: 20px;
}

.chat-bot-inquire .chat-bot-inquire-complete-button-sc a {
  display: block;
  width: 100%;
  height: 45px;
  line-height: 45px;
  background: #7c5aff;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
}

.chat-bot-inquire .chat-bot-inquire-complete-button-sc a:hover {
  opacity: 0.9;
}

.chatbot-product-choice-popup-wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  z-index: 999990;
  display: none;
}

.chatbot-product-choice-popup-wrapper .overlay-sc {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
  position: absolute;
  top: 0px;
  left: 0px;
  display: none;
}

.chatbot-product-choice-popup-wrapper .popup-inner-sc {
  max-width: 1024px;
  width: 500px;
  height: auto;
  max-height: calc(-100px + 100vh);
  position: relative;
  z-index: 100;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: rgb(245, 246, 248);
  overflow-y: auto;
  border-radius: 10px;
}

.chatbot-product-choice-popup-wrapper .popup-close-sc {
  position: relative;
  z-index: 100;
  cursor: pointer;
}

.chatbot-product-choice-popup-wrapper .popup-close-sc .icon-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: rgb(17, 17, 17);
}

.chatbot-product-choice-popup-wrapper .popup-container-sc {
  padding: 0px 30px 60px;
  background-color: rgb(255, 255, 255);
  height: 670px;
  overflow: auto;
}

.chatbot-product-choice-popup-wrapper .gallery-box-sc {
  display: inline-block;
  padding: 0px 5px;
  width: 20%;
  box-sizing: border-box;
}

.chatbot-product-choice-popup-wrapper .gallery-box-sc .gallery {
  width: 100%;
  height: 80px;
  position: relative;
  border-radius: 10px;
}

.chatbot-product-choice-popup-wrapper .gallery-sc {
  margin: 15px 0px 0px;
  position: relative;
  border-radius: 5px;
  width: 82px;
  height: 80px;
  cursor: pointer;
}

.chatbot-product-choice-popup-wrapper .gallery-box-sc .gallery div {
  position: relative;
  display: inline-block;
  border: 1px solid rgb(238, 238, 238);
  margin-bottom: 20px;
}

.chatbot-product-choice-popup-wrapper .gallery-box-sc .gallery a {
  position: absolute;
  display: block;
  width: 15px;
  height: 15px;
  top: -4px;
  right: -4px;
  background: url(/images/close_button.svg) center center / contain no-repeat
    rgb(238, 238, 238);
  border-radius: 50%;
}

.chatbot-product-choice-popup-wrapper .order-title-sc {
  border-bottom: 1px solid rgb(233, 233, 233);
  padding: 30px 0px 20px;
}

.chatbot-product-choice-popup-wrapper .order-title-sc h2 {
  color: rgb(38, 25, 25);
  font-size: 24px;
  font-weight: 700;
  line-height: 160%;
  letter-spacing: -0.48px;
}

.chatbot-product-choice-popup-wrapper .popup-container-sc::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    rgba(255, 255, 255, 0) 0%,
    rgb(255, 255, 255) 100%
  );
}

.chatbot-product-choice-popup-wrapper .container-sc {
  overflow-y: scroll;
}

.chatbot-product-choice-popup-wrapper .wrapper-sc {
  padding: 20px 0px;
  border-bottom: 1px solid rgb(238, 238, 238);
}

.chatbot-product-choice-popup-wrapper .order-sc {
  cursor: pointer;
  transition: 0.5s;
  display: block;
}

.chatbot-product-choice-popup-wrapper .order-img-sc {
  display: inline-block;
  width: 85px;
  height: 85px;
  border-radius: 10px;
}

.chatbot-product-choice-popup-wrapper .order-item-sc {
  display: inline-block;
  padding-left: 15px;
  vertical-align: top;
}

.chatbot-product-choice-popup-wrapper .order-item-sc .product_name {
  margin: 3px 0px 0px;
  color: rgb(102, 102, 102);
  font-size: 14px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: -0.28px;
}

.chatbot-product-choice-popup-wrapper .order-item-sc p:nth-of-type(2) {
  color: rgb(0, 0, 0);
  font-size: 16px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: -0.32px;
}

.chatbot-product-choice-popup-wrapper .order-item-sc span {
  color: rgb(102, 102, 102);
  font-size: 13px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: -0.26px;
}

.chatbot-product-choice-popup-wrapper .order-item-sc small {
  position: relative;
  padding-left: 20px;
  color: rgb(124, 90, 255);
  font-weight: 400;
}

.chatbot-product-choice-popup-wrapper .order-item-sc small::after {
  position: absolute;
  content: "";
  top: 5px;
  left: 8px;
  height: 10px;
  border-right: 1px solid rgb(224, 224, 224);
}

.chatbot-product-choice-popup-wrapper .order-sc input[type="checkbox"] {
  display: none;
}

.chatbot-product-choice-popup-wrapper .order-check-sc {
  position: relative;
  display: inline-block;
  float: right;
  transform: translateY(80%);
  width: 60px;
  height: 45px;
  line-height: 43px;
  border-radius: 10px;
  background: rgb(124, 90, 255);
}

.chatbot-product-choice-popup-wrapper .order-check-sc p {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.26px;
  text-align: center;
  color: rgb(255, 255, 255);
  cursor: pointer;
  margin: 0;
}

.chatbot-product-choice-popup-wrapper .wrapper-sc.inquiry-product-sc {
  position: relative;
}

.chatbot-product-choice-popup-wrapper .wrapper-sc.inquiry-product-sc .order-check-sc {
  position: absolute;
  right: 0;
}

/* FAQ Styles */
.modnmedi-chatbot-faq-container {
  position: relative;
  border-top: 1px solid #f3f4f6;
}

.modnmedi-chatbot-faq-categories-wrapper {
  padding: 0.75rem;
}

.modnmedi-chatbot-faq-categories {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem; /* For scrollbar space */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.modnmedi-chatbot-faq-categories::-webkit-scrollbar {
  display: none; /* Chrome, Safari, and Opera */
}

.modnmedi-chatbot-faq-categories::-webkit-scrollbar-track {
  background: #f9fafb;
}

.modnmedi-chatbot-faq-categories::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 10px;
  border: 3px solid #f9fafb;
}

.modnmedi-chatbot-faq-category {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 0.5rem;
  color: #374151;
  font-weight: 500;
}

.modnmedi-chatbot-faq-category:last-child {
  margin-right: 0;
}

.modnmedi-chatbot-faq-category:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.modnmedi-chatbot-faq-category.inquiry-button {
  background-color: #f3e8ff;
  border-color: #d8b4fe;
  color: #7c5aff;
  font-weight: 500;
}

.modnmedi-chatbot-faq-posts-wrapper {
  position: absolute;
  bottom: 100%; 
  left: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  max-height: 250px;
  overflow-y: auto;
  padding: 0.5rem;
  
  /* Scrollbar Hide */
  -ms-overflow-style: none;
  scrollbar-width: none;
  
  /* Animation */
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom center;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.modnmedi-chatbot-faq-posts-wrapper::-webkit-scrollbar {
    display: none;
}

.modnmedi-chatbot-faq-posts-wrapper.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.modnmedi-chatbot-faq-posts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

button.modnmedi-chatbot-faq-post {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #374151;
  transition: background-color 0.2s;
}

button.modnmedi-chatbot-faq-post:hover {
  background-color: #f3f4f6;
}

button.modnmedi-chatbot-faq-post.back-button {
  font-weight: 600;
  color: #7c5aff;
  margin-top: 0.25rem;
  border-top: 1px solid #f3f4f6;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .chat-bot-inquire .modal-wrap {
    padding: 15px;
  }

  .chat-bot-inquire .gallery-box-sc {
    width: calc(33.33% - 7px);
  }

  .chat-bot-inquire .gallery-sc {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .chat-bot-inquire .modal-wrap {
    width: 90%;
  }
  .chat-bot-inquire .gallery-box-sc {
    width: 60px;
    height: 60px;
  }
  .chat-bot-inquire .gallery-sc {
    width: 60px;
    height: 60px;
  }
}

/* 만족도 평가 UI 스타일 */
.modnmedi-chatbot-satisfaction {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background: #f0f0f0;
  border-radius: 0.5rem;
  border: 1px solid #f0f0f0;
}

.modnmedi-chatbot-satisfaction .satisfaction-text {
  font-size: 0.875rem;
  color: rgb(102, 102, 102);
  margin-bottom: 0.5rem;
  text-align: center;
}

.modnmedi-chatbot-satisfaction .satisfaction-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.modnmedi-chatbot-satisfaction .satisfaction-btn {
  padding: 0.375rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modnmedi-chatbot-satisfaction .satisfaction-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.modnmedi-chatbot-satisfaction .satisfaction-btn.yes-btn {
  background: rgb(124, 90, 255);
  color: #fff;
  border-color: rgb(124, 90, 255);
}

.modnmedi-chatbot-satisfaction .satisfaction-btn.yes-btn:hover {
  opacity: 0.8;
}

.modnmedi-chatbot-satisfaction .satisfaction-btn.no-btn {
  background: #ababab;
  color: #fff;
  border-color: #ababab;
}

.modnmedi-chatbot-satisfaction .satisfaction-btn.no-btn:hover {
  opacity: 0.8;
}

.modnmedi-chatbot-satisfaction .satisfaction-inquiry-btn {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  background: #7c5aff;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modnmedi-chatbot-satisfaction .satisfaction-inquiry-btn:hover {
  background: #6d47ff;
}

.modnmedi-chatbot-satisfaction .satisfaction-inquiry-btn:disabled {
  background: #9ca3af;
  color: #f3f4f6;
  cursor: not-allowed;
}

.modnmedi-chatbot-satisfaction .satisfaction-inquiry-btn:disabled:hover {
  background: #9ca3af;
}

/* FAQ 카테고리 영역의 1:1 문의하기 버튼은 FAQ 버튼과 동일한 스타일 */
.modnmedi-chatbot-faq-categories-wrapper .satisfaction-inquiry-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 14px;
  color: #495057;
  margin-top: 8px;
  width: 100%;
  display: block;
}

.modnmedi-chatbot-faq-categories-wrapper .satisfaction-inquiry-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.modnmedi-chatbot-faq-categories-wrapper .satisfaction-inquiry-btn:disabled {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.5;
}


.modnmedi-chatbot-tab-button p {
  margin: 0;
}

@media (max-width: 768px) {
  .modnmedi-chatbot-toggle{
    width: 50px;
    height: 50px;
  }
}
