/**
 * Hide extras until JS wraps them, then collapse the wrapper to 0.
 * Open height is set in JS from real content height (not max-height).
 */
body.rnb-date-gate form.rnb-cart:not(.is-date-gated-ready):not(.is-date-selected) > *:not(:has(#pickup-date)):not(#pickup-modal-body):not(input[type="hidden"]):not(.woocommerce-product-details__short-description):not(.rnb-product-short-description) {
    display: none !important;
}

body.rnb-date-gate form.rnb-cart > .woocommerce-product-details__short-description,
body.rnb-date-gate form.rnb-cart > .rnb-product-short-description {
    margin: 28px 0 4px;
}

body.rnb-date-gate .rnb-product-description-heading {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

body.rnb-date-gate form.rnb-cart > .rnb-booking-top-box {
    margin: 4px 0 24px;
}

body.rnb-date-gate form.rnb-cart .rnb-date-gated-panel .single_add_to_cart_button {
    margin-bottom: 24px;
}

.rnb-date-gated-panel {
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.rnb-date-gated-panel.is-animating {
    transition: height 0.4s ease, opacity 0.4s ease;
}

.rnb-date-gated-panel.is-open {
    opacity: 1;
}

.rnb-date-gated-panel.is-settled {
    height: auto !important;
    overflow: visible;
    opacity: 1;
    transition: none;
}

/**
 * Event Start Date — first-step emphasis (label + field).
 * Scoped to the pickup block only so dropoff is unchanged.
 */
body.rnb-date-gate form.rnb-cart .date-time-picker:has(#pickup-date) {
    margin: 4px 0 8px;
}

body.rnb-date-gate form.rnb-cart .date-time-picker:has(#pickup-date) h5 {
    margin: 0 !important;
    padding-bottom: 10px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    color: #111 !important;
}

body.rnb-date-gate form.rnb-cart .date-time-picker:has(#pickup-date) .pick-up-date-picker {
    width: 100%;
    float: none;
    display: block;
    padding-right: 0;
}

body.rnb-date-gate form.rnb-cart .date-time-picker:has(#pickup-date) input#pickup-date {
    height: 54px;
    width: 100%;
    padding-left: 44px;
    font-size: 17px !important;
    font-weight: 600;
    color: #fff !important;
    background: var(--event-start-date-title, #111) !important;
    border: 2px solid var(--event-start-date-title, #111) !important;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: none !important;
}

body.rnb-date-gate form.rnb-cart .date-time-picker:has(#pickup-date) input#pickup-date::placeholder {
    color: #fff !important;
    opacity: 1;
    font-weight: 600;
}

body.rnb-date-gate form.rnb-cart .date-time-picker:has(#pickup-date) input#pickup-date:focus {
    outline: none;
    border-color: var(--event-start-date-title, #111) !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18) !important;
}

body.rnb-date-gate form.rnb-cart .date-time-picker:has(#pickup-date) .pick-up-date-picker i {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #fff;
}
