/* =============================================================================
   vessels-calendar.css  — per-vessel scheduler (date picker + time slot picker)
   Loaded only when the vessels_scheduling_enabled setting is on.
   All selectors live under .vbf-sched-* so they don't bleed into the rest of
   the booking form's vbf- namespace.
   ============================================================================= */

.vbf-scheduler {
	margin-top: 14px;
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fafbfd;
}

.vbf-scheduler__title {
	font-size: 13px;
	font-weight: 700;
	color: #1e3a5f;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin: 0 0 8px;
}

/* ── CALENDAR ─────────────────────────────────────────────────────────────── */
.vbf-cal {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
}

.vbf-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.vbf-cal-nav__btn {
	background: none;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	width: 30px;
	height: 30px;
	font-size: 16px;
	color: #1e3a5f;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
}

.vbf-cal-nav__btn:hover { background: #f0f4f8; }
.vbf-cal-nav__btn:disabled,
.vbf-cal-nav__btn--disabled {
	opacity: .35;
	cursor: not-allowed;
}

.vbf-cal-title {
	font-size: 14px;
	font-weight: 700;
	color: #1e3a5f;
}

.vbf-cal-dows {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 4px;
}

.vbf-cal-dow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #94a3b8;
	text-align: center;
	padding: 4px 0;
}

.vbf-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	min-height: 240px;
}

.vbf-cal-day {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	border: 1px solid transparent;
	background: #fff;
	color: #1a2332;
	user-select: none;
}

.vbf-cal-day--empty   { visibility: hidden; }
.vbf-cal-day--past,
.vbf-cal-day--closed,
.vbf-cal-day--blocked,
.vbf-cal-day--booked  {
	background: #f1f5f9;
	color: #cbd5e1;
	cursor: not-allowed;
}

.vbf-cal-day--available,
.vbf-cal-day--partial {
	background: #f0f9f4;
	color: #0f5132;
	border-color: #cce5d3;
	cursor: pointer;
}

.vbf-cal-day--partial {
	background: #fff8e6;
	color: #856404;
	border-color: #ffe69c;
}

.vbf-cal-day--available:hover,
.vbf-cal-day--partial:hover {
	background: #1a3c5e;
	color: #fff;
	border-color: #1a3c5e;
}

.vbf-cal-day--selected,
.vbf-cal-day--selected:hover {
	background: #1a3c5e !important;
	color: #fff !important;
	border-color: #1a3c5e !important;
}

.vbf-cal-day--today {
	box-shadow: inset 0 0 0 2px #1a3c5e;
}

.vbf-cal-loading,
.vbf-cal-error,
.vbf-cal-empty {
	grid-column: 1 / -1;
	text-align: center;
	font-size: 12px;
	color: #64748b;
	padding: 24px 8px;
}

.vbf-cal-error { color: #b91c1c; }

/* ── TIME SLOT PICKER ──────────────────────────────────────────────────────── */
.vbf-time {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #e2e8f0;
}

.vbf-time__heading {
	font-size: 13px;
	font-weight: 700;
	color: #1e3a5f;
	margin-bottom: 8px;
}

.vbf-time__hint {
	font-size: 12px;
	color: #94a3b8;
	margin-bottom: 8px;
}

.vbf-time-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
	gap: 6px;
}

.vbf-time-slot {
	padding: 8px 6px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #fff;
	color: #1a2332;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: border-color .15s, background .15s, color .15s;
	-webkit-appearance: none;
	appearance: none;
}

.vbf-time-slot:hover {
	border-color: #1a3c5e;
	background: #f0f4f8;
}

.vbf-time-slot--selected {
	background: #1a3c5e;
	color: #fff;
	border-color: #1a3c5e;
}

.vbf-time-slot--disabled,
.vbf-time-slot--disabled:hover {
	background: #f1f5f9;
	color: #cbd5e1;
	border-color: #f1f5f9;
	cursor: not-allowed;
}

.vbf-time-empty {
	font-size: 13px;
	color: #94a3b8;
	padding: 10px 0;
}
