/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
$admin-font-family: "Roboto", sans-serif;
.wcgs-settings {
  display: flex;
  flex-direction: column;
  position: relative;
  // font-family: $admin-font-family;
  .wcgs-field-image_select {
    .wcgs--image {
      border: none;
      box-shadow: none;
      margin-left: 10px;
      p {
        margin-top: 5px;
        text-align: center;
      }
      &::before {
        background-color: #237c92;
      }
      &.wcgs--active {
        &::before {
          z-index: 2;
          background-color: #237c92;
        }
        img {
          outline: 3px solid #237c92;
          outline-offset: -3px;
        }
      }
    }
  }
  &.wcgs-preloader {
    .wcgs-container {
      position: absolute;
      min-height: 1000px;
      top: 0;
      left: 0;
      width: 100%;
      height: auto;
      z-index: 9999;
      background-image: url("../img/spinner.svg");
      background-repeat: no-repeat;
      background-color: #fff;
      background-position: center;
      .wcgs-admin-header,
      .wcgs-wrapper,
      .wcgs-buttons {
        visibility: hidden;
      }
    }
  }
  .wcgs-container {
    order: 2;
    border: none !important;
    box-shadow: none !important;
  }
  .wcgs-admin-header {
    display: flex;
    order: 1;
    width: 100%;
    height: 80px;
    // background-image: linear-gradient(to right, #b24592, #f15f79);
    background-color: #fff;
    border-radius: 4px;
    // box-shadow: 0 0 20px rgba(33, 36, 46, .5);
    box-shadow: 0px 0px 20px 0px rgba(36, 39, 50, 0.08);
    .wcgs-admin-logo {
      display: flex;
      align-items: center;
      margin-left: 20px;
      padding-left: 45px;
      width: 50%;
      height: 100%;
      color: #343434;
      background-image: url("../img/woo-gallery-slider.svg");
      background-size: 40px;
      background-repeat: no-repeat;
      background-position-y: center;
      font-size: 20px;
      font-weight: 500;
    }
    .wcgs-admin-support-logo {
      width: 50%;
      height: 100%;
      margin-right: 30px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      a {
        position: relative;
        float: right;
        background-repeat: no-repeat;
        color: #3c3c3c;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.25s;
        &:hover {
          color: #5eabc1;
        }
        .fa {
          color: #5eabc1;
          padding-right: 7px;
        }
      }
    }
  }
  .wcgs-header-inner {
    position: absolute;
    background: transparent !important;
    border-bottom: none !important;
    right: 0;
    z-index: 3;
    padding: 18px 0;
    .wcgs-warning-primary {
      margin-right: 0 !important;
    }
  }
  .wcgs-nav {
    width: 100%;
    background-color: #f1f1f1;
    ul {
      padding-top: 18px;
      li {
        display: inline-block;
        height: 48px;
        a {
          display: flex;
          justify-content: center;
          align-items: center;
          font-size: 14px;
          font-weight: 500;
          margin-right: 7px;
          border-bottom: none !important;
          background-color: #f7fdff !important;
          color: #21292b !important;
          background-size: 15px;
          background-repeat: no-repeat;
          background-position: 20px;
          padding: 16px 22px;
          border-top-left-radius: 4px;
          border-top-right-radius: 4px;
          // box-shadow: 0 -5px 10px rgba(33, 36, 46,0.3);
          svg {
            margin-right: 10px;
            path,
            rect {
              fill: #54a6bd;
            }
          }
          &:hover {
            color: #21292b !important;
          }
          &.wcgs-section-active {
            position: relative;
            border-bottom: none !important;
            background-color: #ffffff !important;
            color: #237c92 !important;
            svg {
              path,
              rect {
                fill: #237c92;
              }
            }
          }
        }
      }
    }
  }
  .wcgs-content {
    margin-left: 0;
    margin-top: 13px;
  }
  .wcgs-nav-background {
    background-color: transparent !important;
  }
  // .wcgs-header-right {
  //   position: fixed;
  //   left: 90.3%;
  //   display: flex;
  // }
  .wcgs-buttons .button {
    margin: 0 4px;
    padding: 0px 16px;
    border-radius: 0;
    height: 38px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    // font-family: $admin-font-family;
    color: #ffffff;
    &.wcgs-save-ajax {
      background-color: #02cc7b;
      border-color: transparent;
      color: #fff !important;
      box-shadow: none;
      text-shadow: none;
      border-radius: 4px;
      height: 38px;
      width: 75px;
      transition: background-color 0.2s;
      &:hover {
        background-color: #02bb71;
      }
      &:focus {
        color: #fff;
      }
      &[disabled] {
        background-color: #02bb71 !important;
        border: none;
      }
    }

    &.wcgs-reset-all,
    &.wcgs-reset-section {
      background-color: #cd3c3c !important;
      border-color: transparent !important;
      box-shadow: none !important;
      text-shadow: none !important;
      border-radius: 4px;
      height: 38px;
      // width: 75px;
      transition: background-color 0.2s;
      &:hover {
        background-color: #b82f2f !important;
      }
    }
    &.wcgs-reset-section {
      background-color: #77777c !important;
      &:hover {
        background-color: #85858a !important;
      }
    }
  }
}
.wcgs-gallery-items {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  .wcgs-image {
    position: relative;
    img {
      border: 1px solid #d5d5d5;
      border-radius: 4px;
    }
    &:hover {
      cursor: move;
      .wcgs-image-remover {
        visibility: visible;
      }
    }
    .wcgs-image-remover {
      font-weight: 400;
      position: absolute;
      top: -8px;
      right: -8px;
      color: #fff;
      background-color: #999;
      border: 2px solid #f7f7f7;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      visibility: hidden;
      &:hover {
        background-color: #a00;
        transition: background-color 0.5s linear;
        cursor: pointer;
      }
      .dashicons {
        font-size: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
  }
  .ui-state-highlight {
    border: 3px dotted #d5d5d5;
    background: transparent;
    position: relative;
    &::after {
      position: absolute;
      font-family: "dashicons";
      font-size: 50px;
      color: #d5d5d5;
      content: "\f161";
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  }
}
.wcgs-remove-all-images {
  background: #a00 !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
.wcgs-edit {
  background: #008ec2 !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
.wcgs-variation-gallery {
  border-top: 1px solid #eee;
}
.wcgs-field + .wcgs-field:not(.hidden) {
  padding: 22px;
  border-top: none !important;
}
.wcgs-table-expanded {
  width: 35% !important;
  .wcgs-slider-ui {
    background-color: #fff !important;
    border: 1px solid #c5c5c5 !important;
    height: 10px !important;
    .ui-slider-range {
      height: 10px !important;
      background-color: #dddddd;
      // border: 1px solid #c5c5c5;
    }
    .ui-slider-handle {
      background-color: #fff;
      border: 1px solid #c5c5c5;
      top: -5px;
      &:hover {
        background-color: #fff;
      }
    }
  }
}
.wcgs-field-button_set input {
  display: block;
}
.wcgs-text-subtitle {
  font-style: italic;
}
.wcgs-section {
  box-shadow: 0px 0px 15px 0px rgba(36, 39, 50, 0.1);
}
.wcgs-fieldset li {
  margin-left: 1px;
}
.compat-field-wcgs_notice {
  .label {
    display: none;
  }
  .field {
    width: 100%;
  }
}
.compat-field-wcgs_video {
  position: relative;
  &:before {
    content: "\f01d";
    font-family: fontAwesome;
    font-size: 18px;
    background-color: #fff;
    color: #007cba;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 7px;
    height: 70%;
    width: 10px;
    display: flex;
    align-items: center;
    padding: 0 5px;
  }
}
.wcgs-video-icon {
  position: absolute;
  top: 0;
  width: 102%;
  height: 96%;
  display: flex;
  justify-content: center;
  align-items: center;
  .fa {
    font-size: 100px;
    color: #00669b;
    opacity: 0.4;
  }
}
.wcgs--button {
  display: flex;
  justify-content: center;
  height: 17px;
  align-items: center;
}
.wcgs-field-spinner {
  .ui-spinner-up {
    &:before {
      background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg width='14' height='14' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23555' d='M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z'/%3E%3C/svg%3E%0A");
      color: transparent;
      background-position: center center;
      background-repeat: no-repeat;
    }
  }
  .ui-spinner-down {
    &:before {
      background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg width='14' height='14' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23555' d='M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z'/%3E%3C/svg%3E%0A");
      color: transparent;
      background-position: center center;
      background-repeat: no-repeat;
    }
  }
}
.wcgs-field-image_select .wcgs--image:before {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg width='12' height='12' viewBox='0 0 1792 1792' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' d='M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z'/%3E%3C/svg%3E");
  color: transparent !important;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Layout Preset Options */
.pro_only_color button {
  border-color: #cbcfd0 !important;
  opacity: 0.8;
}
.pro_only_color button,
.pro_only_slider .wcgs-slider-ui,
.wcgs-settings .pro_only_slider .input,
.pro_only_field .ui-spinner-button {
  pointer-events: none;
  opacity: 0.7;
}
.wcgs-settings .wcgs-field-image_select .wcgs--image.wcgs-pro-only {
  pointer-events: none;
  img,
  p {
    opacity: 0.7;
  }
}
.pro_only_color .wp-color-result-text {
  background-color: #cbcfd0;
}
.wcgs-text-desc {
  font-style: italic;
}

.wcgs-field-button_set .wcgs--button.wcgs-pro-only {
  color: rgba(85, 85, 85, 0.5) !important;
  background-color: rgba(247, 247, 247, 0.4) !important;
  pointer-events: none;
}
.wcgs-field-color.pro_only_color button.button.wp-color-result {
  position: relative;
}
.wcgs-field-color.pro_only_color button.button.wp-color-result:after,
.wcgs-field-button_set .wcgs--button.wcgs-pro-only:after,
.wcgs-settings .wcgs-field-image_select .wcgs--image.wcgs-pro-only:after {
  position: absolute;
  top: 0;
  right: 0;
  color: #a5a5a5;
  background-color: #e0e0e0;
  font-weight: 500;
  padding: 0 4px;
  content: "Coming";
  text-align: center;
  font-size: 8px;
  line-height: 11px;
  opacity: 1;
}
/* .wcgs-settings .wcgs-field-image_select .wcgs--image.wcgs-pro-only:after{

} */

.wcgs-field-button_set.btn_icon .wcgs--button.wcgs-pro-only:after {
  content: none;
}
.wcgs-field-button_set.btn_icon .wcgs--button:last-child.wcgs-pro-only:after {
  content: "Coming";
}
.wcgs-field-switcher.pro_switcher .wcgs--ball::after {
  content: "Coming";
  position: relative;
  text-align: center;
  width: 24px;
  float: right;
  font-weight: 600;
  font-size: 8px;
  color: #a5a5a5;
  opacity: 1;
}
.wcgs-field-switcher.pro_switcher .wcgs--switcher {
  background-color: #cbcfd0;
}
.wcgs-field.pro_only_color .wp-picker-container {
  position: relative;
}
.wcgs-field-color_group.pro_only_color
  .wcgs-field-color
  .wp-picker-container
  button.button.wp-color-result:after {
  content: "";
}
.wcgs-field-color_group.pro_only_color
  .wcgs-field-color:nth-child(4)
  .button.button.wp-color-result:after {
  content: "Coming" !important;
}
/* .wcgs-field.pro_only_color .wp-picker-container::after {
  content: "Coming";
  position: absolute;
  right: -19px;
  font-weight: 600;
  top: 0;
  line-height: 28px;
  font-size: 12px;
  color: #aaa;
} */
.pro_only_slider .wcgs-slider-ui.ui-slider-handle{
  cursor: pointer;
}
a.thickbox.wcgs_pro_popup {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: all;
}
.toplevel_page_wpgs-settings {
  overflow: visible !important;
  a.thickbox:focus, #TB_closeWindowButton:focus, #TB_closeWindowButton:focus .tb-close-icon{
    outline: none;
    color: #444;
    box-shadow: none;
  }
  #TB_closeWindowButton:focus .tb-close-icon{
    color: #444;
  }
  #TB_title {
    background: #fff;
    border: none;
    border-radius: 5px;
  }
  #TB_ajaxContent {
    clear: both;
    padding: 2px 0 0 0;
    overflow: auto;
    text-align: left;
    line-height: 1.4em;
    height: auto !important;
    width: auto !important;
}
#TB_overlay {
  opacity: 0.5;
  filter: alpha(opacity=70);
  z-index: 3;
}
#adminmenuback{
  z-index: 5;
}
  #TB_window {
    border-radius: 5px;
  }
  .wcgs-popup-content {
    text-align: center;
    color: #444444;
    padding: 0px 20px 8px;
    h2 {
      color: #444444;
      font-size: 24px;
      font-weight: 700;
      padding-bottom: 0px;
      margin-bottom: 0px;
      margin-top: 0;
      .fa {
        color: #6ba4ba;
        margin-right: 4px;
      }
    }
    p {
      font-size: 16px;
      font-weight: 500;
      margin-top: 10px;
    }
    a.btn{
      color: #fff;
      text-decoration: none;
      font-weight: 700;
      background: #46b451;
      font-size: 16px;
      display: inline-block;
      padding: 10px 25px;
      border-radius: 3px;
    }
  }
}
