.wc-ts-admin-settings {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 1em;

  &.wc-gzd-admin-settings-has-sidebar {
    box-sizing: border-box;

    .wc-gzd-admin-settings-fields {
      width: 65%;
      padding-right: 5%;
    }

    .wc-gzd-admin-settings-sidebar {
      margin-top: 1em;
      width: 30%;
      box-sizing: border-box;

      .wc-gzd-admin-settings-sidebar-inner {
        padding: 1em;
        background: #FFF;
        box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);

        &.sticky {
          position: sticky;
          top: 50px;
        }
      }

      h1:first-of-type, h2:first-of-type, h3:first-of-type {
        margin-top: 0;
      }
    }
  }
}

.wc-gzd-admin-settings-sidebar {
  a.button {
    margin-top: 1em;
  }
}

.wc-gzd-admin-settings-trusted_shops {
  p.description {
    display: inline;
  }

  a.woocommerce-ts-input-toggle-trigger {
    color: transparent;
    border: none;
    text-decoration: none;

    &:focus {
      color: transparent;
      box-shadow: none;
      border: none;
    }
  }

  .wc-gzd-label-wrap {
    position: relative;
    display: block;
    vertical-align: middle;

    .woocommerce-help-tip {
      margin: -8px -24px 0 0 !important;
      position: absolute;
      right: 0;
      top: 50%;
    }
  }

  textarea.wc-ts-has-error, input.wc-ts-has-error {
    border: 1px solid #dc3232;
  }

  .wc-ts-error {
    color: #dc3232;
    font-weight: bold;
    font-size: 11px;
    margin-top: 0.5em;
    display: block;
  }

  table.form-table td.forminp-number .description {
    position: relative;
    top: 5px;
    left: 5px;
  }

  table.form-table td.forminp-ts_toggle .woocommerce-ts-input-toggle {
    margin-right: 5px;
  }

  table.form-table td.forminp-select .description {
    display: block;
    margin-left: 0;
    margin-top: 10px;
  }

  .trusted-shops-review-collector-wrap {
    clear: both;
    margin-top: 15px;
    float: left;
    width: 100%;
  }

  .review-collector-days {
    float: left;
    width: 100%;
  }

  .review-collector-days label {
    padding-top: 5px;
    display: inline-block;
    padding-right: 5px;
  }

  .review-collector-days input[type=number] {
    width: 50px !important;
  }

  .review-collector-buttons {
    float: left;
    width: 100%;
    margin-top: 10px;
  }

  td.forminp-review-collector p.description {
    clear: both;
    margin-left: 0 !important;
    top: 15px !important;
  }

  #trusted_shops_options-description .button {
    margin-left: 10px;
  }

  #woocommerce_gzd_trusted_shops_rich_snippets_enable-toggle {
    display: block;
    margin-bottom: 15px;
  }
}

.wc-gzd-trusted-shops-expert-mode-note {
  display: none;
  margin-top: 1em;
}

.wc-gzd-trusted-shops-expert-mode-note ul {
  list-style-type: disc;
  padding-left: 1.5em;
}

.wc-gzd-admin-settings-sidebar-trusted-shops {
  position: sticky;
  top: 50px;
}

.wc-ts-sidebar {
  display: none;

  h3 {
    font-size: 1.1em;
  }

  &.wc-ts-sidebar-active {
    display: block;

    &.wc-ts-sidebar-flex {
      display: flex;
    }
  }

  &.wc-ts-sidebar-flex {
    justify-content: flex-start;
    width: 100%;

    .wc-ts-sidebar-container {
      flex-grow: 1;
      flex-shrink: 1;   /* do not shrink - initial value: 1 */
      flex-basis: 50%;
    }
  }

  img {
    width: auto;
    max-width: 100%;
  }

  .wc-ts-sidebar-desc {
    margin-top: 1em;
    display: block;
  }
}

#wc-ts-sidebar-product-reviews .wc-ts-sidebar-desc {
  margin: 1em 0;
}

.wc-gzd-ts-notice {
  border-left: 4px solid #d5e8f9;
  margin: 5px 0 15px;
  background: #fff;
  box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
  padding: 1px 12px;
}