/* assets/css/frontend-style.css */
.fwb-calendar-container {
	max-width: 640px;
	margin: 0 auto;
}

.fwb-form-status {
	font-weight: 600;
}

.fwb-booking {
	max-width: 720px;
	margin: 0 auto 3rem;
	padding: 1.5rem;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fwb-booking-header h2 {
	margin-top: 0;
}

.fwb-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.fwb-calendar-nav__btn {
	background: #007cba;
	color: #fff;
	border: none;
	padding: 0.5rem 0.75rem 0.7rem;
	line-height: 0.7;
	border-radius: 4px;
	cursor: pointer;
}

.fwb-calendar-month {
	font-weight: 700;
}

.fwb-calendar-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.fwb-calendar-table th,
.fwb-calendar-table td {
	border: 1px solid #dcdfe4;
	text-align: center;
	padding: 0;
	width: calc(100% / 7);
}

.fwb-calendar-table td.fwb-empty {
	background: #f7f8f9;
}

.fwb-date {
	padding: 0.75rem 0.5rem;
	width: 100%;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	font-weight: 600;
}

.fwb-date.fwb-available {
	background: #f4fbff;
	color: #1d2327;
}

.fwb-date.fwb-unavailable {
	background: #f9f9f9;
	color: #777;
	cursor: not-allowed;
}
.fwb-date.fwb-disabled {
	background: #f0f0f0;
	color: #bbb;
	cursor: not-allowed;
}

.fwb-date .fwb-mark {
	font-size: 1rem;
	font-weight: 700;
}

.fwb-date.fwb-available .fwb-mark {
	color: #007cba;
}

.fwb-date.fwb-unavailable .fwb-mark {
	color: #d63638;
}
.fwb-date.fwb-disabled .fwb-mark {
	color: #bbb;
}

.fwb-date.selected,
.fwb-date.fwb-available:hover {
	background: #007cba!important;
	color: #fff;
}

.fwb-date.selected .fwb-mark,
.fwb-date.fwb-available:hover .fwb-mark {
	color: #fff;
}

.fwb-time-select {
	margin: 1.5rem 0 1rem;
}

.fwb-time-select select {
	margin-left: 0.5rem;
	min-width: 200px;
}

.fwb-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(160px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

[data-reservation-type="venue"] .fwb-product-grid {
	grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.fwb-product-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 0 0 1em 0;
	border: none;
	border-radius: 2px;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.fwb-product-card.is-selected,
.fwb-product-card:hover {
	border-color: #007cba;
	background-color: #007cba;
}

.fwb-product-card__image img {
	width: 100%;
	max-width: 160px;
	height: auto;
	object-fit: cover;
	border-radius: 0px;
}

.fwb-product-card__label {
	color: #333;
	font-weight: 600;
}

.fwb-product-card.is-selected .fwb-product-card__label,
.fwb-product-card:hover .fwb-product-card__label {
	color: #fff;
}

.fwb-booking-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.fwb-form-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.fwb-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.fwb-form-field--full {
	grid-column: 1 / -1;
}

.fwb-form-field label {
	font-weight: 600;
}

.fwb-form-field input,
.fwb-form-field textarea,
.fwb-form-field select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #dcdfe4;
	border-radius: 4px;
	font-size: 1rem;
	background-color: #fff;
}

.fwb-form-field textarea {
	min-height: 120px;
	resize: vertical;
}

.fwb-required {
	margin-left: 0.5rem;
	color: #d63638;
	font-size: 0.85em;
}

.fwb-form-status {
	min-height: 1.25rem;
}

.fwb-form-actions {
	display: flex;
	justify-content: flex-end;
}

.fwb-error {
	color: #d63638;
}

@media (max-width: 640px) {
	[data-reservation-type="restaurant"] .fwb-product-grid,
	[data-reservation-type="venue"] .fwb-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.fwb-form-fields {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
	.p-body table th, .p-body table td {
		padding: 4px 6px!important;
	}
}
