$picker-body-padding-hor: 10px;

$picker-title-height: 46px;
$picker-title-font-size: 14px;
$picker-title-color: $gray;

.mx{
  &-picker{
    position: relative;
    background-color: $white;

    &-header{
      &-title{
        height: $picker-title-height;
  
        text-align: center;
        line-height: $picker-title-height;
        font-size: $picker-title-font-size;
        font-weight: normal;
        color: $picker-title-color;
  
        border-bottom: 1px solid $spliter;
  
        user-select: none;
  
        @include text-ellipsis();
      }
    }

    &-body{
      width: 100%;
      height: 100%;

      padding-left: $picker-body-padding-hor;
      padding-right: $picker-body-padding-hor;

      position: relative;

      box-sizing: border-box;

      &-column-container{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        overflow: hidden;
      }

      &-mask{
        position: absolute;

        left: 0;
        top: 0;
        width: 100%;
        height: 100%;

        background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4)),
          linear-gradient(0deg, hsla(0, 0%, 100%, 0.9), hsla(0, 0%, 100%, 0.4));
        background-repeat: no-repeat;
        background-position: top, bottom;

        pointer-events: none;
        z-index: 1;
      }

      &-window{
        position: absolute;
        left: $picker-body-padding-hor;
        right: $picker-body-padding-hor;

        top: 50%;
        transform: translateY(-50%);

        border-radius: 8px;

        pointer-events: none;

        z-index: 2;

        display: flex;
        flex-direction: row;
        align-items: center;
        overflow: hidden;

        font-size: 18px;

        &--fill {
          background-color: rgba(86, 86, 86, 0.1);
        }

        &--stroke {
          border-top: 1px solid $spliter;
          border-bottom: 1px solid $spliter;
        }
      }
    }

    &-footer{
      display: flex;
      flex-direction: row;

      border-top: 8px solid $spliter-gray;

      &-btn{
        flex: 1;
        height: 52px;
        line-height: 52px;
        text-align: center;
        font-size: 16px;
        color: #232323;
        border-right: 1px solid $spliter-gray;
        cursor: pointer;
        user-select: none;

        &:last-child {
          border-right: none;
        }
      }
    }
  }
}
