.sfc-calendar-widget {
	max-width: 100%;
	margin: 1rem 0;
}

.sfc-calendar {
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	padding: 1rem;
	background: rgba(249, 250, 251, 0.5);
}

.sfc-calendar__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.sfc-calendar__nav-btn {
	padding: 0.5rem;
	border: none;
	border-radius: 9999px;
	background: transparent;
	color: #4b5563;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.sfc-calendar__nav-btn:hover:not(:disabled) {
	background: #e5e7eb;
	color: #111827;
}

.sfc-calendar__nav-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.sfc-calendar__month-label {
	min-width: 9rem;
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
	text-align: center;
}

.sfc-calendar__weekdays,
.sfc-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
}

.sfc-calendar__weekdays {
	margin-bottom: 0.5rem;
}

.sfc-calendar__weekday {
	padding: 0.25rem 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: #4b5563;
	text-align: center;
}

.sfc-calendar__divider {
	border: 0;
	border-top: 1px solid #e5e7eb;
	margin: 0 0 1rem;
}

.sfc-calendar__day,
.sfc-calendar__day--empty {
	aspect-ratio: 1 / 1;
}

.sfc-calendar__day {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	color: #1f2937;
}

.sfc-calendar__day--past {
	color: #9ca3af;
}

.sfc-calendar__day--today {
	font-weight: 700;
	box-shadow: inset 0 0 0 2px #9ca3af;
}

.sfc-calendar__day--available {
	background: #dcfce7;
}

.sfc-calendar__day--spaces {
	background: #fef3c7;
}

.sfc-calendar__day--booked {
	background: #fee2e2;
}

.sfc-calendar__unavailable-mark {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sfc-calendar__unavailable-bar {
	position: absolute;
	width: 1rem;
	height: 2px;
	background: #111827;
	border-radius: 1px;
}

.sfc-calendar__unavailable-bar--a {
	transform: rotate(-45deg);
}

.sfc-calendar__unavailable-bar--b {
	transform: rotate(45deg);
}

.sfc-calendar__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
	font-size: 0.875rem;
	color: #4b5563;
}

.sfc-calendar__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.sfc-calendar__swatch {
	width: 1rem;
	height: 1rem;
	border-radius: 0.25rem;
	flex-shrink: 0;
}

.sfc-calendar__swatch--available {
	background: #dcfce7;
}

.sfc-calendar__swatch--spaces {
	background: #fef3c7;
}

.sfc-calendar__swatch--booked {
	background: #fee2e2;
}

.sfc-calendar__swatch--unavailable {
	position: relative;
	background: transparent;
}

.sfc-calendar__swatch--unavailable::before,
.sfc-calendar__swatch--unavailable::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0.75rem;
	height: 2px;
	background: #111827;
	border-radius: 1px;
}

.sfc-calendar__swatch--unavailable::before {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.sfc-calendar__swatch--unavailable::after {
	transform: translate(-50%, -50%) rotate(45deg);
}

.sfc-calendar-message {
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
}

.sfc-calendar-message--setup {
	border: 1px solid #fcd34d;
	background: #fffbeb;
	color: #92400e;
}

.sfc-calendar-message--error {
	border: 1px solid #fca5a5;
	background: #fef2f2;
	color: #991b1b;
}

.sfc-powered-by {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: #6b7280;
	text-align: center;
}

.sfc-powered-by a {
	color: #374151;
}

.sfc-powered-by a:hover {
	color: #111827;
}
