/* Изоляция */
.promo-comment-wrapper,
.promo-comment-wrapper * {
  box-sizing: border-box !important;
  font-family: Arial, sans-serif !important;
  margin-bottom: 30px !important;
}

/* Кнопка вызова */
.promo-comment-submit {
  all: unset !important;
  display: inline-block !important;
  background: #444 !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-align: center !important;
  padding: 10px 18px !important;
  margin: 5px 0px !important;
}
.promo-comment-submit:hover {
  background: #333 !important;
}

/* Модалка */
.promo-comment-modal {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

.promo-comment-modal-content {
  background: #fff !important;
  max-width: 600px !important;
  margin: 10% auto !important;
  padding: 20px !important;
  border-radius: 10px !important;
  text-align: left !important;
  font-size: 16px !important;
  position: relative !important;
  color: #222 !important;
}

.promo-comment-title {
  font-size: 20px !important;
  margin: 0 0 15px 0 !important;
  color: #222 !important;
}

.promo-comment-label {
  display: block !important;
  margin-bottom: 15px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #333 !important;
}

.promo-comment-input,
.promo-comment-textarea {
  all: unset !important;
  display: block !important;
  width: 100% !important;
  padding: 10px 12px !important;
  margin-top: 6px !important;
  border: 1px solid #ccc !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  background: #fff !important;
  color: #000 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
}

.promo-comment-textarea {
    min-height: 100px !important;
    resize: vertical !important;
    white-space: pre-wrap !important;   /* перенос строк сохраняется */
    word-wrap: break-word !important;   /* длинные слова переносятся */
    overflow-wrap: break-word !important;
}

.promo-comment-input:hover,
.promo-comment-textarea:hover {
    cursor: initial !important;
}

#promoCommentPhoto::file-selector-button, #promoCommentPhoto::-webkit-file-upload-button {
  cursor: pointer !important;
}

.promo-comment-close {
  position: absolute !important;
  right: 12px !important;
  top: 8px !important;
  font-size: 25px !important;
  cursor: pointer !important;
  color: #666 !important;
}
.promo-comment-close:hover {
  color: #000 !important;
}

/* Сообщение об успехе */
.promo-comment-success {
  display: none;
  margin-top: 15px !important;
  color: green !important;
  font-weight: 600 !important;
  text-align: center !important;
}

@media (max-width:768px){
    .promo-comment-modal-content{
        max-width: 300px !important;
    }
}