.cwb-wrap {
	--cwb-free: #2e7d32;
	--cwb-partial: #ed8f03;
	--cwb-full: #c62828;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin: 24px 0;
}
.cwb-wrap *, .cwb-wrap *::before, .cwb-wrap *::after { box-sizing: border-box; }
.cwb-title { margin: 0 0 12px; }

/* Calendrier */
#cwb-calendar { min-height: 320px; }
#cwb-calendar .fc-event { cursor: pointer; border: 0; font-size: .85em; padding: 1px 4px; color: #fff; }
#cwb-calendar .fc-event.cwb-ev-free { background: var(--cwb-free); }
#cwb-calendar .fc-event.cwb-ev-partial { background: var(--cwb-partial); }
#cwb-calendar .fc-event.cwb-ev-full { background: var(--cwb-full); cursor: default; }
#cwb-calendar .fc-daygrid-day { cursor: pointer; }
#cwb-calendar .fc-daygrid-day.cwb-selected { background: rgba(34, 113, 177, .12); box-shadow: inset 0 0 0 2px #2271b1; }
.cwb-legend { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; margin: 12px 0 4px; padding: 0; font-size: .9em; }
.cwb-legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.cwb-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cwb-dot.cwb-ev-free { background: var(--cwb-free); }
.cwb-dot.cwb-ev-partial { background: var(--cwb-partial); }
.cwb-dot.cwb-ev-full { background: var(--cwb-full); }
.cwb-hint { font-size: .85em; opacity: .75; margin: 4px 0 0; }

/* Formulaire */
.cwb-field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.cwb-field label, .cwb-field legend { display: block; font-weight: 600; margin-bottom: 4px; padding: 0; }
.cwb-field fieldset { border: 0; }
.cwb-types label, fieldset.cwb-field label { display: inline-block; font-weight: 400; margin-right: 14px; }
.cwb-wrap input[type="text"], .cwb-wrap input[type="email"], .cwb-wrap input[type="tel"],
.cwb-wrap input[type="date"], .cwb-wrap select, .cwb-wrap textarea {
	width: 100%; padding: 8px 10px; border: 1px solid #c3c4c7; border-radius: 4px; font: inherit; background: #fff; color: #1d2327;
}
.cwb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
[hidden] { display: none !important; }
.cwb-availability { padding: 10px 12px; border-radius: 4px; background: #f0f0f1; margin: 0 0 16px; font-size: .95em; }
.cwb-availability-ok { background: #e6f4ea; color: #1b5e20; }
.cwb-availability-ko { background: #fdecea; color: #b71c1c; }
.cwb-consent { display: block; font-size: .9em; margin: 4px 0 16px; }
.cwb-submit {
	background: #2271b1; color: #fff; border: 0; border-radius: 4px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; width: 100%;
}
.cwb-submit:disabled { opacity: .5; cursor: not-allowed; }
.cwb-message { padding: 12px 14px; border-radius: 4px; margin: 0 0 16px; }
.cwb-message-ok { background: #e6f4ea; color: #1b5e20; }
.cwb-message-ko { background: #fdecea; color: #b71c1c; }

/* Champ piège anti-spam */
.cwb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
	.cwb-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.cwb-row { grid-template-columns: 1fr; }
}
