.spb-booking-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.spb-booking-form--empty {
	padding: 16px;
	border: 1px dashed #ccc;
}

.spb-resource-grid-wrap {
	width: 100%;
}

.spb-resource-grid {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.spb-resource-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	width: 100%;
	margin: 0;
	font: inherit;
	transition: none;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.spb-resource-item:hover,
.spb-resource-item:focus,
.spb-resource-item:focus-visible,
.spb-resource-item:active {
	outline: none;
	text-decoration: none;
	filter: none;
	opacity: 1;
}

.spb-resource-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.spb-resource-icon i,
.spb-resource-icon i::before {
	color: inherit;
}

.spb-resource-icon svg,
.spb-resource-icon svg * {
	fill: currentColor;
}

.spb-resource-icon img,
.spb-resource-icon svg,
.spb-resource-icon-placeholder {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 4px;
}

.spb-resource-icon-placeholder {
	background: #ececec;
}

.spb-resource-title {
	font-weight: 600;
}

.spb-booking-main {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

.spb-booking-main--row,
.elementor-widget-spb_booking_form.spb-layout-row .spb-booking-main {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
}

.spb-booking-calendar-column,
.spb-booking-form-column {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.spb-booking-main--stacked .spb-booking-calendar-column,
.spb-booking-main--stacked .spb-booking-form-column,
.elementor-widget-spb_booking_form.spb-layout-stacked .spb-booking-calendar-column,
.elementor-widget-spb_booking_form.spb-layout-stacked .spb-booking-form-column {
	width: 100%;
}

.spb-booking-main--row .spb-booking-calendar-column,
.elementor-widget-spb_booking_form.spb-layout-row .spb-booking-calendar-column {
	flex: 1 1 auto;
	width: auto;
	max-width: none;
}

.spb-booking-main--row .spb-contact-form,
.elementor-widget-spb_booking_form.spb-layout-row .spb-contact-form {
	max-width: none;
	width: 100%;
}

.spb-calendar-nav {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.spb-calendar-header {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	text-align: center;
	font-weight: 700;
}

.spb-calendar-nav-control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	color: inherit;
	cursor: pointer;
	line-height: 0;
	font: inherit;
	transition: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	box-shadow: none;
	border-radius: 0;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
}

.spb-calendar-nav-control:hover,
.spb-calendar-nav-control:focus,
.spb-calendar-nav-control:focus-visible,
.spb-calendar-nav-control:active {
	outline: none;
	text-decoration: none;
	filter: none;
	opacity: 1;
	background: transparent;
	box-shadow: none;
}

.spb-calendar-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: inherit;
}

.spb-calendar-nav-icon i,
.spb-calendar-nav-icon i::before {
	color: inherit;
}

.spb-calendar-nav-icon svg,
.spb-calendar-nav-icon svg * {
	fill: currentColor;
}

.spb-calendar-weekdays,
.spb-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.spb-calendar-weekday,
.spb-calendar-day {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	min-height: 42px;
}

.spb-calendar-weekday {
	font-size: 0.85em;
	font-weight: 600;
	opacity: 0.75;
}

.spb-calendar-day {
	border: 1px solid transparent;
	cursor: pointer;
	position: relative;
	padding: 0;
	margin: 0;
	width: 100%;
	min-width: 0;
	font: inherit;
	appearance: none;
	box-shadow: none;
	transition: none;
	-webkit-tap-highlight-color: transparent;
}

.spb-calendar-day:hover,
.spb-calendar-day:focus,
.spb-calendar-day:focus-visible,
.spb-calendar-day:active {
	outline: none;
	text-decoration: none;
	filter: none;
}

.spb-calendar-day.is-empty {
	background: transparent;
	cursor: default;
}

.spb-calendar-day.is-available {
	background: #f7f7f7;
	color: #1a1a1a;
}

.spb-calendar-day.is-unavailable-weekday {
	background: #fdecea;
	color: #8a1f11;
	cursor: not-allowed;
}

.spb-calendar-day.is-booked {
	background: #fff4e5;
	color: #8a4b08;
	cursor: not-allowed;
}

.spb-calendar-day.is-selected {
	background: #2271b1;
	color: #fff;
}

.spb-calendar-day.is-hover-valid:not(.is-selected) {
	background: #dceeff;
	color: #0b4f8a;
}

.spb-calendar-day.is-hover-invalid:not(.is-selected) {
	background: #f5d5d5;
	color: #7a1f1f;
}

.spb-calendar-day.is-today {
	outline: 2px solid #2271b1;
	outline-offset: -2px;
}

.spb-calendar-day.is-past {
	opacity: 0.45;
}

.spb-calendar-day .spb-day-number {
	font-weight: 600;
}

.spb-calendar-day .spb-day-markers {
	position: absolute;
	bottom: 4px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 2px;
}

.spb-calendar-day .spb-day-marker {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.7;
}

.spb-contact-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.spb-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.spb-field input {
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	padding: 10px 12px;
}

.spb-submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	width: auto;
	border: 0;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	padding: 12px 20px;
	cursor: pointer;
	transition: none;
	-webkit-tap-highlight-color: transparent;
}

.spb-submit-button:hover,
.spb-submit-button:focus,
.spb-submit-button:focus-visible,
.spb-submit-button:active {
	outline: none;
	text-decoration: none;
	filter: none;
}

.spb-submit-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.spb-form-message {
	padding: 12px 14px;
	border-radius: 6px;
}

.spb-form-message.is-success {
	background: #edf7ed;
	color: #1e4620;
}

.spb-form-message.is-error {
	background: #fdecea;
	color: #8a1f11;
}
