/* Main container for the scheduler on cart and checkout pages */
#wc-delivery-pickup-scheduler-cart,
#wc-delivery-pickup-scheduler-checkout {
    margin: 2em 0;
    padding: 1.5em;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
    clear: both;
}

/* Title for the scheduler section */
#wc-delivery-pickup-scheduler-cart h3,
#wc-delivery-pickup-scheduler-checkout h3 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.2em;
}

/* Wrapper for the input fields */
.wc-dps-fields-wrapper .form-row {
    margin-bottom: 1em;
}

/* Style for the date input field to make it look clickable and add a calendar icon */
#delivery_pickup_date {
    cursor: pointer;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat right 10px center;
    background-size: 16px 16px;
}

/* --- Basic Styling for the jQuery UI Datepicker --- */

/* Main datepicker container */
.ui-datepicker {
    width: auto;
    padding: .5em;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100 !important; /* Ensure it appears above other elements */
}

/* Header section (Month, Year, Prev/Next buttons) */
.ui-datepicker-header {
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: .5em 0;
    position: relative;
    border-radius: 3px 3px 0 0;
}

/* Month and Year title */
.ui-datepicker .ui-datepicker-title {
    margin: 0 2.3em;
    line-height: 1.8em;
    text-align: center;
    font-weight: bold;
}

/* Prev/Next buttons */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 5px;
    width: 1.8em;
    height: 1.8em;
    cursor: pointer;
}
.ui-datepicker .ui-datepicker-prev {
    left: 5px;
}
.ui-datepicker .ui-datepicker-next {
    right: 5px;
}

/* The table for the calendar days */
.ui-datepicker table {
    width: 100%;
    font-size: .9em;
    border-collapse: collapse;
    margin: 0;
}

.ui-datepicker th {
    padding: .7em .3em;
    text-align: center;
    font-weight: bold;
    border: 0;
}

.ui-datepicker td {
    border: 0;
    padding: 1px;
}

.ui-datepicker td span,
.ui-datepicker td a {
    display: block;
    padding: .5em;
    text-align: center;
    text-decoration: none;
    color: #333;
}

/* Highlight the current day */
.ui-datepicker .ui-datepicker-current-day a {
    background: #337ab7;
    color: #fff;
    border-radius: 3px;
}

/* Highlight on hover */
.ui-datepicker .ui-state-hover {
    background: #e6e6e6;
    border-radius: 3px;
}
