.cri-calendar {
    max-width: 420px;
    margin: 0 0 2em;
    padding: 1em 1.2em;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

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

.cri-calendar-title {
    font-weight: 700;
    font-size: 1.1em;
    text-transform: capitalize;
}

.cri-cal-prev,
.cri-cal-next {
    background: #f0f0f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.2em 0.7em;
    font-size: 1em;
}

.cri-cal-prev:hover,
.cri-cal-next:hover {
    background: #e2e2e2;
}

.cri-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.cri-cal-weekday {
    font-weight: 600;
    font-size: 0.8em;
    color: #666;
    padding-bottom: 0.3em;
}

.cri-cal-day,
.cri-cal-day-empty {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.9em;
    color: #333;
    text-decoration: none;
}

.cri-cal-day-past {
    color: #bbb;
}

.cri-cal-day-today {
    box-shadow: inset 0 0 0 2px #2271b1;
}

.cri-cal-day-available {
    background: #e6f4ea;
    color: #1a7a2e;
    font-weight: 700;
    cursor: pointer;
}

.cri-cal-day-available:hover {
    background: #c9e9d1;
}

.cri-cal-day-full {
    background: #f7f7f7;
    color: #a33;
    text-decoration: line-through;
}

.cri-calendar-legend {
    margin: 0.8em 0 0;
    font-size: 0.85em;
    color: #555;
}

.cri-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 0.3em 0 0.8em;
    vertical-align: middle;
}

.cri-legend-dot.cri-legend-available {
    background: #1a7a2e;
    margin-left: 0;
}

.cri-legend-dot.cri-legend-full {
    background: #a33;
}

.cri-day-panel {
    display: none;
    animation: cri-fade-in 0.25s ease;
}

.cri-day-panel.cri-day-panel-open {
    display: block;
}

@keyframes cri-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.cri-day-panel-close {
    display: block;
    margin: 0 0 1em auto;
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.3em 0.9em;
    cursor: pointer;
    color: #555;
}

.cri-day-panel-close:hover {
    background: #f0f0f1;
}

.cri-slots-list {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin: 1.5em 0;
}

.cri-slot {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.2em 1.5em;
    background: #fafafa;
}

.cri-slot-full {
    opacity: 0.7;
}

.cri-slot-header h3 {
    margin: 0 0 0.3em;
}

.cri-slot-meta {
    color: #555;
    margin: 0 0 0.5em;
}

.cri-slot-desc {
    margin: 0 0 0.5em;
}

.cri-slot-places {
    font-weight: 600;
    margin: 0 0 1em;
}

.cri-slot-registrants {
    margin: 0 0 1em;
    padding: 0.7em 1em;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.cri-slot-registrants-title {
    margin: 0 0 0.4em;
    font-weight: 600;
}

.cri-slot-registrants-list {
    margin: 0;
    padding-left: 1.2em;
    columns: 2;
}

.cri-slot-registrants-list li {
    margin-bottom: 0.2em;
}

.cri-register-form .cri-checkbox-field label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.cri-checkbox-field input[type="checkbox"] {
    width: auto;
}

.cri-badge-responsable {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 600;
    color: #8a5300;
    background: #fff3cd;
    border-radius: 4px;
    padding: 0.1em 0.5em;
    margin-left: 0.4em;
}

.cri-register-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8em;
}

.cri-register-form input[type="text"],
.cri-register-form input[type="email"],
.cri-register-form input[type="tel"],
.cri-register-form textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.5em;
    font-weight: normal;
    margin-top: 0.3em;
    box-sizing: border-box;
}

.cri-register-form button {
    cursor: pointer;
    padding: 0.6em 1.4em;
    border: none;
    border-radius: 4px;
    background: #2271b1;
    color: #fff;
    font-weight: 600;
}

.cri-register-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cri-form-feedback {
    margin-top: 0.8em;
    font-weight: 600;
}

.cri-form-feedback.success {
    color: #1a7a2e;
}

.cri-form-feedback.error {
    color: #b32d2e;
}

.cri-summary {
    background: #fff;
    border: 1px solid #d6e6d1;
    border-radius: 6px;
    padding: 1em 1.2em;
    margin-top: 0.5em;
}

.cri-summary-success {
    font-weight: 600;
    color: #1a7a2e;
    margin: 0 0 0.5em;
}

.cri-summary-count {
    margin: 0 0 0.5em;
    font-weight: 600;
}

.cri-summary-list {
    margin: 0;
    padding-left: 1.2em;
    columns: 2;
}

.cri-summary-list li {
    margin-bottom: 0.3em;
}

.cri-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}
