/*
    wheel date picker support
    260516
*/

.wheel-date-picker {
    max-width: 128px;
   /* margin: 1px auto; */
}

.wheel {
    width: 128px;
    height: 165px;    /* VIEWPORT_HEIGHT   was: 220px*/
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    touch-action: pan-y;
}


.wheel-compact {
    width: 60px;
    height: 165px;    /* VIEWPORT_HEIGHT   was: 220px*/
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    touch-action: pan-y;
}

.viewport {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.viewport::-webkit-scrollbar {
    display: none;
}

.scroller {
    display: flex;
    flex-direction: column;
    padding: 55px 0;
    /* (220 - 55) / 2 = 82.5 - для центрирования первого и последнего элемента     */
    min-height: 100%;
}

.item {
    height: 55px;    /* ITEM-HEIGHT  */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 500;
    color: #1d1f20;
    scroll-snap-align: center;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.2s;
}

.item.selected {
    color: #212529;
    font-weight: 600;
}

/* Градиент сверху и снизу */
.wheel::before,
.wheel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 82px;
    pointer-events: none;
    z-index: 2;
}

.wheel::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 15%, transparent 100%);
}

.wheel::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 15%, transparent 100%);
}

/* Центральная рамка */
.wheel .highlight {
    position: absolute;
    top: 50%;
    left: 6px;
    right: 6px;
    height: 55px;
    transform: translateY(-50%);
    border: 2px solid #0d6efd;
    border-radius: 12px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 3;
}



/*  ----   */
/* Градиент сверху и снизу */
.wheel-compact::before,
.wheel-compact::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 82px;
    pointer-events: none;
    z-index: 2;
}

.wheel-compact::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 15%, transparent 100%);
}

.wheel-compact::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 15%, transparent 100%);
}

/* Центральная рамка */
.wheel-compact .highlight {
    position: absolute;
    top: 50%;
    left: 6px;
    right: 6px;
    height: 55px;
    transform: translateY(-50%);
    border: 2px solid #0d6efd;
    border-radius: 12px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 3;
}



