@charset "utf-8";

.chatbot-wrap {
  --cl-chatbot-bg-color: #fff;
  --cl-chatbot-text-color: #5c6064;
  --cl-chatbot-font-family: 'Verdana, Tahoma, "Apple Gothic", "Malgun Gothic", Dotum, "돋움", sans-serif !important';
  --cl-chatbot-font-size-base: 14px;
  --cl-chatbot-header-h: 60px;
  --cl-chatbot-footer-h: 70px;
  --cl-chatbot-max-width: 316px;

  --cl-chatbot-primary-color: #6930b8; /* builder color */
  --cl-chatbot-primary-color-light1: #f0ebf8;
  --cl-chatbot-primary-color-light1-on: #000000;
  --cl-chatbot-danger-color: #ff784d;
  --cl-chatbot-link-color: #00c;
  --cl-chatbot-border-color: #dedede;

  --cl-chatbot-button-border: 1px solid var(--cl-chatbot-border-color);
  --cl-chatbot-button-radius: 8px;
  --cl-chatbot-buttom-h: 37px;

  --cl-chatbot-input-text: #363636;
  --cl-chatbot-input-border: 1px solid #e4e4e4;
  --cl-chatbot-input-radius: 4px;
  --cl-chatbot-input-focus: #409eff;
  --cl-chatbot-input-placeholder: #a8abb2;

  --cl-chatbot-disabled-bg-color: #f5f5f5;
  --cl-chatbot-disabled-border-color: #dcdfe6;
  --cl-chatbot-disabled-text-color: #a8abb2;

  --cl-chatbot-message-user-bg-color: var(--cl-chatbot-primary-color-light1);
  --cl-chatbot-message-user-border-color: var(--cl-chatbot-primary-color-light1);
  --cl-chatbot-message-user-text-color: var(--cl-chatbot-primary-color-light1-on);
  --cl-chatbot-message-bot-bg-color: #ffffff;
  --cl-chatbot-message-bot-border-color: #828282;
  --cl-chatbot-message-bot-text-color: #363636;

  background-color: var(--cl-chatbot-bg-color);
  font-size: var(--cl-chatbot-font-size-base);
  line-height: 1.5em;
}

.chatbot-wrap * {
    font-family: var(--cl-chatbot-font-family);
	box-sizing: border-box;
}
.chatbot-wrap input::placeholder,
.chatbot-wrap textarea::placeholder {
  color: var(--cl-chatbot-input-placeholder);
}
.chatbot-wrap input::-ms-input-placeholder,
.chatbot-wrap textarea::-ms-input-placeholder {
  color: var(--cl-chatbot-input-placeholder);
}
.chatbot-wrap input[type="text"]:focus,
.chatbot-wrap textarea:focus {
  border-color: var(--cl-chatbot-input-focus);
}
.chatbot-wrap input[type="text"],
.chatbot-wrap textarea {
  border: var(--cl-chatbot-input-border);
  color: var(--cl-chatbot-input-text);
  font-size: var(--cl-chatbot-font-size-base);
  font-family: var(--cl-chatbot-font-family);
}
.chatbot-wrap textarea {
  max-width: 100% !important;
  padding: 8px 12px;
  outline: 0;
  resize: none;
}
.btn-chatbot-wrap {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}
.chat-btn {
  display: inline-block;
  padding: 0;
  border: 0;
  vertical-align: top;
  cursor: pointer;
  outline: 0;
  background-color: transparent;
}
.chat-btn.btn-chatbot {
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: url("../image/chatbot_icon.gif") no-repeat 0 0;
  background-size: 100%;
}
.chat-btn.btn-send {
  width: 32px;
  height: 32px;
  background: url("../image/chatbot_send_btn_off.svg") no-repeat 0 0;
}
.chat-btn.btn-send.on {
  background-image: url("../image/chatbot_send_btn_on.svg");
}
.chat-btn.btn-input-del {
  width: 30px;
  height: 30px;
  border: 0;
  background: url("../image/chatbot_input_clear.svg") no-repeat center center;
}
.chat-btn.btn-save {
  border: 1px solid var(--cl-chatbot-primary-color);
  background: var(--cl-chatbot-primary-color);
  color: #fff;
}
.chat-btn.btn-save:hover,
.chat-btn.btn-save:focus {
  color: #fff;
}
.chat-btn.btn-save:disabled {
  border-color: var(--cl-chatbot-disabled-border-color);
  background: var(--cl-chatbot-disabled-bg-color);
  color: var(--cl-chatbot-disabled-text-color);
}
.chat-btn.btn-cancel {
  border: var(--cl-chatbot-button-border);
  background: #fff;
  color: var(--cl-chatbot-text-color);
}

.chatbot-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--cl-chatbot-header-h);
  background-color: var(--cl-chatbot-primary-color);
  text-align: center;
  z-index: 2;
}
.chatbot-header h1 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.chatbot-header .time {
  position: absolute;
  top: 20px;
  right: 20px;
  padding-left: 20px;
  background: url("../image/chatbot_time_icon.svg") no-repeat 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: normal;
  line-height: 20px;
}
.chatbot-content {
  overflow-y: auto;
  height: calc(100vh - var(--cl-chatbot-header-h) - var(--cl-chatbot-footer-h));
  padding: 0 20px 20px;
}
.chat-break {
  position: relative;
  padding: 10px 0;
  text-align: center;
  color: var(--cl-chatbot-text-color);
  font-size: 10px;
  line-height: 16px;
}
.chat-break::before {
  display: block;
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  top: 18px;
  border-top: 1px solid var(--cl-chatbot-border-color);
}
.chat-break > span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  color: var(--cl-chatbot-text-color);
  font-size: calc(var(--cl-chatbot-font-size-base) - 2px);
  line-height: 1.5em;
  background-color: var(--cl-chatbot-bg-color);
}
.chat-day.today {
  padding-left: 32px;
  background: var(--cl-chatbot-bg-color) url("../image/chatbot_calendar.svg") no-repeat 12px 0;
}
.chat-timeout {
  position: sticky;
  top: 0;
  margin: 0 -20px 20px;
  padding: 6px 0 5px;
  background-color: var(--cl-chatbot-danger-color);
  text-align: center;
  color: #fff;
  font-size: var(--cl-chatbot-font-size-base);
  z-index: 1;
}
.chatbot-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--cl-chatbot-footer-h);
  padding: 19px 20px 18px;
  border-top: 1px solid var(--cl-chatbot-border-color);
  background-color: #fff;
  z-index: 2;
}
.chatbot-input {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
}
.chatbot-input .input-text {
  flex: 1;
  position: relative;
}
.chatbot-input .input-text textarea {
  width: 100%;
  max-width: 100% !important;
  height: 32px;
  min-height: 32px;
  max-height: 108px;
  padding: 5px 30px 2px 12px;
  border-radius: var(--cl-chatbot-input-radius);
  color: #363636;
  line-height: 1.5em;
  vertical-align: top;
}
.chatbot-input .input-text .btn-input-del {
  position: absolute;
  right: 1px;
  top: 1px;
}
.chatbot-guide {
  margin: 8px 0 28px 0;
  padding: 12px;
  border-radius: 2px;
  border: 1px solid var(--cl-chatbot-border-color);
  background: #fff;
  color: var(--cl-chatbot-text-color);
  font-size: var(--cl-chatbot-font-size-base);
}
.chatbot-guide .title {
  font-weight: 700;
}
.chatbot-guide ul {
  margin: 0 0 4px 16px;
}
.chatbot-guide li {
  list-style: decimal;
}

.chat-wrap {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0;
}
.chat-wrap .message-box {
  position: relative;
}
.chat-wrap .message {
  max-width: var(--cl-chatbot-max-width);
  padding: 8px;
}
.chat-wrap .message a {
  color: var(--cl-chatbot-link-color);
  text-decoration: underline;
}
.chat-time {
  color: #828282;
  font-size: calc(var(--cl-chatbot-font-size-base) - 2px);
}
.chat-wrap.bot-talk .message {
  max-width: var(--cl-chatbot-max-width);
  padding: 8px 12px;
  border-radius: 16px 16px 16px 0px;
  border: 1px solid var(--cl-chatbot-message-bot-border-color);
  background: var(--cl-chatbot-message-bot-bg-color);
  color: var(--cl-chatbot-message-bot-text-color);
}
.chat-wrap.user-talk {
  justify-content: flex-start;
  flex-direction: row-reverse;
}
.chat-wrap.user-talk .message {
  border-radius: 16px 16px 0px 16px;
  border: 1px solid var(--cl-chatbot-message-user-border-color);
  background: var(--cl-chatbot-message-user-bg-color);
  color: var(--cl-chatbot-message-user-text-color);
}
.chat-button {
  display: flex;
  gap: 8px;
}
.chat-button button {
  height: var(--cl-chatbot-buttom-h);
  padding: 8px;
  border-radius: var(--cl-chatbot-button-radius);
  border: var(--cl-chatbot-button-border);
  background: #fff;
  font-size: var(--cl-chatbot-font-size-base);
  cursor: pointer;
}
.chat-button button.active {
  background: var(--cl-chatbot-primary-color);
  border-color: var(--cl-chatbot-primary-color);
  color: #fff;
}
.chat-toast {
  padding: 8px;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: var(--cl-chatbot-button-radius);
  background: #363636;
  color: #fff;
  font-size: var(--cl-chatbot-font-size-base);
  text-align: center;
  transition: all 0.3s ease;
}
.chat-toast.open {
  bottom: 90px;
}

/* feedback popup */
.feedback-popup::before {
  display: none;
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.feedback-popup .feedback-inner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -250px;
  height: 250px;
  padding: 20px;
  border-radius: 12px 12px 0px 0px;
  background: #fff;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1;
}
.feedback-popup.open {
  display: block;
}
.feedback-popup.open::before {
  display: block;
}
.feedback-popup.open .feedback-inner {
  visibility: visible;
  opacity: 1;
  bottom: var(--cl-chatbot-footer-h);
}
.feedback-popup .feedback-inner textarea {
  width: 100%;
  height: 110px;
  border-radius: var(--cl-chatbot-input-radius);
}
.feedback-popup .feedback-inner .title {
  margin-bottom: 16px;
  font-size: var(--cl-chatbot-font-size-base);
  font-weight: 700;
  line-height: 1.2;
}
.feedback-popup .feedback-popup-button {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.feedback-popup .feedback-popup-button button {
  width: 60px;
  height: var(--cl-chatbot-buttom-h);
  padding: 8px;
  border-radius: var(--cl-chatbot-button-radius);
  font-size: var(--cl-chatbot-font-size-base);
}

/* loader */
.chat-loader-wrap {
  display: flex;
  align-items: center;
  width: 30px;
  height: 18px;
}
.chat-loader {
  display: block;
  position: relative;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-radius: 50%;
  background: #dedede;
  box-shadow: -11px 0 #fff, 11px 0 #fff;
  box-sizing: border-box;
  animation: chatLoading 1s linear infinite;
}

@keyframes chatLoading {
  0% {
    background: #dedede;
    box-shadow: -11px 0 #dedede, 11px 0 #363636;
  }
  33% {
    background: #dedede;
    box-shadow: -11px 0 #363636, 11px 0 #dedede;
  }
  66% {
    background: #363636;
    box-shadow: -11px 0 #dedede, 11px 0 #dedede;
  }
  100% {
    background: #dedede;
    box-shadow: -11px 0 #dedede, 11px 0 #363636;
  }
}
