.metaslider.metaslider_themeEditor {
  margin: 10px 30px;
}
.metaslider.metaslider_themeEditor .switch-preview {
  text-align: center;
  margin-bottom: 20px;
}
.metaslider.metaslider_themeEditor .switch-preview select {
  margin-right: 5px !important;
  width: auto;
  max-width: 400px;
}
.metaslider.metaslider_themeEditor .ms-image-selector {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}
.metaslider.metaslider_themeEditor .ms-image-selector li {
  cursor: pointer;
  margin: 0;
  padding: 2px;
  width: 25%;
}
.metaslider.metaslider_themeEditor .ms-image-selector li a {
  border: 4px solid transparent;
  display: block;
  height: 100%;
  padding: 2px;
}
.metaslider.metaslider_themeEditor .edit-theme-disabled {
  cursor: default;
}
.metaslider.metaslider_themeEditor .edit-theme-disabled:focus {
  box-shadow: none;
}
.metaslider.metaslider_themeEditor .ms-image-selector li:hover a:not(.edit-theme-disabled) {
  border-color: #ccc;
}
.metaslider.metaslider_themeEditor .custom-theme-single {
  text-align: center;
  background-color: #2271b1;
  box-sizing: border-box;
  color: #fff;
  display: block;
  font-size: 24px;
  font-weight: 600;
  min-height: 120px;
  line-height: normal;
  padding: 0;
  position: relative;
  height: 100%;
}
.metaslider.metaslider_themeEditor .custom-theme-single .custom-subtitle {
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  margin-bottom: .1em;
  text-transform: uppercase;
}
.metaslider.metaslider_themeEditor .custom-theme-single img {
  max-width: 100%;
  width: 100%;
  opacity: 0.6;
}
.metaslider.metaslider_themeEditor .custom-theme-single.custom-theme-v2 > div {
  position: absolute;
  top: 50%;
  left: 0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  z-index: 1;
  text-shadow: 0 0px 10px #000;
  width: 100%;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.metaslider.metaslider_themeEditor .custom-theme-single.custom-theme-v2 > div .custom-subtitle {
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  margin-bottom: .1em;
  text-transform: uppercase;
}

.metaslider.metaslider_themeEditor .custom-theme-single.custom-theme-v1 span {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,1);
  color: #2271b1;
  font-size: 0.5em;
  font-weight: normal;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 1;
}

/*.metaslider.metaslider_themeEditor .custom-theme-single.custom-theme-v1 {
  padding: 1rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}*/

.metaslider.metaslider_themeEditor .custom-theme-single.custom-theme-v1 span {
  opacity: 0.5;
}

.metaslider.metaslider_themeEditor .custom-theme-single.custom-theme-v1 div {
  text-align: center;
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
}

.metaslider.metaslider_themeEditor .beta-info-text {
  margin-top: -10px !important;
}

.metaslider.metaslider_themeEditor .title-wrapper {
  margin-bottom: 20px;
  width: 100%;
}
.metaslider.metaslider_themeEditor .title-wrapper input[type="text"] {
  width: calc(100% - 100px);
}
.metaslider.metaslider_themeEditor .confirm {
  margin-top: 10px;
}
.metaslider.metaslider_themeEditor .wrap {
  margin-right: 0;
  margin-left: 0;
}
html[dir='rtl'] .metaslider.metaslider_themeEditor .wrap {
  position: inherit;
}
.metaslider.metaslider_themeEditor table .highlight td {
  background: #f1f1f1;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 2em;
  border-top: 1px solid #c3c4c7;
  border-bottom: 1px solid #c3c4c7;
  padding-left: 20px;
  padding-right: 20px;
}
.metaslider.metaslider_themeEditor .ms-toggle-static {
  float: right;
}
.metaslider.metaslider_themeEditor .ms-toggle-static:focus {
  box-shadow: none;
}
.metaslider.metaslider_themeEditor .ms-toggle-static span {
  margin-top: 6px;
}
.metaslider.metaslider_themeEditor .ms-toggle-static.off span:before {
  content: "\f347";
}
.metaslider.metaslider_themeEditor .ms-toggle-static.on span:before {
  content: "\f343";
}
#theme_editor_container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-gap: 30px;
}
#theme_editor_container[data-editor="v2"] {
  /*grid-template-columns: 440px auto;*/
}
.metaslider .theme_editor_left .widefat {
  margin-bottom: 20px;
  z-index: 9999;
  position: relative;
}
.theme_editor_left .widefat .theme-group table {
  margin: 15px 0;
  width: 100%;
}
.theme_editor_left .widefat .theme-group td {
  height: 40px;
  vertical-align: middle;
  padding: 4px 20px;
}
.theme_editor_left .widefat .theme-group > td {
  padding: 0;
  position: relative;
}
.metaslider.metaslider_themeEditor td > .ms-table-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: #fff;
  z-index: 1;
}
.theme_editor_left .widefat .theme-group td:nth-of-type(1) {
  width: 40%;
}
.theme_editor_left .widefat .theme-group td:nth-of-type(2) {
  width: 60%;
}

/*#theme_editor_container[data-editor="v2"] .theme_editor_left .widefat .theme-group tr.type-header + tr.setting-row td {
  padding-top: 14px;
}

#theme_editor_container[data-editor="v2"] .theme_editor_left .widefat .theme-group .ms-range-dual {
  margin-bottom: 10px;
}

#theme_editor_container[data-editor="v2"] .theme_editor_left .widefat .theme-group .ms-color-tooltip-wrapper {
  margin-bottom: 4px;
}

#theme_editor_container[data-editor="v2"] .theme_editor_left .widefat .theme-group table {
  margin: 0;
}*/
#theme_editor_container[data-editor="v2"] .ms-toggle-static,
#theme_editor_container[data-editor="v2"] .ms-switch-button {
  display: none !important;
}

#theme_editor_container[data-editor="v2"] .theme_editor_left .widefat .theme-group tr.type-header td {
  background: #f1f1f1;
  border-bottom: 1px solid #c3c4c7;
  border-top: 1px solid #c3c4c7;
  color: #50575e;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 2em;
  padding-top: 6px;
  padding-bottom: 6px;
}

.theme_editor_left .widefat .has-inner-table > td {
  padding: 0;
}
.theme_editor_left .widefat .has-inner-table > td > table {
  margin: 0;
}

.base-theme-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.base-theme-info .base-theme-thumbnail img {
  margin-top: 4px;
}

.base-theme-info .base-theme-text {
  width: 52%;
}
.metaslider #theme_editor_container[data-editor="v2"] .theme_editor_right > .theme_editor_preview {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  margin-top: 120px;
}
.metaslider #theme_editor_container[data-editor="v2"] .theme_editor_right > .theme_editor_preview.ms-visible {
  opacity: 1
}
.metaslider .theme_editor_right > .theme_editor_preview > div > div > .metaslider {
  margin: 0 auto;
}
.theme_editor_create_loading,
.metaslider .theme_editor_right > .theme_editor_preview_loading {
  height: 300px;
  text-align: center;
  width: 100%;
  font-size: 1.2em;
  margin-top: 200px;
  transition: display 1s ease-in-out;
}
.metaslider .theme_editor_right > .theme_editor_preview_loading.ms-invisible {
  display: none;
}
.theme_editor_create_loading span,
.metaslider .theme_editor_right > .theme_editor_preview_loading span {
  padding-left: 30px;
  background-repeat: no-repeat;
  background-size: contain;
}
.metaslider div.error, 
.metaslider div.updated {
  margin: 0 0 20px;
}
.metaslider div.error p, 
.metaslider div.updated p {
  margin: 8px 0px !important;
}
.custom_arrow_wrapper {
  position: relative;
  min-height: 40px;
}
#remove_custom_prev_arrow,
#remove_custom_next_arrow {
  margin-left: 10px;
}
#remove_custom_prev_arrow,
#remove_custom_next_arrow,
#custom_prev_arrow,
#custom_next_arrow {
  display: inline-block;
}
.metaslider .theme_editor_left select {
  width: auto;
}
.after,
input.number {
    margin: 0;
}
input.number,
input.number:focus {
    outline: none;
    width: 65px;
    margin-right: 0;
    box-shadow: none;
}
.after {
    border-left: 0;
    box-shadow: none;
    height: 24px;
    line-height: 24px;
    padding: 0 0 0 5px;
    background: white;
}
.ms-range-dual {
  display: flex;
  align-items: center;
}
.ms-range-dual input[type="range"] {
  margin-right: 10px;
}
.ms-switch-button {
  margin: 0 8px 0 0;
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  line-height: 19.5px;
  vertical-align: middle;
}
.ms-switch-button label {
  margin: 17px 0;
}
.ms-switch-button label input {
  display: none;
}
.ms-switch-button label input:checked + span {
  background-color: #dd6923;
}
.ms-switch-button label input:checked + span:before {
  -webkit-transform: translateX(20px);
  -moz-transform: translateX(20px);
  -ms-transform: translateX(20px);
  -o-transform: translateX(20px);
  transform: translateX(20px);
}
.ms-switch-button label span {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.1s;
  -moz-transition: 0.1s;
  -ms-transition: 0.1s;
  -o-transition: 0.1s;
  transition: 0.1s;
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  border-radius: 40px;
  width: auto;
}
.ms-switch-button label span:before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  -webkit-transition: 0.1s;
  -moz-transition: 0.1s;
  -ms-transition: 0.1s;
  -o-transition: 0.1s;
  transition: 0.1s;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
}
#caption-ext-font-2-cols-setting {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 10px;
  align-items: center;
}

/* Color tooltips */
.ms-color-tooltip-wrapper {
  position: relative;
  display: inline-block;
}
.ms-color-tooltip-wrapper .ms-color-tooltip {
  position: absolute;
  background: rgba(0,0,0,0.7);
  color: #fff;
  z-index: 9;
  left: -26px;
  bottom: 23px;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 0.9em;
  visibility: hidden;
  width: 90px;
  height: auto;
  text-align: center;
}
.ms-color-tooltip-wrapper:hover .ms-color-tooltip {
  visibility: visible;
}
.ms-color-tooltip-wrapper .ms-color-tooltip:after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  width: 0;
  height: 0;
  border-top: 5px solid rgba(0,0,0,0.7);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

/* Landing */
.metaslider-pro_page_metaslider-theme-editor #wpbody-content {
	background-color: transparent;
}
.metaslider-theme-editor {
  background: #fff;
  border-color: rgb(221, 221, 221);
  border-style: solid;
  border-width: 1px;
  min-height: auto;
  padding: 20px;
}
.metaslider-pro_page_metaslider-theme-editor .ms-panel-container {
  align-items: center;
}

#theme_editor_container input,
#theme_editor_container textarea,
#theme_editor_container select {
	font-size: 13px;
}

/* Color picker */
#theme_editor_container .wp-picker-container .wp-picker-input-wrap,
#theme_editor_container .wp-picker-container .wp-picker-holder {
  position: absolute;
  z-index: 9999;
}

#theme_editor_container .wp-picker-container .wp-color-result-text,
#theme_editor_container .wp-picker-container .wp-picker-clear {
  display: none;
}

/* Theme Editor v2*/
#select-base-theme .a-theme {
  position: relative;
}

#select-base-theme .a-theme .theme-confirm-wrapper {
  position: absolute;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background: rgba(255,255,255,0.9);
  text-align: center;
  display: grid;
  align-items: center;
  padding: 20px;
}

#select-base-theme .theme-confirm-wrapper.active + a {
  box-shadow: 0 0 0 2px #2271b1;
}

.theme-editor-version {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.theme-editor-version > div {
  text-align: center;
  display: grid;
  align-items: center;
  padding: 30px;
  border: 1px solid #ddd;
  min-height: 300px;
  background: #fff;
}

.theme-editor-version > div a {
  color: #2271b1;
  font-size: 1.2rem;
  line-height: 1.4rem;
}

.theme-editor-version > div a:hover,
.theme-editor-version > div a:active,
.theme-editor-version > div a:focus {
  color: #135e96;
  box-shadow: none;
}

/* Color tooltips */
.ms-color-tooltip-wrapper {
  position: relative;
  display: inline-block;

  /* START custom color picker position */
  .wp-picker-holder > div {
      /*border-bottom: none;*/
      box-shadow: 0 0 5px #ccc;
  }

  .wp-picker-input-wrap {
      bottom: -292px;
      padding: 10px;
      background: #fff;
      border: 1px solid #dcdcde;
      width: 257px;
      box-shadow: 0 0 5px #ccc;
  }

  &:nth-child(1) {
      
      .wp-picker-input-wrap,
      .wp-picker-holder {
          left: -50px;
      }
  }

  &:nth-child(2) {
      
      .wp-picker-input-wrap,
      .wp-picker-holder {
          left: -88px;
      }
  }

  &:nth-child(3) {
      
      .wp-picker-input-wrap,
      .wp-picker-holder {
          left: -126px;
      }
  }

  &:nth-child(4) {
      
      .wp-picker-input-wrap,
      .wp-picker-holder {
          left: -164px;
      }
  }
  /* END custom color picker position */
}

.ms-color-tooltip-wrapper .ms-color-tooltip {
  position: absolute;
  background: rgba(0,0,0,0.6);
  color: #fff;
  z-index: 9;
  left: -24px;
  bottom: 40px;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 0.9em;
  visibility: hidden;
  width: 80px;
  height: auto;
  text-align: center;
}

.ms-color-tooltip-wrapper:hover .ms-color-tooltip {
  visibility: visible;
}

.ms-color-tooltip-wrapper .ms-color-tooltip:after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  width: 0;
  height: 0;
  border-top: 4px solid rgba(0,0,0,0.6);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.ms-color-tooltip-wrapper .iris-picker-inner .ms-color-tooltip {
  bottom: unset;
  top: -32px;
  left: -44px;
  visibility: hidden !important;
}

.ms-color-tooltip-wrapper .iris-picker-inner .iris-strip:hover .ms-color-tooltip {
  visibility: visible !important;
}

@media (max-width: 1200px) {
  .ms-range-dual input[type="range"] {
    width: 50%;
  }
}

@media (max-width: 1024px) {
  .metaslider.metaslider_themeEditor .ms-image-selector li {
    width: 33.3%;
  }
  .ms-range-dual input[type="range"] {
    display: none;
  }
}

@media (min-width: 980px) {
  .metaslider .theme_editor_left select {
    max-width: 160px;
  }
}

@media (max-width: 979px) {
  #theme_editor_container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  #theme_editor_container input,
  #theme_editor_container textarea,
  #theme_editor_container select {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .metaslider.metaslider_themeEditor .ms-image-selector li {
    width: 50%;
  }
}

@media (max-width: 600px) {
  .metaslider.metaslider_themeEditor .ms-image-selector li {
    width: 100%;
  }
}