// Variables
$primary-color: #4cc57e;
$secondary-color: rgba(0, 0, 0, 0.25);
$background-color: #f7f7f7;
$border-color: #e6e6e6;
$text-color: #333;
$heading-color: #111;
$font-family: Arial, sans-serif;
$font-family-code: "Courier New", monospace;
$font-size-base: 14px;
$font-size-small: 13px;

// Admin Styles
.settings_page_wp-full-screen-search {
  #wpcontent {
    padding: 0;
  }
}

.wpfss-page-wrapper {
  &.wrap {
    margin: 0;
  }

  a {
    text-decoration: none;
  }

  .media-upload-form {
    .notice,
    div.error {
      margin-top: 0;
    }
  }

  &.wrap {
    .notice,
    div.error,
    div.updated {
      margin-top: 0;
    }
  }
}

.wpfss-page-header {
  background-color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-bottom: 20px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.wpfss-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;

  #poststuff {
    h3 {
      padding: 12px;
      background: #f7f7f7;
      border-bottom: 1px solid #e6e6e6;
    }
  }

  textarea {
    border-radius: 0;
    border: 1px solid #ccd0d4;
    background: #f8f8f8;
    font-family: Courier New;
  }

  .wpfss-clear {
    &:before {
      content: " ";
      display: table;
    }

    &:after {
      clear: both;
      content: " ";
      display: table;
    }
  }

  .wpfss-description {
    margin: 8px 0 0;
  }

  .wpfss-row {
    padding: 15px 0;
    font-size: 14px;
    display: grid;
    grid-template-columns: 40% 60%;

    &:not(:last-child) {
      border-bottom: 1px solid #eee;
      margin-bottom: 5px;
    }
  }

  .wpfss-label {
    label {
      font-weight: 600;
    }
  }
}

.wpfss-flex-box {
  -js-display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-content: center;
  -ms-flex-line-pack: center;
  align-content: center;
}

.wpfss-logo-wrapper {
  a {
    display: flex;
    align-items: center;
  }
}

.wpfss-list {
  padding-left: 18px;

  li {
    font-size: 13px;
    line-height: 1.5;
    margin: 1em 0;
    list-style: square;
  }
}

.wpfss-switch-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  transition: all 0.3s;
  cursor: pointer;

  &::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
  }
}

.wpfss-switch-checkbox {
  display: none !important;

  &:checked + .wpfss-switch-toggle {
    background-color: #4cc57e;

    &::before {
      left: 20px;
    }
  }
}

.wpfss-settings {
  #poststuff {
    .inside {
      border-bottom: 1px solid #e4e4e4;

      &:last-child {
        border: none;
      }
    }
  }

  .plugin-sidebar {
    ul {
      padding-left: 17px;

      li {
        list-style: square;
      }
    }
  }
}
