/**
 * Styles frontend pour Keiza Booking Calendar
 * Inclut tous les styles pour le calendrier mensuel, grille, liste, formulaires et réservations
 */

/* ==========================================================================
   Vue Switcher et Navigation du Calendrier
   ========================================================================== */

.kbc-calendar-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.kbc-calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	flex-wrap: wrap;
	gap: 15px;
}

.kbc-month-nav {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 0 10px;
	border-radius: 8px;
}

.kbc-month-nav h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: #333;
	min-width: 200px;
	text-align: center;
	cursor: pointer;
	padding: 8px 12px;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.kbc-month-nav h2:hover {
	background-color: #f5f5f5;
}

.kbc-nav-btn {
	background: #ffffff;
	border: 1px solid #ddd;
	padding: 8px 12px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.kbc-nav-btn:hover {
	background: #f5f5f5;
	border-color: #999;
}

.kbc-nav-btn .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

.kbc-view-switcher {
	display: flex;
	gap: 5px;
	background: #f5f5f5;
	padding: 3px;
	border-radius: 6px;
}

.kbc-view-btn {
	background: transparent;
	border: none;
	padding: 8px 12px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.kbc-view-btn:hover {
	background: rgba(0, 0, 0, 0.05);
}

.kbc-view-btn.active {
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kbc-view-btn .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	color: #666;
}

.kbc-view-btn.active .dashicons {
	color: #333;
}

/* Sélecteur de mois (month picker) */
.kbc-month-picker {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: #ffffff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 15px;
	z-index: 1000;
	min-width: 300px;
	margin-top: 10px;
}

.kbc-month-picker.active {
	display: block;
}

.kbc-month-picker-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 10px;
}

.kbc-month-picker-btn {
	padding: 10px;
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
	color: #333;
}

.kbc-month-picker-btn:hover {
	background: #3498db;
	color: #ffffff;
	border-color: #3498db;
}

.kbc-month-picker-year {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e0e0e0;
}

.kbc-month-picker-year h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.kbc-year-nav-btn {
	background: transparent;
	border: none;
	padding: 4px 8px;
	cursor: pointer;
	color: #666;
	font-size: 18px;
	line-height: 1;
}

.kbc-year-nav-btn:hover {
	color: #3498db;
}

/* ==========================================================================
   Vue Mois (Calendrier traditionnel)
   ========================================================================== */

.kbc-calendar-month {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

.kbc-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background: #f8f9fa;
	border-bottom: 1px solid #e0e0e0;
}

.kbc-weekday {
	padding: 12px;
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.kbc-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.kbc-calendar-day {
	min-height: 100px;
	padding: 8px;
	border-right: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	position: relative;
	background: #ffffff;
	transition: background-color 0.2s ease;
}

.kbc-calendar-day:nth-child(7n) {
	border-right: none;
}

.kbc-calendar-day.other-month {
	background: #fafafa;
	opacity: 0.6;
}

.kbc-calendar-day.today {
	background: #fff9e6;
}

.kbc-calendar-day .day-number {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	margin-bottom: 5px;
}

.kbc-calendar-day.other-month .day-number {
	color: #999;
}

.kbc-calendar-day.today .day-number {
	color: #f39c12;
	font-weight: 700;
}

.kbc-day-events {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.kbc-day-event {
	font-size: 11px;
	padding: 3px 6px;
	background: #3498db;
	color: #ffffff;
	border-radius: 3px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.2s ease;
}

.kbc-day-event:hover {
	background: #2980b9;
	transform: translateY(-1px);
}

.kbc-day-event.full {
	background: #95a5a6;
}

.kbc-day-event.past {
	background: #bdc3c7;
	opacity: 0.7;
}

/* ==========================================================================
   Vue Grille (Cards d'événements)
   ========================================================================== */

.kbc-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.kbc-event-card {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.kbc-event-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.kbc-event-image {
	width: 100%;
	height: 180px;
	object-fit: cover;
	background: #f5f5f5;
}

.kbc-event-image.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	font-size: 48px;
}

.kbc-event-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.kbc-event-card h3 {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
}

.kbc-event-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 15px;
	color: #666;
	font-size: 14px;
}

.kbc-event-meta > div {
	display: flex;
	align-items: center;
	gap: 6px;
}

.kbc-event-meta > div.dashicons-before::before {
	width: 16px;
	height: 16px;
	font-size: 16px;
	color: #999;
	flex-shrink: 0;
}

.kbc-event-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.kbc-event-meta-item .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	color: #999;
}

.kbc-event-excerpt {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 15px;
	flex: 1;
}

.kbc-event-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid #e0e0e0;
}

.kbc-event-date,
.kbc-event-location,
.kbc-event-seats {
	font-size: 14px;
	color: #666;
}

.kbc-event-seats strong {
	color: #333;
}

/* ==========================================================================
   Vue Liste (Chronologique)
   ========================================================================== */

.kbc-events-list {
	display: flex !important;
	flex-direction: column !important;
	gap: 20px;
	width: 100%;
}

.kbc-view-list .kbc-events-list {
	display: flex !important;
	flex-direction: column !important;
}

.kbc-date-group h3 {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #3498db;
}

.kbc-date-events {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.kbc-event-list-item {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 20px;
	display: flex;
	gap: 20px;
	align-items: center;
	transition: all 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

.kbc-event-list-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-color: #3498db;
}

.kbc-event-list-time {
	flex-shrink: 0;
	text-align: center;
	min-width: 80px;
	padding: 10px;
	background: #f8f9fa;
	border-radius: 4px;
}

.kbc-event-list-time .time {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: #3498db;
	line-height: 1.2;
}

.kbc-event-list-time .duration {
	display: block;
	font-size: 12px;
	color: #999;
	margin-top: 3px;
}

.kbc-event-list-details {
	flex: 1;
}

.kbc-event-list-thumbnail {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 4px;
	overflow: hidden;
}

.kbc-event-list-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kbc-event-list-content {
	flex: 1;
}

.kbc-event-list-title {
	margin: 0 0 4px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.kbc-event-list-date {
	font-size: 13px;
	color: #666;
	margin-bottom: 8px;
}

.kbc-event-list-item h4 {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.kbc-event-list-meta {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	color: #666;
	font-size: 14px;
}

.kbc-event-list-meta span {
	display: flex;
	align-items: center;
	gap: 5px;
}

.kbc-event-list-meta span.dashicons-before::before {
	width: 16px;
	height: 16px;
	font-size: 16px;
	color: #999;
	flex-shrink: 0;
}

.kbc-event-list-meta .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	color: #999;
}

.kbc-event-list-actions {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

/* ==========================================================================
   Animations de transition
   ========================================================================== */

.kbc-view-container {
	position: relative;
}

.slide-out-left {
	animation: slideOutLeft 0.3s ease-in-out;
}

.slide-out-right {
	animation: slideOutRight 0.3s ease-in-out;
}

.slide-in-left {
	animation: slideInLeft 0.3s ease-in-out;
}

.slide-in-right {
	animation: slideInRight 0.3s ease-in-out;
}

@keyframes slideOutLeft {
	from {
		transform: translateX(0);
		opacity: 1;
	}
	to {
		transform: translateX(-100%);
		opacity: 0;
	}
}

@keyframes slideOutRight {
	from {
		transform: translateX(0);
		opacity: 1;
	}
	to {
		transform: translateX(100%);
		opacity: 0;
	}
}

@keyframes slideInLeft {
	from {
		transform: translateX(-100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* ==========================================================================
   Container principal et badges de statut
   ========================================================================== */

.kbc-booking-calendar,
.kbc-single-event,
.kbc-my-bookings,
.kbc-my-credits {
	margin: 20px 0;
}

.kbc-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1;
	margin: 5px 0;
}

.kbc-badge-draft {
	background: #f0f0f1;
	color: #50575e;
}

.kbc-badge-published {
	background: #00a32a;
	color: #fff;
}

.kbc-badge-full {
	background: #d63638;
	color: #fff;
}

.kbc-event-card .kbc-badge-full {
	background: #e74c3c;
	color: #ffffff;
}

.kbc-badge-past {
	background: #646970;
	color: #fff;
}

.kbc-event-card .kbc-badge-past {
	background: #95a5a6;
	color: #ffffff;
}

.kbc-badge-closed {
	background: #dba617;
	color: #fff;
}

.kbc-event-card .kbc-badge-closed {
	background: #e67e22;
	color: #ffffff;
}

.kbc-badge-confirmed {
	background: #00a32a;
	color: #fff;
}

.kbc-badge-pending {
	background: #f0c33c;
	color: #1d2327;
}

.kbc-badge-cancelled {
	background: #d63638;
	color: #fff;
}

.kbc-badge-expired {
	background: #646970;
	color: #fff;
}

.kbc-event-card .kbc-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 10px;
}

/* ==========================================================================
   Événement unique (détails)
   ========================================================================== */

.kbc-single-event {
	max-width: 900px;
	margin: 0 auto;
}

.kbc-event-details-container {
	width: 100%;
	margin-top: 20px;
}

.kbc-event-featured-image {
	margin-bottom: 30px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kbc-event-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.kbc-event-title {
	/* Style supprimé pour laisser le style du thème */
}

.kbc-event-status-badge {
	margin-bottom: 25px;
}

.kbc-event-info-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.kbc-info-card {
	padding: 20px;
	display: flex;
	align-items: flex-start;
	gap: 15px;
	transition: all 0.2s ease;
	border-radius: 8px;
}

.kbc-info-card .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
	color: #3498db;
	flex-shrink: 0;
	margin-top: 2px;
}

.kbc-info-card-content {
	flex: 1;
}

.kbc-info-card-content strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 5px;
}

.kbc-info-card-content p {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: #333;
	line-height: 1.4;
}

/* Description simplifiée (sans encart) */
.kbc-event-description-simple {
	color: #555;
	line-height: 1.8;
	font-size: 16px;
	margin: 30px 0;
}

.kbc-event-description-simple p {
	margin: 0 0 15px 0;
}

.kbc-event-description-simple p:last-child {
	margin-bottom: 0;
}

/* Anciennes classes pour compatibilité */
.kbc-event-info {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	margin: 20px 0;
}

.kbc-info-item {
	margin: 10px 0;
	font-size: 16px;
}

.kbc-info-item strong {
	color: #333;
}

.kbc-event-description {
	margin: 30px 0;
	line-height: 1.8;
}

.kbc-event-actions {
	margin: 30px 0;
	text-align: center;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.kbc-button {
	display: inline-block;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.kbc-button-primary {
	background: #2271b1;
	color: #fff;
}

.kbc-button-primary:hover {
	background: #135e96;
	color: #fff;
}

.kbc-event-btn {
	background: #3498db;
	color: #ffffff;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
}

.kbc-event-btn:hover {
	background: #2980b9;
	color: #ffffff;
}

.kbc-event-btn.disabled {
	background: #95a5a6;
	cursor: not-allowed;
	opacity: 0.7;
}

.kbc-event-btn.disabled:hover {
	background: #95a5a6;
}

.kbc-button-cancel {
	background: #d63638;
	color: #fff;
}

.kbc-button-cancel:hover {
	background: #b32d2e;
	color: #fff;
}

.kbc-button-small {
	padding: 6px 12px;
	font-size: 14px;
}

/* ==========================================================================
   Mes réservations
   ========================================================================== */

.kbc-my-bookings {
	padding: 25px;
	border-radius: 8px;
}

.kbc-my-bookings h2 {
	margin: 0 0 20px 0;
	font-size: 1.5em;
	color: var(--kbc-text-primary, #2c3e50);
}

.kbc-my-bookings > p {
	color: var(--kbc-text-secondary, #7f8c8d);
}

.kbc-bookings-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	background: var(--kbc-bg-secondary, #fff);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--kbc-border, #e1e8ed);
}

.kbc-bookings-table th,
.kbc-bookings-table td {
	padding: 15px;
	text-align: left;
	border-bottom: 1px solid var(--kbc-border, #e1e8ed);
}

.kbc-bookings-table th {
	background: var(--kbc-bg-tertiary, #f8f9fa);
	font-weight: 600;
	color: var(--kbc-text-primary, #2c3e50);
}

.kbc-bookings-table tbody tr:last-child td {
	border-bottom: none;
}

.kbc-bookings-table tbody tr:hover {
	background: var(--kbc-bg-tertiary, #f8f9fa);
}

.kbc-bookings-table td {
	color: var(--kbc-text-primary, #2c3e50);
}

/* ==========================================================================
   Formulaire de réservation
   ========================================================================== */

.kbc-booking-form {
	/* Styles supprimés pour un affichage plus neutre */
}

/* Honeypot antispam - caché visuellement mais accessible aux bots */
.kbc-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

/* Formulaire inline sur la page événement */
.kbc-booking-form-inline {
	width: 100%;
	margin: 40px 0 0 0;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 30px;
}

/* Grille 2 colonnes pour le formulaire */
.kbc-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 25px;
}

.kbc-form-section {
	margin-bottom: 30px;
}

.kbc-form-section h3 {
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--kbc-accent, #3498db);
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.kbc-form-field {
	margin-bottom: 20px;
}

.kbc-form-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.kbc-form-field .required {
	color: #d63638;
}

.kbc-form-field input[type="text"],
.kbc-form-field input[type="email"],
.kbc-form-field input[type="tel"],
.kbc-form-field input[type="number"],
.kbc-form-field input[type="date"],
.kbc-form-field select,
.kbc-form-field textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: all 0.2s ease;
}

.kbc-form-field input:focus,
.kbc-form-field select:focus,
.kbc-form-field textarea:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.kbc-form-field textarea {
	min-height: 100px;
	resize: vertical;
}

/* Input nombre de places sur la même ligne */
.kbc-form-field-inline {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 25px;
}

.kbc-form-field-inline label {
	margin: 0;
	font-weight: 600;
	color: #333;
	font-size: 16px;
	white-space: nowrap;
}

.kbc-form-field-inline input[type="number"] {
	width: 80px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	text-align: center;
}

.kbc-radio-label,
.kbc-checkbox-label {
	display: block;
	margin: 8px 0;
	cursor: pointer;
	font-size: 15px;
}

.kbc-radio-label input,
.kbc-checkbox-label input {
	margin-right: 8px;
}

.kbc-form-actions {
	margin-top: 30px;
	text-align: center;
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 768px) {
	.kbc-form-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.kbc-booking-form-inline {
		padding: 20px;
	}

	.kbc-form-field-inline {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.kbc-form-field-inline input[type="number"] {
		width: 100%;
	}
}

/* ==========================================================================
   Notices
   ========================================================================== */

.kbc-notice {
	padding: 15px;
	border-radius: 4px;
	margin: 20px 0;
}

.kbc-notice-success {
	background: #d7f6dd;
	border-left: 4px solid #00a32a;
	color: #00662e;
}

.kbc-notice-error {
	background: #f8d7da;
	border-left: 4px solid #d63638;
	color: #721c24;
}

.kbc-notice-info {
	background: #d1ecf1;
	border-left: 4px solid #0dcaf0;
	color: #055160;
}

/* ==========================================================================
   Page d'annulation
   ========================================================================== */

.kbc-cancellation-page {
	max-width: 600px;
	margin: 40px auto;
	padding: 40px;
	background: var(--kbc-bg, #fff);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	color: var(--kbc-text, #333);
}

.kbc-cancellation-page h1 {
	text-align: center;
	margin: 0 0 30px 0;
	font-size: 24px;
	color: var(--kbc-text, #333);
}

.kbc-cancellation-page .kbc-booking-summary {
	background: var(--kbc-bg-alt, #f8f9fa);
	padding: 25px;
	border-radius: 8px;
	margin: 25px 0;
	border: 1px solid var(--kbc-border, #e0e0e0);
}

.kbc-cancellation-page .kbc-booking-summary h2 {
	margin: 0 0 20px 0;
	font-size: 18px;
	color: var(--kbc-text, #333);
	padding-bottom: 15px;
	border-bottom: 1px solid var(--kbc-border, #e0e0e0);
}

.kbc-cancellation-page .kbc-booking-summary p {
	margin: 12px 0;
	font-size: 15px;
	color: var(--kbc-text-muted, #555);
	line-height: 1.6;
}

.kbc-cancellation-page .kbc-booking-summary p strong {
	color: var(--kbc-text, #333);
	display: inline-block;
	min-width: 100px;
}

.kbc-cancellation-form {
	margin: 30px 0 0 0;
	text-align: center;
	padding-top: 25px;
	border-top: 1px solid #e0e0e0;
}

.kbc-cancellation-form p {
	margin: 0 0 20px 0;
	font-size: 16px;
	color: #666;
}

/* Messages de résultat d'annulation */
.kbc-cancellation-page + .kbc-notice,
body > .kbc-notice {
	max-width: 600px;
	margin: 40px auto;
	padding: 20px 25px;
	border-radius: 8px;
}

/* Version centrée pour la page d'annulation */
.kbc-cancellation-result {
	max-width: 600px;
	margin: 40px auto;
	padding: 40px;
	text-align: center;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.kbc-cancellation-result .kbc-notice {
	margin: 0 0 25px 0;
	padding: 20px;
	font-size: 16px;
}

.kbc-cancellation-result .kbc-button {
	margin-top: 15px;
}

/* ==========================================================================
   Page de confirmation
   ========================================================================== */

.kbc-step-confirmation {
	max-width: 700px;
	margin: 0 auto;
	color: var(--kbc-text, #333);
}

.kbc-confirmation-success {
	text-align: center;
	padding: 40px 20px;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 8px;
	margin-bottom: 70px;
}

.kbc-success-icon {
	width: 60px;
	height: 60px;
	background: #28a745;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 30px;
	color: #fff;
}

.kbc-confirmation-success h2 {
	color: #155724;
	margin: 0 0 15px 0;
}

.kbc-confirmation-message {
	color: #155724;
	font-size: 16px;
	line-height: 1.6;
}

.kbc-confirmation-info {
	text-align: center;
	margin: 30px 0;
}

.kbc-confirmation-actions {
	text-align: center;
	margin-top: 30px;
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
}

/* Récapitulatif dans la page de confirmation */
.kbc-step-confirmation .kbc-booking-summary {
	margin-bottom: 70px;
}

/* Tableau récapitulatif de réservation */
.kbc-summary-table {
	width: 100%;
	border-collapse: collapse;
	margin: 15px 0;
}

.kbc-summary-table th,
.kbc-summary-table td {
	text-align: left;
	padding: 12px 15px;
	border-bottom: 1px solid var(--kbc-border, #e0e0e0);
	vertical-align: top;
}

.kbc-summary-table th {
	font-weight: 600;
	color: var(--kbc-text-muted, #555);
	width: 40%;
	background: transparent;
}

.kbc-summary-table td {
	color: var(--kbc-text, #333);
}

.kbc-summary-table tr:last-child th,
.kbc-summary-table tr:last-child td {
	border-bottom: none;
}

/* ==========================================================================
   Messages et états vides
   ========================================================================== */

.kbc-no-events {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.kbc-no-events .dashicons {
	font-size: 64px;
	width: 64px;
	height: 64px;
	color: #ddd;
	margin-bottom: 15px;
}

.kbc-no-events p {
	font-size: 16px;
	margin: 0;
}

/* ==========================================================================
   Loading
   ========================================================================== */

.kbc-loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #2271b1;
	border-radius: 50%;
	animation: kbc-spin 1s linear infinite;
}

.kbc-loading .dashicons {
	animation: kbc-spin 1s linear infinite;
}

@keyframes kbc-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.kbc-calendar-header {
		flex-direction: column;
		align-items: stretch;
	}

	.kbc-month-nav {
		justify-content: space-between;
	}

	.kbc-month-nav h2 {
		font-size: 20px;
		min-width: auto;
	}

	.kbc-view-switcher {
		justify-content: center;
	}

	/* Vue mois - jours plus petits */
	.kbc-calendar-day {
		min-height: 80px;
		padding: 5px;
	}

	.kbc-calendar-day .day-number {
		font-size: 12px;
	}

	.kbc-day-event {
		font-size: 10px;
		padding: 2px 4px;
	}

	/* Vue grille - une colonne */
	.kbc-events-grid {
		grid-template-columns: 1fr;
	}

	.kbc-event-card {
		max-width: 100%;
	}

	/* Vue liste - vertical */
	.kbc-event-list-item {
		flex-direction: column;
		align-items: stretch;
	}

	.kbc-event-list-actions {
		align-items: stretch;
	}

	.kbc-event-btn {
		width: 100%;
		text-align: center;
	}

	.kbc-booking-form,
	.kbc-cancellation-page {
		padding: 20px;
	}

	.kbc-my-bookings {
		padding: 15px;
	}

	.kbc-bookings-table {
		font-size: 14px;
		border: none;
		background: transparent;
	}

	.kbc-bookings-table th,
	.kbc-bookings-table td {
		padding: 10px;
	}

	/* Table responsive */
	.kbc-bookings-table thead {
		display: none;
	}

	.kbc-bookings-table tbody {
		display: block;
	}

	.kbc-bookings-table tr {
		display: block;
		margin-bottom: 15px;
		border: 1px solid var(--kbc-border, #e1e8ed);
		border-radius: 8px;
		background: var(--kbc-bg-secondary, #fff);
		overflow: hidden;
	}

	.kbc-bookings-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1px solid var(--kbc-border, #e1e8ed);
	}

	.kbc-bookings-table td:last-child {
		border-bottom: none;
	}

	.kbc-bookings-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--kbc-text-secondary, #7f8c8d);
	}
}

@media (max-width: 480px) {
	.kbc-calendar-wrapper {
		padding: 10px;
	}

	.kbc-calendar-day {
		min-height: 60px;
		padding: 3px;
	}

	.kbc-day-events {
		gap: 2px;
	}

	.kbc-day-event {
		font-size: 9px;
		padding: 1px 3px;
	}

	.kbc-event-content {
		padding: 15px;
	}

	.kbc-event-list-item {
		padding: 15px;
	}
}
