.person-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 0 0 auto; /* Biar tidak pecah ke bawah */
  text-align: center;
}

.person-img {
  width: 53px;
  height: 53px;
  border-radius: 40%;
  object-fit: cover;
}

.person-name {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-color);
}

.remove-avatar-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--btn-delete-bg);
  color: white;
  font-size: 10px;
  border: none;
  border-radius: 10px;
  width: 20px;
  height: 20px;
  padding: 0px;
}

.remove-avatar-btn:hover {
  background-color: var(--btn-delete-hover-bg);
}

.add-new {
  width: 53px;
  height: 53px;
  background-color: var(--input-bg);
  /* border: 2px dashed #6b46c1; */
  border-radius: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--btn-bg);
  font-size: 28px;
  cursor: pointer;
  font-size: 16px;
}

.add-text {
  margin-top: 6px;
  color: var(--btn-bg);
  font-size: 12px;
}

.people-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  margin-top: 10px;
  margin-bottom: 10px;
}

.add-new-wrapper {
  flex: 0 0 auto; /* Jangan ikut grow */
  text-align: center;
  padding-top: 5px;
}

.people-list {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-top: 5px;
  padding-right: 5px;

  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.people-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.avatar-container-additional,
.avatar-container-edit {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-top: 5px;
  padding-right: 5px;
  margin-bottom: 10px; /* Add some margin below the container */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.avatar-container-additional::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 40%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}

.avatar-img.selected {
  border-color: var(--btn-bg);
}

.avatar-img.selected ~ .avatar-name {
  color: var(--btn-bg);
}

.check-icon.visible {
  opacity: 1;
  visibility: visible;
  display: block;
  font-size: 14px;
  top: -3px;
  right: -3px;
}
