#chatContent .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
#chatContent .table thead th {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}
#chatContent .table tbody td {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 12px;
}
#chatContent .table.pretty tbody tr:hover {
  background: #f8fafc;
}
#chatContent .table.compact td,
#chatContent .table.compact th {
  padding: 8px 10px;
}
#chatContent .best_btn {
  transition: transform 0.1s;
}
#chatContent .best_btn.liked {
  transform: scale(1.05);
}

#chatStatus{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  z-index: 1000111;
}

.chatbot_container:has(#chatContent.active){
  display: block;
}
.chatbot_container {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000111;
  display: none;
}

.chatbot_welcome_link{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  overflow-x: auto;
  width: 100%;
  gap:10px;
  padding-bottom: 10px;
}
.chatbot_welcome_link_item{
  display: flex;
  width: 120px;
  padding-bottom: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--g-10, #E6E8EA);
  background: var(--g-00, #FFF);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08);

}

.chatbot_welcome_link_item:nth-child(odd) .icon{
  background-color: #F8F2FD;
}

.chatbot_welcome_link_item:nth-child(even) .icon{
  background-color: #E8D8F6;
}

.chatbot_welcome_link_item .icon{
  display: flex;
  height: 80px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-radius: 12px 12px 0 0;
}

.chatbot_welcome_link_item .text{
  display: flex;
  width: 120px;
  padding-bottom: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 0 0 12px 12px;
}

.copy-toast {
  position: absolute;
  background: rgba(100, 200, 255, 0.8); /* 파스텔 블루 */
  color: #fff;
  font-size: 0.75em;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
}
.copy-toast.show {
  opacity: 1;
  transform: translateY(-50px);
}

#chatContent {
  position: absolute;
  width: 1200px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  border: 1px solid var(--g-10, #e6e8ea);
  background: #EFEDF0;
  box-shadow: 0 0 60px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 0 30px 20px;
}

@media (max-width: 1200px) {
  #chatContent {
    width: 100%;
    left: 0;
    top: 0;
    transform: none;
  }
}



@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}
#chatStatus .spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid #eee;
  border-top: 3px solid #009688;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 7px;
}

#chatContent.active {
  display: block;
}

#chatContent header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--g-00, #fff);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  height: 56px;
  padding: 0 20px;
  gap: 8px;
  margin: 0 -30px;
}
#chatContent header strong {
  font-size: 20px;
}
#chatContent header strong span {
  color: #6719A6;
  font-size: 1em;
}
#chatContent header em {
  color: #999;
  font-size: 16px;
  display: inline-block;
  position: relative;
  font-style: normal;
  padding-left: 17px;
  margin-left: 17px;
}
#chatContent header em::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background-color: #ddd;
  width: 1px;
  height: 14px;
}
#chatContent .close_chat {
  display: block;
  font-size: 0;
  width: 20px;
  height: 20px;
  background: url(/food24/static/front/common/images/chatbot/chat-close.svg)
    no-repeat 50% 50%;
}
#chatContent .conversation {
  height: 550px;
  overflow-y: auto;
  padding: 20px 30px;
  margin: 0 -30px;
}

.welcome-message{
  display: flex;
  align-items: center;
  gap:0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.welcome-text{}
.welcome-text h3{
  background: linear-gradient(90deg, #6719A6 0%, #FF004E 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 25px;
}
.welcome-text p{
  color: #6719A6;
  text-decoration: underline;
  font-size: 15px;
  margin-top: 4px;
}

#chatContent .user-input {
  width: 100%;

}
#chatContent .user-input .window {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #6719A6 0%, #FF004E 100%);
  padding: 3px;
  border-radius: 28px;
}
#chatContent .user-input .chat-input {
  height: 50px !important;
  padding: 13px 50px 5px 20px;
  width: 100%;
  flex: 1;
  display: block;
  border-radius: 28px;
  background: #fff;
  resize: none;
  overflow-y: auto;
}

#chatContent .user-input .chat-send {
  background: url(/food24/static/front/common/images/chatbot/chat-submit.svg) no-repeat 50% 50%;
  width: 32px;
  height: 32px;
  font-size: 0;
  flex-shrink: 0;
  position: absolute;
  right:16px;
  top: 12px;
}
#chatContent .block {
  padding: 25px 0;
}
#chatContent .time {
  color: #6D7882;
  font-size: 13px;
  margin-top: 5px;
}
#chatContent .msg-container .time {
  text-align: right;
}
#chatContent .input-msg {
  text-align: right;
}
#chatContent .input-msg span {
  background-color: #2DA34F;
  color: #fff;
  border-radius: 12px 0 12px 12px;
  background: #6719A6;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08);
  display: inline-block;
  text-align: left;
  padding: 15px;
  font-weight: 400;
  font-size: 17px;
}
#chatContent .response {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}
#chatContent .response .name {
  color: #131416;
  font-weight: 700;
  font-size: 17px;
  padding-left: 36px;
  height: 32px;
  line-height: 32px;
  background: url(/food24/static/front/common/images/chatbot/foodri.png) no-repeat
    0 0;
  margin-bottom: 5px;
}

.respon-utils-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 15px;
}
.respon-utils-container .time{
  margin-top: 0 !important;
}
.respon-utils-btns {
  display: flex;
  align-items: center;
  gap: 0 10px;
}
.respon-utils-btns button{
  background-repeat: no-repeat;
  background-position: 50% 50%;
  width: 20px;
  height: 20px;
  font-size: 0;
}
.best_btn {
  background-image: url(/food24/static/front/common/images/chatbot/icon-01.png);
}

.best_btn.liked {
  background-image: url(/food24/static/front/common/images/chatbot/icon-01-liked.png);
}

.worst_btn {
  background-image: url(/food24/static/front/common/images/chatbot/icon-02.png);
}

.worst_btn.liked {
  background-image: url(/food24/static/front/common/images/chatbot/icon-02-liked.png);
}

.copy_btn {
  background-image: url(/food24/static/front/common/images/chatbot/icon-03.png);
}

#chatContent .response .text-g {
  border-radius: 4px 20px 20px 20px;
  background: var(--g-00, #fff);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08);
  min-height: 48px;
  padding: 16px;
  color: #464C53;
  font-weight: 400;
}
#chatContent .response .text-g+.text-g{
  margin-top: 12px;
}

.item-box-container {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  max-width: 100%;
}

.item-box {

  display: flex;
  padding: 32px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid var(--g-20, #CDD1D5);
  background: var(--g-00, #FFF);
  width: 638px;
  flex-shrink: 0;
}

#chatContent .response .item-box .pbanc-title {
  color: var(--g-95, #131416);
  
  font-size: 19px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
#chatContent .response .item-box .pbanc-description,
#chatContent .response .item-box .pbanc-date {
  color: var(--g-95, #131416);
  
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
#chatContent .response .item-box:hover {
  cursor: pointer;
}

#chatContent .response .text-g .btn-add {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 3px;
}
#chatContent .response .text-g .btn-add a {
  display: block;
  background-color: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  line-height: 1;
  text-align: center;
  padding: 12px 0;
  width: calc(50% - 4px);
  margin: 4px 0;
}
#chatContent .response .link-place {
  display: flex;
  flex-wrap: wrap;
  margin: -4px;
  padding-top: 8px;
}
#chatContent .response .link-place a {
  display: block;
  background-color: #fff;
  border: 1px solid #6719A6;
  color: #6719A6;
  transition: all 0.15s;
  padding: 10px 16px;
  border-radius: 25px;
  margin: 4px;
}
#chatContent .response .link-place a::after {
  content: ">";
  display: inline-block;
  margin-left: 10px;
}
#chatContent .response .link-place a:hover,
#chatContent .response .link-place a:focus {
  color: #fff;
  background-color: #6719A6;
}
#chatContent .response .link-place a:hover::after,
#chatContent .response .link-place a:focus::after {
  color: #fff;
}

#chatContent .response .link-item{
  display: inline-block;
  vertical-align: top;
  margin-top: 5px;
}
#chatContent .response .link-item a{
  display: inline-flex;
  height: 40px;
  padding: 0 12px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  background: var(--g-10, #E6E8EA);
  font-size: 15px;
  color: #131416;
}

#chatContent .response .link-item a i{
  width: 9px;
  height: 12px;
  background: url(/food24/static/front/common/images/chatbot/link-item-arrow.svg) no-repeat 50% 50%;
}
.item-category .badge{
  display: flex;
  height: 40px;
  padding: 0 24px;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  border: 1px solid var(--p-10, #6719A6);
  background: var(--g-00, #FFF);
  white-space: nowrap;
  font-size: 17px;
  color: #299347;
}

.item-content dl{
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 10px;
}
.item-content dl dt{
  color: #8A949E;
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
}
.item-content dl dd{
  color: #58616A;
  font-size: 17px;
}

.item-footer{
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #6719A6;
}
.item-footer .badge{
  display: flex;
  height: 24px;
  padding: 2px 4px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  background: #DBF5E2;
  font-size: 15px;
  color: #6719A6;
}

.item-footer .badge.off{
  background: #E4E4E4;
  color: #8E8E8E;
}


.chat_window.hide {
  display: none;
}

.chat_window .txt {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* 뷰포트의 높이를 100%로 설정하여 전체 화면 높이를 채웁니다. */
}

/* 챗봇이 표시된 상태의 스타일 */
.chat_window {
  z-index: 1000;
}

.chat_window {
  position: fixed; /* 고정 위치로 설정 */
  width: 400px; /* 원하는 너비로 설정 */
  height: 600px;
  border-radius: 30px;
  bottom: 70px; /* 아래쪽으로부터의 거리 */
  right: 100px; /* 오른쪽으로부터의 거리 */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background-color: rgba(248, 248, 248, 0.5);
  overflow: hidden;
  /* display: none; */
}
.user_message_template,
.sub_message_template {
  display: none;
}

.top_menu {
  background-color: #fff;
  width: 100%;
  padding: 20px 0 15px;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
}

.top_menu .buttons {
  margin: 3px 0 0 20px;
  position: absolute;
}

.top_menu .buttons .button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  position: relative;
}

.top_menu .buttons .button.close_button {
  background-color: #f5886e;
}

.top_menu .buttons .button.minimize {
  background-color: #fdbf68;
}

.top_menu .buttons .button.maximize {
  background-color: #a3d063;
}

.top_menu .title {
  text-align: center;
  color: #bcbdc0;
  font-size: 20px;
}

.messages {
  position: relative;
  list-style: none;
  padding: 20px 10px 0 10px;
  margin: 10px;
  height: 450px;
  overflow: scroll;
}

.messages .message {
  clear: both;
  overflow: hidden;
  margin-bottom: 5px;
  transition: all 0.5s linear;
  opacity: 0;
  text-align: left;
}

.messages .message.left .avatar {
  background-color: #f5886e;
  float: left;
}

.messages .message.left .text_wrapper {
  /* background-color: #ffe6cb; */
  background-color: white;
  /* margin-left: 20px; */
  /* border-radius: 5em; */
  border: 1px solid black;
}

.messages .message.left .text_wrapper::after,
.messages .message.left .text_wrapper::before {
  right: 100%;
  border-right-color: #ffe6cb;
}

.messages .message.left .text {
  color: #c48843;
}

.messages .message.right .avatar {
  visibility: collapse;
  background-color: #fdbf68;
  float: right;
}
.messages .message.left .avatar {
  background-image: url(../src/img/ci_small.jpg);
  background-size: 1.9cm;
  background-position: center;
  /* background-color: #f5886e;
    */
  float: left;
  margin: 1em;
}

.messages .message.right .text_wrapper {
  background-color: #c7eafc;
  margin-right: 5px;
  float: right;
  border: 1px solid black;
}

.messages .message.right .text_wrapper::after,
.messages .message.right .text_wrapper::before {
  left: 100%;
  border-left-color: #c7eafc;
}

.messages .message.right .text {
  color: #45829b;
}

.messages .message.appeared {
  opacity: 1;
}

.messages .message .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-block;
}

.messages .message .text_wrapper {
  display: inline-block;
  padding: 10px;
  border-radius: 6px;
  width: calc(100% - 10px);
  min-width: 100px;
  position: relative;
}

.messages .message .text_wrapper::after,
.messages .message .text_wrapper:before {
  top: 18px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.messages .message .text_wrapper::after {
  border-width: 13px;
  margin-top: 0px;
}

.messages .message .text_wrapper::before {
  border-width: 15px;
  margin-top: -2px;
}

.messages .message .text_wrapper .text {
  font-size: 18px;
  font-weight: 300;
}

.bottom_wrapper {
  position: relative;
  width: 100%;
  background-color: #fff;
  padding: 10px 20px;
  position: absolute;
  bottom: 0;
}

.bottom_wrapper .message_input_wrapper {
  display: inline-block;
  height: 50px;
  border-radius: 25px;
  border: 1px solid #bcbdc0;
  /* width: calc(100% - 160px); */
  width: 300px;
  position: relative;
  padding: 0 20px;
}

.bottom_wrapper .message_input_wrapper .message_input {
  border: none;
  height: 100%;
  box-sizing: border-box;
  width: calc(100% - 40px);
  position: absolute;
  outline-width: 0;
  color: gray;
}

.bottom_wrapper .send_message {
  width: 50px;
  height: 50px;
  display: inline-block;
  border-radius: 50px;
  background-color: #a3d063;
  border: 2px solid #a3d063;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s linear;
  text-align: center;
  float: right;
}

.bottom_wrapper .send_message:hover {
  color: #a3d063;
  background-color: #fff;
}

.bottom_wrapper .send_message .text {
  font-size: 18px;
  font-weight: 300;
  display: inline-block;
  line-height: 48px;
}

.message_template {
  display: none;
}

.dynamic-button {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 25px; /* 이 부분이 버튼의 둥근 모양을 만들어줍니다. */
  background-color: white;
  border: 3px solid #87cefa; /* 하늘색 테두리 */
  color: #87cefa; /* 글씨 색도 하늘색으로 설정 */
  text-decoration: none; /* 링크의 밑줄 제거 */
  margin: 5px; /* 버튼 간의 간격 설정 */
  transition: 0.3s; /* 호버 효과 시간 */
}

.dynamic-button:hover {
  background-color: #87cefa; /* 버튼 위에 마우스를 올렸을 때의 배경색 */
  color: white; /* 버튼 위에 마우스를 올렸을 때의 글씨 색 */
}
