/**
* Typography controls
*/
.epsilon-typography-container {
  > div {
    > label {
      margin-bottom: 5px;
      display: inline-block;
    }
  }
  .slider-container {
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    .ui-slider {
      width: 185px;
    }
    &:after {
      content: 'px';
      position: absolute;
      top: 1px;
      left: 48px;
      font-size: 12px;
      color: #333;
    }
    &:last-of-type {
      border-bottom: none;
    }

    input[type="text"] {
      width: 50px;
      padding-right: 15px;
      position: relative;
    }

  }

  .selectize-input {
    width: 160px;
    height: 40px;
    line-height: 23px;
    border: none;
    -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
    -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
    box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
  }

  .selectize-dropdown {
    z-index: 20;
  }
}

.epsilon-typography-font-family,
.epsilon-typography-font-weight,
.epsilon-typography-font-style {
  display: inline-block;
  margin-right: 0;
}

.customize-control-epsilon-typography:last-of-type .epsilon-typography-container {
  min-height: 400px;
}

.epsilon-font-weight-switch-checkbox,
.epsilon-font-style-switch-checkbox {
  display: none !important;
  appearance: none;
}

.epsilon-font-weight-switch,
.epsilon-font-style-switch {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: #fff;
  -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
  -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
  box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
  cursor: pointer;
  position: relative;
  top: -1px;
}

.epsilon-font-style-switch-label,
.epsilon-font-weight-switch-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border-radius: 4px;
  z-index: 1;
  padding: 0;
  line-height: 38px;
  transition: background-color 0.2s ease-in;
  text-align: center;
}

.epsilon-font-style-switch-label:before,
.epsilon-font-weight-switch-label:before {
  content: "\f200";
  font-family: "dashicons";
  display: block;
  font-size: 22px;
  color: #000;
  margin: 0;
  position: relative;
  top: 0;
  bottom: 0;
  left: 0;
  background-color: #fff;
  transition: all 0.2s ease-in 0s;
}

.epsilon-font-style-switch-label:before {
  content: "\f201";
}

.epsilon-font-weight-switch-checkbox:checked + label,
.epsilon-font-weight-switch-checkbox:checked + label:before,
.epsilon-font-style-switch-checkbox:checked + label,
.epsilon-font-style-switch-checkbox:checked + label:before {
  color: #57a7c9;
}

.epsilon-typography-advanced {
  background: #fff;
  height: 38px;
  width: 38px;
  border-radius: 4px;
  -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
  -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
  box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
  display: inline-block;
  text-align: center;
  top: -11px;
  position: relative;

  .epsilon-typography-advanced-options-toggler {
    font-size: 22px;
    color: #000;
    text-decoration: none;
    line-height: 38px;
    outline: none;
  }

  &.epsilon-typography-advanced.active {
    background: #f4f4f4;
  }

  .epsilon-typography-advanced-options-toggler:focus {
    outline: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
  }

  .epsilon-typography-advanced-options-toggler {
    &:hover,
    &.active {
      color: #57a7c9;
    }
    &:focus {
      outline: none;
      box-shadow: none;
      -webkit-box-shadow: none;
      -moz-box-shadow: none;
    }
    .dashicons {
      line-height: 38px;
    }
  }
}

.epsilon-typography-advanced-options {
  display: none;
  background: #f4f4f4;
  position: relative;
  z-index: 10;
  top: -12px;
  width: 285px;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
  -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
  box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
  label {
    margin-top: 10px;
    padding-left: 20px;
  }

  .slider-container {
    padding-left: 20px;
  }
}
