/**
 * Comment bar: keep «Добавить» from overlapping typed text.
 * Covers all .post__add / .post__form blocks (posts, pets, profiles, events, etc.).
 * Does not change custom.css.
 */

.post__add .post__form {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.post__add .post__form .comment__input,
.post__add .post__form input.comment__input {
  box-sizing: border-box;
  width: 100%;
  /* left: smile icon (~40px); right: «Добавить» + gap */
  padding-left: 40px !important;
  padding-right: 112px !important;
}

.post__add .post__form .post__form_btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  white-space: nowrap;
  max-width: calc(100% - 48px);
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  padding: 4px 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.post__add .post__form .comment__svg {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

/* Narrow phones: slightly tighter reserved space */
@media (max-width: 429.98px) {
  .post__add .post__form .comment__input,
  .post__add .post__form input.comment__input {
    padding-right: 100px !important;
  }

  .post__add .post__form .post__form_btn {
    font-size: 13px;
    right: 6px;
  }
}
