/* Форма добавить комментарий. */
.comment-form__title {
  display: none;
}

.indented form.comment-comment-form {
  margin-left: 12px;
}

.comment-comment-form {
  position: relative;
}

.comment-comment-form .form-actions {
  gap: 8px;
}

.comment-comment-form .form-actions .button {
  margin-top: 0;
  margin-bottom: 0;
  padding: 6px 15px;
  border-radius: 8px;
  background: #eeeeee;
  pointer-events: none;
  border: none;
  color: #8f8f8f;
  transition: 0.2s background-color;
}

.comment-wrapper .comment-form.text-count .button--primary {
  background-color: #2060a5;
  color: #fff;
  pointer-events: auto;
}

.comment-comment-form .form-actions .button:hover {
  background: #e1e1e1;
}

.comment-comment-form .field--name-comment-body {
  display: flex;
  flex-flow: column;
  position: relative;
  padding: 0px 16px 0px 8px;
  box-shadow: inset 0 0 0 1px #d4d4d4;
  border-radius: 8px;
  background-color: #fff;
  --ck-color-base-border: rgba(255, 255, 255, 0);
  --ck-focus-ring: 1px solid rgba(255, 255, 255, 0);
  --ck-inner-shadow: none;
  --ck-color-base-background: rgba(255, 255, 255, 0);
  --input-border-color: rgba(255, 255, 255, 0);
}

.comment-comment-form .field--name-comment-body .ck-editor__editable > * {
  outline: none;
}

.comment-comment-form .field--name-comment-body .form-actions {
  align-content: end;
}

.comment-comment-form .field--name-comment-body:focus-within {
  box-shadow: inset 0 0 0 1px #2060a5;
}

.comment-comment-form .ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar {
  border-bottom-width: 1px;
  position: absolute;
  translate: 8px calc(-50% - 8px);
  border-radius: 4px;
}

.comment-comment-form .field--name-comment-body:not(:focus-visible) .ck.ck-editor__top .ck-sticky-panel .ck-toolbar {
  opacity: 0;
  pointer-events: none;
}

.comment-comment-form .field--name-comment-body:focus-within .ck.ck-editor__top .ck-sticky-panel .ck-toolbar {
  opacity: 1;
  pointer-events: auto;
}

.ck-powered-by-balloon {
  translate: 0 8px;
}

.comment-comment-form .field--name-comment-body > .form-item {
  flex-grow: 1;
  margin-top: 0;
  margin-bottom: 0;
  padding-right: 18px;
}

.comment-comment-form .field--name-comment-body > .form-item > * {
  margin-top: 0;
  margin-bottom: 0;
}

.comment-comment-form .field--name-comment-body > .form-actions {
  flex-shrink: 0;
  align-items: center;
  justify-content: end;
  margin: 0 0 12px;
}

.comment-comment-form .field--name-comment-body textarea {
  border: 0;
  background: none;
  resize: none;
  margin: 10px 0;
  padding-left: 10px;
  font-size: 16px;
}

.comment-comment-form .ck-placeholder {
  margin: 18px 0 !important;
}

.comment-comment-form .ck.ck-editor__editable_inline > :last-child {
  margin: 18px 0 !important;
}

.comment--deleted {
  color: #afafaf;
}

.comment-comment-form .field--name-comment-body > .form-actions .button--cancel {
  overflow: hidden;
}

.comment-comment-form .ck-editor__main > :is(.ck-editor__editable, .ck-source-editing-area) {
  max-height: calc(40vh - var(--drupal-displace-offset-top, 0px) - var(--drupal-displace-offset-bottom, 0px) - 20px);
}
