/*! UIkit 2.27.4 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
/* ========================================================================
   Component: Form advanced
   Note: Only works in Webkit at the moment
 ========================================================================== */
/*
 * 1. Style
 * 2. Makes box more robust so it clips the child element
 * 3. Vertical alignment
 * 4. Remove default style
 * 5. Fix black background on iOS
 */
.cw-form input[type="radio"],
.cw-form input[type="checkbox"] {
  /* 1 */
  display: inline-block;
  height: 14px;
  width: 14px;
  border: 1px solid #aaa;
  /* 2 */
  overflow: hidden;
  /* 3 */
  margin-top: -4px;
  vertical-align: middle;
  /* 4 */
  -webkit-appearance: none;
  outline: 0;
  /* 5 */
  background: transparent;
}
/* Radio */
.cw-form input[type="radio"] {
  border-radius: 50%;
}
/*
 * Checked
 */
.cw-form input[type=radio]:before,
.cw-form input[type=checkbox]:before {
  display: block;
}
/* Radio */
.cw-form input[type=radio]:checked:before {
  content: '';
  width: 8px;
  height: 8px;
  margin: 2px auto 0;
  border-radius: 50%;
  background: #00a8e6;
}
/* Checkbox */
.cw-form input[type=checkbox]:checked:before,
.cw-form input[type=checkbox]:indeterminate:before {
  content: "\f00c";
  font-family: FontAwesome;
  font-size: 12px;
  -webkit-font-smoothing: antialiased;
  text-align: center;
  line-height: 12px;
  color: #00a8e6;
}
.cw-form input[type=checkbox]:indeterminate:before {
  content: "\f068";
}
/*
 * Disabled
 */
.cw-form input[type=radio]:disabled,
.cw-form input[type=checkbox]:disabled {
  border-color: #ddd;
}
.cw-form input[type=radio]:disabled:checked:before {
  background-color: #aaa;
}
.cw-form input[type=checkbox]:disabled:checked:before,
.cw-form input[type=checkbox]:disabled:indeterminate:before {
  color: #aaa;
}
