/* Wrapper around the booking form fields */
.resos-booking-fields {
    margin-bottom: 1.5em;
    margin-top: -1em;
    margin-left: -1em;
    margin-right: -1em;
}

/* Form row spacing */
.resos-booking-fields .form-row {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0.75em;
}

/* Price preview below the fields */
.resos-price-preview {
    display: block;
    margin-top: 0.5em;
    font-weight: 600;
}

/* Error message styling */
.resos-booking-error {
    margin-top: 0.75em;
    color: #b81c23;
    font-size: 0.9em;
}

/* Disabled state for buttons and links controlled by the plugin */
button.resos-disabled,
a.wc-block-components-button.resos-disabled,
.wc-proceed-to-checkout .checkout-button.resos-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Optional: make selects a bit more consistent with Woo styles */
.resos-booking-fields select,
.resos-booking-fields input[type="date"],
.resos-booking-fields input[type="number"] {
    min-width: 150px;
}

.single_add_to_cart_button.resos-disabled {
    opacity: 0.6;
    pointer-events: none;
}
.single_add_to_cart_button.resos-loading {
    position: relative;
    pointer-events: none;
}
.single_add_to_cart_button.resos-loading::after {
    content: '';
    position: absolute;
    right: 0.75em;
    top: 50%;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: resos-spin 0.9s linear infinite;
}
@keyframes resos-spin {
    to { transform: rotate(360deg); }
}

/* Increase the base font size for the entire datepicker to make it larger */
.ui-datepicker {
    font-size: 1.5em; /* Adjust this value for the desired size */
    width: auto; /* Allow the width to adjust based on content and new font size */
    padding: 20px; /* Add some overall padding */
    background: #fff; /* Modern white background */
}

/* Style the header for a modern feel */
.ui-datepicker-header {
    background: #00000060 !important; /* Modern primary color */
    color: #fff !important;
    border: none;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-datepicker-calendar thead {
    background: #00000040 !important;
    color: #fff !important;
}



.ui-datepicker-title {
    margin: 0;
}

/* Style the navigation buttons */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    cursor: pointer;
    color: #fff;
    background: transparent !important;
    top: 50%;
    padding: 5px;
    text-decoration: none !important;
}

.ui-datepicker .ui-datepicker-next {
    order: 3;
}

/* Style the calendar table and cells */
.ui-datepicker table {
    width: 100%;
    border-spacing: 0;
    margin: 0 auto;
}

.ui-datepicker th {
    padding: 10px 0;
    text-align: center;
    color: #fff;
    font-weight: normal;
    text-transform: uppercase;
}

.ui-datepicker td {
    padding: 5px;
    text-align: center;
}

.ui-datepicker .ui-state-default {
    padding: 10px;
    text-decoration: none;
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.2s;
    border: 1px solid transparent; /* Ensure consistent sizing */
}

/* Style for hover and focus states */
.ui-datepicker .ui-state-default:hover,
.ui-datepicker .ui-state-default:focus {
    background-color: #ffffff50;
    border: 1px solid #ffffff50;
}
.indeed .edgtf-container .ui-datepicker a:hover,
.dark-content-wrapper .ui-datepicker a:hover {
    color: #000 !important;
}

.indeed .edgtf-container .ui-datepicker .ui-state-active  a:hover,
.dark-content-wrapper .ui-datepicker .ui-state-active a:hover {
    color: #fff !important;
}

/* Style for the active/selected date */
.ui-datepicker .ui-state-active,
.ui-datepicker .ui-widget-content .ui-state-active
{
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    font-weight: bold !important;
    border-radius: 0;
}

.ui-datepicker .ui-state-disabled {
    background: #00000040;
}

.ui-datepicker .ui-state-disabled span:hover,
.ui-datepicker .ui-state-disabled a:hover {
    background: unset !important;
    border: unset !important;
    color: unset !important;
}

/* Style for days from other months */
.ui-datepicker-other-month .ui-state-default {
    color: #ccc;
}

.datepicker-container {
    width: 100%;
}

/* Kill inline width set by jQuery UI */
.ui-datepicker {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Table must stretch */
.ui-datepicker table {
    width: 100%;
    table-layout: fixed;
}

/* Each column gets equal width */
.ui-datepicker th,
.ui-datepicker td {
    width: calc(100% / 7);
}

/* Square responsive cells */
.ui-datepicker td a,
.ui-datepicker td span {
    width: 100%;
    aspect-ratio: 1 / 1;
}
/* Remove implicit spacing */
.ui-datepicker td {
    padding: 0;
}

/* Make each cell a true square */
.ui-datepicker td a,
.ui-datepicker td span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    aspect-ratio: 1 / 1;

    margin: 0;
    padding: 0;

    line-height: 1;
    box-sizing: border-box;
    text-decoration: none !important;
}

.wc-blocks-components-select {
    width: 100%;
}

.resos-booking-fields .wc-blocks-components-select__container {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    box-sizing: border-box;
    height: 3.125em;
    width: 100%;
    margin: 0.5em 0;
}

.resos-booking-fields .wc-blocks-components-select__label {
    color: #2b2d2f;
    font-family: inherit;
    font-size: inherit;
    font-size: 1em;
    font-style: inherit;
    font-weight: inherit;
    left: .5em;
    letter-spacing: inherit;
    line-height: inherit;
    line-height: 1.25;
    margin: 0;
    max-width: calc(100% - 32px);
    overflow: hidden;
    position: absolute;
    text-decoration: inherit;
    text-overflow: ellipsis;
    text-transform: inherit;
    top: 2px;
    transform: translateY(15%) scale(.75);
    transform-origin: top left;
    transition: all .2s ease;
    white-space: nowrap;
    z-index: 1;
}

.resos-booking-fields .wc-blocks-components-select__select {
    appearance: none;
    background: none;
    border: 1px solid hsla(0, 0%, 7%, .8);
    border-radius: 4px;
    color: #2b2d2f;
    font-family: inherit;
    font-size: inherit;
    font-size: 1em;
    font-style: inherit;
    font-weight: inherit;
    height: 100%;
    letter-spacing: inherit;
    line-height: inherit;
    padding: 1em .5em 0;
    text-decoration: inherit;
    text-transform: inherit;
    width: 100%;
}

.resos-booking-fields .wc-blocks-components-select__expand {
    fill: #2b2d2f;
    pointer-events: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.resos-booking-detail-fields {
    margin: 1em;
}

.single_add_to_cart_button {
    width: 100% !important;
}

form.cart {
    padding: 1em;
    border-radius: 1em;
}