/* wheel-picker {
    display: inline-flex;
}

.wheel-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.wheel-picker-button {
    cursor: pointer;
}

.wheel-picker-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 2rem;
} */

/*
 * ---------------------------------------------------------
 * WheelPicker
 * ---------------------------------------------------------
 */

wheel-picker {
    display: inline-flex;
}

.wheel-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
}

.wheel-picker-button {
    width: 100%;
    padding: 0.35em 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9em;
    color: #555;
    line-height: 1;
}

.wheel-picker-button:hover:not(:disabled) {
    background: #eee;
}

.wheel-picker-button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.wheel-picker-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 2em;
    padding: 0.15em 0.6em;
    font-size: 1.1em;
    font-variant-numeric: tabular-nums;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: white;
    cursor: grab;
}

wheel-picker[aria-disabled="true"] .wheel-picker-value {
    cursor: not-allowed;
    color: #999;
}

/*
 * A wider value column for text values like month names, so "Sep"
 * and "Jan" don't cause the wheel to change width as it steps.
 */
.date-wheel--month .wheel-picker-value {
    min-width: 3.5rem;
}


/*
 * ---------------------------------------------------------
 * DatePicker
 * ---------------------------------------------------------
 */

.date-picker {
    display: inline-flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5em;
}

.date-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4em;
}

.date-group label {
    font-size: 0.8em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
}

/*
 * Each date-group holds two or three wheel-pickers side by side
 * (e.g. day-tens + day-units). Removing the gap and rounding only
 * the outer corners makes them read as one joined control, like an
 * odometer, rather than separate boxes.
 */
.date-wheels {
    display: flex;
}

.date-wheels wheel-picker:not(:last-child) .wheel-picker {
    border-right: none;
    border-radius: 6px 0 0 6px;
}

.date-wheels wheel-picker:not(:first-child) .wheel-picker {
    border-radius: 0 6px 6px 0;
}

.date-picker-error {
    font-size: 0.85em;
    color: #b3261e;
}

.date-picker-error[hidden] {
    display: none;
}