
/* 4.8. Date & time picker
  -----------------------------------------------------------*/

.picker {
  color: #ffffff;
  font-size: 1em;
  line-height: 1;
  position: absolute;
  text-align: center;
  z-index: 10000;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.picker__table {
  margin: 0;
  width: 100%;
}

  .picker__table th, .picker__table td {
    border: 0;
    line-height: 3em;
    padding: 0;
    width: 14.2857%;
  }

  .picker__table th {
    background: #ffce00;
    text-align: center;
  }

.picker__header {
  background: #ffce00;
  border-radius: 3px 3px 0 0;
  color: #000000;
  font-family: "Oswald", sans-serif;
  line-height: 3em;
  position: relative;
  text-transform: uppercase;
}

.picker__month, .picker__year {
  display: inline-block;
  margin: 0 5px;
}

.picker__nav--prev, .picker__nav--next {
  display: block;
  padding: 0;
  position: absolute;
  padding: 0 1em;
  top: 0;
}

  .picker__nav--prev:before, .picker__nav--next:before {
    font-family: "ionicons";
  }

.picker__nav--prev {
  left: 0;
}

  .picker__nav--prev:before {
    content: "\f107";
  }

.picker__nav--next {
  right: 0;
}

  .picker__nav--next:before {
    content: "\f10a";
  }

.picker__input {
  cursor: default;
}

.picker__holder {
  overflow-y: auto;
  position: fixed;
  transition: background 0.15s ease-out, transform 0s 0.15s;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  -webkit-backface-visibility: hidden;
}

.picker__frame, .picker__holder {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
}

.picker__frame {
  margin: 0 auto;
  min-width: 280px;
  max-width: 500px;
  opacity: 0;
  position: absolute;
  transition: all 0.15s ease-out;
  width: 100%;
}

.picker__wrap {
  display: table;
  height: 100%;
  width: 100%;
}

.picker__box {
  background: #000000;
  display: table-cell;
  vertical-align: middle;
}

.picker--opened .picker__holder {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(0);
  transition: background 0.15s ease-out;
  zoom: 1;
}

.picker--opened .picker__frame {
  opacity: 1;
  transform: translateY(0);
}

.picker__day {
  cursor: pointer;
}

  .picker__day:hover {
    color: #ffce00;
  }

.picker__day--today {
  border: 1px solid #ffce00;
}

.picker__day--selected {
  background: #ffce00;
  border: 1px solid #ffce00;
  color: #000000;
}

  .picker__day--selected:hover {
    color: #000000;
  }

.picker__day--outfocus {
  color: #666;
}

.picker__day--disabled {
  color: #444;
  cursor: not-allowed;
}

  .picker__day--disabled:hover {
    color: #444;
  }

.picker__list {
  margin: 0;
}

  .picker__list li {
    border-bottom: 1px solid #333;
    cursor: pointer;
    padding: 1em;
  }

    .picker__list li b {
      font-size: 1.5em;
    }

    .picker__list li:hover {
      color: #ffce00;
    }

    .picker__list li.picker__list-item--selected {
      background: #ffce00;
      color: #000000;
    }

      .picker__list li.picker__list-item--selected:hover {
        color: #000000;
      }

.picker__footer {
  padding: 2em 1em;
}

.picker__button--clear, .picker__button--today, .picker__button--close {
  background: #ffce00;
  border: 0;
  border-radius: 3px;
  color: #000000;
  font-family: "Oswald", sans-serif;
  line-height: 3em;
  margin: 0 5px;
  padding: 0 15px;
  text-transform: uppercase;
}

@media (min-height: 33.875em) {

  .picker__frame {
    bottom: -100%;
    max-height: 80%;
    overflow: visible;
    top: auto;
  }

  .picker__wrap {
    display: block;
  }

  .picker__box {
    border-radius: 3px;
    box-shadow: 0 12px 36px 16px rgba(0, 0, 0, 0.24);
    display: block;
  }

  .picker--opened .picker__frame {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-height: 40.125em) {

  .picker__frame {
    margin-bottom: 7.5%;
  }
}

.picktim-container {
  position: absolute;
  width: var(--picktim-container-width);
  height: var(--picktim-container-height);
  border: 2px #DDD solid;
  border-radius: 3px;
  background: #EEE;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.42857143;
  box-sizing: border-box;
}

.picktim-table {
  text-align: center;
  width: calc(var(--picktim-container-width) - 4px);
  height: calc(var(--picktim-container-height) - 4px);
  background-color: transparent;
}

.picktim-hour {
  width: 50px;
  border: none;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  background: none;
}

.picktim-mins {
  width: 50px;
  border: none;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  background: none;
}

.picktim-ampm {
  width: 50px;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  background: none;
  cursor: pointer;
}

.picktim-separator {
  border: none;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.picktim-btn {
  cursor: pointer;
  width: 50px !important;
  border-radius: 3px;
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 1px solid transparent;
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
}

  .picktim-btn:hover, .picktim-btn:focus {
    background-color: rgba(255,255,255,0.5);
    text-decoration: none;
  }

  .picktim-btn:active {
    text-decoration: none;
  }

  .picktim-btn:disabled {
    cursor: default;
    opacity: 0.65;
    box-shadow: none;
  }

.picktim-clear {
  position: relative;
  top: 0px;
  left: -40px;
}

  .picktim-clear:active {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    color: rgba(255,255,255,0.5);
    outline: 0;
    background-image: none;
  }
