div.wpforms-container .wpforms-form div.wpforms-field-richtext .insert-media.add_media {
  display: none !important;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-container {
  color: initial;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext.wpforms-has-error .quicktags-toolbar {
  border-top-color: #cc0000;
  border-left-color: #cc0000;
  border-right-color: #cc0000;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext.wpforms-has-error .wp-switch-editor {
  border-color: #cc0000;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext.wpforms-has-error .wp-editor-container textarea.wp-editor-area {
  border-color: #cc0000;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .wp-switch-editor {
  float: left;
  box-sizing: border-box;
  position: relative;
  top: var(--wpforms-field-border-size, 1px);
  background: #e6e6e6;
  color: #595959;
  cursor: pointer;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.46153846;
  height: 29px;
  margin: 0 0 0 5px;
  padding: 3px 8px 4px;
  border: 1px solid #cccccc;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .wp-editor-tabs {
  float: right;
  position: relative;
  z-index: 1;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .html-active button.switch-html,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .tmce-active button.switch-tmce,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-widget.mce-btn button {
  border-bottom-color: transparent;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .tmce-active button.switch-tmce,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .html-active button.switch-html {
  background: #f5f5f5;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .tmce-active.wpforms-focused button.switch-tmce,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .html-active.wpforms-focused button.switch-html {
  top: 0;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .html-active .quicktags-toolbar {
  display: flex;
  flex-wrap: wrap;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-btn.active, div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-btn:active, div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-btn.mce-active,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .qt-dfw.active.active,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .qt-dfw.active:active,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .qt-dfw.active.mce-active {
  background-color: transparent;
  color: inherit;
  border-color: #8c8f94;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-btn.active.mce-btn-has-text, div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-btn:active.mce-btn-has-text, div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-btn.mce-active.mce-btn-has-text,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .qt-dfw.active.active.mce-btn-has-text,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .qt-dfw.active:active.mce-btn-has-text,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .qt-dfw.active.mce-active.mce-btn-has-text {
  background-color: #ffffff;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-btn:focus, div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-btn:hover,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .qt-dfw.active:focus,
div.wpforms-container .wpforms-form div.wpforms-field-richtext .qt-dfw.active:hover {
  border-color: #8c8f94;
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0, 0, 0, 0.08);
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .quicktags-toolbar {
  padding: 3px;
  position: relative;
  border: 1px solid #cccccc;
  border-top-left-radius: 2px;
  background: #f5f5f5;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .quicktags-toolbar .button {
  height: 26px;
  min-height: 26px;
  line-height: 24px;
  border-width: 1px;
  border-style: solid;
  -webkit-appearance: none;
  border-radius: 3px;
  font-weight: 400;
  color: #2271b1;
  border-color: #2271b1;
  background: #f6f7f7;
  vertical-align: top;
  padding: 0 8px;
  margin-right: 4px;
  text-transform: none;
  text-decoration: none;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .quicktags-toolbar .button:hover {
  text-decoration: none;
  background: #f6f7f7;
  border-color: #0a4b78;
  color: #0a4b78;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .quicktags-toolbar .button[value="b"], div.wpforms-container .wpforms-form div.wpforms-field-richtext .quicktags-toolbar .button[value="/b"] {
  font-weight: bold;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .quicktags-toolbar .button[value="i"], div.wpforms-container .wpforms-form div.wpforms-field-richtext .quicktags-toolbar .button[value="/i"] {
  font-style: italic;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .quicktags-toolbar .button[value="link"] {
  text-decoration: underline;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .quicktags-toolbar .button[value="del"], div.wpforms-container .wpforms-form div.wpforms-field-richtext .quicktags-toolbar .button[value="/del"] {
  text-decoration: line-through;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .wp-editor-container textarea.wp-editor-area {
  border-radius: 0 0 2px 2px;
  border-top: 0;
  border-color: #cccccc;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .wp-editor-container textarea.wp-editor-area:focus {
  outline: none;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-toolbar-grp .mce-active i {
  color: inherit;
}

div.wpforms-container .wpforms-form div.wpforms-field-richtext .mce-toolbar-grp .mce-active .mce-caret {
  border-top: 0;
  border-bottom: 6px solid #595959;
}

#wpforms-form-page-page div.wpforms-field-richtext button.wp-switch-editor {
  font-size: 13px;
}

.rtl div.wpforms-container .wpforms-form div.wpforms-field-richtext div.wp-editor-tabs {
  float: left;
}

.rtl div.wpforms-container .wpforms-form div.wpforms-field-richtext div.wp-editor-tabs button.switch-tmce {
  margin-left: 0;
}

.rtl div.wpforms-container .wpforms-form div.wpforms-field-richtext div.wp-editor-tabs button.switch-tmce:after {
  left: 0 !important;
}

.rtl .wpforms-form div.wpforms-field-richtext .mce-container-body .mce-resizehandle {
  right: auto;
  left: 0;
  padding-left: 0;
}

.rtl .wpforms-form div.wpforms-field-richtext .mce-container-body .mce-resizehandle .mce-i-resize {
  transform: rotate(90deg);
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext label.wpforms-field-label {
  margin-bottom: -25px;
  margin-top: 8px;
  max-width: 70%;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext.wpforms-has-error .mce-toolbar-grp {
  border-top-color: #cc0000;
  border-left-color: #cc0000;
  border-right-color: #cc0000;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext.wpforms-has-error .mce-tinymce > .mce-container-body {
  border-color: #cc0000;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-edit-area {
  overflow: hidden;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-tinymce > .mce-container-body {
  visibility: inherit;
  border: 1px solid #cccccc;
  border-bottom-left-radius: 2px;
  border-top-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-tinymce > .mce-container-body * {
  visibility: inherit;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .wp-media-buttons {
  display: none;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .wp-editor-wrap {
  box-shadow: none;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-container::before {
  position: inherit;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar-grp {
  color: #595959;
  border-bottom: 1px solid #cccccc;
  background: #f5f5f5;
  position: relative;
  border-top-left-radius: 2px;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar-grp > div {
  padding: 3px;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar-grp .mce-caret {
  right: 8px;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 6px solid #595959;
  border-bottom: 0;
  margin: 6px 0 6px 0;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-btn.mce-listbox {
  background: #ffffff;
  border: 1px solid #cccccc;
  margin: 2px;
  padding: 0 5px;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-btn.mce-listbox:hover {
  border-color: #8c8f94;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-btn.mce-listbox button {
  padding: 2px 3px;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-btn.mce-listbox button span {
  overflow-x: hidden;
  text-overflow: ellipsis;
  width: 82px;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-widget.mce-btn:not(.mce-btn-has-text) button,
div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-widget.mce-btn:not(.mce-btn-has-text):hover button {
  width: 23px;
  font-size: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  background-color: transparent;
  color: inherit;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-widget.mce-btn.mce-btn-disabled {
  opacity: 0.5;
  pointer-events: none;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-widget.mce-btn.mce-colorbutton {
  display: inline-flex;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-widget.mce-btn.mce-colorbutton button {
  position: relative;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-widget.mce-btn.mce-colorbutton .mce-preview {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-widget.mce-btn .mce-open {
  border-left: 1px solid transparent;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-widget.mce-btn:hover .mce-open {
  border-color: inherit;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-toolbar .mce-btn-group .mce-widget.mce-btn.mce-btn-has-text button {
  font-size: 13px;
  line-height: 1.538;
  padding-left: 6px;
  background-color: #ffffff;
  height: 24px;
  display: block;
  color: inherit;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext iframe {
  display: block;
  font-size: initial;
  margin: auto;
  padding: initial;
  border: inherit;
  background: #ffffff;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-statusbar {
  border-top: 1px solid #cccccc;
  background: #ffffff;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  color: rgba(0, 0, 0, 0.7);
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-statusbar .mce-container-body {
  position: relative;
  font-size: 11px;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-statusbar .mce-container-body .mce-resizehandle {
  position: absolute;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-statusbar .mce-path.mce-flow-layout-item.mce-first {
  padding: 2px 10px;
  margin: 2px 0 2px 2px;
}

div.wpforms-container-full .wpforms-form div.wpforms-field-richtext .mce-statusbar .mce-path.mce-flow-layout-item.mce-first div {
  font-size: 12px;
}

.mce-container .mce-menu-item:focus,
.mce-container .mce-menu-item:hover,
.mce-container .mce-menu-item.mce-active.mce-menu-item-normal {
  background-color: #0073aa;
  color: #ffffff;
}

.mce-container .mce-menu-item:focus .mce-text,
.mce-container .mce-menu-item:focus .mce-ico,
.mce-container .mce-menu-item:hover .mce-text,
.mce-container .mce-menu-item:hover .mce-ico,
.mce-container .mce-menu-item.mce-active.mce-menu-item-normal .mce-text,
.mce-container .mce-menu-item.mce-active.mce-menu-item-normal .mce-ico {
  color: inherit;
}

#wpforms-form-page-page div.wpforms-field-richtext .mce-menubtn button {
  font-size: 13px;
}

@media screen and (max-width: 782px) {
  .media-frame-content .attachments-browser.has-load-more .attachments-wrapper {
    top: 82px;
  }
  .mce-window {
    width: auto !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }
  .mce-foot > .mce-container-body {
    padding: 10px !important;
  }
  .mce-foot .mce-btn.mce-primary {
    margin-inline-end: 10px !important;
  }
  .mce-panel {
    max-width: 100% !important;
  }
  .mce-container {
    max-width: 100% !important;
    height: auto !important;
  }
  .mce-container-body {
    max-width: 100% !important;
    height: auto !important;
  }
  .mce-form {
    padding: 10px !important;
  }
  .mce-tabs {
    max-width: 100% !important;
  }
  .mce-formitem {
    margin: 10px 0 !important;
  }
  .mce-abs-layout-item {
    position: static !important;
    width: auto !important;
  }
  .mce-abs-layout-item.mce-label {
    display: block !important;
  }
  .mce-abs-layout-item.mce-textbox {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
  }
  .mce-abs-layout-item.mce-combobox {
    display: flex !important;
  }
  .mce-abs-layout-item.mce-combobox > .mce-textbox {
    flex: 1 1 auto;
    height: 29px !important;
  }
}
