body {
  background-color: #e0e0e0;
}

.chat-header {
  height: 70px;
  background-color: #0080ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.chat-header__title {
  font-size: 24px;
  color: #fff;
}

.chat-header__icon img {
  margin-left: 30%;
  height: 50px;
  width: 50px;
  border-radius: 50%;
}

.chat {
  width: 100%;
  max-width: 620px;
  height: 800px;
  margin: auto;
  position: relative;
  border: 1px solid #ccc;
  border-radius: 20px;
  overflow: hidden;
}

.chat-list {
  height: 540px;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.chat-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.chat-item__content {
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 18px;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
}

.chat-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  }
  
  .chat-item__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  }
  
  .chat-item__content {
  background-color: #F7F7F7;
  color: #444444;
  border-radius: 20px;
  padding: 10px;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 80%;
  }
  
  .chat-item--mine {
  flex-direction: row-reverse;
  }
  
  .chat-item--mine .chat-item__content {
  background-color: #0099FF;
  color: #FFFFFF;
  margin-left: 10px;
  margin-right: 0;
  text-align: right;
  }

.chat-input {
  width: 100%;
  height: 80px;
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
}

.chat-input input[type="text"] {
  flex: 1;
  height: 50px;
  font-size: 16px;
  padding: 10px;
  border-radius: 30px;
  border: none;
  outline: none;
  margin-right: 20px;
}

.chat-input button {
  width: 100px;
  height: 50px;
  font-size: 16px;
  color: #fff;
  background-color: #0080ff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  outline: none;
}

.chat-footer {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: gray;
}

.kakao-ad {
  position: relative;
  text-align: center;
  bottom: 0;
  max-width: 620px;
  min-width: 320px;
  min-height: 100px;
}

/* 320px 이하의 모바일 화면 크기에서 적용될 스타일 */
@media screen and (max-width: 700px) {
  /* chat 요소 */
  .chat {
    height: 100%;
    margin: 0;
    width: 100%;
  }
  
}