.famisp-inner-wrapper {
  * {
    box-sizing: border-box;
  }
  .famisp-switch {
    margin: 0;
    width: 60px;
  }
}

.famisp-hidden {
  display: none !important;
}

/* The switch - the box around the slider */
.famisp-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  input {
    display: none;
  }
  .famisp-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    &.round {
      border-radius: 34px;
      &:before {
        border-radius: 50%;
      }
    }
    &:before {
      position: absolute;
      content: "";
      height: 26px;
      width: 26px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      -webkit-transition: .4s;
      transition: .4s;
    }
  }
  input:checked + .famisp-slider {
    background-color: #2196F3;
    &:before {
      -webkit-transform: translateX(26px);
      -ms-transform: translateX(26px);
      transform: translateX(26px);
    }
  }
  input:focus + .famisp-slider {
    box-shadow: 0 0 1px #2196F3;
  }
}

/* Tabs */
.famisp-tabs {
  margin-bottom: 30px;
}

.famisp-tab-content {
  display: none;
  &.tab-content-active {
    display: block;
  }
}

.famisp-admin-page-content-wrap {
  input[type=text], input[type=number], input[type=password], textarea, select {
    width: 400px;
    max-width: 100%;
    height: 30px;
    padding: 5px;
  }
  .description {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
    font-style: italic;
    clear: both;
  }
  .famisp-input-group {
    display: inline-block;
  }
  .famisp-w-50 {
    width: 50px !important;
    max-width: 100%;
  }
  .famisp-w-100 {
    width: 100px !important;
    max-width: 100%;
  }
  .famisp-w-150 {
    width: 150px !important;
    max-width: 100%;
  }
}

/* Accordions */
.famisp-accordions {
  .famisp-ac-content {
    min-height: 500px;
  }
}

/* Search dropdown */
.famisp-search-product-wrapper {
  position: relative;
  .famisp-results {
    position: absolute;
    z-index: 2;
    width: 100%;
    left: 0;
    top: 27px;
    display: none;
    .results-inner {
      background-color: #f3f3f3;
      border: 1px solid #dedede;
      margin-top: -1px;
    }
    .product-item {
      width: 100%;
      display: block;
      padding: 5px 10px;
      border-bottom: 1px dashed #dedede;
      overflow: hidden;
      box-sizing: border-box;
      cursor: default;
      &:hover {
        background-color: #fafafa;
      }
      .post-thumb {
        float: left;
        width: 32px;
        height: auto;
        margin-right: 10px;
      }
      img {
        width: 100%;
        height: auto;
      }
      &:last-child {
        border-bottom: none;
      }
    }
    .product-info {
      line-height: 32px;
    }
  }
  &.show-search-results {
    .famisp-results {
      display: block;
    }
  }
}

/* Selected products list */
.famisp-selected-products-list {
  margin-left: -15px;
  margin-right: -15px;
  .selected-product-item {
    display: block;
    width: 50%;
    height: 38px;
    overflow: hidden;
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    float: left;
    .product-inner {
      height: 36px;
      margin-bottom: 5px;
      border-bottom: 1px dotted #eaeaea;
      padding-right: 40px;
      display: block;
      overflow: hidden;
      .product-info {
        > span {
          float: right;
        }
        .product-title {
          max-width: 200px;
          display: inline-block;
          float: left;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
      .famisp-price-wrap {
        del {
          color: #999;
          span {
            color: inherit;
          }
        }
        ins {
          text-decoration: none;
        }
        .amount {
          font-weight: bold;
          color: #008000;
        }
      }
    }
    .post-thumb {
      float: left;
      width: 32px;
      height: auto;
      margin-right: 10px;
    }
    img {
      width: 100%;
      height: auto;
    }
    .product-info {
      line-height: 32px;
    }
    .remove-btn {
      position: absolute;
      z-index: 1;
      top: 0;
      right: 15px;
      width: 32px;
      height: 32px;
      line-height: 32px;
      text-align: center;
      text-decoration: none;
      color: #333;
      background-color: #eee;
      &:hover {
        color: #fff;
        background-color: #ff0000;
      }
    }
  }
}

@media (max-width: 991px) {
  .famisp-selected-products-list {
    .selected-product-item {
      width: 100%;
    }
  }
}

/* Addresses list */
.famisp-address-form {
  display: table;
  width: 900px;
  max-width: 100%;
  > * {
    display: table-cell !important;
    vertical-align: top;
    padding: 5px;
    &.label-wrap {
      width: 160px;
    }
  }
  .famisp-input-wrap {
    width: 550px !important;
    .famisp-address-input {
      width: 100%;
    }
  }
  button {
    margin-bottom: 7px !important;
  }
}

.famisp-addresses-form {
  display: table;
  width: 900px;
  max-width: 100%;
  > * {
    display: table-cell !important;
    vertical-align: top;
    padding: 5px;
    &.label-wrap {
      width: 160px;
    }
  }
  .famisp-input-wrap {
    width: 550px !important;
    .famisp-addresses-textarea {
      width: 100%;
      height: 150px;
    }
  }
  button {
    margin-bottom: 7px !important;
  }
}

.famisp-addresses-list-wrap {
  margin-left: -15px;
  margin-right: -15px;
  margin-top: 15px;
  .famisp-address-item {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    width: 50%;
    float: left;
    .famisp-item-inner {
      border-bottom: 1px dotted #eaeaea;
      padding-top: 10px;
      padding-bottom: 10px;
      padding-right: 40px;
    }
    .remove-btn {
      position: absolute;
      z-index: 1;
      top: 2px;
      right: 15px;
      width: 32px;
      height: 32px;
      line-height: 32px;
      text-align: center;
      text-decoration: none;
      color: #333;
      background-color: #eee;
      &:hover {
        color: #fff;
        background-color: #ff0000;
      }
    }
  }
}

@media (max-width: 991px) {
  .famisp-addresses-list-wrap {
    .famisp-address-item {
      width: 100%;
    }
  }
}
.famisp-tab2-content {
  display: inline-block;
  width: 100%;
}

.famisp-tab-content-inner {
  .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    border-color: #c5c5c5;
    background: #fff;
    color: #333;
    a {
      color: #333;
    }
  }
}

.famisp-section {
  display: inline-block;
  width: 100%;
  label {
    display: inline-block;
    min-width: 150px;
    font-weight: bold;
    margin-right: 10px;
  }
  .famisp-input-wrap {
    display: inline-block;
    width: 300px;
    max-width: 100%;
  }
  .famisp-addresses-textarea {

  }
}

.famisp-lis-item {
  .famisp-list-item-inner {
    margin-bottom: 10px;
  }
  .famisp-input-min-max-group {
    input[type="number"] {
      width: 100px;
      margin-right: 5px;
      margin-bottom: 5px;
    }
  }
}

#famisp-products-list-tab-wrap {
  min-height: 300px;
}