#reviewBg {
  display: none;
  background-color: rgba(0, 0, 0, 0.75);
  width: 100%;
  height: 100vh;
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
}
#reviewBg form.form {
  margin: 0;
  max-width: 400px;
  margin-bottom: 20px;
  margin-top: 100px;
}
form.form i:hover {
  cursor: pointer;
}
form.form h3 {
  display: contents;
  font-size: 22px;
}
form .header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.avatar-option {
  width: 100px;
  height: 100px;
  border: 3px solid transparent;
  border-radius: 50%;
  margin: 5px;
}
.avatar-option.selected-avatar {
  border-color: #1c873b;
  box-shadow: 0 0 8px rgba(28, 135, 59, 0.5);
  transform: scale(1.1);
}
.avatar {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  text-align: center;
}

#cropContainer {
  display: none;
  margin-top: 15px;
  text-align: center;
}

#croppedImage {
  max-width: 100%;
  max-height: 300px;
}

#avatarPreview {
  display: block;
  width: 100px;
  height: 100px;
  margin: 15px auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.crop-btns {
  display: none;
  margin-top: 10px;
}

.crop-btns button {
  margin: 0 5px;
}

#reviewBg input:not(#reviewBg input[type="checkbox"]),
#reviewBg textarea,
#reviewBg select,
#reviewBg button {
  width: 100%;
  margin: 10px 0;
}


#closeReview {
  position: absolute;
  top: 25px;
  right: 25px;
  background-color: rgba(0, 0, 0, 0.342); /* lekko przezroczyste tło */
  border: 5px solid white;
  color: white;
  border-radius: 50%;
  width: 75px;
  height: 75px;
  font-size: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color, scale 0.2s ease;
  scale: 0.75;
}

#closeReview:hover {
  background-color: rgba(0, 0, 0, 0.4);
  scale: 1;
}




/* Wewnętrzny scroll tylko dla #reviewBg */
#reviewBg {
  overflow-y: auto; /* włącza przewijanie */
  scrollbar-width: thin; /* Firefox – cienki pasek */
  scrollbar-color: #1c873b #e6e6e6; /* Firefox – kciuk i tło */
}

/* Chrome, Edge, Safari */
#reviewBg::-webkit-scrollbar {
  width: 14px; /* szerokość paska */
}

#reviewBg::-webkit-scrollbar-track {
  background: #e6e6e6; /* jasny tor */
  border-radius: 999px; /* pełne zaokrąglenie toru */
  margin: 6px 0; /* mały odstęp góra/dół */
}

#reviewBg::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1c873b, #145e29); /* zielony gradient */
  border-radius: 999px; /* pełne zaokrąglenie kciuka */
  border: 4px solid #e6e6e6; /* odsunięcie od ścianek toru */
  min-height: 30px;
}

#reviewBg::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #22a145, #177133);
}