$picker: __iduty_picker;

.#{$picker} {
    &>section {
        padding-bottom: 10px;
    }
    --height: 240px;
    --item_height: 44px;

    .#{$picker}_view {
        height: var(--height);
        position: relative;
        overflow: hidden;
        width: 100%;
        display: flex;
    }

    .#{$picker}_column {
        height: 100%;
        flex: 1;
        user-select: none;
        touch-action: none;
        position: relative;
        z-index: 0;
    }

    .#{$picker}_option {
        width: 100%;
        position: absolute;
        top: calc(50% - var(--item_height)/2);
        left: 0;
        &::before,
        &::after {
            content: ' ';
            display: block;
            position: absolute;
            width: 100%;
            height: 100vh;
        }
        &::before {
            top: -100vh;
        }
        &::after {
            bottom: -100vh;
        }
        div {
            height: var(--item_height);
            line-height: var(--item_height);
            padding: 0 5px;
            text-align: center;
            @include _cut(1);
        }
    }

    .#{$picker}_mask {
        @include wh100();
        z-index: 10000;
        display: flex;
        flex-direction: column;
        pointer-events: none;
        &::before,
        &::after {
            content: '';
            flex: 1;
            display: block;
        }
        &::before {
            background: linear-gradient(0deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 1));
        }
        &::after {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 1));
        }
        div {
            height: var(--item_height);
            box-sizing: border-box;
            border-top: .5px solid #eee;
            border-bottom: .5px solid #eee;
        }
    }
}