@charset "utf-8";
/*pretendard*/
@import url("../css/pretendard.css");

/*root*/
:root {
  --color--wh: #ffffff;
  --color--primary: #596ced;
  --color--bk: #333333;
  --color--bk--light: #666666;
  --bg--primary: #eef2fe;
  --bg--bk: #f4f4f4;
  --bg-gray: #eeeff1;
  --border: #e5e5e5;
  --color--input-place: #888888;
}

/* common */
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--color--bk);
  word-break: keep-all;
  background-color: var(--color--wh);
  font-family: "Pretendard", sans-serif;
  word-wrap: break-word;
  position: relative;
  /* overflow: auto; */
  letter-spacing: -0.25px;
}
.wrap {
  width: 100%;
  height: 100%;
}

/* gate */
.gate {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 3.75rem;
}
.gate .container {
  width: 100%;
  max-width: 764px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}
.gate .content {
  padding-top: 3.125rem;
  width: 100%;
}

/* form */
form {
  width: 100%;
}
.textarea-wrap {
  width: 100%;
  position: relative;
  border-radius: 1rem;
  background-color: var(--color--wh);
  box-shadow: rgba(0, 0, 0, 0.06) 0px 8px 35px 0px;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0.625rem 1rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
}

.textarea-wrap textarea {
  font-family: "Pretendard", sans-serif;
  margin: 0;
  border: none;
  flex: 1 1 0%;
  background-color: transparent;
  line-height: 1.5rem;
  color: var(--color--bk);
  font-size: 1rem;
  height: 20px;
  overflow-y: auto;
  scrollbar-width: none;
  width: 100%;
  margin-right: 0.5rem;
}
.textarea-wrap .btn-wrap {
  display: flex;
  align-self: flex-end;
}
.textarea-wrap .btn-submit {
  width: 2rem;
  height: 2rem;
  background: url("../images/ic-submit-xlg.svg") no-repeat center/cover;
}
.textarea-wrap .btn-submit.on {
  background: url("../images/ic-submit-on-xlg.svg") no-repeat center/cover;
}
/* bottom-wrap */
.bottom-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* file-wrap */
.file-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.file-wrap .item {
  font-size: 0.8125rem;
  color: var(--color--bk--light);
  padding: 0.5rem 0.625rem;
  background-color: var(--color--wh);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  min-height: 2rem;
  display: flex;
  align-items: center;
}

.file-wrap .item.active {
  background-color: var(--color--primary);
  border-color: var(--color--primary);
  color: var(--color--wh);
}

/*thumbsup-wrap*/
.thumbsup-wrap {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.thumbsup-wrap > div {
  width: 2rem;
  height: 2rem;
  border-radius: 100px;
  background-color: #f5f5f5;
  background-size: 1rem;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: all 0.3s;
}
.thumbsup-wrap > div:hover {
  background-color: #e5e5e5;
}
.thumbsup-wrap .thumbs-up {
  background-image: url("../images/ic-thumbsup-sm.svg");
}
.thumbsup-wrap .thumbs-up.on {
  background-image: url("../images/ic-thumbsup-on-sm.svg");
}
.thumbsup-wrap .thumbs-down {
  background-image: url("../images/ic-thumbsdown-sm.svg");
}
.thumbsup-wrap .thumbs-down.on {
  background-image: url("../images/ic-thumbsdown-on-sm.svg");
}
/* ex-wrap */
.ex-wrap {
  padding-top: 2rem;
}
.ex-wrap .item-wrap {
  display: flex;
  gap: 1rem;
  /* align-items: flex-start; */
}
.ex-wrap .item-wrap:nth-child(n + 2) {
  padding-top: 1rem;
}
.ex-wrap .item-wrap .item {
  width: 100%;
  border: 1px solid var(--border);
  padding: 1.125rem 1rem;
  border-radius: 0.875rem;
  background-color: var(--color--wh);
}
.ex-wrap .item-wrap .item ul {
  display: flex;
  align-items: center;
}
.ex-wrap .item-wrap .item .ex {
  font-size: 0.75rem;
  padding: 0.375rem 0.625rem;
  color: var(--color--primary);
  background-color: var(--bg--primary);
  border-radius: 100px;
  line-height: 1;
}
.ex-wrap .item-wrap .item .text {
  font-size: 0.9375rem;
  padding-left: 0.75rem;
}

/*btn*/
.btn {
  white-space: nowrap;
}
.btn-md {
  font-size: 0.9375rem;
  height: 3rem;
  font-weight: 500;
  padding: 0.8125rem 1rem;
  border-radius: var(--border--radius);
  width: 100%;
}
.btn-gray {
  color: var(--color--bk);
  background-color: var(--bg-gray);
}
.btn-primary {
  color: var(--color--wh);
  background-color: var(--color--primary);
}

/*modal*/
.modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: left;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  overflow: auto;
}

.layer {
  display: table;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

.layer .layer-content {
  display: table-cell;
  vertical-align: middle;
  position: relative;
  top: 0;
  padding: 2rem 1.25rem;
  width: 100%;
}

.modal-inner {
  position: relative;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: auto;
  border-radius: 0.75rem;
  overflow: hidden;
  max-width: 750px;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  z-index: 9999;
  background-image: url("../images/ic-close.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

.modal-content {
  height: 100%;
}

.modal.block {
  display: block;
}

.modal-header {
  padding: 2rem 1.5rem 0;
  background: var(--color--wh);
}
.modal-header.p-t {
  padding-top: 0.5rem !important;
}

.modal-header .title {
  font-size: 1.125rem;
  font-weight: 700;
  padding-right: 1.75rem;
}

.modal-body {
  padding: 1rem 1.5rem 2rem;
  word-wrap: break-word;
  background: var(--color--wh);
  font-size: 0.9375rem;
}

.modal-body.only {
  padding-top: 2rem;
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-footer {
  display: flex;
}

.modal-footer button {
  border-radius: 0;
  width: 100%;
}

/*main*/
.main {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}
.main .container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  height: 100%;
  width: 100%;
  max-width: 700px;
  min-width: 400px;
}

.main .ysearch {
  width: 100%;
  /* background-color: var(--color--wh); */
  padding: 1rem 1rem 0.5rem;
}
.main .ysearch img {
  width: 140px;
}
.main .content {
  width: 100%;
  /* background-color: var(--color--wh); */
  padding: 0 1rem 1.25rem;
}

/*ifram*/
.main .ifram-wrap {
  width: 100%;
  min-width: 1056px;
  height: 100%;
  padding-left: 1rem;
  overflow: hidden;
}
.main .ifram-wrap iframe {
  margin: 0 auto;
}

/*message-wrap*/
.main .message-wrap {
  flex: 1;
  padding: 0 1rem 2rem;
  overflow: auto;
}
.main .message-wrap .article-wrap {
  padding: 1rem 0;
}
.main .message-wrap article {
  padding: 0.75rem 1rem;
  border-radius: 1.5rem;
  position: relative;
  display: inline-block;
  max-width: 80%;
  font-size: 0.9375rem;
}
.main .message-wrap .user {
  display: flex;
  justify-content: flex-end;
}
.main .message-wrap .user article {
  background-color: var(--bg--primary);
  color: var(--color--primary);
}
.main .message-wrap .ai article {
  background-color: var(--bg--bk);
}
.main .message-wrap article:after {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: absolute;
  bottom: 0;
}
.main .message-wrap .user article:after {
  background-image: url("../images/ic-tail-user.svg");
  right: 0;
}
.main .message-wrap .ai article:after {
  background-image: url("../images/ic-tail-ai.svg");
  left: 0;
}
.main .message-wrap .eyulchon {
  padding-bottom: 0.625rem;
}

.main .message-wrap .bottom-btn {
  padding: 0.375rem 0 0 0.5rem;
  display: flex;
}
.main .message-wrap .bottom-btn button {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-size: 1rem;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.4;
}
.main .message-wrap .bottom-btn button:hover {
  background-color: #f5f5f5;
  opacity: 1;
}

.ic-edit {
  background-image: url("../images/ic-edit-sm.svg");
}
.ic-search {
  background-image: url("../images/ic-search-sm.svg");
}

/*tippy*/
.tippy-content {
  font-size: 0.75rem;
}
