/*!
 * Picker.js v1.2.0
 * https://fengyuanchen.github.io/pickerjs
 *
 * Copyright 2016-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2018-12-16T14:10:23.878Z
 */

 :root {
    --gray:#999;
    --blue:#0074d9;
    --color:#333;
    --background-color:rgb($white);
    --border:1px solid #eee;
  }
  
  .picker {
    background-color: rgba(0, 0, 0, 0.5);
    color: #333;
    color: var(--color);
    direction: ltr;
    display: none;
    font-size: 1rem;
    line-height: 1.5;
    overflow: hidden;
    -ms-touch-action: none;
    touch-action: none;
    -webkit-transition: opacity .15s;
    transition: opacity .15s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .picker-fixed {
    inset-block-end: 0;
    inset-inline-start: 0;
    position: fixed;
    inset-inline-end: 0;
    inset-block-start: 0;
    z-index: 1986;
  
    > .picker-dialog {
      inset-block-end: -100%;
      inset-inline-start: 0;
      max-height: 100%;
      position: absolute;
      inset-inline-end: 0;
      -webkit-transition: bottom .3s;
      transition: bottom .3s;
    }
  
    .picker-header {
      display: block;
    }
  
    .picker-footer {
      display: table;
    }
  }
  
  .picker-open {
    display: block;
    opacity: 0;
  }
  
  .picker-opened {
    opacity: 1;
  
    > .picker-dialog {
      inset-block-end: 0;
    }
  }
  
  .picker-dialog {
    background-color: rgb($white);
    background-color: var(--background-color);
    border: 1px solid #eee;
    border: var(--border);
  }
  
  .picker-header {
    border-block-end: 1px solid #eee;
    border-block-end: var(--border);
    display: none;
    padding: .875rem 1.25rem;
    position: relative;
  }
  
  .picker-title {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.25rem;
    margin: 0;
  }
  
  .picker-close {
    background-color: rgba(0, 0, 0, 0);
    border-width: 0;
    color: #999;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.75rem;
    height: 3rem;
    opacity: .75;
    padding: 0;
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: 0;
    width: 3rem;
  
    &:focus, &:hover {
      opacity: 1;
      outline: none;
    }
  }
  
  .picker-body {
    overflow: hidden;
  }
  
  .picker-grid {
    display: table;
    table-layout: fixed;
    width: 100%;
  }
  
  .picker-cell {
    display: table-cell;
    position: relative;
  
    &:after {
      content: "";
      display: block;
      inset-inline-start: 0;
      position: absolute;
      inset-inline-end: 0;
      z-index: 3;
    }
  
    &:before {
      content: "";
      display: block;
      inset-inline-start: 0;
      position: absolute;
      inset-inline-end: 0;
      z-index: 3;
      background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.05)));
      background-image: linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05));
      inset-block-end: 50%;
      margin-block-end: 1rem;
      inset-block-start: 0;
    }
  
    &:after {
      background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.05)));
      background-image: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05));
      inset-block-end: 0;
      margin-block-start: 1rem;
      inset-block-start: 50%;
    }
  
    + .picker-cell {
      border-inline-start: 1px solid #eee;
      border-inline-start: var(--border);
    }
  }
  
  .picker-headers .picker-cell {
    &:before {
      margin-block-end: 0;
    }
  
    &:after {
      margin-block-start: 2rem;
    }
  }
  
  .picker-single:not(.picker-controls):not(.picker-headers) .picker-cell {
    &:after, &:before {
      display: none;
    }
  }
  
  .picker-cell__header {
    color: #999;
    color: var(--gray);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5rem;
    margin: 0;
    overflow: hidden;
    padding: .25rem .5rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .picker-cell__control {
    cursor: pointer;
    height: 2rem;
    padding: .25rem .5rem;
    position: relative;
    z-index: 4;
  
    &:before {
      border: 0 solid #ccc;
      content: "";
      display: block;
      height: .5rem;
      inset-inline-start: 50%;
      position: absolute;
      inset-block-start: 50%;
      -webkit-transform: translate(-50%, -50%) rotate(-45deg);
      -ms-transform: translate(-50%, -50%) rotate(-45deg);
      transform: translate(-50%, -50%) rotate(-45deg);
      width: .5rem;
    }
  
    &:hover:before {
      border-color: var(--primary);
    }
  }
  
  .picker-cell__control--prev:before {
    border-inline-end-width: 1px;
    border-block-start-width: 1px;
    margin-block-start: 2px;
  }
  
  .picker-cell__control--next:before {
    border-block-end-width: 1px;
    border-inline-start-width: 1px;
    margin-block-end: 2px;
  }
  
  .picker-cell__body {
    overflow: hidden;
    position: relative;
  
    &:after {
      content: "";
      height: 2rem;
      inset-inline-start: 0;
      position: absolute;
      inset-inline-end: 0;
      z-index: 1;
    }
  
    &:before {
      content: "";
      height: 2rem;
      inset-inline-start: 0;
      position: absolute;
      inset-inline-end: 0;
      z-index: 1;
      background-image: -webkit-gradient(linear, left bottom, left top, from(hsla(0, 0%, 100%, 0)), to(rgb($white)));
      background-image: linear-gradient(0deg, hsla(0, 0%, 100%, 0), rgb($white));
      inset-block-start: 0;
    }
  
    &:after {
      background-image: -webkit-gradient(linear, left top, left bottom, from(hsla(0, 0%, 100%, 0)), to(rgb($white)));
      background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0), rgb($white));
      inset-block-end: 0;
    }
  }
  
  .picker-single .picker-cell__body {
    &:after, &:before {
      display: none;
    }
  }
  
  .picker-list {
    list-style: none;
    margin: -2rem 0;
    padding: 0;
    position: relative;
  }
  
  .picker-item {
    color: #999;
    color: var(--gray);
    padding: .25rem .5rem;
    text-align: center;
    white-space: nowrap;
  }
  
  .picker-picked {
    color: #0074d9;
    color: var(--blue);
    font-size: 1.125em;
    line-height: 1.5rem;
  }
  
  .picker-footer {
    border-block-start: 1px solid #eee;
    border-block-start: var(--border);
    display: none;
    width: 100%;
  }
  
  .picker-cancel, .picker-confirm {
    background-color: rgba(0, 0, 0, 0);
    border-width: 0;
    cursor: pointer;
    display: table-cell;
    font-size: 1rem;
    padding: .75rem 1rem;
    width: 50%;
  }
  
  .picker-cancel {
    &:focus, &:hover {
      background-color: #fcfcfc;
      outline: none;
    }
  }
  
  .picker-confirm {
    &:focus, &:hover {
      background-color: #fcfcfc;
      outline: none;
    }
  
    color: #0074d9;
    color: var(--blue);
  }