/* Kakao demo chat scene styles (clean148 parity) */
.kt-row {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.kt-row.is-right {
  flex-direction: row-reverse;
}

.kt-bub-r {
  background: #fee500;
  color: #111;
  border-radius: 13px 13px 4px 13px;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 168px;
}

.kt-bub-l {
  background: #fff;
  color: #111;
  border-radius: 13px 13px 13px 4px;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 168px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kt-time {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.38);
  align-self: flex-end;
  padding-bottom: 2px;
  white-space: nowrap;
}

.kt-av {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  align-self: flex-start;
  background: #fee500;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.kt-sender {
  font-size: 9.5px;
  font-weight: 700;
  color: #444;
  margin-bottom: 2px;
}

.kt-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aaa;
  animation: ktDot 1.2s ease-in-out infinite;
  display: inline-block;
}

.kt-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.kt-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes ktDot {
  0%,
  80%,
  100% {
    transform: scale(0.75);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.kt-card {
  background: #fff;
  border-radius: 13px 13px 13px 4px;
  overflow: hidden;
  max-width: 180px;
  border: 1.5px solid #dde6f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kt-card-hd {
  background: #00b152;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kt-card-badge {
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 7px;
  border-radius: 10px;
}

.kt-card-tag {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.kt-card-price {
  padding: 7px 10px 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.kt-card-plabel {
  font-size: 9px;
  color: #888;
  font-weight: 600;
}

.kt-card-amount {
  font-size: 19px;
  font-weight: 900;
  color: #00b152;
  letter-spacing: -0.5px;
}

.kt-card-items {
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid #f5f5f5;
}

.kt-card-items span {
  font-size: 10px;
  font-weight: 600;
  color: #444;
}

.kt-card-note {
  font-size: 9px;
  color: #aaa;
  padding: 4px 10px;
}

.kt-confirm {
  background: #fff;
  border-radius: 13px 13px 13px 4px;
  overflow: hidden;
  max-width: 180px;
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.kt-confirm-hd {
  background: #00b152;
  padding: 7px 10px;
}

.kt-confirm-title {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

.kt-confirm-body {
  padding: 7px 10px;
  font-size: 10.5px;
  color: #333;
  font-weight: 600;
  line-height: 1.6;
}

.kt-photo {
  background: #fee500;
  border-radius: 13px 13px 4px 13px;
  padding: 6px;
  max-width: 168px;
}

.kt-photo-grid {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.kt-photo-grid div {
  flex: 1;
  height: 46px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.kt-photo-lb {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
}

.kt-enter {
  animation: bubble-in 0.28s ease both;
}

@media (min-width: 900px) {
  .ktalk-phone {
    width: 300px;
  }

  .ktalk-body {
    height: 380px;
  }

  .kt-bub-r,
  .kt-bub-l {
    font-size: 12px;
    max-width: 178px;
  }

  .kt-card {
    max-width: 190px;
  }

  .kt-card-amount {
    font-size: 20px;
  }
}
