/**
 * Styling for [bp_booking_form] — native WooCommerce Bookings calendar/form,
 * wrapped by BookingShortcodes::render_booking_form().
 *
 * Uses the site's existing design tokens (Elementor Global Colors/Kit custom
 * properties) instead of fixed values, so it follows the design system
 * automatically. Adjust here — this is the single place for this shortcode's
 * styling, no other CSS file should target .bp-booking-form.
 */

.bp-booking-form {
	display: block;
	width: 100%;
}

.bp-booking-form__form {
	display: flex;
	flex-direction: column;
	gap: var( --space-md );
	width: 100%;
}

/* Field wrapper WooCommerce Bookings renders per field (number/date-picker/etc). */
.bp-booking-form__fields .form-field {
	display: block;
	width: 100%;
	margin: 0 0 var( --space-md );
}

.bp-booking-form__fields .form-field label {
	display: block;
	margin-bottom: var( --space-xs );
	font-family: var( --font-family );
	font-size: var( --font-size-sm );
	color: var( --e-global-color-text );
}

.bp-booking-form__fields .form-field input[type='number'] {
	width: 100%;
	max-width: 12rem;
	padding: var( --space-xs ) var( --space-sm );
	border: 1px solid var( --border );
	border-radius: var( --radius-md );
	font-family: var( --font-family );
	font-size: var( --font-size-base );
	color: var( --e-global-color-text );
	background: var( --surface );
	box-sizing: border-box;
}

/* Calendar wrapper (WC Bookings core: .wc-bookings-date-picker) — keep it from
   collapsing/squishing regardless of surrounding layout width constraints. */
.bp-booking-form__fields .wc-bookings-date-picker {
	width: 100%;
	box-sizing: border-box;
}

.bp-booking-form__fields .wc-bookings-date-picker .picker {
	width: 100%;
}

/* jQuery UI datepicker (dependency confirmed in WC Bookings core: 'wc-bookings-date'
   enqueues with 'jquery-ui-datepicker'). Force full-width, box-sizing sane. */
.bp-booking-form__fields .ui-datepicker,
.bp-booking-form__fields .ui-datepicker-inline {
	width: 100% !important;
	max-width: none;
	box-sizing: border-box;
	font-family: var( --font-family );
	background: var( --surface );
	border: 1px solid var( --border );
	border-radius: var( --radius-md );
	padding: var( --space-sm );
}

.bp-booking-form__fields .ui-datepicker table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

.bp-booking-form__fields .ui-datepicker td,
.bp-booking-form__fields .ui-datepicker th {
	text-align: center;
	padding: var( --space-xs );
}

.bp-booking-form__fields .ui-datepicker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var( --space-sm );
	font-size: var( --font-size-base );
	color: var( --e-global-color-text );
}

.bp-booking-form__cost {
	font-family: var( --font-family );
	font-size: var( --font-size-lg );
	color: var( --e-global-color-text );
}

/* --accent = #E09820, --e-global-color-primary = #4A4A4A (verified against
   the live Elementor Kit CSS on staging, 2026-09-18) — --e-global-color-accent
   is #E3000B (red), do not use it here. */
.bp-booking-form__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var( --space-xs );
	padding: var( --space-sm ) var( --space-lg );
	border: none;
	border-radius: var( --radius-md );
	font-family: var( --font-family );
	font-size: var( --font-size-base );
	font-weight: 500;
	color: var( --e-global-color-primary );
	background: var( --accent );
	cursor: pointer;
}

.bp-booking-form__button:hover {
	filter: brightness( 0.95 );
}

.bp-booking-form__button[aria-disabled='true'] {
	opacity: 0.5;
	cursor: not-allowed;
}
