.comment-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, .4);
  display: none;
  z-index: 100;
}

.comment-form-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-form-overlay.loading .comment-form-submit .btn {
  pointer-events: none;
  background: #F0F0F0 !important;
  border-color: #616161 !important;
  color: #616161 !important;
}

.comment-form-overlay .comment-form {
  position: relative;
  z-index: 1000;
}

.comment-form-overlay-wrapper {
  background: #fff;
  max-width: 900px;
  margin-inline: auto;
  border-radius: 10px;
  padding: 32px;
  position: relative;
}

.comment-form-overlay-wrapper .btn {
  padding: 10px 20px;
}

.comment-form .btn-close {
  position: absolute;
  top: -20px;
  right: -20px;
}

.comment-form-buttons {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.btn-icon {
  background: none;
  border: none;
  padding: 0;
  border-radius: 50%;
  transition: all .2s linear;
}

.btn-icon:hover {
  background: #F0F0F0;
}

.comment-form-fields {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.comment-form-fields .field-message {
  grid-column: -1/1;
}

.comment-form-fields .field-item {
  display: grid;
  gap: 8px;
}

.comment-form-fields .form-control {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #c0c0c0;
  font-family: inherit;
}

.comment-form-fields textarea {
  min-height: 120px;
}

.comment-form-overlay.completed {
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-form-result {
  display: none;
  gap: 24px;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 500;
}

.comment-form-overlay.completed .comment-form-completed,
.comment-form-overlay.error .comment-form-error {
  display: grid;
}

.comment-form-overlay.completed form,
.comment-form-overlay.error form {
  display: none;
}

.comment-form-error {
  display: none;
}

@media screen and (max-width: 576px) {
  .comment-form input {
    padding: 10px
  }
}
