/* Event date picker */
.jr-event-date-picker {
    margin: 0 0 24px;
    padding: 18px 22px;
    background: #fff8f0;
    border: 2px solid #f59e42;
    border-radius: 10px;
}

.jr-event-date-picker__title {
    display: block;
    color: #d97706;
    margin-bottom: 6px;
}

.jr-event-date-picker__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.jr-event-date-picker__icon {
    font-size: 1.5em;
}

.jr-event-date-picker__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
}

.jr-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jr-field__label {
    font-size: 0.78em;
    font-weight: 600;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.jr-event-date-picker__controls input[type="date"],
.jr-event-date-picker__controls select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1em;
    background: #fff;
}

.jr-event-date-picker__save {
    padding: 8px 16px;
    border-radius: 8px;
    background: #d97706;
    color: #fff;
    border: none;
    cursor: pointer;
}

.jr-event-date-picker__save:disabled {
    opacity: 0.6;
    cursor: wait;
}

.jr-event-date-msg {
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.92em;
}

.jr-event-date-msg.is-success {
    color: #15803d;
}

.jr-event-date-msg.is-error {
    color: #dc2626;
}

/* Add to cart area — notice beside quantity + button */
form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

form.cart .jr-cart-date-notice {
    flex: 1 1 220px;
    margin-top: 0;
    min-width: 200px;
}

.jr-cart-date-notice__text {
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.4;
}

.jr-cart-date-notice__text.is-warning {
    color: #b45309;
}

.jr-cart-date-notice__text.is-success {
    color: #15803d;
}

.jr-cart-date-notice__text.is-error {
    color: #b91c1c;
}

/* Blocked but visible add-to-cart button */
body.jr-no-event-date form.cart .single_add_to_cart_button,
body.jr-no-event-date form.cart button.single_add_to_cart_button,
body.jr-no-event-date a.add_to_cart_button,
body.jr-no-event-date button.add_to_cart_button {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

body.jr-has-event-date form.cart .single_add_to_cart_button:not(:disabled),
body.jr-has-event-date form.cart button.single_add_to_cart_button:not(:disabled) {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

body.jr-date-unavailable form.cart .single_add_to_cart_button,
body.jr-date-unavailable form.cart button.single_add_to_cart_button {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
