.booking-fields table th,
.booking-fields table td {
	vertical-align: middle;
}
.bfwc-auto-set .bfws-end-date {
	display: none;
}
/* Some themes don't hide the jQuery UI datepicker container by default (relying on
   jQuery UI's own stylesheet, which they may override or omit) - it should stay
   hidden until a calendar is actually triggered, at which point jQuery UI shows it
   via an inline style that takes precedence over this rule. */
#ui-datepicker-div {
	display: none;
}

/* DatePicker styles: https://gist.github.com/miwahall/7028640 */
.bfwc-datepicker {
	background-color: #fff;
	border-radius: 4px;
	display: none;
	margin-top: 0;
	padding: 10px;
}
.bfwc-datepicker a,
.bfwc-datepicker a:hover {
	text-decoration: none;
}
.bfwc-datepicker a:hover,
.bfwc-datepicker td:hover a {
	color: #2A6496;
	-webkit-transition: color 0.1s ease-in-out;
	   -moz-transition: color 0.1s ease-in-out;
	     -o-transition: color 0.1s ease-in-out;
	        transition: color 0.1s ease-in-out;
}
.bfwc-datepicker .ui-datepicker-header {
	margin-bottom: 4px;
	text-align: center;
}
.bfwc-datepicker .ui-datepicker-title {
	font-weight: 700;
}
.bfwc-datepicker .ui-datepicker-prev,
.bfwc-datepicker .ui-datepicker-next {
	cursor: pointer;
	height: 20px;
	line-height: 1;
	margin-top: 2px;
	position: relative;
	width: 30px;
}
.bfwc-datepicker .ui-datepicker-prev {
	float: left;
	text-align: left;
}
.bfwc-datepicker .ui-datepicker-next {
	float: right;
	text-align: right;
}
/* Chevrons drawn in CSS (two borders of a rotated square), not an icon font:
   the Dashicons glyphs used previously showed as empty boxes wherever an
   optimisation plugin stopped Dashicons loading for logged-out visitors.
   currentColor keeps them matching the header text and any theme colour.
   Other plugins and themes style these same pseudo-elements for their own
   datepickers (e.g. Product Add-Ons Ultimate makes them 34px Dashicons
   blocks), so the selectors are scoped to the header for extra specificity
   and the shape itself is !important. Colour deliberately isn't, so the
   calendar themes (assets/css/themes) can still set it. */
.bfwc-datepicker .ui-datepicker-header .ui-datepicker-prev:before,
.bfwc-datepicker .ui-datepicker-header .ui-datepicker-next:before {
	background: none !important;
	border-color: currentColor !important;
	border-style: solid !important;
	border-width: 0 0 2px 2px !important;
	box-sizing: border-box !important;
	color: inherit;
	content: "" !important;
	display: block !important;
	font: inherit;
	height: 9px !important;
	margin: -4px 0 0 0 !important;
	padding: 0 !important;
	position: absolute !important;
	top: 50% !important;
	width: 9px !important;
}
.bfwc-datepicker .ui-datepicker-header .ui-datepicker-prev:before {
	left: 4px !important;
	right: auto !important;
	transform: rotate(45deg) !important;
}
.bfwc-datepicker .ui-datepicker-header .ui-datepicker-next:before {
	left: auto !important;
	right: 4px !important;
	transform: rotate(-135deg) !important;
}
.bfwc-datepicker .ui-datepicker-header .ui-datepicker-prev:after,
.bfwc-datepicker .ui-datepicker-header .ui-datepicker-next:after {
	display: none !important;
}
.bfwc-datepicker .ui-datepicker-prev.ui-state-disabled,
.bfwc-datepicker .ui-datepicker-next.ui-state-disabled {
	cursor: default;
	opacity: 0.35;
}
/* jQuery UI's own sprite arrow (span.ui-icon) - its stylesheet shows it with
   .ui-datepicker .ui-datepicker-prev span, which outranks a plain .ui-icon rule. */
.bfwc-datepicker .ui-datepicker-header .ui-datepicker-prev span,
.bfwc-datepicker .ui-datepicker-header .ui-datepicker-next span,
.bfwc-datepicker .ui-icon {
	display: none !important;
}
.bfwc-datepicker .ui-datepicker-calendar {
	table-layout: fixed;
	width: 100%;
	border-collapse: collapse;
}
.bfwc-datepicker .ui-datepicker-calendar thead,
.bfwc-datepicker .ui-datepicker-calendar thead tr {
	background: transparent;
}
.bfwc-datepicker .ui-datepicker-calendar th,
.bfwc-datepicker .ui-datepicker-calendar td {
	text-align: center;
	padding: 4px 0;
	color: #555;
}
.bfwc-datepicker .ui-datepicker-calendar thead th {
	background: transparent;
	color: #555;
	font-weight: 600;
	border: none;
}
.bfwc-data-in-cells .bfwc-datepicker .ui-datepicker-calendar th,
.bfwc-data-in-cells .bfwc-datepicker .ui-datepicker-calendar td {
	padding: 4px 4px;
}
.bfwc-datepicker .ui-datepicker-calendar td {
	border: 1px solid #eee;
	background: #aaa;
	transition: all 0.2s;
}
.bfwc-info {
	display: block;
	font-weight: normal;
}
.bfwc-data-in-cells .bfwc-datepicker td.has-extra-data .ui-state-default {
	padding: 5px 10px 0
}
td.ui-datepicker-unselectable.ui-state-disabled.pending,
.bfwc-datepicker .ui-datepicker-calendar td.ui-datepicker-unselectable.pending {
    background: #ddd;
}
.bfwc-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day {
    background: #ccc;
}
.bfwc-datepicker .ui-datepicker-calendar td.ui-datepicker-unselectable {
	background: none;
	color: inherit;
}
.bfwc-datepicker .ui-datepicker-calendar td.booked span {
	opacity: 0.2;
}
.bfwc-datepicker .ui-datepicker-calendar td:hover {
	background-color: #eee;
	cursor: pointer;
}
.bfwc-datepicker .ui-datepicker-calendar td a {
	text-decoration: none;
	color: #555;
}
.bfwc-datepicker .ui-datepicker-current-day {
	background-color: #4289cc;
}
.bfwc-datepicker .ui-datepicker-current-day a {
	color: #fff
}
.bfwc-datepicker .ui-datepicker-calendar .ui-datepicker-unselectable:hover {
	background-color: #fff;
	cursor: default;
}
/* Optimised colours */
.bfwc-optimise-colours .bfwc-datepicker .ui-datepicker-calendar td,
.bfwc-optimise-colours .bfwc-datepicker .ui-datepicker-calendar td:hover,
.bfwc-optimise-colours .bfwc-datepicker .ui-datepicker-calendar td.fully-available a:hover {
	/* background: #258039; */
	font-weight: bold;
	line-height: 1.25
}
.bfwc-optimise-colours .bfwc-datepicker .ui-datepicker-calendar td a {
	color: #fff
}
.bfwc-optimise-colours .bfwc-datepicker .ui-datepicker-calendar td.ui-datepicker-other-month {
	background: none
}
.bfwc-optimise-colours .bfwc-datepicker .ui-datepicker-calendar td.booked {
	background: #CF3721;
}
.bfwc-optimise-colours .bfwc-datepicker .ui-datepicker-calendar td.booked span.ui-state-default {
	color: #fff;
	opacity: 1;
	text-decoration: line-through;
}

.bfwc-optimise-colours .bfwc-datepicker td.fully-available,
.bfwc-optimise-colours .bfwc-datepicker td.fully-available .ui-state-hover {
	background: #258039;
}
.bfwc-optimise-colours .bfwc-datepicker td.part-available,
.bfwc-optimise-colours .bfwc-datepicker td.part-available .ui-state-hover {
	background: #F5BE41;
}
.bfwc-optimise-colours .bfwc-datepicker td.unavailable,
.bfwc-optimise-colours .bfwc-datepicker td.unavailable .ui-state-hover {
	background: #CF3721;
}
.bfwc-optimise-colours .bfwc-datepicker td.start-date.ui-state-disabled,
.bfwc-optimise-colours .bfwc-datepicker td.start-date.ui-state-disabled .ui-state-hover {
	background: #c6e1c6;
}
.bfwc-optimise-colours .bfwc-datepicker td.fully-available .ui-state-default,
.bfwc-optimise-colours .bfwc-datepicker td.part-available .ui-state-default,
.bfwc-optimise-colours .bfwc-datepicker td.unavailable .ui-state-default,
.bfwc-info {
	color: #fff;
}
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-unselectable.past,
.bfwc-optimise-colours .bfwc-datepicker td.ui-state-disabled {
	background: #eee;
}
.bfwc-optimise-colours .bfwc-datepicker td.unavailable.ui-state-disabled,
.bfwc-optimise-colours .bfwc-datepicker td.unavailable.ui-datepicker-unselectable {
	background: #CF3721;
}
.bfwc-optimise-colours .bfwc-datepicker td.unavailable.ui-state-disabled .ui-state-default,
.bfwc-optimise-colours .bfwc-datepicker td.unavailable.ui-datepicker-unselectable .ui-state-default {
	color: #fff;
}
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-unselectable.past .ui-state-default,
.bfwc-optimise-colours .bfwc-datepicker td.ui-state-disabled .ui-state-default {
	color: #555;
	text-decoration: none !important;
	opacity: 1 !important
}
.bfwc-optimise-colours .bfwc-datepicker td .ui-state-hover {
  background: transparent;
}
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-today .ui-state-default {
  font-weight: bold
}
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-today:not(.ui-datepicker-current-day),
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-today {
	background: #a8d5a8;
}
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-today.unavailable,
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-today.booked {
	background: #CF3721;
}
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-today.part-available {
	background: #F5BE41;
}
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-today:not(.ui-datepicker-current-day) .ui-state-default {
	background: transparent;
	color: #fff;
}
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-current-day {
	background: #4289cc;
}
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-current-day .ui-state-default,
.bfwc-optimise-colours .bfwc-datepicker td.ui-datepicker-current-day a {
	color: #fff !important;
	opacity: 1;
}

/* Other styles */
.bfws-booking-details {
	margin: 1em 0;
	display: none;
	background: #fff;
	padding: 10px;
}
.bfws-booking-details table {
	border: 10px;
	border-collapse: collapse;
	background: #fff;
	margin-bottom: 0;
}
.cart #bfws-calendar table tr:nth-child(even) {
    background: inherit;
}
.woocommerce div.product form.cart .bfws-booking-details table td,
.bfws-booking-details table th,
.bfws-booking-details table td {
	padding: 8px 4px;
}
.woocommerce div.product form.cart .bfws-booking-details table td.booking-cost-header {
	text-align: left;
}
.bfws-booking-details table td input {
	max-width: 50px;
}
.booking-form-inner {
	position: relative;
}
.pewc-has-extra-fields .booking-form-inner {
	margin-bottom: 2em;
}
.booking-form-inner.updating .loader-background {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255,255,255,0.75);
}
.booking-form-inner .loader {
	display: none;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}
.booking-form-inner.updating .loader {
	display: block !important;
	position: absolute;
}
table.pricing-table {
	background-color: #fff;
	border-radius: 0;
	margin-top: 0;
	border: 0;
}
table.pricing-table th,
table.pricing-table td {
	padding: 0.75em 1em;
	border-right: 0;
}
table.pricing-table td.pricing-table-cost {
	text-align: center;
}
/* Double calendar */
#bfws-calendar-wrapper table {
	border-collapse: collapse;
	margin-bottom: 1em;
	border: 1px solid #eee;
}
.bfwc-view-double.woocommerce div.product form.cart table tr {
	background: none;
}
.bfwc-view-double.woocommerce div.product form.cart table td {
	padding: 0.75em 1em;
	border-bottom: 1px solid #eee;
	border-right: 0;
}
.bfwc-view-double.woocommerce div.product form.cart table td.bfws-date-field-wrapper {
	padding: 0;
	border: 1px solid #eee;
}
/* Full-width tile/list views line up with the date field and the add to cart button */
.bfwc-view-double.woocommerce div.product form.cart table td.bfwc-booking-mode,
.bfwc-view-double.woocommerce div.product form.cart table tr.bfwc-slot-calendar-wrapper > td,
.bfwc-view-double.woocommerce div.product form.cart table tr.bfwc-slot-diary-wrapper > td,
.bfwc-view-double.woocommerce div.product form.cart table tr.bfwc-slot-checkboxes-wrapper > td,
.bfwc-view-double.woocommerce div.product form.cart table tr.bfwc-whole-days-tiles-row > td {
	padding-left: 0;
	padding-right: 0;
}
/* Label/value rows (Duration, Cost, Quantity, times...) line up the same way */
.bfwc-view-double.woocommerce div.product form.cart table td.booking-cost-header {
	padding-left: 0;
}
#bfws-calendar-wrapper td.booking-cost-data {
	padding-right: 0;
}
#bfws-calendar-wrapper input[type=text] {
	width: 100%;
	padding: 0.75em 1em 0.75em 2.5em;
	border: 0;
	cursor: pointer;
	font-weight: bold
}
#bfws-calendar-wrapper .booking-cost-data {
	text-align: right;
	padding: 0.5em;
}
.booking-cost-data-number input[type="number"] {
	display: inline
}
.bfwc-view-double.woocommerce div.product form.cart .button {
	width: 100%;
	float: none;
	display: block;
}
.bfwc-view-double .bfwc-datepicker {
	max-width: 400px;
	border: 1px solid #ddd;
	border-radius: 0;
	box-shadow: 0 0 3px rgba(0,0,0,0.1);
}
.bfws-date-field-wrapper {
	position: relative;
}
/* https://css.gg/calendar-dates */
.gg-calendar-dates {
  box-sizing: border-box;
  position: absolute;
  display: block;
  /* transform: scale(var(--ggs,1)); */
  width: 18px;
  height: 18px;
  border: 2px solid;
  border-radius: 3px;
	top: 50%;
	left: 1em;
	transform: translateY(-50%);
}
.gg-calendar-dates::after,
.gg-calendar-dates::before {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  border-radius: 3px;
  height: 2px;
  left: 2px
}
.gg-calendar-dates::before {
  background: currentColor;
  width: 2px;
  box-shadow:
    4px 0 0,8px 0 0,0 4px 0,
    4px 4px 0,8px 4px 0;
  top: 6px
}
.gg-calendar-dates::after {
  width: 10px;
  top: -4px;
  box-shadow: 0 6px 0 0
}
/* Search form */
.bfwc-search-calendar {
	max-width: 400px;
	box-shadow: 0 0 25px 0px rgba(0,0,0,0.1);
}
.bfwc-search-calendar.bfwc-datepicker .ui-datepicker-title {
    padding: 8px 0
}
.booking-search-form-wrapper table td {
	vertical-align: middle;
}
.booking-search-form-wrapper .gg-calendar-dates {
  left: 2.5em;
}
.booking-search-form-wrapper #bfws-calendar-wrapper input[type=text] {
	padding-left: 3em;
}
.booking-search-form-wrapper #bfwc-submit-search {
	width: 100%
}
.bfwc-search-calendar.bfwc-datepicker .ui-datepicker-calendar th,
.bfwc-search-calendar.bfwc-datepicker .ui-datepicker-calendar td {
	padding: 8px
}
.bfwc-optimise-colours .bfwc-search-calendar.bfwc-datepicker .ui-datepicker-calendar td,
.bfwc-optimise-colours .bfwc-search-calendar.bfwc-datepicker td.ui-datepicker-unselectable.past,
.bfwc-optimise-colours .bfwc-search-calendar.bfwc-datepicker td.ui-state-disabled {
	background: #fff;
}
.bfwc-optimise-colours .bfwc-datepicker .ui-datepicker-calendar td:hover,
.bfwc-optimise-colours .bfwc-datepicker .ui-datepicker-calendar td a:hover {
	/* background: #eee; */
	color: #555
}

.bfwc-optimise-colours .bfwc-search-calendar.bfwc-datepicker .ui-datepicker-calendar td a {
	color: #555
}

/* CART */
table .product-quantity {
    display: none !important;
}

/* PEWC */
.product-type-simple_booking .pewc-total-field-wrapper {
	display: none;
}
.booking-cost-set .pewc-total-field-wrapper {
	display: block;
}
ul.pewc-product-extra-groups {
	margin: 0;
}
.pewc-bfwc-disabled,
.pewc-bfwc-disabled img,
.pewc-bfwc-disabled label {
	cursor: not-allowed !important;
	opacity: 0.4;
	pointer-events: none;
}
.pewc-bfwc-disabled:hover,
.pewc-bfwc-disabled *:hover,
.pewc-preset-style .pewc-bfwc-disabled .pewc-radio-image-wrapper:hover,
.pewc-preset-style .pewc-bfwc-disabled .pewc-checkbox-image-wrapper:hover,
.pewc-preset-style .pewc-bfwc-disabled .pewc-radio-wrapper:hover {
	opacity: 0.4 !important;
	filter: none !important;
	transform: none !important;
	box-shadow: none !important;
}
.bfwc-pewc-group-hidden,
.bfwc-pewc-field-hidden {
	display: none;
}

/* Cart page */
dl.variation dt:before {
    content: "";
    clear: left;
    display: table;
}
dl.variation dt,
dl.variation dd,
dl.variation p {
	display: inline;
}

/* ── Display calendar by default (2.13.1) ─────────────────────── */
/* The start date input stays in the form (it holds the value), but the
   always-open inline calendar replaces it visually. */
#bfws-calendar-wrapper .bfwc-calendar-inline > .gg-calendar-dates,
#bfws-calendar-wrapper .bfwc-calendar-inline > input.bfws-start-date {
	display: none;
}
.bfws-inline-calendar .bfwc-datepicker {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.bfws-inline-calendar .ui-datepicker-calendar {
	width: 100%;
}

/* ── Time Slots (2.5.0) ───────────────────────────────────────── */
.bfwc-timezone-notice {
	margin: 0.5em 0 0;
	font-size: 0.875em;
	opacity: 0.8;
}
.bfwc-time-slots-wrapper {
	margin-top: 1em;
}
.bfwc-time-slots-table {
	width: 100%;
	border-collapse: collapse;
}
#bfws-calendar-wrapper .bfwc-time-slots-table {
	margin-bottom: 0;
	border: 0;
}
.bfwc-time-slots-table td {
	padding: 4px 0;
	vertical-align: middle;
}
.bfwc-time-slots-table .booking-cost-header {
	width: 40%;
	font-weight: 600;
}
.bfwc-time-slots-table .booking-cost-data {
	width: 60%;
}
.bfwc-time-select {
	width: 100%;
	max-width: 220px;
}
.bfwc-time-select option:disabled {
	color: #aaa;
}
.bfwc-time-slot-error {
	color: #c00;
	margin-bottom: 0.5em;
}

/* ── Whole days / time slots switch (2.13.0) ─────────────────── */
.bfwc-booking-mode-tiles {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.bfwc-booking-mode-label {
	grid-column: 1 / -1;
	float: none;
	margin: 0 0 0.25em;
	padding: 0;
	font-weight: 600;
}
.bfwc-booking-mode-tile {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}
/* Visually hidden, but still focusable and posted with the form */
.bfwc-booking-mode-tile input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.bfwc-booking-mode-tile-text {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75em;
	padding: 8px 12px;
	border: 2px solid var(--bfwc-border, #ddd);
	border-radius: 4px;
	background: var(--bfwc-cell-bg, #fff);
	color: var(--bfwc-cell-text, inherit);
	font-size: 0.9em;
	font-weight: 600;
	text-align: center;
	transition: border-color 0.15s, background 0.15s, transform 0.1s;
	user-select: none;
}
.bfwc-booking-mode-tile:hover .bfwc-booking-mode-tile-text {
	transform: translateY( -1px );
	background: var(--bfwc-hover-bg, #f5f9fc);
}
.bfwc-booking-mode-tile input:checked + .bfwc-booking-mode-tile-text {
	border-color: var(--bfwc-selected-bg, #0073aa);
	background: var(--bfwc-selected-bg, #0073aa);
	color: var(--bfwc-selected-text, #fff);
}
.bfwc-booking-mode-tile input:focus-visible + .bfwc-booking-mode-tile-text {
	outline: 2px solid var(--bfwc-selected-bg, #0073aa);
	outline-offset: 2px;
}

/* Number of days as tiles - same grid and cells as the Time Picker view */
.bfwc-whole-days-tiles-label {
	margin: 0 0 0.4em;
	font-weight: 600;
}
.bfwc-whole-days-tiles {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 6px;
	margin-bottom: 0.5em;
}
.bfwc-whole-days-tile {
	width: 100%;
	margin: 0;
	font-family: inherit;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
}
.bfwc-whole-days-tile:focus-visible {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}
/* Selected stays solid, like the chosen start time in the Time Picker */
.bfwc-whole-days-tile.bfwc-slot-selected {
	border-color: #0073aa;
	background: #0073aa;
	color: #fff;
}
.bfwc-whole-days-tile .bfwc-cell-price:empty {
	display: none;
}
@media (max-width: 480px) {
	.bfwc-whole-days-tiles {
		grid-template-columns: repeat( 2, 1fr );
	}
}

/* ── Slot calendar view ───────────────────────────────────────── */
.bfwc-slot-date-nav {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin-bottom: 0.75em;
	white-space: nowrap;
}
.bfwc-slot-date-nav .button,
.bfwc-view-double.woocommerce div.product form.cart .bfwc-slot-date-nav .button {
	padding: 0.2em 0.4em;
	min-width: 0;
	width: auto;
	font-size: 1.1em;
	line-height: 1;
}
.bfwc-slot-date-nav .bfwc-slot-date-label {
	flex: 1;
	font-weight: 600;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bfwc-slot-calendar-wrapper {
	/* spacing provided by td padding-top inline style */
}
.bfwc-slot-calendar {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 6px;
	margin-bottom: 0.5em;
}
.bfwc-slot-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 0.9em;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	transition: opacity 0.15s, transform 0.1s;
	border: 2px solid transparent;
}
.bfwc-cell-time {
	display: block;
}
.bfwc-slot-calendar.bfwc-time-format-12h .bfwc-cell-time {
	font-size: 0.85em;
}
.bfwc-cell-price {
	display: block;
	font-size: 0.85em;
	font-weight: 700;
	margin-top: 3px;
}
.bfwc-cell-avail {
	display: block;
	font-size: 0.8em;
	font-weight: 400;
	opacity: 0.75;
	margin-top: 2px;
}
.bfwc-slot-cell:hover:not(.bfwc-slot-disabled) {
	transform: translateY( -1px );
}
.bfwc-slot-available {
	background: #d4edda;
	color: #155724;
	border-color: #c3e6cb;
}
.bfwc-slot-limited {
	background: #fff3cd;
	color: #856404;
	border-color: #ffeeba;
}
.bfwc-slot-unavailable {
	background: #f8d7da;
	color: #721c24;
	border-color: #f5c6cb;
}
.bfwc-slot-disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
}
.bfwc-slot-selected,
.bfwc-slot-hover:not(.bfwc-slot-disabled) {
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba( 0, 115, 170, 0.25 );
}
.bfwc-slot-pick-start,
.bfwc-slot-pick-end {
	border-color: #0073aa;
	background: #0073aa;
	color: #fff;
}
.bfwc-slot-full-day {
	grid-column: 1 / -1;
	text-align: center;
}
.bfwc-slot-calendar-hint {
	font-size: 0.85em;
	color: #555;
	margin: 0.25em 0 0;
}

/* ── Diary view ───────────────────────────────────────────────── */
.bfwc-slot-diary-wrapper {
	/* spacing provided by td padding-top inline style */
}
.bfwc-slot-diary {
	display: flex;
	flex-direction: column;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 0.5em;
}
.bfwc-diary-row {
	display: flex;
	align-items: center;
	padding: 0;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	user-select: none;
	transition: opacity 0.15s;
	min-height: 36px;
}
.bfwc-diary-row:last-child {
	border-bottom: none;
}
.bfwc-diary-row:hover:not(.bfwc-slot-disabled) {
	filter: brightness( 0.95 );
}
.bfwc-diary-time {
	flex: 0 0 auto;
	min-width: 114px;
	box-sizing: border-box;
	padding: 6px 10px;
	font-size: 0.82em;
	font-weight: 600;
	color: #444;
	border-right: 1px solid #ddd;
	background: #f9f9f9;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bfwc-diary-bar {
	flex: 1;
	display: block;
	height: 100%;
	min-height: 36px;
}
.bfwc-diary-avail {
	flex: 0 0 auto;
	padding: 0 10px;
	font-size: 0.82em;
	font-weight: 600;
	color: #444;
	align-self: center;
	white-space: nowrap;
}
.bfwc-diary-price {
	flex: 0 0 auto;
	padding: 0 10px 0 0;
	font-size: 0.82em;
	font-weight: 700;
	color: #444;
	align-self: center;
	white-space: nowrap;
}
.bfwc-diary-row.bfwc-slot-available  .bfwc-diary-bar { background: #d4edda; }
.bfwc-diary-row.bfwc-slot-limited    .bfwc-diary-bar { background: #fff3cd; }
.bfwc-diary-row.bfwc-slot-unavailable .bfwc-diary-bar { background: #f8d7da; }
.bfwc-diary-row.bfwc-slot-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.bfwc-diary-row.bfwc-slot-selected   .bfwc-diary-bar { background: #cce5ff; }
.bfwc-diary-row.bfwc-slot-pick-start .bfwc-diary-bar,
.bfwc-diary-row.bfwc-slot-pick-end   .bfwc-diary-bar { background: #0073aa; }
.bfwc-diary-row.bfwc-slot-pick-start .bfwc-diary-time,
.bfwc-diary-row.bfwc-slot-pick-end   .bfwc-diary-time { color: #0073aa; }
.bfwc-diary-row.bfwc-slot-hover:not(.bfwc-slot-disabled) .bfwc-diary-bar {
	outline: 2px solid rgba( 0, 115, 170, 0.4 );
	outline-offset: -2px;
}
.bfwc-child-slot-avail {
	display: block;
	font-size: 0.85em;
	opacity: 0.75;
	margin-top: 2px;
}

/* ── Checkboxes view ──────────────────────────────────────────── */
/* A plain vertical list, independent of the Time Picker's colored grid-tile
   styling (.bfwc-slot-cell) - one row per slot, checkbox on the left, a thin
   rule between rows, a left-edge accent bar for availability state instead of
   a filled tile background. */
.bfwc-slot-checkboxes-wrapper {
	/* spacing provided by td padding-top inline style */
}
.bfwc-slot-select-all {
	margin-bottom: 0.5em;
}
.bfwc-slot-select-all label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	cursor: pointer;
}
.bfwc-slot-select-all input[type="checkbox"] {
	margin: 0;
}
.bfwc-slot-select-all-price {
	margin-left: auto;
	font-weight: 700;
}
.bfwc-slot-checkboxes {
	display: flex;
	flex-direction: column;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 0.5em;
}
.bfwc-slot-checkbox-cell {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	border-left: 4px solid transparent;
	cursor: pointer;
	user-select: none;
}
.bfwc-slot-checkbox-cell:last-child {
	border-bottom: none;
}
.bfwc-slot-checkbox-cell .bfwc-slot-checkbox {
	flex: 0 0 auto;
	margin: 0;
}
/* The real checkbox renders normally by default. When PEWC is active with a
   custom checkbox style, bfwc_pewc_checkbox_style_css() (inc/functions-pewc.php)
   hides the real input and un-hides this in its place, matching PEWC's own
   fake-checkbox technique so both checkbox lists look consistent. */
.bfwc-slot-checkbox-cell .bfwc-slot-theme-element {
	display: none;
}
.bfwc-slot-checkbox-cell .bfwc-cell-time {
	flex: 1 1 auto;
	font-weight: 600;
}
.bfwc-slot-checkbox-cell .bfwc-cell-price {
	flex: 0 0 auto;
	font-weight: 700;
	margin: 0 0 0 auto;
}
.bfwc-slot-checkbox-cell .bfwc-cell-avail {
	flex: 0 0 auto;
	font-size: 0.85em;
	opacity: 0.75;
}
.bfwc-slot-checkbox-cell.bfwc-slot-available {
	border-left-color: #46b450;
}
.bfwc-slot-checkbox-cell.bfwc-slot-limited {
	border-left-color: #ffb900;
}
.bfwc-slot-checkbox-cell.bfwc-slot-unavailable {
	border-left-color: #dc3232;
}
.bfwc-slot-checkbox-cell.bfwc-slot-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.bfwc-slot-checkbox-cell.bfwc-slot-disabled .bfwc-slot-checkbox {
	cursor: not-allowed;
}
.bfwc-slot-checkbox-cell.bfwc-slot-selected {
	background: #f0f6fc;
}

/* Rental bundle: locked child product items */
.bfwc-rental-bundle-locked,
.bfwc-rental-bundle-locked label {
	cursor: default !important;
	pointer-events: none;
}
.bfwc-rental-bundle-locked input[type="checkbox"],
.bfwc-rental-bundle-locked input[type="radio"] {
	cursor: default !important;
}
select.pewc-child-select-field[disabled] {
	cursor: default !important;
	opacity: 1;
}

/* My Account: My Bookings tab */
.bfwc-my-bookings-section {
	margin-bottom: 2.5em;
}
.bfwc-my-bookings-section h3 {
	margin-bottom: 0.75em;
}
.bfwc-my-bookings-empty {
	margin: 0;
	opacity: 0.8;
}
table.bfwc-my-bookings-table {
	table-layout: fixed;
	width: 100%;
}
table.bfwc-my-bookings-table th.bfwc-col-product,
table.bfwc-my-bookings-table td.bfwc-col-product {
	width: 40%;
}
table.bfwc-my-bookings-table th.bfwc-col-dates,
table.bfwc-my-bookings-table td.bfwc-col-dates {
	width: 30%;
}
table.bfwc-my-bookings-table th.bfwc-col-status,
table.bfwc-my-bookings-table td.bfwc-col-status {
	width: 18%;
}
table.bfwc-my-bookings-table th.bfwc-col-order,
table.bfwc-my-bookings-table td.bfwc-col-order {
	width: 12%;
}
table.bfwc-my-bookings-table td {
	word-wrap: break-word;
	overflow-wrap: break-word;
}
table.bfwc-my-bookings-table .bfwc-my-bookings-qty {
	display: inline-block;
	margin-left: 0.35em;
	opacity: 0.7;
}
table.bfwc-my-bookings-table .bfwc-my-bookings-time {
	opacity: 0.75;
	font-size: 0.9em;
}
mark.bfwc-booking-status {
	background: #e5e5e5;
	color: #2c3338;
	padding: 0.25em 0.6em;
	border-radius: 3px;
	font-size: 0.85em;
	line-height: 1.6;
	white-space: nowrap;
}
mark.bfwc-booking-status--confirmed,
mark.bfwc-booking-status--edited {
	background: #c6e1c6;
	color: #2c4700;
}
mark.bfwc-booking-status--processing {
	background: #c8d7e1;
	color: #2e4453;
}
mark.bfwc-booking-status--pending {
	background: #f8dda7;
	color: #573b00;
}
mark.bfwc-booking-status--cancelled,
mark.bfwc-booking-status--removed {
	background: #eba3a3;
	color: #6b1e1e;
}

/* Theme adjustments */
.wp-theme-twentytwentyfive #bfws-calendar-wrapper input[type=text] {
	padding-left: 3.5em
}
/* ── [bfwc_availability_calendar] shortcode (2.13.0) ─────────── */
.bfwc-availability-calendar {
	--bfwc-ac-available: #258039;
	--bfwc-ac-partial: #F5BE41;
	--bfwc-ac-booked: #CF3721;
	--bfwc-ac-closed: #999;
	--bfwc-ac-border: var(--bfwc-border, #e0e0e0);
	margin: 0 0 1.5em;
	font-size: 0.875em;
}
.bfwc-availability-calendar.bfwc-ac-loading {
	opacity: 0.6;
	pointer-events: none;
	transition: opacity 0.15s;
}
.bfwc-ac-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: 0.75em;
}
.bfwc-ac-title {
	margin: 0;
	font-size: 1.25em;
}
.bfwc-ac-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25em;
	height: 2.25em;
	border: 1px solid var(--bfwc-ac-border);
	border-radius: 4px;
	color: inherit;
	font-size: 1.25em;
	line-height: 1;
	text-decoration: none;
}
.bfwc-ac-nav:hover,
.bfwc-ac-nav:focus {
	background: var(--bfwc-hover-bg, #f2f2f2);
}
.bfwc-ac-nav-disabled {
	opacity: 0.35;
	pointer-events: none;
}
.bfwc-ac-weekdays,
.bfwc-ac-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}
.bfwc-ac-weekday {
	padding: 0.4em;
	background: var(--bfwc-header-bg, #f7f7f7);
	color: var(--bfwc-header-text, inherit);
	font-weight: 600;
	text-align: center;
}
.bfwc-ac-weekday abbr {
	border: 0;
	text-decoration: none;
}
.bfwc-ac-days {
	border-top: 1px solid var(--bfwc-ac-border);
	border-left: 1px solid var(--bfwc-ac-border);
}
.bfwc-ac-day {
	min-width: 0;
	min-height: 6em;
	padding: 0.4em;
	border-right: 1px solid var(--bfwc-ac-border);
	border-bottom: 1px solid var(--bfwc-ac-border);
	background: var(--bfwc-cell-bg, #fff);
	color: var(--bfwc-cell-text, inherit);
}
.bfwc-ac-day-blank {
	background: transparent;
}
.bfwc-ac-day-past {
	opacity: 0.5;
}
.bfwc-ac-date {
	margin-bottom: 0.25em;
}
.bfwc-ac-day-today .bfwc-ac-date-number {
	font-weight: 700;
	text-decoration: underline;
}
/* The weekday is only shown in the phone list layout below */
.bfwc-ac-date-weekday {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
.bfwc-ac-items,
.bfwc-ac-legend {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfwc-ac-item {
	margin: 0 0 0.2em;
	line-height: 1.3;
}
.bfwc-ac-item > a,
.bfwc-ac-item > span {
	display: flex;
	align-items: center;
	gap: 0.35em;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}
.bfwc-ac-item > a:hover .bfwc-ac-name,
.bfwc-ac-item > a:focus .bfwc-ac-name {
	text-decoration: underline;
}
.bfwc-ac-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* Status is shown by the dot's shape as well as its colour */
.bfwc-ac-dot {
	flex: none;
	box-sizing: border-box;
	width: 0.75em;
	height: 0.75em;
	border: 2px solid var(--bfwc-ac-dot);
	border-radius: 50%;
	background: var(--bfwc-ac-dot);
}
.bfwc-ac-available { --bfwc-ac-dot: var(--bfwc-ac-available); }
.bfwc-ac-partial   { --bfwc-ac-dot: var(--bfwc-ac-partial); }
.bfwc-ac-booked    { --bfwc-ac-dot: var(--bfwc-ac-booked); }
.bfwc-ac-closed    { --bfwc-ac-dot: var(--bfwc-ac-closed); }
.bfwc-ac-partial .bfwc-ac-dot {
	background: linear-gradient(90deg, var(--bfwc-ac-dot) 50%, transparent 50%);
}
.bfwc-ac-closed .bfwc-ac-dot {
	background: transparent;
}
.bfwc-ac-days .bfwc-ac-booked .bfwc-ac-name {
	text-decoration: line-through;
	opacity: 0.7;
}
.bfwc-ac-days .bfwc-ac-closed .bfwc-ac-name {
	opacity: 0.55;
}
.bfwc-ac-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.25em;
	margin-top: 0.75em;
}
.bfwc-ac-legend .bfwc-ac-item {
	display: flex;
	align-items: center;
	gap: 0.35em;
	margin: 0;
}

/* Phones: one day per row instead of a 7-column grid */
@media (max-width: 600px) {
	.bfwc-ac-weekdays,
	.bfwc-ac-day-blank,
	.bfwc-ac-day-past {
		display: none;
	}
	.bfwc-ac-days {
		display: block;
	}
	.bfwc-ac-day {
		display: flex;
		gap: 0.75em;
		min-height: 0;
	}
	.bfwc-ac-date {
		flex: 0 0 2.75em;
		margin: 0;
		text-align: center;
	}
	.bfwc-ac-date-weekday {
		position: static;
		display: block;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
		font-size: 0.85em;
		text-transform: uppercase;
	}
	.bfwc-ac-date-number {
		font-size: 1.25em;
	}
	.bfwc-ac-items {
		flex: 1;
		min-width: 0;
	}
}

/* People fields (2.13.0). Logical properties, so the same rules work in RTL. */
.bfwc-people-hide-until-date {
	display: none;
}
#bfws-calendar-wrapper .bfwc-people-ratio-notice {
	font-size: 0.9em;
	text-align: start;
}
.bfwc-view-double.woocommerce div.product form.cart table td.bfwc-people-ratio-notice {
	padding-inline-start: 0;
}
.bfwc-people-row .bfwc-people-label {
	font-weight: bold;
}
.bfwc-people-row .bfwc-people-price {
	white-space: nowrap;
}
.bfwc-people-row .bfwc-people-description {
	display: block;
	font-size: 0.85em;
	opacity: 0.8;
}
.bfwc-people-stepper {
	display: inline-flex;
	align-items: stretch;
	max-width: 100%;
	border: 1px solid var(--bfwc-border, #ddd);
	background: var(--bfwc-cell-bg, #fff);
}
.bfwc-people-stepper button {
	min-width: 2.25em;
	padding: 0.25em 0.5em;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--bfwc-cell-text, inherit);
	font-size: 1.1em;
	line-height: 1;
	cursor: pointer;
}
.bfwc-people-stepper button:hover:not(:disabled) {
	background: var(--bfwc-hover-bg, #f5f9fc);
}
.bfwc-people-stepper button:focus-visible {
	outline: 2px solid var(--bfwc-selected-bg, #0073aa);
	outline-offset: -2px;
}
.bfwc-people-stepper button:disabled {
	opacity: 0.35;
	cursor: default;
}
#bfws-calendar-wrapper .bfwc-people-stepper input.bfwc-people-qty {
	width: 3.5em;
	margin: 0;
	padding: 0.25em;
	border: 0;
	border-inline: 1px solid var(--bfwc-border, #ddd);
	border-radius: 0;
	text-align: center;
	-moz-appearance: textfield;
}
.bfwc-people-stepper input.bfwc-people-qty::-webkit-outer-spin-button,
.bfwc-people-stepper input.bfwc-people-qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.bfwc-people-errors-row .bfwc-people-errors {
	margin: 0.5em 0 0;
	font-size: 0.9em;
}
.bfwc-my-bookings-people {
	margin: 0.25em 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.9em;
}
@media (max-width: 480px) {
	.bfwc-people-row .booking-cost-header,
	.bfwc-people-row .booking-cost-data {
		display: block;
		width: 100%;
		text-align: start;
	}
}
.bfwc-per-person-prices-label {
	display: block;
	font-size: 0.9em;
	font-weight: normal;
}
.bfwc-per-person-prices-label > span {
	display: block;
}
