div.bffw-box {
  & + div {
    display: none;
  }
  @media (max-width: 991px) {
    overflow: auto;
    width: 100% !important;
  }
}

.publicator-options {
  position: relative;
  border-top: 1px solid #e7ebee;
  @media (max-width: 767px) {
    padding-top: 20px;
  }
}

.a-options-inside {
  display: flex;
  justify-content: center;
  font-size: 11px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  background: #e7ebee !important;
  z-index: 10;
  padding: 20px;
  border-radius: 0 0 4px 4px;
  gap: 15px;

  @media (max-width: 991px) {
    width: 100%;
  }

  @media (min-width: 992px) {
    width: 350px;
  }

  @media (max-width: 767px) {
    border-radius: 4px;
  }

  a {
    width: 32px;
    height: 32px;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
      opacity: 0.8;
    }

    > * {
      color: var(--text-color);
      font-size: 14px;
    }
  }
}

.publicator-blocks-box {
  display: flex;
  flex-direction: column;
  @media (max-width: 991px) {
    overflow: hidden;
  }
}

.publicator-element {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: white;
  min-height: 60px;
  border-top: 1px solid #e7ebee;
  padding: 25px 0;
  max-width: 100%;

  @media (max-width: 991px) {
    flex-flow: nowrap;
  }

  @media (min-width: 992px) {
    flex-flow: wrap;
  }

  &[data-type='5'] {
    .j-block-edit {
      display: none;
    }
  }
}

.c-front-publicator-box {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;

  textarea.form-control {
    height: 34px !important;
    max-height: 34px !important;
  }
}

.publicator-insert-mask {
  height: 12px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  &:hover {
    .publicator-insert {
      display: flex;
    }
  }
}

.publicator-langs {
  font-family: var(--body-font) !important;
  font-weight: normal !important;

  @media (min-width: 992px) {
    min-width: 100%;
  }
}

.publicator-insert {
  cursor: pointer;
  display: none;
  margin: -13px auto 0;
  position: relative;
  text-align: center;
  width: 70px;
  text-transform: uppercase;
  background-color: #f8f8f8;
  border: 1px solid #e8ebee;
  border-radius: 4px;
  color: #555;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
}

.publicator-controls-box {
  position: absolute;
  top: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;

  @media (min-width: 992px) {
    height: 115px;
    padding: 0 10px;
  }

  .dragger {
    padding: 10px;
    cursor: move;
    font-size: 16px;
    background-color: white;
    border-radius: 4px;
    margin-left: -2px;

    @media (max-width: 991px) {
      display: none;
    }
  }

  a {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ico {
    color: #999;
    font-size: 15px;

    &:hover {
      opacity: 0.7;
    }
  }
}

.publicator-controls-left {
  left: 3px;
  transform: translate(100%, 0);
}

.publicator-controls-right {
  @media (min-width: 992px) {
    right: 3px;
    transform: translate(100%, 0);
  }

  @media (max-width: 991px) {
    position: static;
  }
}

.c-front-publicator-add-img {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.publicator-gallery {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 10px;

  .publicator-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    background-color: white;
  }

  textarea.form-control {
    display: block !important;
  }
}
.publicator-gallery,
.publicator-photo {
  textarea.form-control {
    @media (max-width: 991px) {
      min-height: 70px;
      height: 70px;
    }

    @media (min-width: 992px) {
      min-height: 91px;
      height: 91px;
    }
  }
}

.link-delete {
  color: #999;
  font-size: 15px;

  &:hover {
    .ico {
      color: var(--danger-color) !important;
    }
  }
}

.publicator-img-box {
  position: relative;
}

.publicator-photo {
  display: flex;
  gap: 10px;
  position: relative;
  cursor: move;

  @media (max-width: 991px) {
    flex-flow: nowrap;
    max-width: 100%;
    min-width: 0;
  }

  @media (min-width: 992px) {
    width: 100%;
  }
}

.publicator-gallery-list {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
}

.publicator-img-box,
.publicator-img,
.publicator-img img {
  border-radius: 4px;
  flex: 0 0 auto;
  object-fit: cover;

  @media (max-width: 991px) {
    width: 70px;
    height: 70px;
  }

  @media (min-width: 992px) {
    width: 91px;
    height: 91px;
  }
}

.publicator-photo-desc {
  min-width: 0;
  width: 100%;

  .btn {
    min-width: 0;
    width: auto;
    align-self: flex-start;
  }

  > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .bffw-frame-box {
    min-height: 53px;
  }

  textarea {
    height: auto !important;
    max-height: 91px;
  }
}

.photo-progress {
  position: relative;
  font-size: 0;
  flex: 0 0 auto;
  border: 2px dashed #e8edef;
  border-radius: 4px;

  @media (max-width: 991px) {
    width: 70px;
    height: 70px;
  }

  @media (min-width: 992px) {
    width: 91px;
    height: 91px;
  }

  &:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    display: block;
    background: url(/img/admin-loader.gif) 0 bottom no-repeat;
  }

  @media (max-width: 767px) {
    margin-bottom: 15px;
  }
}

.publicator-video-container {
  width: 100%;

  embed,
  iframe {
    width: 100%;
  }
}
