@font-face {
  font-family: 'img-library';
  src:
    url('/fonts/img-library.woff2?9ok8ba') format('woff2'),
    url('/fonts/img-library.ttf?9ok8ba') format('truetype'),
    url('/fonts/img-library.woff?9ok8ba') format('woff'),
    url('/fonts/img-library.svg?9ok8ba#img-library') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"], [class*=" icon-"], .mce_img_library .menu div:before, .mce_icon:before, .mce_font {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'img-library' !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mce_template_frame {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 20px;
  background: #0000003d;
  z-index: 99999;
}
.mce_template_frame .pgt_inner {
  background: #fff;
  background: light-dark(#fff, #303030);
  max-width: 1400px;
  min-height: 100px;
  margin: 0 auto;
  border-radius: 7px;
  padding: 20px;
  box-shadow: 0 0 10px #00000038;
}
.mce_template_frame .page_templates {
  display: grid;
  grid-template-columns: 350px auto;
  gap: 10px;
}
.mce_template_frame .pgt_list {
  border: 1px solid #ddd;
  border: 1px solid light-dark(#ddd, #797979);

  overflow-y: scroll;
  max-height: calc(100vh - 300px);
  border-radius: 7px;
}
.mce_template_frame .pgt_preview {
  position: relative;

  border: 1px solid #ddd;
  border: 1px solid light-dark(#ddd, #797979);

  border-radius: 7px;
  padding: 20px;
}
.mce_template_frame .pgt_btns {
  position: absolute;
  bottom: 0;
  right: 20px;
  text-align: center;

  border-top: 1px solid #ddd;
  border-top: 1px solid light-dark(#ddd, #797979);

  left: 20px;
  line-height: 60px;
}
.page_templates .pgt_template {
  border-radius: 4px;
  padding: 0 15px;
  line-height: 40px;

  border: 1px solid #ddd;
  background: #f5f5f5;

  border: 1px solid light-dark(#ddd, #797979);
  background: light-dark(#f5f5f5, #5b5b5b);

  margin-bottom: 10px;
  cursor: pointer;
}
.page_templates .pgt_template.sel {
  border: 1px solid #5a8db8;

  background: #d9f1ff;
  background: light-dark(#d9f1ff, #5a8db8);
}
.page_templates .pgt_template h1 {
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.page_templates .code_wrapper, .page_templates .page_wrapper {
  margin: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;

  border-bottom: 1px solid #ddd;
  border-bottom: 1px solid light-dark(#ddd, #797979);
}
.page_templates .page_wrapper {
  border: none;
}
.page_templates h2 {
  font-size: 18px;
  padding: 0 10px;
  margin: 0;
  margin-bottom: 20px;
}


.mce_template_frame .pgt_inner {
  position: relative;
}
.mce_img_library .menu {
  border-bottom: 1px solid #7d7d7d;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  padding-right: 60px;
}
.mce_img_library .menu div {
  font-size: 13px;
  padding: 0 10px;
  line-height: 35px;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 700;
  text-transform: uppercase;
}
.mce_img_library .menu div:hover {
  border-radius: 7px;
  background: #1182c33d;
  border: 1px solid #1182c38f;
}
.mce_img_library .menu div:before {
  margin-right: 5px;
  font-size: 19px;
  vertical-align: sub;
}
.mce_img_library .menu .new:before {
  content: "a";
}
.mce_img_library .menu .upload:before {
  content: "u";
}
.mce_img_library .menu .display_grid:before {
  content: "g";
}
.mce_img_library .menu .display_list:before {
  content: "l";
}
.mce_img_library .menu .sort_date:before {
  content: "q";
}
.mce_img_library .menu .sort_name:before {
  content: "s";
}

.mce_template_frame .img_templates {
  display: grid;
  grid-template-columns: 220px auto;
  gap: 10px;
}

.mce_template_frame .img_folder_list {
  border-right: 1px solid #7d7d7d;
  padding: 10px 10px 10px 0;
}
.mce_template_frame .img_folder_list .folder {
  position: relative;
  font-size: 17px;
  line-height: 40px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 700;
  border: 1px solid transparent;
  margin-bottom: 2px;
  display: grid;
  grid-template-columns: auto 15px;
}
.mce_template_frame .img_folder_list .folder:hover, .img_folder_list .folder.sel {
  border-radius: 7px;
  background: #1182c33d;
  border: 1px solid #1182c38f;
}
.mce_template_frame .img_folder_list .folder .name:before {
  content: "o";
  margin-right: 5px;
}
.mce_template_frame .img_folder_list .folder .edit {
  opacity: 0;
  margin-top: 10px;
}
.mce_template_frame .img_folder_list .folder:hover .edit,
.mce_template_frame .img_folder_list .folder.sel .edit {
  opacity: 1;
}

.mce_template_frame .img_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  overflow-y: scroll;
  height: calc(100vh - 170px);
  padding: 20px 20px 20px 10px;
  align-items: self-start;
}
@media only screen and (max-width: 1320px) {
  .mce_template_frame .img_list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media only screen and (max-width: 1040px) {
  .mce_template_frame .img_list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 790px) {
  .mce_img_library .menu {
    justify-content: center;
  }
  .mce_template_frame .img_list {
    grid-template-columns: 1fr;
  }
}
@media only screen and (max-width: 550px) {
  .mce_template_frame .img_templates {
    grid-template-columns: 1fr;
  }
  .mce_template_frame .img_folder_list {
    border: none;
    border-bottom: 1px solid #7d7d7d;
  }
  .mce_template_frame .img_list {
    height: calc(100vh - 265px);
  }
}
.mce_template_frame .img_templates.list .img_list {
  grid-template-columns: 1fr;
  text-align: left;
  gap: 3px;
}
.mce_template_frame .img_list .file {
  position: relative;
  padding: 10px;
  border: 1px solid transparent;
}
.mce_template_frame .img_list .file:hover, .img_list .file.sel {
  border-radius: 7px;
  background: #1182c33d;
  border: 1px solid #1182c38f;
}
.mce_template_frame .img_list .media {
  height: 200px;
}
.mce_template_frame .img_list .name {
  font-weight: 600;
  font-size: 14px;
  margin: 10px auto;
  line-height: 20px;
  inline-size: 200px;
  overflow-wrap: break-word;
}
.mce_template_frame .img_list .name .mce_font {
  margin-left: 9px;
  color: #fff;
  cursor: pointer;
}
.mce_template_frame .img_list .file:hover .name .mce_font,
.mce_template_frame .img_list .file.sel .name .mce_font {
  color: light-dark(#4a4a4a, #fff);
}
.mce_template_frame .img_list .date {
  display: none;
}
.mce_template_frame .img_list .file .select {
  opacity: 0;
  background: #1182c3;
  color: #fff;
  display: inline-block;
  margin-top: 10px;
  line-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.mce_template_frame .img_list .file:hover .select,
.mce_template_frame .img_list .file.sel .select {
  opacity: 1;
}
.mce_template_frame .img_list .file .delete {
  position: absolute;
  top: 0;
  right: 10px;
  opacity: 0;
  background: #df3f3f;
  color: #fff;
  display: inline-block;
  margin-top: 10px;
  line-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.mce_template_frame .img_list .file:hover .delete,
.mce_template_frame .img_list .file.sel .delete {
  opacity: 1;
}
.mce_template_frame .img_list img,
.mce_template_frame .img_list video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.img_templates.list .img_list .file {
  display: grid;
  grid-template-columns: 50px auto 112px 180px 62px 33px;
  gap: 10px;
}
.img_templates.list .img_list .media {
  height: 50px;
}
.img_templates.list .img_list .name,
.img_templates.list .img_list .info,
.img_templates.list .img_list .date {
  line-height: 50px;
  margin: 0;
}
.img_templates.list .img_list .name {
  inline-size: auto;
  overflow-wrap: unset;
  overflow: hidden;
}
.img_templates.list .img_list .date {
  display: block;
}
.img_templates.list .img_list .file .select {
  height: 30px;
}
.img_templates.list .img_list .file .delete {
  top: 10px;
}

.mce_template_frame .close_img_library {
  position: absolute;
  top: 21px;
  right: 19px;
  border: 1px solid #4a4a4a;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 100%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.mce_template_frame .btns {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.mce_template_frame .popup {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 20px;
  padding-top: 30px;
  background: #00000014;
  border-radius: 7px;
  display: none;
  text-align: center;
  z-index: 100;
}
.mce_template_frame .popup.del_image {
  text-align: center;
}
.mce_template_frame .popup.del_image .btns {
  margin-top: 20px;
}
.mce_template_frame .popup p {
  font-size: 14px;
  line-height: 24px;
}
.mce_template_frame .popup.file_loading {
  background: url(/images/loading5.svg) no-repeat;
  background-position: center center;
}
.mce_template_frame .popup .inner {
  background: #fff;
  background: light-dark(#fff, #141414);
  border-radius: 7px;
  box-shadow: 0 0 10px #0000004d;
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.mce_template_frame .popup.folder_actions .folder_opts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 25px;
  cursor: pointer;
}
.mce_template_frame .popup.folder_actions .folder_opts div {
  padding: 0;
  font-size: 13px;
  font-weight: bold;
  border-bottom: 2px solid #8f8f8f;
  line-height: 30px;
}
.mce_template_frame .popup.folder_actions .folder_opts div.sel {
  border-bottom: 2px solid #0fa8fc;
}
.mce_template_frame .popup .del_folder h2 {
  margin-bottom: 20px;
}

.img_library_upload_form .fieldset_flex {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}
.mce_template_frame .legend {
  grid-column: span 2;
}

.mce_template_frame .new_folder,
.mce_template_frame .img_library_file_input,
.mce_template_frame .popup .del_folder {
  display: none;
}