$editor-ns: 'be-';
$editor-toolbar-bg: #fff;
$editor-toolbar-border: $neutral-3;

.public-DraftEditor-content {
  box-sizing: border-box;
  padding: 15px;
  line-height: 1.5;
  font-size: 1em;
  pre {
    max-width: 100%;
    max-height: 100%;
    margin: 0 0 10px 0;
    padding: 15px;
    overflow: auto;
    background-color: #f1f2f3;
    border-radius: 3px;
    color: #666;
    font-family: monospace;
    font-size: 14px;
    font-weight: normal;
    line-height: 16px;
    word-wrap: break-word;
    white-space: pre-wrap;
    pre {
      margin: 0;
      padding: 0;
    }
  }
  blockquote {
    margin: 0 0 10px 0;
    padding: 15px 20px;
    background-color: #f1f2f3;
    border-left: solid 5px #ccc;
    color: #666;
    font-style: italic;
  }
}
.#{$editor-ns}wrapper {
  box-sizing: border-box;

  &:focus {
    outline: none;
  }
}

.#{$editor-ns}main {
  box-sizing: border-box;
  overflow: auto;
  height: 100%;
}

.#{$editor-ns}toolbar {
  display: inline-flex;
  flex-shrink: 1;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex-direction: row;
  padding: 6px 5px 0;
  background: $editor-toolbar-bg;
  border: 1px solid $editor-toolbar-border;
  border-radius: 2px;
  margin-bottom: 5px;
  font-size: 16px;
  user-select: none;
}

.#{$editor-ns}toolbar--hidden {
  display: none;
}

.#{$editor-ns}dd__wrap {
  height: 30px;
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 2px;
  margin: 0 3px;
  width: 120px;
  text-transform: capitalize;
  cursor: pointer;

  a {
    color: rgba(0, 0, 0, 0.87);
  }

  &:focus {
    outline: none;
  }

  &:hover {
    background-color: #fff;
    box-shadow: 1px 1px 0px #bfbdbd;
  }

  &:active {
    box-shadow: 1px 1px 0px #bfbdbd inset;
  }

  &.is-skinny {
    width: 60px;
  }
}

.#{$editor-ns}caret--open {
  position: absolute;
  top: 35%;
  right: 10%;
  width: 0;
  height: 0;
  border-top: 6px solid #000;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

.#{$editor-ns}caret--closed {
  position: absolute;
  top: 35%;
  right: 10%;
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-bottom: 6px solid #000;
  border-left: 5px solid transparent;
}

.#{$editor-ns}dd__selected-txt {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 5px;
}

.#{$editor-ns}dd__opt-wrap {
  position: relative;
  z-index: 100;
  width: 99%;
  max-height: 250px;
  padding: 0;
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 2px;
  margin: 0;
  cursor: pointer;
  transition: background 0.3s ease;

  &:hover {
    background-color: #fff;
    box-shadow: 1px 1px 0px #bfbdbd;
  }
}

.#{$editor-ns}dd__opt--default {
  display: flex;
  align-items: center;
  min-height: 25px;
  padding: 0 5px;
}

.#{$editor-ns}dd__opt--highlight {
  background: #f1f1f1;
}

.#{$editor-ns}dd__opt--active {
  background: #f5f5f5;
}

.#{$editor-ns}dd__opt--disabled {
  opacity: 0.3;
  cursor: default;
}

.#{$editor-ns}modal {
  position: absolute;
  // top: 47%;
  // left: 20%;
  z-index: 800;
  color: #f7f7f9;
  display: flex;
  flex-direction: column;
  width: 250px;
  padding: 15px;
  background-color: #243140;
  border-radius: 3px;
  box-shadow: 2px 10px 30px rgba(#000, 0.3);

  &.#{$editor-ns}emoji {
    flex-direction: row;
    overflow: auto;
    flex-wrap: wrap;
    width: 350px;
    height: 420px;
  }
}
.#{$editor-ns}emoji__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  margin: 2.5px;
  font-size: 22px;
  cursor: pointer;
}
.#{$editor-ns}modal__input--sm {
  width: 45%;
  height: 20px;
  border: 1px solid #f1f1f1;
  border-radius: 2px;
  font-size: 12px;

  &:focus {
    outline: none;
  }
}

.#{$editor-ns}modal-h {
  display: flex;
  font-size: 15px;
}

// This is the actual "label" per say
.#{$editor-ns}modal__opt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Chivo';
  font-weight: 300;
  cursor: pointer;
}

// This is essentially only the underline
.#{$editor-ns}modal__label {
  width: 95px;
  background: inherit;
  border-bottom: 1px solid #f1f1f1;
  margin-top: 5px;
  margin-bottom: 5px;

  &.is-hlight {
    border-bottom: 2px solid #0a66b7;
  }
}

.#{$editor-ns}modal__btns {
  display: flex;
  justify-content: center;
}

.#{$editor-ns}modal__btn {
  width: 75px;
  height: 30px;
  background: $white;
  border: 1px solid #f1f1f1;
  border-radius: 2px;
  margin: 0 3px;
  text-transform: capitalize;
  cursor: pointer;

  &:hover {
    box-shadow: 1px 1px 0px #bfbdbd;
  }

  &:active {
    box-shadow: 1px 1px 0px #bfbdbd inset;
  }

  &:focus {
    outline: none !important;
  }

  &:disabled {
    background: #ece9e9;
  }
}

.#{$editor-ns}modal__upload {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 65px;
  color: gray;
  background-color: #f1f1f1;
  border: none;
  margin: 10px 0;
  outline: 2px dashed gray;
  outline-offset: -10px;
  font-size: 15px;
  cursor: pointer;

  &.is-hlight {
    outline: 2px dashed #0a66b7;
  }
}

.#{$editor-ns}modal__upload-label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 15px;
  cursor: pointer;

  span {
    padding: 0 20px;
  }
}

.#{$editor-ns}modal__upload-input {
  position: absolute;
  z-index: -1;
  overflow: hidden;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
}

.#{$editor-ns}modal__upload-url-input {
  width: 95%;
  height: 35px;
  padding: 0 5px;
  border: 1px solid #f1f1f1;
  border-radius: 2px;
  margin: 30px 0 20px;
  font-size: 15px;
}

.#{$editor-ns}modal__sizes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.#{$editor-ns}opt {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 25px;
  height: 20px;
  padding: 3px;
  background-color: transparent;
  border: 1px solid #f7f7f9;
  border-radius: 2px;
  margin: 0 4px;
  text-transform: capitalize;

  &:hover {
    color: #0094c6;
  }

  &:active {
    color: #0094c6;
  }
}

.#{$editor-ns}opt--active {
  svg {
    fill: #00bcd4 !important;
  }
}

.#{$editor-ns}opt--disabled {
  opacity: 0.3;
}

.#{$editor-ns}opt--dark {
  border: 1px solid #243140;
}

.#{$editor-ns}block__dropdown {
  width: 110px;
}

.#{$editor-ns}modal__top {
  display: flex;
  padding-bottom: 5px;
}

.#{$editor-ns}color__modal-label {
  width: 50%;
  padding: 0 10px 5px;
  font-size: 15px;
  text-align: center;
  cursor: pointer;

  &.is-active {
    border-bottom: 2px solid #0a66b7;
  }
}

.#{$editor-ns}color__modal-opts {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.#{$editor-ns}color__cube {
  width: 22px;
  height: 22px;
}

.#{$editor-ns}color__opts {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 20px;
  padding: 0;
  border: none;
  margin: 3px;
}

.#{$editor-ns}embedded__modal-link-section {
  display: flex;
  flex-direction: column;
}

.#{$editor-ns}emoji__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  margin: 2.5px;
  font-size: 22px;
  cursor: pointer;
}

.#{$editor-ns}ctrl__group {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.#{$editor-ns}fontfamily__ph {
  overflow: hidden;
  max-width: 90px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.#{$editor-ns}fontsize__opt {
  display: flex;
  justify-content: center;
}

.#{$editor-ns}modal__spinner {
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.#{$editor-ns}link__modal-opt {
  margin-bottom: 20px;

  > span {
    margin-left: 5px;
  }
}

.#{$editor-ns}remove__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.#{$editor-ns}right-aligned-block {
  text-align: right;
}

.#{$editor-ns}left-aligned-block {
  text-align: left;
}

.#{$editor-ns}center-aligned-block {
  text-align: center;
}

.#{$editor-ns}justify-aligned-block {
  text-align: justify !important;
}

.#{$editor-ns}right-aligned-block > div,
.#{$editor-ns}left-aligned-block > div,
.#{$editor-ns}center-aligned-block > div,
.#{$editor-ns}justify-aligned-block > div {
  display: inline;
}

.#{$editor-ns}decorator__link-wrap {
  position: relative;
}

.#{$editor-ns}decorator__link-icon {
  position: absolute;
  top: 0;
  left: 40%;
  background-color: white;
  cursor: pointer;
}

.#{$editor-ns}align {
  position: absolute;
  z-index: 100;
  display: flex;
  width: 105px;
  padding: 5px 2px;
  background: white;
  border: 1px solid #f1f1f1;
  border-radius: 2px;
  cursor: pointer;
}

.#{$editor-ns}align--left {
  justify-content: flex-start;
}

.#{$editor-ns}align__opt {
  width: 15px;
  min-width: 15px;
  height: 15px;
}

.#{$editor-ns}align__image,
.#{$editor-ns}image__wrapper {
  position: relative;
}

.#{$editor-ns}image--center {
  display: flex;
  justify-content: center;
}

.#{$editor-ns}image--left {
  display: flex;
}

.#{$editor-ns}image--right {
  display: flex;
  justify-content: flex-end;
}

.#{$editor-ns}align--right {
  right: 0;
}

/// spinner

.#{$editor-ns}spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;

  > div {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #333;
    border-radius: 100%;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  }

  .spinner-bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
  }

  .spinner-bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
  }
}

@-webkit-keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
