AlchemyCMS/alchemy_cms

View on GitHub
app/assets/stylesheets/tinymce/skins/ui/alchemy/skin.min.scss

Summary

Maintainability
Test Coverage
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/

@import "alchemy/variables";

.tox {
  box-shadow: none;
  box-sizing: content-box;
  color: #000;
  cursor: auto;
  font-family: $default-font-family;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  vertical-align: initial;
  white-space: normal;
}

.tox :not(svg):not(rect) {
  box-sizing: inherit;
  color: inherit;
  cursor: inherit;
  direction: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
  -webkit-tap-highlight-color: inherit;
  text-align: inherit;
  text-decoration: inherit;
  text-shadow: inherit;
  text-transform: inherit;
  vertical-align: inherit;
  white-space: inherit;
}

.tox :not(svg):not(rect) {
  background: 0 0;
  border: 0;
  box-shadow: none;
  float: none;
  height: auto;
  margin: 0;
  max-width: none;
  outline: 0;
  padding: 0;
  position: static;
  width: auto;
}

.tox:not([dir="rtl"]) {
  direction: ltr;
  text-align: left;
}

.tox[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.tox-tinymce {
  border: $default-border;
  border-radius: $default-border-radius;
  box-shadow: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: $default-font-family;
  overflow: hidden;
  position: relative;
  visibility: inherit !important;
}

.tox-tinymce-inline {
  border: none;
  box-shadow: none;
}

.tox-tinymce-inline .tox-editor-header {
  background-color: transparent;
  border: $default-border;
  border-radius: $default-border-radius;
  box-shadow: none;
}

.tox-tinymce-aux {
  font-family: $default-font-family;
  z-index: 1300;
}

.tox-tinymce :focus,
.tox-tinymce-aux :focus {
  outline: 0;
}

button::-moz-focus-inner {
  border: 0;
}

.tox[dir="rtl"] .tox-icon--flip svg {
  transform: rotateY(180deg);
}

.tox .accessibility-issue__header {
  align-items: center;
  display: flex;
  margin-bottom: 3.25px;
}

.tox .accessibility-issue__description {
  align-items: stretch;
  border: $default-border;
  border-radius: $default-border-radius;
  display: flex;
  justify-content: space-between;
}

.tox .accessibility-issue__description > div {
  padding-bottom: 3.25px;
}

.tox .accessibility-issue__description > div > div {
  align-items: center;
  display: flex;
  margin-bottom: 3.25px;
}

.tox .accessibility-issue__description > :last-child:not(:only-child) {
  border-color: rgba(175, 175, 175, 0.5);
  border-style: solid;
}

.tox .accessibility-issue__repair {
  margin-top: 16px;
}

.tox
  .tox-dialog__body-content
  .accessibility-issue--info
  .accessibility-issue__description {
  background-color: rgba(45, 90, 141, 0.1);
  border-color: rgba(45, 90, 141, 0.4);
  color: #000;
}

.tox
  .tox-dialog__body-content
  .accessibility-issue--info
  .accessibility-issue__description
  > :last-child {
  border-color: rgba(45, 90, 141, 0.4);
}

.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2 {
  color: #2d5a8d;
}

.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg {
  fill: #2d5a8d;
}

.tox .tox-dialog__body-content .accessibility-issue--info a .tox-icon {
  color: #2d5a8d;
}

.tox
  .tox-dialog__body-content
  .accessibility-issue--warn
  .accessibility-issue__description {
  background-color: rgba(255, 165, 0, 0.1);
  border-color: rgba(255, 165, 0, 0.5);
  color: #000;
}

.tox
  .tox-dialog__body-content
  .accessibility-issue--warn
  .accessibility-issue__description
  > :last-child {
  border-color: rgba(255, 165, 0, 0.5);
}

.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2 {
  color: #cc8500;
}

.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg {
  fill: #cc8500;
}

.tox .tox-dialog__body-content .accessibility-issue--warn a .tox-icon {
  color: #cc8500;
}

.tox
  .tox-dialog__body-content
  .accessibility-issue--error
  .accessibility-issue__description {
  background-color: rgba(239, 211, 211, 0.1);
  border-color: rgba(239, 211, 211, 0.4);
  color: #000;
}

.tox
  .tox-dialog__body-content
  .accessibility-issue--error
  .accessibility-issue__description
  > :last-child {
  border-color: rgba(239, 211, 211, 0.4);
}

.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2 {
  color: #efd3d3;
}

.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg {
  fill: #efd3d3;
}

.tox .tox-dialog__body-content .accessibility-issue--error a .tox-icon {
  color: #efd3d3;
}

.tox
  .tox-dialog__body-content
  .accessibility-issue--success
  .accessibility-issue__description {
  background-color: rgba(226, 239, 211, 0.1);
  border-color: rgba(226, 239, 211, 0.4);
  color: #000;
}

.tox
  .tox-dialog__body-content
  .accessibility-issue--success
  .accessibility-issue__description
  > :last-child {
  border-color: rgba(226, 239, 211, 0.4);
}

.tox
  .tox-dialog__body-content
  .accessibility-issue--success
  .tox-form__group
  h2 {
  color: #e2efd3;
}

.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg {
  fill: #e2efd3;
}

.tox .tox-dialog__body-content .accessibility-issue--success a .tox-icon {
  color: #e2efd3;
}

.tox .tox-dialog__body-content .accessibility-issue__header h1,
.tox
  .tox-dialog__body-content
  .tox-form__group
  .accessibility-issue__description
  h2 {
  margin-top: 0;
}

.tox:not([dir="rtl"])
  .tox-dialog__body-content
  .accessibility-issue__header
  .tox-button {
  margin-left: 3.25px;
}

.tox:not([dir="rtl"])
  .tox-dialog__body-content
  .accessibility-issue__header
  > :nth-last-child(2) {
  margin-left: auto;
}

.tox:not([dir="rtl"])
  .tox-dialog__body-content
  .accessibility-issue__description {
  padding: 3.25px 3.25px 3.25px 6.5px;
}

.tox:not([dir="rtl"])
  .tox-dialog__body-content
  .accessibility-issue__description
  > :last-child {
  border-left-width: 1px;
  padding-left: 3.25px;
}

.tox[dir="rtl"]
  .tox-dialog__body-content
  .accessibility-issue__header
  .tox-button {
  margin-right: 3.25px;
}

.tox[dir="rtl"]
  .tox-dialog__body-content
  .accessibility-issue__header
  > :nth-last-child(2) {
  margin-right: auto;
}

.tox[dir="rtl"] .tox-dialog__body-content .accessibility-issue__description {
  padding: 3.25px 6.5px 3.25px 3.25px;
}

.tox[dir="rtl"]
  .tox-dialog__body-content
  .accessibility-issue__description
  > :last-child {
  border-right-width: 1px;
  padding-right: 3.25px;
}

.tox .tox-anchorbar {
  display: flex;
  flex: 0 0 auto;
}

.tox .tox-bar {
  display: flex;
  flex: 0 0 auto;
}

.tox .tox-button {
  background-color: $button-bg-color;
  background-image: none;
  background-position: 0 0;
  background-repeat: repeat;
  border-color: $button-border-color;
  border-radius: $button-border-radius;
  border-style: solid;
  border-width: $button-border-width;
  box-shadow: $button-box-shadow;
  box-sizing: border-box;
  color: $button-text-color;
  cursor: pointer;
  display: inline-block;
  font-family: $default-font-family;
  font-size: $base-font-size;
  font-style: normal;
  font-weight: $button-font-weight;
  letter-spacing: normal;
  line-height: 24px;
  margin: 0;
  outline: 0;
  padding: $button-padding;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.tox .tox-button[disabled] {
  background-color: #2d5a8d;
  background-image: none;
  border-color: #2d5a8d;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

.tox .tox-button:focus:not(:disabled) {
  background-color: #274e7a;
  background-image: none;
  border-color: #274e7a;
  box-shadow: none;
  color: #fff;
}

.tox .tox-button:hover:not(:disabled) {
  background-color: $button-hover-bg-color;
  background-image: none;
  border-color: $button-hover-border-color;
  box-shadow: none;
  color: $button-text-color;
}

.tox .tox-button:active:not(:disabled) {
  background-color: $button-hover-bg-color;
  background-image: none;
  border-color: $button-hover-border-color;
  box-shadow: none;
  color: $button-text-color;
}

.tox .tox-button--secondary {
  background-color: $secondary-button-bg-color;
  background-image: none;
  background-position: 0 0;
  background-repeat: repeat;
  border-color: $secondary-button-border-color;
  border-radius: $default-border-radius;
  border-style: solid;
  border-width: $button-border-width;
  box-shadow: none;
  color: $secondary-button-text-color;
  font-size: $default-font-size;
  font-style: normal;
  font-weight: $button-font-weight;
  letter-spacing: normal;
  outline: 0;
  padding: $button-padding;
  text-decoration: none;
  text-transform: none;
}

.tox .tox-button--secondary[disabled] {
  background-color: #f0f0f0;
  background-image: none;
  border-color: #f0f0f0;
  box-shadow: none;
  color: rgba(0, 0, 0, 0.5);
}

.tox .tox-button--secondary:focus:not(:disabled) {
  background-color: #e3e3e3;
  background-image: none;
  border-color: #e3e3e3;
  box-shadow: none;
  color: #000;
}

.tox .tox-button--secondary:hover:not(:disabled) {
  background-color: #e3e3e3;
  background-image: none;
  border-color: #e3e3e3;
  box-shadow: none;
  color: #000;
}

.tox .tox-button--secondary:active:not(:disabled) {
  background-color: #d6d6d6;
  background-image: none;
  border-color: #d6d6d6;
  box-shadow: none;
  color: #000;
}

.tox .tox-button--icon,
.tox .tox-button.tox-button--icon,
.tox .tox-button.tox-button--secondary.tox-button--icon {
  padding: 3.25px;
}

.tox .tox-button--icon .tox-icon svg,
.tox .tox-button.tox-button--icon .tox-icon svg,
.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg {
  display: block;
  fill: currentColor;
}

.tox .tox-button-link {
  background: 0;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  font-family: $default-font-family;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.tox .tox-button-link--sm {
  font-size: $base-font-size;
}

.tox .tox-button--naked {
  background-color: transparent;
  border-color: transparent;
  box-shadow: unset;
  color: #000;
}

.tox .tox-button--naked[disabled] {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  box-shadow: none;
  color: rgba(0, 0, 0, 0.5);
}

.tox .tox-button--naked:hover:not(:disabled) {
  background-color: #e3e3e3;
  border-color: #e3e3e3;
  box-shadow: none;
  color: #000;
}

.tox .tox-button--naked:focus:not(:disabled) {
  background-color: #e3e3e3;
  border-color: #e3e3e3;
  box-shadow: none;
  color: #000;
}

.tox .tox-button--naked:active:not(:disabled) {
  background-color: #d6d6d6;
  border-color: #d6d6d6;
  box-shadow: none;
  color: #000;
}

.tox .tox-button--naked .tox-icon svg {
  fill: currentColor;
}

.tox .tox-button--naked.tox-button--icon:hover:not(:disabled) {
  color: #000;
}

.tox .tox-checkbox {
  align-items: center;
  border-radius: $default-border-radius;
  cursor: pointer;
  display: flex;
  height: 36px;
  min-width: 36px;
}

.tox .tox-checkbox__input {
  height: 1px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.tox .tox-checkbox__icons {
  align-items: center;
  border-radius: $default-border-radius;
  box-shadow: 0 0 0 2px transparent;
  box-sizing: content-box;
  display: flex;
  height: 24px;
  justify-content: center;
  padding: calc(3.25px - 1px);
  width: 24px;
}

.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {
  display: block;
  fill: rgba(0, 0, 0, 0.3);
}

.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg {
  display: none;
  fill: #2d5a8d;
}

.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg {
  display: none;
  fill: #2d5a8d;
}

.tox .tox-checkbox--disabled {
  color: rgba(0, 0, 0, 0.5);
  cursor: not-allowed;
}

.tox
  .tox-checkbox--disabled
  .tox-checkbox__icons
  .tox-checkbox-icon__checked
  svg {
  fill: rgba(0, 0, 0, 0.5);
}

.tox
  .tox-checkbox--disabled
  .tox-checkbox__icons
  .tox-checkbox-icon__unchecked
  svg {
  fill: rgba(0, 0, 0, 0.5);
}

.tox
  .tox-checkbox--disabled
  .tox-checkbox__icons
  .tox-checkbox-icon__indeterminate
  svg {
  fill: rgba(0, 0, 0, 0.5);
}

.tox
  input.tox-checkbox__input:checked
  + .tox-checkbox__icons
  .tox-checkbox-icon__unchecked
  svg {
  display: none;
}

.tox
  input.tox-checkbox__input:checked
  + .tox-checkbox__icons
  .tox-checkbox-icon__checked
  svg {
  display: block;
}

.tox
  input.tox-checkbox__input:indeterminate
  + .tox-checkbox__icons
  .tox-checkbox-icon__unchecked
  svg {
  display: none;
}

.tox
  input.tox-checkbox__input:indeterminate
  + .tox-checkbox__icons
  .tox-checkbox-icon__indeterminate
  svg {
  display: block;
}

.tox input.tox-checkbox__input:focus + .tox-checkbox__icons {
  border-radius: $default-border-radius;
  box-shadow: inset 0 0 0 1px #2d5a8d;
  padding: calc(3.25px - 1px);
}

.tox:not([dir="rtl"]) .tox-checkbox__label {
  margin-left: 3.25px;
}

.tox:not([dir="rtl"]) .tox-checkbox__input {
  left: -10000px;
}

.tox:not([dir="rtl"]) .tox-bar .tox-checkbox {
  margin-left: 3.25px;
}

.tox[dir="rtl"] .tox-checkbox__label {
  margin-right: 3.25px;
}

.tox[dir="rtl"] .tox-checkbox__input {
  right: -10000px;
}

.tox[dir="rtl"] .tox-bar .tox-checkbox {
  margin-right: 3.25px;
}

.tox .tox-collection--toolbar .tox-collection__group {
  display: flex;
  padding: 2px;
}

.tox .tox-collection--grid .tox-collection__group {
  display: flex;
  flex-wrap: wrap;
  max-height: 208px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px;
}

.tox .tox-collection--list .tox-collection__group {
  border-bottom-width: 0;
  border-color: rgba(175, 175, 175, 0.5);
  border-left-width: 0;
  border-right-width: 0;
  border-style: solid;
  border-top-width: 1px;
  padding: 3.25px 0;
}

.tox .tox-collection--list .tox-collection__group:first-child {
  border-top-width: 0;
}

.tox .tox-collection__group-heading {
  background-color: rgba(201, 201, 201, 0.5);
  color: rgba(0, 0, 0, 0.7);
  cursor: default;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  margin-bottom: 3.25px;
  margin-top: -3.25px;
  padding: 3.25px 6.5px;
  text-transform: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.tox .tox-collection__item {
  align-items: center;
  color: #000;
  cursor: pointer;
  display: flex;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.tox .tox-collection--list .tox-collection__item {
  padding: 3.25px 6.5px;
}

.tox .tox-collection--toolbar .tox-collection__item {
  border-radius: $default-border-radius;
  padding: 3.25px;
}

.tox .tox-collection--grid .tox-collection__item {
  border-radius: $default-border-radius;
  padding: 3.25px;
}

.tox .tox-collection--list .tox-collection__item--enabled {
  background-color: rgba(175, 175, 175, 0.25);
  color: $text-color;
}

.tox .tox-collection--toolbar .tox-collection__item--enabled {
  background-color: rgba(175, 175, 175, 0.5);
  color: $text-color;
}

.tox .tox-collection--toolbar .tox-collection__item--active {
  background-color: rgba(175, 175, 175, 0.25);
}

.tox .tox-collection--grid .tox-collection__item--enabled {
  background-color: rgba(175, 175, 175, 0.5);
  color: $text-color;
}

.tox
  .tox-collection--grid
  .tox-collection__item--active:not(.tox-collection__item--state-disabled) {
  background-color: rgba(175, 175, 175, 0.25);
  color: $text-color;
  outline: none;
}

.tox
  .tox-collection--list
  .tox-collection__item--active:not(.tox-collection__item--state-disabled) {
  background-color: $select-hover-bg-color;
  color: $select-hover-text-color;

  .tox-collection__item-caret svg {
    fill: $select-hover-text-color;
  }
  .tox-collection__item-accessory {
    color: $select-hover-text-color;
  }
}

.tox
  .tox-collection--toolbar
  .tox-collection__item--active:not(.tox-collection__item--state-disabled) {
  color: $text-color;
}

.tox .tox-collection__item-checkmark,
.tox .tox-collection__item-icon {
  align-items: center;
  display: flex;
  height: $icon-button-medium-height;
  justify-content: center;
  width: $icon-button-medium-width;
  font-size: 14px;
}

.tox .tox-collection__item-checkmark svg,
.tox .tox-collection__item-icon svg {
  fill: currentColor;
}

.tox .tox-collection--toolbar-lg .tox-collection__item-icon {
  height: 48px;
  width: 48px;
}

.tox .tox-collection__item-label {
  color: currentColor;
  display: inline-block;
  flex: 1;
  -ms-flex-preferred-size: auto;
  font-size: $base-font-size;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  text-transform: none;
  word-break: break-all;

  // Fix active select style, because Tinymce hard codes the color on the element
  > * {
    color: inherit !important;
  }
}

.tox .tox-collection__item-accessory {
  color: rgba(0, 0, 0, 0.7);
  display: inline-block;
  font-size: $base-font-size;
  height: 24px;
  line-height: 24px;
  text-transform: none;
}

.tox .tox-collection__item-caret {
  align-items: center;
  display: flex;
  min-height: 24px;
}

.tox .tox-collection__item-caret::after {
  content: "";
  font-size: 0;
  min-height: inherit;
}

.tox .tox-collection__item-caret svg {
  fill: #000;
}

.tox .tox-collection__item--state-disabled {
  background-color: transparent;
  color: rgba(0, 0, 0, 0.5);
  cursor: not-allowed;
}

.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg {
  fill: rgba(0, 0, 0, 0.5);
}

.tox
  .tox-collection--list
  .tox-collection__item:not(.tox-collection__item--enabled)
  .tox-collection__item-checkmark
  svg {
  display: none;
}

.tox
  .tox-collection--list
  .tox-collection__item:not(.tox-collection__item--enabled)
  .tox-collection__item-accessory
  + .tox-collection__item-checkmark {
  display: none;
}

.tox .tox-collection--horizontal {
  background-color: #fff;
  border: $default-border;
  border-radius: $default-border-radius;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  display: flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-bottom: 0;
  overflow-x: auto;
  padding: 0;
}

.tox .tox-collection--horizontal .tox-collection__group {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0 3.25px;
}

.tox .tox-collection--horizontal .tox-collection__item {
  height: 34px;
  margin: 2px 0 3px 0;
  padding: 0 4px;
}

.tox .tox-collection--horizontal .tox-collection__item-label {
  white-space: nowrap;
}

.tox .tox-collection--horizontal .tox-collection__item-caret {
  margin-left: 4px;
}

.tox .tox-collection__item-container {
  display: flex;
}

.tox .tox-collection__item-container--row {
  align-items: center;
  flex: 1 1 auto;
  flex-direction: row;
}

.tox
  .tox-collection__item-container--row.tox-collection__item-container--align-left {
  margin-right: auto;
}

.tox
  .tox-collection__item-container--row.tox-collection__item-container--align-right {
  justify-content: flex-end;
  margin-left: auto;
}

.tox
  .tox-collection__item-container--row.tox-collection__item-container--valign-top {
  align-items: flex-start;
  margin-bottom: auto;
}

.tox
  .tox-collection__item-container--row.tox-collection__item-container--valign-middle {
  align-items: center;
}

.tox
  .tox-collection__item-container--row.tox-collection__item-container--valign-bottom {
  align-items: flex-end;
  margin-top: auto;
}

.tox .tox-collection__item-container--column {
  -ms-grid-row-align: center;
  align-self: center;
  flex: 1 1 auto;
  flex-direction: column;
}

.tox
  .tox-collection__item-container--column.tox-collection__item-container--align-left {
  align-items: flex-start;
}

.tox
  .tox-collection__item-container--column.tox-collection__item-container--align-right {
  align-items: flex-end;
}

.tox
  .tox-collection__item-container--column.tox-collection__item-container--valign-top {
  align-self: flex-start;
}

.tox
  .tox-collection__item-container--column.tox-collection__item-container--valign-middle {
  -ms-grid-row-align: center;
  align-self: center;
}

.tox
  .tox-collection__item-container--column.tox-collection__item-container--valign-bottom {
  align-self: flex-end;
}

.tox:not([dir="rtl"])
  .tox-collection--horizontal
  .tox-collection__group:not(:last-of-type) {
  border-right: $default-border;
}

.tox:not([dir="rtl"])
  .tox-collection--list
  .tox-collection__item
  > :not(:first-child) {
  margin-left: 6.5px;
}

.tox:not([dir="rtl"])
  .tox-collection--list
  .tox-collection__item
  > .tox-collection__item-label:first-child {
  margin-left: 3.25px;
}

.tox:not([dir="rtl"]) .tox-collection__item-accessory {
  margin-left: 13px;
  text-align: right;
}

.tox:not([dir="rtl"]) .tox-collection .tox-collection__item-caret {
  margin-left: 13px;
}

.tox[dir="rtl"]
  .tox-collection--horizontal
  .tox-collection__group:not(:last-of-type) {
  border-left: $default-border;
}

.tox[dir="rtl"]
  .tox-collection--list
  .tox-collection__item
  > :not(:first-child) {
  margin-right: 6.5px;
}

.tox[dir="rtl"]
  .tox-collection--list
  .tox-collection__item
  > .tox-collection__item-label:first-child {
  margin-right: 3.25px;
}

.tox[dir="rtl"] .tox-collection__item-accessory {
  margin-right: 13px;
  text-align: left;
}

.tox[dir="rtl"] .tox-collection .tox-collection__item-caret {
  margin-right: 13px;
  transform: rotateY(180deg);
}

.tox[dir="rtl"] .tox-collection--horizontal .tox-collection__item-caret {
  margin-right: 4px;
}

.tox .tox-color-picker-container {
  display: flex;
  flex-direction: row;
  height: 225px;
  margin: 0;
}

.tox .tox-sv-palette {
  box-sizing: border-box;
  display: flex;
  height: 100%;
}

.tox .tox-sv-palette-spectrum {
  height: 100%;
}

.tox .tox-sv-palette,
.tox .tox-sv-palette-spectrum {
  width: 225px;
}

.tox .tox-sv-palette-thumb {
  background: 0 0;
  border: 1px solid #000;
  border-radius: 50%;
  box-sizing: content-box;
  height: 12px;
  position: absolute;
  width: 12px;
}

.tox .tox-sv-palette-inner-thumb {
  border: 1px solid #fff;
  border-radius: 50%;
  height: 10px;
  position: absolute;
  width: 10px;
}

.tox .tox-hue-slider {
  box-sizing: border-box;
  height: 100%;
  width: 25px;
}

.tox .tox-hue-slider-spectrum {
  background: linear-gradient(
    to bottom,
    red,
    #ff0080,
    #f0f,
    #8000ff,
    #00f,
    #0080ff,
    #0ff,
    #00ff80,
    #0f0,
    #80ff00,
    #ff0,
    #ff8000,
    red
  );
  height: 100%;
  width: 100%;
}

.tox .tox-hue-slider,
.tox .tox-hue-slider-spectrum {
  width: 20px;
}

.tox .tox-hue-slider-thumb {
  background: #fff;
  border: 1px solid #000;
  box-sizing: content-box;
  height: 4px;
  width: 100%;
}

.tox .tox-rgb-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tox .tox-rgb-form div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  width: inherit;
}

.tox .tox-rgb-form input {
  width: 6em;
}

.tox .tox-rgb-form input.tox-invalid {
  border: 1px solid red !important;
}

.tox .tox-rgb-form .tox-rgba-preview {
  border: 1px solid #000;
  flex-grow: 2;
  margin-bottom: 0;
}

.tox:not([dir="rtl"]) .tox-sv-palette {
  margin-right: 15px;
}

.tox:not([dir="rtl"]) .tox-hue-slider {
  margin-right: 15px;
}

.tox:not([dir="rtl"]) .tox-hue-slider-thumb {
  margin-left: -1px;
}

.tox:not([dir="rtl"]) .tox-rgb-form label {
  margin-right: 0.5em;
}

.tox[dir="rtl"] .tox-sv-palette {
  margin-left: 15px;
}

.tox[dir="rtl"] .tox-hue-slider {
  margin-left: 15px;
}

.tox[dir="rtl"] .tox-hue-slider-thumb {
  margin-right: -1px;
}

.tox[dir="rtl"] .tox-rgb-form label {
  margin-left: 0.5em;
}

.tox .tox-toolbar .tox-swatches,
.tox .tox-toolbar__overflow .tox-swatches,
.tox .tox-toolbar__primary .tox-swatches {
  margin: 2px 0 3px 4px;
}

.tox .tox-collection--list .tox-collection__group .tox-swatches-menu {
  border: 0;
  margin: -3.25px 0;
}

.tox .tox-swatches__row {
  display: flex;
}

.tox .tox-swatch {
  height: 30px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  width: 30px;
}

.tox .tox-swatch:focus,
.tox .tox-swatch:hover {
  box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.3) inset;
  transform: scale(0.8);
}

.tox .tox-swatch--remove {
  align-items: center;
  display: flex;
  justify-content: center;
}

.tox .tox-swatch--remove svg path {
  stroke: #e74c3c;
}

.tox .tox-swatches__picker-btn {
  align-items: center;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  height: 30px;
  justify-content: center;
  outline: 0;
  padding: 0;
  width: 30px;
}

.tox .tox-swatches__picker-btn svg {
  height: 24px;
  width: 24px;
}

.tox .tox-swatches__picker-btn:hover {
  background: rgba(175, 175, 175, 0.25);
}

.tox:not([dir="rtl"]) .tox-swatches__picker-btn {
  margin-left: auto;
}

.tox[dir="rtl"] .tox-swatches__picker-btn {
  margin-right: auto;
}

.tox .tox-comment-thread {
  background: #fff;
  position: relative;
}

.tox .tox-comment-thread > :not(:first-child) {
  margin-top: 6.5px;
}

.tox .tox-comment {
  background: #fff;
  border: $default-border;
  border-radius: $default-border-radius;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
  padding: 6.5px 6.5px 13px 6.5px;
  position: relative;
}

.tox .tox-comment__header {
  align-items: center;
  color: #000;
  display: flex;
  justify-content: space-between;
}

.tox .tox-comment__date {
  color: rgba(0, 0, 0, 0.7);
  font-size: 12px;
}

.tox .tox-comment__body {
  color: #000;
  font-size: $base-font-size;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 6.5px;
  position: relative;
  text-transform: initial;
}

.tox .tox-comment__body textarea {
  resize: none;
  white-space: normal;
  width: 100%;
}

.tox .tox-comment__expander {
  padding-top: 6.5px;
}

.tox .tox-comment__expander p {
  color: rgba(0, 0, 0, 0.7);
  font-size: $base-font-size;
  font-style: normal;
}

.tox .tox-comment__body p {
  margin: 0;
}

.tox .tox-comment__buttonspacing {
  padding-top: 13px;
  text-align: center;
}

.tox .tox-comment-thread__overlay::after {
  background: #fff;
  bottom: 0;
  content: "";
  display: flex;
  left: 0;
  opacity: 0.9;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.tox .tox-comment__reply {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 6.5px;
}

.tox .tox-comment__reply > :first-child {
  margin-bottom: 6.5px;
  width: 100%;
}

.tox .tox-comment__edit {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 13px;
}

.tox .tox-comment__gradient::after {
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  bottom: 0;
  content: "";
  display: block;
  height: 5em;
  margin-top: -40px;
  position: absolute;
  width: 100%;
}

.tox .tox-comment__overlay {
  background: #fff;
  bottom: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  left: 0;
  opacity: 0.9;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  z-index: 5;
}

.tox .tox-comment__loading-text {
  align-items: center;
  color: #000;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tox .tox-comment__loading-text > div {
  padding-bottom: 13px;
}

.tox .tox-comment__overlaytext {
  bottom: 0;
  flex-direction: column;
  font-size: $base-font-size;
  left: 0;
  padding: 1em;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
}

.tox .tox-comment__overlaytext p {
  background-color: #fff;
  box-shadow: 0 0 8px 8px #fff;
  color: #000;
  text-align: center;
}

.tox .tox-comment__overlaytext div:nth-of-type(2) {
  font-size: 0.8em;
}

.tox .tox-comment__busy-spinner {
  align-items: center;
  background-color: #fff;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
}

.tox .tox-comment__scroll {
  display: flex;
  flex-direction: column;
  flex-shrink: 1;
  overflow: auto;
}

.tox .tox-conversations {
  margin: 6.5px;
}

.tox:not([dir="rtl"]) .tox-comment__edit {
  margin-left: 6.5px;
}

.tox:not([dir="rtl"]) .tox-comment__buttonspacing > :last-child,
.tox:not([dir="rtl"]) .tox-comment__edit > :last-child,
.tox:not([dir="rtl"]) .tox-comment__reply > :last-child {
  margin-left: 6.5px;
}

.tox[dir="rtl"] .tox-comment__edit {
  margin-right: 6.5px;
}

.tox[dir="rtl"] .tox-comment__buttonspacing > :last-child,
.tox[dir="rtl"] .tox-comment__edit > :last-child,
.tox[dir="rtl"] .tox-comment__reply > :last-child {
  margin-right: 6.5px;
}

.tox .tox-user {
  align-items: center;
  display: flex;
}

.tox .tox-user__avatar svg {
  fill: rgba(0, 0, 0, 0.7);
}

.tox .tox-user__name {
  color: rgba(0, 0, 0, 0.7);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.tox:not([dir="rtl"]) .tox-user__avatar svg {
  margin-right: 6.5px;
}

.tox:not([dir="rtl"]) .tox-user__avatar + .tox-user__name {
  margin-left: 6.5px;
}

.tox[dir="rtl"] .tox-user__avatar svg {
  margin-left: 6.5px;
}

.tox[dir="rtl"] .tox-user__avatar + .tox-user__name {
  margin-right: 6.5px;
}

.tox .tox-dialog-wrap {
  align-items: center;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1100;
}

.tox .tox-dialog-wrap__backdrop {
  background-color: $dialog-overlay-color;
  opacity: $dialog-overlay-opacity;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.tox .tox-dialog-wrap__backdrop--opaque {
  background-color: $dialog-overlay-color;
}

.tox .tox-dialog {
  background-color: $dialog-background-color;
  border-color: transparent;
  border-radius: $default-border-radius;
  border-style: solid;
  border-width: 0;
  box-shadow: $dialog-box-shadow;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
  width: 95vw;
  z-index: 2;
}

@media only screen and (max-width: 767px) {
  body:not(.tox-force-desktop) .tox .tox-dialog {
    align-self: flex-start;
    margin: 6.5px auto;
    width: calc(100vw - 13px);
  }
}

.tox .tox-dialog-inline {
  z-index: 1100;
}

.tox .tox-dialog__header {
  height: $dialog-header-height;
  align-items: center;
  background-color: $dialog-header-color;
  border-bottom: none;
  color: $dialog-header-text-color;
  display: flex;
  font-size: $dialog-header-font-size;
  justify-content: space-between;
  padding: $dialog-header-padding;
  position: relative;
}

.tox .tox-dialog__header .tox-button {
  z-index: 1;
  color: $white;
  background-image: none; // If used in Solidus we need to override the background image
  border: none; // If used in Solidus we need to override the border
}

.tox .tox-dialog__draghandle {
  cursor: grab;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.tox .tox-dialog__draghandle:active {
  cursor: grabbing;
}

.tox .tox-dialog__dismiss {
  margin-left: auto;
}

.tox .tox-dialog__title {
  font-family: $default-font-family;
  font-size: 1em;
  font-style: normal;
  font-weight: bold;
  line-height: 1.3;
  margin: 0;
  padding-left: 6px;
  text-transform: none;
}

.tox .tox-dialog__body {
  color: #000;
  display: flex;
  flex: 1;
  flex-direction: column;
  -ms-flex-preferred-size: auto;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
  min-width: 0;
  text-align: left;
  text-transform: none;
}

.tox .tox-dialog__body-nav {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  box-shadow: inset 0 -2px 0 var(--tabs_track-color);
}

.tox .tox-dialog__body-nav-item {
  border-bottom: 2px solid transparent;
  color: var(--sl-color-neutral-600);
  display: inline-block;
  font-size: $base-font-size;
  line-height: 1.3;
  padding: 16px 15px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid var(--tabs_track-color);
}

.tox .tox-dialog__body-nav-item:hover {
  color: var(--sl-color-primary-600);
}

.tox .tox-dialog__body-nav-item--active {
  border-bottom-color: var(--tabs_indicator-color);
  color: var(--sl-color-primary-600);
}

.tox .tox-dialog__body-content {
  box-sizing: border-box;
  display: flex;
  flex: 1;
  flex-direction: column;
  -ms-flex-preferred-size: auto;
  max-height: 650px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 13px 13px;
}

.tox .tox-dialog__body-content > * {
  margin-bottom: 0;
  margin-top: 13px;
}

.tox .tox-dialog__body-content > :first-child {
  margin-top: 0;
}

.tox .tox-dialog__body-content > :last-child {
  margin-bottom: 0;
}

.tox .tox-dialog__body-content > :only-child {
  margin-bottom: 0;
  margin-top: 0;
}

.tox .tox-dialog__body-content a {
  color: #2d5a8d;
  cursor: pointer;
  text-decoration: none;
}

.tox .tox-dialog__body-content a:focus,
.tox .tox-dialog__body-content a:hover {
  color: #214166;
  text-decoration: none;
}

.tox .tox-dialog__body-content a:active {
  color: #214166;
  text-decoration: none;
}

.tox .tox-dialog__body-content svg {
  fill: #000;
}

.tox .tox-dialog__body-content ul {
  display: block;
  list-style-type: disc;
  margin-bottom: 13px;
  -webkit-margin-end: 0;
  margin-inline-end: 0;
  -webkit-margin-start: 0;
  margin-inline-start: 0;
  -webkit-padding-start: 2.5rem;
  padding-inline-start: 2.5rem;
}

.tox .tox-dialog__body-content .tox-form__group h1 {
  color: #000;
  font-size: 16.25px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: normal;
  margin-bottom: 4 * $default-margin;
  margin-top: 2rem;
  text-transform: none;
}

.tox .tox-dialog__body-content .tox-form__group h2 {
  color: #000;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: normal;
  margin-bottom: 4 * $default-margin;
  margin-top: 2rem;
  text-transform: none;
}

.tox .tox-dialog__body-content .tox-form__group p {
  margin-bottom: 4 * $default-margin;
}

.tox .tox-dialog__body-content .tox-form__group h1:first-child,
.tox .tox-dialog__body-content .tox-form__group h2:first-child,
.tox .tox-dialog__body-content .tox-form__group p:first-child {
  margin-top: 0;
}

.tox .tox-dialog__body-content .tox-form__group h1:last-child,
.tox .tox-dialog__body-content .tox-form__group h2:last-child,
.tox .tox-dialog__body-content .tox-form__group p:last-child {
  margin-bottom: 0;
}

.tox .tox-dialog__body-content .tox-form__group h1:only-child,
.tox .tox-dialog__body-content .tox-form__group h2:only-child,
.tox .tox-dialog__body-content .tox-form__group p:only-child {
  margin-bottom: 0;
  margin-top: 0;
}

.tox .tox-dialog--width-lg {
  height: 650px;
  max-width: 1200px;
}

.tox .tox-dialog--width-md {
  max-width: 800px;
}

.tox .tox-dialog--width-md .tox-dialog__body-content {
  overflow: auto;
}

.tox .tox-dialog__body-content--centered {
  text-align: center;
}

.tox .tox-dialog__footer {
  align-items: center;
  background-color: $dialog-background-color;
  border-top: none;
  display: flex;
  justify-content: space-between;
  padding: 6.5px 13px;
}

.tox .tox-dialog__footer-end,
.tox .tox-dialog__footer-start {
  display: flex;
}

.tox .tox-dialog__busy-spinner {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.75);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
}

.tox .tox-dialog__table {
  border-collapse: collapse;
  width: 100%;
}

.tox .tox-dialog__table thead th {
  font-weight: 700;
  padding-bottom: 6.5px;
}

.tox .tox-dialog__table tbody tr {
  border-bottom: $default-border;
}

.tox .tox-dialog__table tbody tr:last-child {
  border-bottom: none;
}

.tox .tox-dialog__table td {
  padding-bottom: 6.5px;
  padding-top: 6.5px;
}

.tox .tox-dialog__popups {
  position: absolute;
  width: 100%;
  z-index: 1100;
}

.tox .tox-dialog__body-iframe {
  display: flex;
  flex: 1;
  flex-direction: column;
  -ms-flex-preferred-size: auto;
}

.tox .tox-dialog__body-iframe .tox-navobj {
  display: flex;
  flex: 1;
  -ms-flex-preferred-size: auto;
}

.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2) {
  flex: 1;
  -ms-flex-preferred-size: auto;
  height: 100%;
}

.tox .tox-dialog-dock-fadeout {
  opacity: 0;
  visibility: hidden;
}

.tox .tox-dialog-dock-fadein {
  opacity: 1;
  visibility: visible;
}

.tox .tox-dialog-dock-transition {
  transition:
    visibility 0s linear 0.3s,
    opacity 0.3s ease;
}

.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein {
  transition-delay: 0s;
}

.tox.tox-platform-ie .tox-dialog-wrap {
  position: -ms-device-fixed;
}

@media only screen and (max-width: 767px) {
  body:not(.tox-force-desktop) .tox:not([dir="rtl"]) .tox-dialog__body-nav {
    margin-right: 0;
  }
}

@media only screen and (max-width: 767px) {
  body:not(.tox-force-desktop)
    .tox:not([dir="rtl"])
    .tox-dialog__body-nav-item:not(:first-child) {
    margin-left: 6.5px;
  }
}

.tox:not([dir="rtl"]) .tox-dialog__footer .tox-dialog__footer-end > *,
.tox:not([dir="rtl"]) .tox-dialog__footer .tox-dialog__footer-start > * {
  margin-left: 6.5px;
}

.tox[dir="rtl"] .tox-dialog__body {
  text-align: right;
}

@media only screen and (max-width: 767px) {
  body:not(.tox-force-desktop) .tox[dir="rtl"] .tox-dialog__body-nav {
    margin-left: 0;
  }
}

@media only screen and (max-width: 767px) {
  body:not(.tox-force-desktop)
    .tox[dir="rtl"]
    .tox-dialog__body-nav-item:not(:first-child) {
    margin-right: 6.5px;
  }
}

.tox[dir="rtl"] .tox-dialog__footer .tox-dialog__footer-end > *,
.tox[dir="rtl"] .tox-dialog__footer .tox-dialog__footer-start > * {
  margin-right: 6.5px;
}

body.tox-dialog__disable-scroll {
  overflow: hidden;
}

.tox .tox-dropzone-container {
  display: flex;
  flex: 1;
  -ms-flex-preferred-size: auto;
}

.tox .tox-dropzone {
  align-items: center;
  background: #fff;
  border: 2px dashed rgba(175, 175, 175, 0.5);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  min-height: 100px;
  padding: 10px;
}

.tox .tox-dropzone p {
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 13px 0;
}

.tox .tox-edit-area {
  display: flex;
  flex: 1;
  -ms-flex-preferred-size: auto;
  overflow: hidden;
  position: relative;
}

.tox .tox-edit-area__iframe {
  background-color: #fff;
  border: 0;
  box-sizing: border-box;
  flex: 1;
  -ms-flex-preferred-size: auto;
  height: 100%;
  position: absolute;
  width: 100%;
}

.tox.tox-inline-edit-area {
  border: 1px dotted rgba(175, 175, 175, 0.5);
}

.tox .tox-editor-container {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.tox .tox-editor-header {
  z-index: 1;
}

.tox:not(.tox-tinymce-inline) .tox-editor-header {
  box-shadow: none;
  transition: box-shadow 0.5s;
}

.tox.tox-tinymce--toolbar-bottom .tox-editor-header,
.tox.tox-tinymce-inline .tox-editor-header {
  margin-bottom: -1px;
}

.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header {
  background-color: transparent;
  box-shadow: 0 4px 4px -3px rgba(0, 0, 0, 0.25);
}

.tox-editor-dock-fadeout {
  opacity: 0;
  visibility: hidden;
}

.tox-editor-dock-fadein {
  opacity: 1;
  visibility: visible;
}

.tox-editor-dock-transition {
  transition:
    visibility 0s linear 0.25s,
    opacity 0.25s ease;
}

.tox-editor-dock-transition.tox-editor-dock-fadein {
  transition-delay: 0s;
}

.tox .tox-control-wrap {
  flex: 1;
  position: relative;
}

.tox
  .tox-control-wrap:not(.tox-control-wrap--status-invalid)
  .tox-control-wrap__status-icon-invalid,
.tox
  .tox-control-wrap:not(.tox-control-wrap--status-unknown)
  .tox-control-wrap__status-icon-unknown,
.tox
  .tox-control-wrap:not(.tox-control-wrap--status-valid)
  .tox-control-wrap__status-icon-valid {
  display: none;
}

.tox .tox-control-wrap svg {
  display: block;
}

.tox .tox-control-wrap__status-icon-wrap {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.tox .tox-control-wrap__status-icon-invalid svg {
  fill: #efd3d3;
}

.tox .tox-control-wrap__status-icon-unknown svg {
  fill: orange;
}

.tox .tox-control-wrap__status-icon-valid svg {
  fill: green;
}

.tox:not([dir="rtl"]) .tox-control-wrap--status-invalid .tox-textfield,
.tox:not([dir="rtl"]) .tox-control-wrap--status-unknown .tox-textfield,
.tox:not([dir="rtl"]) .tox-control-wrap--status-valid .tox-textfield {
  padding-right: 26px;
}

.tox:not([dir="rtl"]) .tox-control-wrap__status-icon-wrap {
  right: 3.25px;
}

.tox[dir="rtl"] .tox-control-wrap--status-invalid .tox-textfield,
.tox[dir="rtl"] .tox-control-wrap--status-unknown .tox-textfield,
.tox[dir="rtl"] .tox-control-wrap--status-valid .tox-textfield {
  padding-left: 26px;
}

.tox[dir="rtl"] .tox-control-wrap__status-icon-wrap {
  left: 3.25px;
}

.tox .tox-autocompleter {
  max-width: 25em;
}

.tox .tox-autocompleter .tox-menu {
  max-width: 25em;
}

.tox .tox-autocompleter .tox-autocompleter-highlight {
  font-weight: 700;
}

.tox .tox-color-input {
  display: flex;
  position: relative;
  z-index: 1;
}

.tox .tox-color-input .tox-textfield {
  z-index: -1;
}

.tox .tox-color-input span {
  border-color: rgba(0, 0, 0, 0.2);
  border-radius: $default-border-radius;
  border-style: solid;
  border-width: 1px;
  box-shadow: none;
  box-sizing: border-box;
  height: 23px;
  position: absolute;
  top: 4px;
  width: 24px;
}

.tox .tox-color-input span:focus:not([aria-disabled="true"]),
.tox .tox-color-input span:hover:not([aria-disabled="true"]) {
  border-color: #2d5a8d;
  cursor: pointer;
}

.tox .tox-color-input span::before {
  background-image: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.25) 25%,
      transparent 25%
    ),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%);
  background-position:
    -1px -1px,
    -1px 3px,
    3px -5px,
    -5px -1px;
  background-size: 8px 8px;
  border: 1px solid #fff;
  border-radius: $default-border-radius;
  box-sizing: border-box;
  content: "";
  height: 24px;
  left: -1px;
  position: absolute;
  top: -1px;
  width: 24px;
  z-index: -1;
}

.tox .tox-color-input span[aria-disabled="true"] {
  cursor: not-allowed;
}

.tox:not([dir="rtl"]) .tox-color-input .tox-textfield {
  padding-left: 36px;
}

.tox:not([dir="rtl"]) .tox-color-input span {
  left: 4px;
}

.tox[dir="rtl"] .tox-color-input .tox-textfield {
  padding-right: 36px;
}

.tox[dir="rtl"] .tox-color-input span {
  right: 4px;
}

.tox .tox-label,
.tox .tox-toolbar-label {
  color: rgba(0, 0, 0, 0.7);
  display: block;
  font-size: $base-font-size;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
  padding: 0 6.5px 0 0;
  text-transform: none;
  white-space: nowrap;
}

.tox .tox-toolbar-label {
  padding: 0 6.5px;
}

.tox[dir="rtl"] .tox-label {
  padding: 0 0 0 6.5px;
}

.tox .tox-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  -ms-flex-preferred-size: auto;
}

.tox .tox-form__group {
  box-sizing: border-box;
  margin-bottom: 4 * $default-margin;
}

.tox .tox-form__group .tox-label {
  margin-bottom: $default-margin;
}

.tox .tox-form-group--maximize {
  flex: 1;
}

.tox .tox-form__group--error {
  color: #efd3d3;
}

.tox .tox-form__group--collection {
  display: flex;
}

.tox .tox-form__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.tox .tox-form__grid--2col > .tox-form__group {
  width: calc(50% - (6.5px / 2));
}

.tox .tox-form__grid--3col > .tox-form__group {
  width: calc(100% / 3 - (6.5px / 2));
}

.tox .tox-form__grid--4col > .tox-form__group {
  width: calc(25% - (6.5px / 2));
}

.tox .tox-form__controls-h-stack {
  align-items: center;
  display: flex;
}

.tox .tox-form__group--inline {
  align-items: center;
  display: flex;
}

.tox .tox-form__group--stretched {
  display: flex;
  flex: 1;
  flex-direction: column;
  -ms-flex-preferred-size: auto;
}

.tox .tox-form__group--stretched .tox-textarea-wrap {
  display: flex;
  flex: 1;
}

.tox .tox-form__group--stretched .tox-textarea {
  flex: 1;
  -ms-flex-preferred-size: auto;
}

.tox .tox-form__group--stretched .tox-navobj {
  display: flex;
  flex: 1;
  -ms-flex-preferred-size: auto;
}

.tox .tox-form__group--stretched .tox-navobj :nth-child(2) {
  flex: 1;
  -ms-flex-preferred-size: auto;
  height: 100%;
}

.tox:not([dir="rtl"]) .tox-form__controls-h-stack > :not(:first-child) {
  margin-left: 3.25px;
}

.tox[dir="rtl"] .tox-form__controls-h-stack > :not(:first-child) {
  margin-right: 3.25px;
}

.tox .tox-lock.tox-locked .tox-lock-icon__unlock,
.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock {
  display: none;
}

.tox .tox-listboxfield .tox-listbox--select,
.tox .tox-textarea,
.tox .tox-textfield,
.tox .tox-toolbar-textfield {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: $form-field-background-color;
  background-image: none; // If nested in Solidus we need to override the background image
  border-color: $form-field-border-color;
  border-radius: $default-border-radius;
  border-style: $form-field-border-style;
  border-width: $form-field-border-width;
  box-shadow: none;
  box-sizing: border-box;
  color: $form-field-text-color;
  font-family: $default-font-family;
  font-size: $form-field-font-size;
  line-height: $form-field-line-height;
  margin: 0;
  min-height: $form-field-height;
  outline: 0;
  padding: $form-field-padding;
  resize: none;
  width: 100%;

  // If nested in Solidus we need to override the background image
  &:hover {
    background-image: none;
  }
}

.tox .tox-textarea[disabled],
.tox .tox-textfield[disabled] {
  background-color: #f2f2f2;
  color: rgba(0, 0, 0, 0.85);
  cursor: not-allowed;
}

.tox .tox-listboxfield .tox-listbox--select:focus,
.tox .tox-textarea:focus,
.tox .tox-textfield:focus {
  border-color: transparent;
  box-shadow: none;
  outline: 1px solid $focus-color !important; // Need to force the outline if used in Solidus
}

.tox .tox-toolbar-textfield {
  border-width: 0;
  margin-bottom: 3px;
  margin-top: 2px;
  max-width: 250px;
}

.tox .tox-naked-btn {
  background-color: transparent;
  border: 0;
  border-color: transparent;
  box-shadow: unset;
  color: #2d5a8d;
  cursor: pointer;
  display: block;
  margin: 0;
  padding: 0;
}

.tox .tox-naked-btn svg {
  display: block;
  fill: #000;
}

.tox:not([dir="rtl"]) .tox-toolbar-textfield + * {
  margin-left: 3.25px;
}

.tox[dir="rtl"] .tox-toolbar-textfield + * {
  margin-right: 3.25px;
}

.tox .tox-listboxfield {
  cursor: pointer;
  position: relative;
}

.tox .tox-listboxfield .tox-listbox--select[disabled] {
  background-color: #f2f2f2;
  color: rgba(0, 0, 0, 0.85);
  cursor: not-allowed;
}

.tox .tox-listbox__select-label {
  cursor: default;
  flex: 1;
  margin: 0 4px;
}

.tox .tox-listbox__select-chevron {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 13px;
}

.tox .tox-listbox__select-chevron svg {
  fill: #000;
}

.tox .tox-listboxfield .tox-listbox--select {
  align-items: center;
  display: flex;
}

.tox:not([dir="rtl"]) .tox-listboxfield svg {
  right: 6.5px;
}

.tox[dir="rtl"] .tox-listboxfield svg {
  left: 6.5px;
}

.tox .tox-selectfield {
  cursor: pointer;
  position: relative;
}

.tox .tox-selectfield select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border-color: rgba(175, 175, 175, 0.5);
  border-radius: $default-border-radius;
  border-style: solid;
  border-width: 1px;
  box-shadow: none;
  box-sizing: border-box;
  color: #000;
  font-family: $default-font-family;
  font-size: 13px;
  line-height: 24px;
  margin: 0;
  min-height: 34px;
  outline: 0;
  padding: 5px 4px;
  resize: none;
  width: 100%;
}

.tox .tox-selectfield select[disabled] {
  background-color: #f2f2f2;
  color: rgba(0, 0, 0, 0.85);
  cursor: not-allowed;
}

.tox .tox-selectfield select::-ms-expand {
  display: none;
}

.tox .tox-selectfield select:focus {
  background-color: #fff;
  border-color: #2d5a8d;
  box-shadow: none;
  outline: 0;
}

.tox .tox-selectfield svg {
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.tox:not([dir="rtl"]) .tox-selectfield select[size="0"],
.tox:not([dir="rtl"]) .tox-selectfield select[size="1"] {
  padding-right: 19.5px;
}

.tox:not([dir="rtl"]) .tox-selectfield svg {
  right: 6.5px;
}

.tox[dir="rtl"] .tox-selectfield select[size="0"],
.tox[dir="rtl"] .tox-selectfield select[size="1"] {
  padding-left: 19.5px;
}

.tox[dir="rtl"] .tox-selectfield svg {
  left: 6.5px;
}

.tox .tox-textarea {
  -webkit-appearance: textarea;
  -moz-appearance: textarea;
  appearance: textarea;
  white-space: pre-wrap;
}

.tox-fullscreen {
  border: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  -ms-scroll-chaining: none;
  overscroll-behavior: none;
  padding: 0;
  touch-action: pinch-zoom;
  width: 100%;
}

.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle {
  display: none;
}

.tox-shadowhost.tox-fullscreen,
.tox.tox-tinymce.tox-fullscreen {
  left: 0;
  position: fixed;
  top: 0;
  z-index: 1200;
}

.tox.tox-tinymce.tox-fullscreen {
  background-color: transparent;
}

.tox-fullscreen .tox.tox-tinymce-aux,
.tox-fullscreen ~ .tox.tox-tinymce-aux {
  z-index: 1201;
}

.tox .tox-help__more-link {
  list-style: none;
  margin-top: 1em;
}

.tox .tox-image-tools {
  width: 100%;
}

.tox .tox-image-tools__toolbar {
  align-items: center;
  display: flex;
  justify-content: center;
}

.tox .tox-image-tools__image {
  background-color: #666;
  height: 380px;
  overflow: auto;
  position: relative;
  width: 100%;
}

.tox .tox-image-tools__image,
.tox .tox-image-tools__image + .tox-image-tools__toolbar {
  margin-top: 6.5px;
}

.tox .tox-image-tools__image-bg {
  background: url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==);
}

.tox .tox-image-tools__toolbar > .tox-spacer {
  flex: 1;
  -ms-flex-preferred-size: auto;
}

.tox .tox-croprect-block {
  background: #000;
  opacity: 0.5;
  position: absolute;
  zoom: 1;
}

.tox .tox-croprect-handle {
  border: 2px solid #fff;
  height: 20px;
  left: 0;
  position: absolute;
  top: 0;
  width: 20px;
}

.tox .tox-croprect-handle-move {
  border: 0;
  cursor: move;
  position: absolute;
}

.tox .tox-croprect-handle-nw {
  border-width: 2px 0 0 2px;
  cursor: nw-resize;
  left: 100px;
  margin: -2px 0 0 -2px;
  top: 100px;
}

.tox .tox-croprect-handle-ne {
  border-width: 2px 2px 0 0;
  cursor: ne-resize;
  left: 200px;
  margin: -2px 0 0 -20px;
  top: 100px;
}

.tox .tox-croprect-handle-sw {
  border-width: 0 0 2px 2px;
  cursor: sw-resize;
  left: 100px;
  margin: -20px 2px 0 -2px;
  top: 200px;
}

.tox .tox-croprect-handle-se {
  border-width: 0 2px 2px 0;
  cursor: se-resize;
  left: 200px;
  margin: -20px 0 0 -20px;
  top: 200px;
}

.tox:not([dir="rtl"])
  .tox-image-tools__toolbar
  > .tox-slider:not(:first-of-type) {
  margin-left: 6.5px;
}

.tox:not([dir="rtl"]) .tox-image-tools__toolbar > .tox-button + .tox-slider {
  margin-left: 26px;
}

.tox:not([dir="rtl"]) .tox-image-tools__toolbar > .tox-slider + .tox-button {
  margin-left: 26px;
}

.tox[dir="rtl"] .tox-image-tools__toolbar > .tox-slider:not(:first-of-type) {
  margin-right: 6.5px;
}

.tox[dir="rtl"] .tox-image-tools__toolbar > .tox-button + .tox-slider {
  margin-right: 26px;
}

.tox[dir="rtl"] .tox-image-tools__toolbar > .tox-slider + .tox-button {
  margin-right: 26px;
}

.tox .tox-insert-table-picker {
  display: flex;
  flex-wrap: wrap;
  width: 140px;
}

.tox .tox-insert-table-picker > div {
  border-color: rgba(175, 175, 175, 0.5);
  border-style: solid;
  border-width: 0 1px 1px 0;
  box-sizing: border-box;
  height: 14px;
  width: 14px;
}

.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker {
  margin: -3.25px 0;
}

.tox .tox-insert-table-picker .tox-insert-table-picker__selected {
  background-color: rgba(45, 90, 141, 0.5);
  border-color: rgba(45, 90, 141, 0.5);
}

.tox .tox-insert-table-picker__label {
  color: rgba(0, 0, 0, 0.7);
  display: block;
  font-size: $base-font-size;
  padding: 3.25px;
  text-align: center;
  width: 100%;
}

.tox:not([dir="rtl"]) .tox-insert-table-picker > div:nth-child(10n) {
  border-right: 0;
}

.tox[dir="rtl"] .tox-insert-table-picker > div:nth-child(10n + 1) {
  border-right: 0;
}

.tox .tox-menu {
  background-color: #fff;
  border: $default-border;
  border-radius: $default-border-radius;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  z-index: 1150;
}

.tox .tox-menu.tox-collection.tox-collection--list {
  padding: 0;
}

.tox .tox-menu.tox-collection.tox-collection--toolbar {
  padding: 3.25px;
}

.tox .tox-menu.tox-collection.tox-collection--grid {
  padding: 3.25px;
}

.tox .tox-menu__label blockquote,
.tox .tox-menu__label code,
.tox .tox-menu__label h1,
.tox .tox-menu__label h2,
.tox .tox-menu__label h3,
.tox .tox-menu__label h4,
.tox .tox-menu__label h5,
.tox .tox-menu__label h6,
.tox .tox-menu__label p {
  margin: 0;
}

.tox .tox-menubar {
  background: url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='rgba%28175,%20175,%20175,%200.5%29'/%3E%3C/svg%3E")
    left 0 top 0 $light-gray;
  background-color: $light-gray;
  display: flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 0 4px 0 4px;
}

.tox.tox-tinymce:not(.tox-tinymce-inline)
  .tox-editor-header:not(:first-child)
  .tox-menubar {
  border-top: $default-border;
}

.tox .tox-mbtn {
  align-items: center;
  background: 0 0;
  border: 0;
  border-radius: $default-border-radius;
  box-shadow: none;
  color: $icon-color;
  display: flex;
  flex: 0 0 auto;
  font-size: $base-font-size;
  font-style: normal;
  font-weight: 400;
  height: 34px;
  justify-content: center;
  margin: 2px 0 3px 0;
  outline: 0;
  overflow: hidden;
  padding: 0 4px;
  text-transform: none;
  width: auto;
}

.tox .tox-mbtn[disabled] {
  background-color: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(51, 59, 81, 0.5);
  cursor: not-allowed;
}

.tox .tox-mbtn:focus:not(:disabled) {
  background: rgba(175, 175, 175, 0.25);
  border: 0;
  box-shadow: none;
  color: rgba(51, 59, 81, 0.8);
}

.tox .tox-mbtn--active {
  background: rgba(175, 175, 175, 0.5);
  border: 0;
  box-shadow: none;
  color: rgba(51, 59, 81, 0.8);
}

.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active) {
  background: rgba(175, 175, 175, 0.25);
  border: 0;
  box-shadow: none;
  color: rgba(51, 59, 81, 0.8);
}

.tox .tox-mbtn__select-label {
  cursor: default;
  font-weight: 400;
  margin: 0 4px;
}

.tox .tox-mbtn[disabled] .tox-mbtn__select-label {
  cursor: not-allowed;
}

.tox .tox-mbtn__select-chevron {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 16px;
  display: none;
}

.tox .tox-notification {
  border-radius: $default-border-radius;
  border-style: solid;
  border-width: 1px;
  box-shadow: none;
  box-sizing: border-box;
  display: -ms-grid;
  display: grid;
  font-size: $base-font-size;
  font-weight: 400;
  -ms-grid-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  margin-top: 3.25px;
  opacity: 0;
  padding: 3.25px;
  transition:
    transform 0.1s ease-in,
    opacity 150ms ease-in;
}

.tox .tox-notification p {
  font-size: $base-font-size;
  font-weight: 400;
}

.tox .tox-notification a {
  cursor: pointer;
  text-decoration: underline;
}

.tox .tox-notification--in {
  opacity: 1;
}

.tox .tox-notification--success {
  background-color: #f9fcf6;
  border-color: #f6faf2;
  color: #000;
}

.tox .tox-notification--success p {
  color: #000;
}

.tox .tox-notification--success a {
  color: #9ea794;
}

.tox .tox-notification--success svg {
  fill: #000;
}

.tox .tox-notification--error {
  background-color: #fdf9f9;
  border-color: #fbf4f4;
  color: #000;
}

.tox .tox-notification--error p {
  color: #000;
}

.tox .tox-notification--error a {
  color: #efd3d3;
}

.tox .tox-notification--error svg {
  fill: #000;
}

.tox .tox-notification--warn,
.tox .tox-notification--warning {
  background-color: #fffaea;
  border-color: #ffe89d;
  color: #000;
}

.tox .tox-notification--warn p,
.tox .tox-notification--warning p {
  color: #000;
}

.tox .tox-notification--warn a,
.tox .tox-notification--warning a {
  color: #000;
}

.tox .tox-notification--warn svg,
.tox .tox-notification--warning svg {
  fill: #000;
}

.tox .tox-notification--info {
  background-color: #d9edf7;
  border-color: #779ecb;
  color: #000;
}

.tox .tox-notification--info p {
  color: #000;
}

.tox .tox-notification--info a {
  color: #000;
}

.tox .tox-notification--info svg {
  fill: #000;
}

.tox .tox-notification__body {
  -ms-grid-row-align: center;
  align-self: center;
  color: #000;
  font-size: 14px;
  -ms-grid-column-span: 1;
  grid-column-end: 3;
  -ms-grid-column: 2;
  grid-column-start: 2;
  -ms-grid-row-span: 1;
  grid-row-end: 2;
  -ms-grid-row: 1;
  grid-row-start: 1;
  text-align: center;
  white-space: normal;
  word-break: break-all;
  word-break: break-word;
}

.tox .tox-notification__body > * {
  margin: 0;
}

.tox .tox-notification__body > * + * {
  margin-top: 1rem;
}

.tox .tox-notification__icon {
  -ms-grid-row-align: center;
  align-self: center;
  -ms-grid-column-span: 1;
  grid-column-end: 2;
  -ms-grid-column: 1;
  grid-column-start: 1;
  -ms-grid-row-span: 1;
  grid-row-end: 2;
  -ms-grid-row: 1;
  grid-row-start: 1;
  -ms-grid-column-align: end;
  justify-self: end;
}

.tox .tox-notification__icon svg {
  display: block;
}

.tox .tox-notification__dismiss {
  -ms-grid-row-align: start;
  align-self: start;
  -ms-grid-column-span: 1;
  grid-column-end: 4;
  -ms-grid-column: 3;
  grid-column-start: 3;
  -ms-grid-row-span: 1;
  grid-row-end: 2;
  -ms-grid-row: 1;
  grid-row-start: 1;
  -ms-grid-column-align: end;
  justify-self: end;
}

.tox .tox-notification .tox-progress-bar {
  -ms-grid-column-span: 3;
  grid-column-end: 4;
  -ms-grid-column: 1;
  grid-column-start: 1;
  -ms-grid-row-span: 1;
  grid-row-end: 3;
  -ms-grid-row: 2;
  grid-row-start: 2;
  -ms-grid-column-align: center;
  justify-self: center;
}

.tox .tox-pop {
  display: inline-block;
  position: relative;
}

.tox .tox-pop--resizing {
  transition: width 0.1s ease;
}

.tox .tox-pop--resizing .tox-toolbar,
.tox .tox-pop--resizing .tox-toolbar__group {
  flex-wrap: nowrap;
}

.tox .tox-pop--transition {
  transition: 0.15s ease;
  transition-property: left, right, top, bottom;
}

.tox .tox-pop--transition::after,
.tox .tox-pop--transition::before {
  transition:
    all 0.15s,
    visibility 0s,
    opacity 75ms ease 75ms;
}

.tox .tox-pop__dialog {
  background-color: #fff;
  border: $default-border;
  border-radius: $default-border-radius;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  min-width: 0;
  overflow: hidden;
}

.tox .tox-pop__dialog > :not(.tox-toolbar) {
  margin: 3.25px 3.25px 3.25px 6.5px;
}

.tox .tox-pop__dialog .tox-toolbar {
  background-color: transparent;
  margin-bottom: -1px;
}

.tox .tox-pop::after,
.tox .tox-pop::before {
  border-style: solid;
  content: "";
  display: block;
  height: 0;
  opacity: 1;
  position: absolute;
  width: 0;
}

.tox .tox-pop.tox-pop--inset::after,
.tox .tox-pop.tox-pop--inset::before {
  opacity: 0;
  transition:
    all 0s 0.15s,
    visibility 0s,
    opacity 75ms ease;
}

.tox .tox-pop.tox-pop--bottom::after,
.tox .tox-pop.tox-pop--bottom::before {
  left: 50%;
  top: 100%;
}

.tox .tox-pop.tox-pop--bottom::after {
  border-color: #fff transparent transparent transparent;
  border-width: 8px;
  margin-left: -8px;
  margin-top: -1px;
}

.tox .tox-pop.tox-pop--bottom::before {
  border-color: rgba(175, 175, 175, 0.5) transparent transparent transparent;
  border-width: 9px;
  margin-left: -9px;
}

.tox .tox-pop.tox-pop--top::after,
.tox .tox-pop.tox-pop--top::before {
  left: 50%;
  top: 0;
  transform: translateY(-100%);
}

.tox .tox-pop.tox-pop--top::after {
  border-color: transparent transparent #fff transparent;
  border-width: 8px;
  margin-left: -8px;
  margin-top: 1px;
}

.tox .tox-pop.tox-pop--top::before {
  border-color: transparent transparent rgba(175, 175, 175, 0.5) transparent;
  border-width: 9px;
  margin-left: -9px;
}

.tox .tox-pop.tox-pop--left::after,
.tox .tox-pop.tox-pop--left::before {
  left: 0;
  top: calc(50% - 1px);
  transform: translateY(-50%);
}

.tox .tox-pop.tox-pop--left::after {
  border-color: transparent #fff transparent transparent;
  border-width: 8px;
  margin-left: -15px;
}

.tox .tox-pop.tox-pop--left::before {
  border-color: transparent rgba(175, 175, 175, 0.5) transparent transparent;
  border-width: 10px;
  margin-left: -19px;
}

.tox .tox-pop.tox-pop--right::after,
.tox .tox-pop.tox-pop--right::before {
  left: 100%;
  top: calc(50% + 1px);
  transform: translateY(-50%);
}

.tox .tox-pop.tox-pop--right::after {
  border-color: transparent transparent transparent #fff;
  border-width: 8px;
  margin-left: -1px;
}

.tox .tox-pop.tox-pop--right::before {
  border-color: transparent transparent transparent rgba(175, 175, 175, 0.5);
  border-width: 10px;
  margin-left: -1px;
}

.tox .tox-pop.tox-pop--align-left::after,
.tox .tox-pop.tox-pop--align-left::before {
  left: 20px;
}

.tox .tox-pop.tox-pop--align-right::after,
.tox .tox-pop.tox-pop--align-right::before {
  left: calc(100% - 20px);
}

.tox .tox-sidebar-wrap {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  -ms-flex-preferred-size: 0;
  min-height: 0;
}

.tox .tox-sidebar {
  background-color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.tox .tox-sidebar__slider {
  display: flex;
  overflow: hidden;
}

.tox .tox-sidebar__pane-container {
  display: flex;
}

.tox .tox-sidebar__pane {
  display: flex;
}

.tox .tox-sidebar--sliding-closed {
  opacity: 0;
}

.tox .tox-sidebar--sliding-open {
  opacity: 1;
}

.tox .tox-sidebar--sliding-growing,
.tox .tox-sidebar--sliding-shrinking {
  transition:
    width 0.5s ease,
    opacity 0.5s ease;
}

.tox .tox-selector {
  background-color: #4099ff;
  border-color: #4099ff;
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  display: inline-block;
  height: 10px;
  position: absolute;
  width: 10px;
}

.tox.tox-platform-touch .tox-selector {
  height: 12px;
  width: 12px;
}

.tox .tox-slider {
  align-items: center;
  display: flex;
  flex: 1;
  -ms-flex-preferred-size: auto;
  height: 24px;
  justify-content: center;
  position: relative;
}

.tox .tox-slider__rail {
  background-color: transparent;
  border: $default-border;
  border-radius: $default-border-radius;
  height: 10px;
  min-width: 120px;
  width: 100%;
}

.tox .tox-slider__handle {
  background-color: #2d5a8d;
  border: 2px solid #214166;
  border-radius: $default-border-radius;
  box-shadow: none;
  height: 24px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 14px;
}

.tox .tox-source-code {
  overflow: auto;
}

.tox .tox-spinner {
  display: flex;
}

.tox .tox-spinner > div {
  animation: tam-bouncing-dots 1.5s ease-in-out 0s infinite both;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 100%;
  height: 6.5px;
  width: 6.5px;
}

.tox .tox-spinner > div:nth-child(1) {
  animation-delay: -0.32s;
}

.tox .tox-spinner > div:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes tam-bouncing-dots {
  0%,
  100%,
  80% {
    transform: scale(0);
  }

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

.tox:not([dir="rtl"]) .tox-spinner > div:not(:first-child) {
  margin-left: 3.25px;
}

.tox[dir="rtl"] .tox-spinner > div:not(:first-child) {
  margin-right: 3.25px;
}

.tox .tox-statusbar {
  align-items: center;
  background-color: $light-gray;
  border-top: $default-border;
  color: $muted-text-color;
  display: flex;
  flex: 0 0 auto;
  font-size: $small-font-size;
  font-weight: 400;
  height: 18px;
  overflow: hidden;
  padding: 0 6.5px;
  position: relative;
}

.tox .tox-statusbar__text-container {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  overflow: hidden;
}

.tox .tox-statusbar__path {
  display: flex;
  flex: 1 1 auto;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tox .tox-statusbar__path > * {
  display: inline;
  white-space: nowrap;
}

.tox .tox-statusbar__wordcount {
  flex: 0 0 auto;
  margin-left: 1ch;
}

.tox .tox-statusbar a,
.tox .tox-statusbar__path-item,
.tox .tox-statusbar__wordcount {
  color: $text-color;
  text-decoration: none;
}

.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled="true"]),
.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled="true"]),
.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled="true"]),
.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled="true"]),
.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled="true"]),
.tox
  .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled="true"]) {
  cursor: pointer;
  text-decoration: underline;
}

.tox .tox-statusbar__resize-handle {
  align-items: flex-end;
  align-self: stretch;
  cursor: nwse-resize;
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: -6.5px;
  padding-left: 1ch;
}

.tox .tox-statusbar__resize-handle svg {
  display: block;
  fill: $icon-color;
}

.tox .tox-statusbar__resize-handle:focus svg {
  background-color: #d9d9d9;
  border-radius: 1px;
  box-shadow: 0 0 0 2px #d9d9d9;
}

.tox:not([dir="rtl"]) .tox-statusbar__path > * {
  margin-right: 3.25px;
}

.tox:not([dir="rtl"]) .tox-statusbar__branding {
  margin-left: 1ch;
}

.tox[dir="rtl"] .tox-statusbar {
  flex-direction: row-reverse;
}

.tox[dir="rtl"] .tox-statusbar__path > * {
  margin-left: 3.25px;
}

.tox .tox-throbber {
  z-index: 1299;
}

.tox .tox-throbber__busy-spinner {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.6);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.tox .tox-tbtn {
  align-items: center;
  background: 0 0;
  border: 0;
  border-radius: $default-border-radius;
  box-shadow: none;
  color: $icon-color;
  display: flex;
  flex: 0 0 auto;
  font-size: $base-font-size;
  font-style: normal;
  font-weight: 400;
  height: $icon-button-medium-height;
  justify-content: center;
  margin: $default-margin 1px;
  outline: 0;
  overflow: hidden;
  padding: 0;
  text-transform: none;
  width: $icon-button-medium-width;
}

.tox .tox-tbtn svg {
  display: block;
  fill: $icon-color;
}

.tox .tox-tbtn.tox-tbtn-more {
  padding-left: 5px;
  padding-right: 5px;
  width: inherit;
}

.tox .tox-tbtn:focus {
  background: rgba(175, 175, 175, 0.25);
  border: 0;
  box-shadow: none;
}

.tox .tox-tbtn:hover {
  background: rgba(175, 175, 175, 0.25);
  border: 0;
  box-shadow: none;
  color: rgba(51, 59, 81, 0.8);
}

.tox .tox-tbtn:hover svg {
  fill: rgba(51, 59, 81, 0.8);
}

.tox .tox-tbtn:active {
  background: rgba(175, 175, 175, 0.5);
  border: 0;
  box-shadow: none;
  color: rgba(51, 59, 81, 0.8);
}

.tox .tox-tbtn:active svg {
  fill: rgba(51, 59, 81, 0.8);
}

.tox .tox-tbtn--disabled,
.tox .tox-tbtn--disabled:hover,
.tox .tox-tbtn:disabled,
.tox .tox-tbtn:disabled:hover {
  background: 0 0;
  border: 0;
  box-shadow: none;
  color: rgba(51, 59, 81, 0.5);
  cursor: not-allowed;
}

.tox .tox-tbtn--disabled svg,
.tox .tox-tbtn--disabled:hover svg,
.tox .tox-tbtn:disabled svg,
.tox .tox-tbtn:disabled:hover svg {
  fill: rgba(51, 59, 81, 0.5);
}

.tox .tox-tbtn--enabled,
.tox .tox-tbtn--enabled:hover {
  background: rgba(175, 175, 175, 0.5);
  border: 0;
  box-shadow: none;
  color: rgba(51, 59, 81, 0.8);
}

.tox .tox-tbtn--enabled:hover > *,
.tox .tox-tbtn--enabled > * {
  transform: none;
}

.tox .tox-tbtn--enabled svg,
.tox .tox-tbtn--enabled:hover svg {
  fill: rgba(51, 59, 81, 0.8);
}

.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) {
  color: rgba(51, 59, 81, 0.8);
}

.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg {
  fill: rgba(51, 59, 81, 0.8);
}

.tox .tox-tbtn:active > * {
  transform: none;
}

.tox .tox-tbtn--md {
  height: 51px;
  width: 51px;
}

.tox .tox-tbtn--lg {
  flex-direction: column;
  height: 68px;
  width: 68px;
}

.tox .tox-tbtn--return {
  -ms-grid-row-align: stretch;
  align-self: stretch;
  height: unset;
  width: 16px;
}

.tox .tox-tbtn--labeled {
  padding: 0 4px;
  width: unset;
}

.tox .tox-tbtn__vlabel {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 3.25px;
  white-space: nowrap;
}

.tox .tox-tbtn--select {
  margin: 2px 0 3px 0;
  padding: 0 4px;
  width: auto;
}

.tox .tox-tbtn__select-label {
  cursor: default;
  font-weight: 400;
  margin: 0 4px;
}

.tox .tox-tbtn__select-chevron {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 13px;
}

.tox .tox-tbtn__select-chevron svg {
  fill: rgba(51, 59, 81, 0.5);
}

.tox .tox-tbtn--bespoke .tox-tbtn__select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 6em;
}

.tox .tox-split-button {
  border: 0;
  border-radius: $default-border-radius;
  box-sizing: border-box;
  display: flex;
  margin: 2px 0 3px 0;
  overflow: hidden;
}

.tox .tox-split-button:hover {
  box-shadow: 0 0 0 1px rgba(175, 175, 175, 0.25) inset;
}

.tox .tox-split-button:focus {
  background: rgba(175, 175, 175, 0.25);
  box-shadow: none;
  color: rgba(51, 59, 81, 0.8);
}

.tox .tox-split-button > * {
  border-radius: 0;
}

.tox .tox-split-button__chevron {
  width: 13px;
}

.tox .tox-split-button__chevron svg {
  fill: rgba(51, 59, 81, 0.5);
}

.tox .tox-split-button .tox-tbtn {
  margin: 0;
}

.tox.tox-platform-touch .tox-split-button .tox-tbtn:first-child {
  width: 30px;
}

.tox.tox-platform-touch .tox-split-button__chevron {
  width: 17px;
}

.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus,
.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,
.tox .tox-split-button.tox-tbtn--disabled:focus,
.tox .tox-split-button.tox-tbtn--disabled:hover {
  background: 0 0;
  box-shadow: none;
  color: rgba(51, 59, 81, 0.5);
}

.tox .tox-toolbar-overlord {
  background-color: $light-gray;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
  background: url("data:image/svg+xml;charset=utf8,%3Csvg height='34px' viewBox='0 0 40 39px' width='34px' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='33px' width='100' height='1' fill='rgba%28175,%20175,%20175,%200.5%29'/%3E%3C/svg%3E")
    left 0 top 0 $light-gray;
  display: flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 0 0;
}

.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed {
  height: 0;
  opacity: 0;
  padding-bottom: 0;
  padding-top: 0;
  visibility: hidden;
}

.tox .tox-toolbar__overflow--growing {
  transition:
    height 0.3s ease,
    opacity 0.2s linear 0.1s;
}

.tox .tox-toolbar__overflow--shrinking {
  transition:
    opacity 0.3s ease,
    height 0.2s linear 0.1s,
    visibility 0s linear 0.3s;
}

.tox .tox-menubar + .tox-toolbar,
.tox .tox-menubar + .tox-toolbar-overlord .tox-toolbar__primary {
  border-top: $default-border;
  margin-top: -1px;
}

.tox .tox-toolbar--scrolling {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.tox .tox-pop .tox-toolbar {
  border-width: 0;
}

.tox .tox-toolbar--no-divider {
  background-image: none;
}

.tox-tinymce:not(.tox-tinymce-inline)
  .tox-editor-header:not(:first-child)
  .tox-toolbar-overlord:first-child
  .tox-toolbar__primary,
.tox-tinymce:not(.tox-tinymce-inline)
  .tox-editor-header:not(:first-child)
  .tox-toolbar:first-child {
  border-top: $default-border;
}

.tox.tox-tinymce-aux .tox-toolbar__overflow {
  background-color: #fff;
  border: $default-border;
  border-radius: $default-border-radius;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.tox .tox-toolbar__group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  margin: 0 0;
  padding: 0 3px 0 3px;
}

.tox .tox-toolbar__group--pull-right {
  margin-left: auto;
}

.tox .tox-toolbar--scrolling .tox-toolbar__group {
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.tox:not([dir="rtl"]) .tox-toolbar__group:not(:last-of-type) {
  border-right: $default-border;
}

.tox[dir="rtl"] .tox-toolbar__group:not(:last-of-type) {
  border-left: $default-border;
}

.tox .tox-tooltip {
  display: inline-block;
  padding: 6.5px;
  position: relative;
}

.tox .tox-tooltip__body {
  background-color: #000;
  border-radius: $default-border-radius;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.75);
  font-size: $base-font-size;
  font-style: normal;
  font-weight: 400;
  padding: 3.25px 6.5px;
  text-transform: none;
}

.tox .tox-tooltip__arrow {
  position: absolute;
}

.tox .tox-tooltip--down .tox-tooltip__arrow {
  border-left: 6.5px solid transparent;
  border-right: 6.5px solid transparent;
  border-top: 6.5px solid #000;
  bottom: 0;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.tox .tox-tooltip--up .tox-tooltip__arrow {
  border-bottom: 6.5px solid #000;
  border-left: 6.5px solid transparent;
  border-right: 6.5px solid transparent;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.tox .tox-tooltip--right .tox-tooltip__arrow {
  border-bottom: 6.5px solid transparent;
  border-left: 6.5px solid #000;
  border-top: 6.5px solid transparent;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.tox .tox-tooltip--left .tox-tooltip__arrow {
  border-bottom: 6.5px solid transparent;
  border-right: 6.5px solid #000;
  border-top: 6.5px solid transparent;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.tox .tox-well {
  border: $default-border;
  border-radius: $default-border-radius;
  padding: 6.5px;
  width: 100%;
}

.tox .tox-well > :first-child {
  margin-top: 0;
}

.tox .tox-well > :last-child {
  margin-bottom: 0;
}

.tox .tox-well > :only-child {
  margin: 0;
}

.tox .tox-custom-editor {
  border: $default-border;
  border-radius: $default-border-radius;
  display: flex;
  flex: 1;
  position: relative;
}

.tox .tox-dialog-loading::before {
  background-color: rgba(0, 0, 0, 0.5);
  content: "";
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 1000;
}

.tox .tox-tab {
  cursor: pointer;
}

.tox .tox-dialog__content-js {
  display: flex;
  flex: 1;
  -ms-flex-preferred-size: auto;
}

.tox .tox-dialog__body-content .tox-collection {
  display: flex;
  flex: 1;
  -ms-flex-preferred-size: auto;
}

.tox .tox-image-tools-edit-panel {
  height: 60px;
}

.tox .tox-image-tools__sidebar {
  height: 60px;
}