/* Стили для модального окна */
.custom-modal {
  background-color: rgba(51, 51, 51, 0.65);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  outline: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(11px);
  color: var(--arrow);
  max-width: 320px;
  width: 100%;
  padding: 20px;
  border-radius: 8px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  max-height: 80vh;
  overflow: hidden;
  z-index: 1000;
  transition: all 0.2s ease-in-out;
}

.comments-scroll {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-right: 5px;
  max-height: 60vh;
}

.comments-scroll::-webkit-scrollbar {
  width: 4px;
}

.comments-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.comment {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  margin-bottom: 10px;
}

.comment-header {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.comment-date {
  font-size: 0.85em;
  color: #777;
}

.comment-text {
  font-size: 1em;
  line-height: 1.5;
  color: #ffffff;
}


.comment strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.comment-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-form textarea {
  width: 100%;
  resize: none;
  min-height: 60px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  outline: none;
}

.comment-form button {
  align-self: flex-end;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.comment-form button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.close-modal-comments {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

/* Стили для кнопки */
.btn-open-comments {
  align-items: center;
  font-size: .7rem;
  padding: 5px 10px 5px 10px;
  display: flex;
  gap: 5px;
  margin: 0;
  font-family: var(--bulma-family-code);
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  user-select: none;
  border-radius: 5px;
  transition: all .2s;
  border: none;
  background-color: var(--bbb2);
}

.btn-open-comments:hover {
  background-color: var(--redopas);
}
