/* Ensure that the time picker container is visible and on top */
.ui-timepicker-container {
    position: absolute !important;
    z-index: 9999 !important; /* Ensure a high z-index to bring it on top */
    overflow: hidden; /* Hide overflow if needed */
    box-sizing: border-box; /* Corrected the box-sizing value */
}

/* Time picker viewport styles */
.ui-timepicker,
.ui-timepicker-viewport {
    box-sizing: content-box;
    height: 205px; /* Set height */
    display: block; /* Ensure the elements are block level */
    margin: 0; /* Remove margin */
}

/* General time picker styling */
.ui-timepicker {
    list-style: none; /* Remove list style */
    padding: 0 1px; /* Add padding for better spacing */
    text-align: center; /* Center text inside the items */
}

/* Timepicker viewport scrolling settings */
.ui-timepicker-viewport {
    padding: 0;
    overflow: auto; /* Enable scrolling if necessary */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Standard style for the time picker */
.ui-timepicker-standard {
    font-family: Verdana, Arial, sans-serif;
    font-size: 1.1em;
    background-color: #FFF;
    border: 1px solid #AAA;
    color: #222;
    margin: 0;
    padding: 2px;
}

/* Styling for the time picker links (time options) */
.ui-timepicker-standard a {
    border: 1px solid transparent;
    color: #222;
    display: block;
    padding: .2em .4em;
    text-decoration: none;
}

/* Hover state for time options */
.ui-timepicker-standard .ui-state-hover {
    background-color: #DADADA;
    border: 1px solid #999;
    font-weight: 400;
    color: #212121;
}

/* Time menu item styling */
.ui-timepicker-standard .ui-menu-item {
    margin: 0;
    padding: 0;
}

/* Corner radius for the timepicker */
.ui-timepicker-corners,
.ui-timepicker-corners .ui-corner-all {
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

/* Hidden time picker state */
.ui-timepicker-hidden {
    display: none;
}

/* Style when no scrollbar is present */
.ui-timepicker-no-scrollbar .ui-timepicker {
    border: none;
}
