/*
Checkbox

Checkbox styles from trimble css

Markup:
<div class="checkbox">
  <input class="check-input" type="checkbox" id="timezones" /><label for="timezones">Display All Timezones</label>
</div>

Styleguide Form Elements.checkbox
*/
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

h1 {
  margin: 1rem 0;
  font-size: 1.5rem;
  font-weight: 300;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

h4, p {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

h5 {
  font-size: 0.75rem;
}

h4 {
  font-weight: 600;
}

/* @import url('https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800'); */
/* @mixin border-radius{
  border-radius: 2px;
} */
/* box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2); */
.end {
  display: flex;
  justify-content: flex-end;
}

.align-center {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}

input[type="checkbox"] + label[for], input[type="radio"] + label[for] {
  cursor: pointer;
}

.check-input {
  box-sizing: border-box;
  opacity: 0;
  position: relative;
  z-index: 0;
  width: 1rem;
  height: 1rem;
  margin: 0 2px;
}

.checkbox {
  position: relative;
}

.check-input + label {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 0;
}

.check-input + label:before {
  content: " ";
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  background: url("../images/checkbox-unchecked.svg") no-repeat;
  display: inline-block;
}

.check-input + label:hover:before {
  background: url("../images/checkbox-unchecked-hover.svg") no-repeat;
}

.check-input:checked + label {
  display: inline-block;
  padding: 0;
  cursor: pointer;
}

.check-input:checked + label:before {
  content: " ";
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  background: url("../images/checkbox-checked.svg") no-repeat;
  display: inline-block;
}

.check-input:checked + label:hover:before {
  background: url("../images/checkbox-checked-hover.svg") no-repeat;
}

.check-input:indeterminate + label {
  display: inline-block;
  padding: 0;
  cursor: pointer;
}

.check-input:indeterminate + label:before {
  content: " ";
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  background: url("../images/checkbox-indeterminate.svg") no-repeat;
  display: inline-block;
}

.check-input:indeterminate + label:hover:before {
  background: url("../images/checkbox-indeterminate-hover.svg") no-repeat;
  background-size: 25px 25px;
  background-position: center;
}

@media only screen and (max-width: 480px) {
  .checkbox {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    min-height: 1.5rem;
  }
}
