/* WC Calendar Booking — front-end styles (calendar widget + enquiry modal). */

.wccb-calendar-wrap {
	--wccb-accent: #2563eb;
	--wccb-accent-contrast: #ffffff;
	--wccb-border: #e2e8f0;
	--wccb-muted: #94a3b8;
	--wccb-text: #1e293b;
	margin: 0 0 1.5em;
	max-width: 360px;
}

.wccb-calendar-card {
	background: #ffffff;
	border: 1px solid var(--wccb-border);
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
	padding: 1.1em 1.2em 1.3em;
	color: var(--wccb-text);
	font-size: 14px;
}

.wccb-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.9em;
}

.wccb-calendar-label {
	font-weight: 600;
	font-size: 1.05em;
}

.wccb-calendar-nav {
	background: #f1f5f9;
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	font-size: 1.1em;
	cursor: pointer;
	color: var(--wccb-text);
	transition: background 0.15s ease;
	padding: 0;
}

.wccb-calendar-nav:hover:not(:disabled) {
	background: var(--wccb-accent);
	color: var(--wccb-accent-contrast);
}

.wccb-calendar-nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

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

.wccb-calendar-weekday {
	text-align: center;
	font-size: 0.75em;
	font-weight: 600;
	color: var(--wccb-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding-bottom: 4px;
}

.wccb-calendar-day {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: none;
	background: transparent;
	font-size: 0.9em;
	cursor: default;
	color: var(--wccb-text);
}

.wccb-calendar-day--blank {
	visibility: hidden;
}

.wccb-calendar-day--disabled {
	color: var(--wccb-muted);
	text-decoration: line-through;
	opacity: 0.5;
}

.wccb-calendar-day--available {
	cursor: pointer;
	background: #eff6ff;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.wccb-calendar-day--available:hover {
	background: var(--wccb-accent);
	color: var(--wccb-accent-contrast);
	transform: translateY(-1px);
}

.wccb-calendar-day--selected,
.wccb-calendar-day--selected:hover {
	background: var(--wccb-accent);
	color: var(--wccb-accent-contrast);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.wccb-calendar-legend {
	display: flex;
	gap: 1em;
	margin-top: 1em;
	font-size: 0.78em;
	color: var(--wccb-muted);
}

.wccb-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.wccb-legend-swatch {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	display: inline-block;
}

.wccb-legend-swatch--available {
	background: var(--wccb-accent);
}

.wccb-legend-swatch--unavailable {
	background: var(--wccb-muted);
	opacity: 0.5;
}

.wccb-calendar-empty {
	color: var(--wccb-muted);
	font-style: italic;
}

.wccb-calendar-selected {
	margin: 0.75em 0 0;
	font-weight: 600;
	font-size: 0.9em;
}

.wccb-calendar-error {
	display: none;
	margin: 0.5em 0 0;
	padding: 0.6em 0.9em;
	border-radius: 8px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 0.85em;
	font-weight: 500;
}

/* Enquiry button + modal */

.wccb-enquiry-button {
	display: inline-block;
}

.wccb-enquiry-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 1em;
}

.wccb-enquiry-modal-overlay[hidden] {
	display: none;
}

.wccb-enquiry-modal {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.25);
	max-width: 420px;
	width: 100%;
	padding: 1.6em;
	position: relative;
}

.wccb-enquiry-modal h3 {
	margin-top: 0;
}

.wccb-enquiry-modal-close {
	position: absolute;
	top: 0.8em;
	right: 0.8em;
	background: none;
	border: none;
	font-size: 1.3em;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.wccb-enquiry-field {
	margin-bottom: 1em;
}

.wccb-enquiry-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
	font-size: 0.9em;
}

.wccb-enquiry-field input,
.wccb-enquiry-field textarea {
	width: 100%;
	padding: 0.6em 0.7em;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.95em;
	box-sizing: border-box;
}

.wccb-enquiry-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wccb-enquiry-message {
	margin-top: 0.8em;
	font-size: 0.9em;
	display: none;
}

.wccb-enquiry-message--success {
	color: #15803d;
}

.wccb-enquiry-message--error {
	color: #b91c1c;
}

.wccb-enquiry-submit {
	margin-top: 0.4em;
}
