* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', "Malgun Gothic", sans-serif;
  background: #adc2ce;
}

.kakao-wrap {
  min-height: 100vh;
  padding-bottom: 44px;
}

.chat-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: rgba(173, 194, 206, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-header h1 {
  font-size: 15px;
  font-weight: 700;
}

.header-left,
.header-right {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 24px;
  color: #000;
}

.header-left span {
  font-size: 15px;
}

.ico_icon{
  width: 21px;
  height: 21px;
  background: url(./imgs/ico_icon.png) 0 center no-repeat;
  background-size:16px 16px;
  float: right;

}

.icon_arrow {
  width: 22px;
  height: 51px;
  background: url(./imgs/ico_arrow.png) 0 center no-repeat;
  background-size:16px 16px;
  float: right;
  padding-right: 14px;
}

.icon_srch, .icon_menu {
  width: 22px;
  height: 51px;
  background: url(./imgs/ico_search.png) 0 center no-repeat;
  background-size: 22px 22px;
  float: right;
  padding-right: 14px;
}

.icon_menu{
  background: url(./imgs/ico_menu.png) 0 center no-repeat ;
  background-size: 22px 22px;
}

.chat-body {
  width: 640px;
  max-width: 100%;
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: 58px 14px 80px;
}

.message-row {
  display: flex;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(18px);
}

.message-row.show {
  animation: chatUp 0.45s ease forwards;
}

@keyframes chatUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-row.other {
  justify-content: flex-start;
}

.message-row.me {
  justify-content: flex-end;
}

.profile-img {
  width: 36px;
  height: 36px;
  margin-right: 8px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  margin-bottom: 4px;
  font-size: 12px;
  color: #222;
}

.bubble {
  position: relative;
  max-width: 250px;
  padding: 8px 9px;
  font-size: 13px;
  line-height: 1.45;
  color: #000;
  border-radius: 5px;
}

.bubble.white {
  background: #fff;
}

.bubble.yellow {
  width: 250px;
  background: #ffeb00;
}

.bubble.yellow::after {
  content: "";
  position: absolute;
  top: 8px;
  right: -7px;
  width: 0;
  height: 0;
  border-top: 6px solid #ffeb00;
  border-right: 8px solid transparent;
}

.thumb {
  width: 100%;
  height: 168px;
  margin-bottom: 7px;
  overflow: hidden;
  border: 1px solid #ccc;
  background: #eee;
}

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

.red {
  color: #f00;
}

.gray {
  color: #777;
}

.progress-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.status {
  width: 90px;
  text-align: center;
  font-size: 13px;
  color: #f00;
}

.progress {
  position: relative;
  flex: 1;
  height: 10px;
  overflow: hidden;
  border-radius: 20px;
  background: #adadadb7;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 20px;
  background: #777;
}

.progress em {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 8px;
  font-style: normal;
  color: #fff;
  transform: translate(-50%, -50%);
}


.final-bubble {
  padding-bottom: 0;
}

.final-bubble button {
  width: calc(100% + 18px);
  height: 40px;
  margin: 10px -9px 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.chat-input {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  height: 44px;
  padding: 6px 12px;
  background: #f7f7f7;
}

.chat-input button {
  width: 26px;
  height: 26px;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #fff;
  font-size: 20px;
  color: #777;
  line-height: 26px;
}

.input-box {
  flex: 1;
  height: 30px;
  border: 1px solid #ddd;
  border-radius: 30px;
  background: #fff;
}

.chat-input span {
  font-size: 23px;
  color: #777;
}

/* 팝업 */
.popup-dim {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(0, 0, 0, 0.45);
}

.popup-box {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  display: none;
  width: 300px;
  background: #543434;
  color: #fff;
  transform: translate(-50%, -50%);
}

.popup-box.show,
.popup-dim.show {
  display: block;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.popup-head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.popup-head img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.popup-head strong {
  font-size: 17px;
}

.popup-content {
  padding: 14px 20px 24px;
}

.popup-content p {
  font-size: 14px;
  line-height: 1.55;
}

.popup-content p span {
  color: #ffeb00;
}

.popup-content small {
  display: block;
  margin: 8px 0 14px;
  font-size: 11px;
}

.phone-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.phone-row select,
.phone-row input {
  width: 33.333%;
  height: 44px;
  border: 0;
  background: #fff;
  font-size: 14px;
  color: #333;
  text-align: center;
}

.agree {
  display: block;
  font-size: 11px;
  color: #ddd;
  text-align: center;
}

.submit-btn {
  width: 100%;
  height: 43px;
  margin-top: 10px;
  border: 0;
  background: #ffeb00;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
}
/* //팝업 */


@media (max-width: 480px) {
  .chat-body {
    padding-inline: 10px;
  }

  .bubble.yellow {
    width: 245px;
  }
}