.bwd-wab-booking-fields {
	margin: 0 0 18px;
	max-width: 390px;
}

form.cart:has(.bwd-wab-booking-fields) .quantity:has(input[name="quantity"][type="hidden"]) {
	display: none;
}

.bwd-wab-mode-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.bwd-wab-booking-fields .bwd-wab-mode-tab {
	background: #fff;
	border: 1px solid #adb9c2;
	border-radius: 6px;
	color: #25313a;
	cursor: pointer;
	flex: 1;
	font-weight: 600;
	padding: 10px;
}

.bwd-wab-booking-fields .bwd-wab-mode-tab.is-selected {
	background: #243e62;
	border-color: #243e62;
	color: #fff;
}

.bwd-wab-booking-fields label,
.bwd-wab-booking-fields .bwd-wab-field-label {
	color: #2f3437;
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.bwd-wab-calendar {
	background: #fff;
	border: 1px solid #d8dde1;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 14px;
	width: 100%;
}

.bwd-wab-calendar-header {
	align-items: center;
	display: grid;
	gap: 10px;
	grid-template-columns: 36px 1fr 36px;
	margin: 0 0 12px;
}

.bwd-wab-month-label {
	color: #1f2328;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.bwd-wab-month-nav {
	align-items: center;
	appearance: none;
	background: #f5f7f8;
	border: 1px solid #d8dde1;
	border-radius: 6px;
	color: #1f2328;
	cursor: pointer;
	display: inline-flex;
	font-size: 22px;
	font-weight: 400;
	height: 36px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 36px;
}

.bwd-wab-month-nav:hover,
.bwd-wab-month-nav:focus {
	background: #eef4f6;
	border-color: #7aa7b1;
	color: #0f5f70;
	outline: none;
}

.bwd-wab-calendar-grid {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.bwd-wab-weekday {
	color: #687076;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 0 7px;
	text-align: center;
}

.bwd-wab-calendar-empty {
	aspect-ratio: 1;
}

.bwd-wab-day {
	align-items: center;
	appearance: none;
	aspect-ratio: 1;
	background: var(--bwd-wab-unavailable-color, #f4f5f6);
	border: 1px solid #e2e5e8;
	border-radius: 6px;
	box-shadow: none;
	color: #a0a6ab;
	cursor: not-allowed;
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	justify-content: center;
	line-height: 1;
	min-height: 38px;
	padding: 0;
	width: 100%;
}

.bwd-wab-day.is-available {
	background: var(--bwd-wab-available-color, #fff);
	border-color: #8ea3aa;
	color: #1f2328;
	cursor: pointer;
}

.bwd-wab-day.is-partial {
	background: var(--bwd-wab-partial-color, #fff3cd);
	border-color: #caa84f;
	color: #1f2328;
	cursor: pointer;
}

.bwd-wab-day.is-available:hover,
.bwd-wab-day.is-available:focus,
.bwd-wab-day.is-partial:hover,
.bwd-wab-day.is-partial:focus {
	background: #eef8fa;
	border-color: #22768a;
	color: #0f5f70;
	outline: none;
}

.bwd-wab-day.is-range-option {
	border-color: #22768a;
	box-shadow: inset 0 0 0 1px #22768a;
}

.bwd-wab-day.is-range {
	background: #dceff2;
	border-color: #8abcc5;
	color: #164e5b;
}

.bwd-wab-day.is-selected,
.bwd-wab-day.is-selected:hover,
.bwd-wab-day.is-selected:focus,
.bwd-wab-day.is-range-end,
.bwd-wab-day.is-range-end:hover,
.bwd-wab-day.is-range-end:focus {
	background: #0f5f70;
	border-color: #0f5f70;
	color: #fff;
}

.bwd-wab-day:disabled {
	opacity: 1;
}

.bwd-wab-start-row.is-hidden {
	display: none;
}

.bwd-wab-range-summary {
	clear: both;
	display: block;
	margin: 12px 0 0;
}

.bwd-wab-range-summary:empty,
.bwd-wab-range-hint:empty {
	display: none;
}

.bwd-wab-range-hint {
	color: #687076;
	font-size: 13px;
	margin: 6px 0 14px;
}

.bwd-wab-slot-price {
	clear: both;
	color: #1f2328;
	display: block;
	font-size: 16px;
	margin: 12px 0;
}

.bwd-wab-slot-price:empty,
.bwd-wab-slot-status:empty {
	display: none;
}

.bwd-wab-slot-buttons {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bwd-wab-booking-fields .bwd-wab-slot-button {
	align-items: center;
	appearance: none;
	background: #fff;
	border: 1px solid #8ea3aa;
	border-radius: 6px;
	box-shadow: none;
	color: #1f2328;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font-size: 15px;
	font-weight: 600;
	justify-content: center;
	line-height: 1.2;
	min-height: 46px;
	padding: 10px 6px;
	width: 100%;
}

.bwd-wab-booking-fields .bwd-wab-slot-button:hover,
.bwd-wab-booking-fields .bwd-wab-slot-button:focus-visible {
	background: #eef8fa;
	border-color: #22768a;
	color: #0f5f70;
	outline: none;
}

.bwd-wab-booking-fields .bwd-wab-slot-button.is-selected,
.bwd-wab-booking-fields .bwd-wab-slot-button.is-selected:hover,
.bwd-wab-booking-fields .bwd-wab-slot-button.is-selected:focus-visible {
	background: #0f5f70;
	border-color: #0f5f70;
	color: #fff;
}

.bwd-wab-slot-button-price {
	font-size: 12px;
	font-weight: 400;
	margin-top: 4px;
}

.bwd-wab-slot-button .woocommerce-Price-amount {
	color: inherit;
}

.bwd-wab-slot-status {
	color: #687076;
	margin: 8px 0 0;
}

.bwd-wab-booking-fields select {
	max-width: 390px;
	width: 100%;
}

@media (max-width: 480px) {
	.bwd-wab-booking-fields {
		max-width: 100%;
	}

	.bwd-wab-calendar {
		padding: 12px;
	}

	.bwd-wab-calendar-grid {
		gap: 4px;
	}

	.bwd-wab-day {
		font-size: 13px;
		min-height: 34px;
	}

	.bwd-wab-slot-buttons {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
