/**
 * Styles publics du formulaire de réservation.
 *
 * @since      1.3.0.0
 */

.holdkhb-formulaire-reservation {
	max-width: 800px;
	margin: 2em auto;
	padding: 1.5em;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.holdkhb-formulaire-etape h3 {
	margin-top: 0;
	margin-bottom: 1em;
	font-size: 1.25em;
}

.holdkhb-description,
.holdkhb-rdv-recap {
	color: #555;
	font-size: 0.95em;
	margin-bottom: 1.5em;
}

.holdkhb-champ {
	margin-bottom: 1.2em;
}

.holdkhb-champ label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
}

.holdkhb-champ input[type="text"],
.holdkhb-champ input[type="email"],
.holdkhb-champ input[type="tel"],
.holdkhb-champ input[type="number"],
.holdkhb-champ input[type="date"],
.holdkhb-champ input[type="url"],
.holdkhb-champ select,
.holdkhb-champ textarea {
	width: 100%;
	padding: 0.6em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	box-sizing: border-box;
}

.holdkhb-champ textarea {
	min-height: 100px;
	resize: vertical;
}

.holdkhb-champ-inline {
	display: inline-block;
	width: 48%;
	margin-right: 4%;
	vertical-align: top;
}

.holdkhb-champ-inline:nth-child(2n) {
	margin-right: 0;
}

.holdkhb-checkbox,
.holdkhb-radio {
	display: block;
	font-weight: normal;
	margin-bottom: 0.4em;
}

.holdkhb-checkbox input,
.holdkhb-radio input {
	margin-right: 0.4em;
}

.holdkhb-requis {
	color: #c00;
}

.holdkhb-valeur-fixe {
	margin: 0;
	padding: 0.6em 0;
	font-weight: 600;
}

.holdkhb-bouton {
	display: inline-block;
	padding: 0.7em 1.4em;
	background: #f0f0f0;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
}

.holdkhb-bouton-principal {
	background: #0073aa;
	color: #fff;
	border-color: #006799;
}

.holdkhb-bouton-principal:hover {
	background: #006799;
}

.holdkhb-bouton-secondaire {
	background: #f9f9f9;
	color: #333;
	text-decoration: none;
}

.holdkhb-bouton-secondaire:hover {
	background: #e9e9e9;
}

.holdkhb-connexion {
	margin: 0.5em 0 1em;
}

.holdkhb-creneaux-liste {
	margin: 1em 0;
}

.holdkhb-creneaux-groupe {
	margin-top: 1em;
	padding: 0.3em 0;
	border-bottom: 1px solid #eee;
	font-size: 1.1em;
}

.holdkhb-creneau {
	display: block;
	padding: 0.6em;
	margin: 0.3em 0;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 4px;
	cursor: pointer;
}

.holdkhb-creneau:hover {
	background: #f0f8ff;
}

.holdkhb-creneau input {
	margin-right: 0.6em;
}

.holdkhb-creneau-nom {
	font-weight: 600;
}

.holdkhb-creneau-lieu {
	float: right;
	color: #666;
	font-size: 0.9em;
}

.holdkhb-message {
	padding: 1em;
	margin-bottom: 1.5em;
	border-radius: 4px;
}

.holdkhb-message-erreur {
	background: #fbeaea;
	color: #c00;
	border: 1px solid #f5c6c6;
}

.holdkhb-message-succes {
	background: #eafaf1;
	color: #155724;
	border: 1px solid #c3e6cb;
}

@media (max-width: 600px) {
	.holdkhb-champ-inline {
		width: 100%;
		margin-right: 0;
	}
}

/* Calendrier */

.holdkhb-client-entete,
.holdkhb-creneaux-entete {
	display: flex;
	align-items: center;
	gap: 1em;
	margin-bottom: 1.5em;
}

.holdkhb-client-entete h3,
.holdkhb-creneaux-entete h3 {
	margin: 0;
	flex: 1;
	text-align: center;
	font-size: 1.25em;
}

.holdkhb-bouton-retour {
	background: transparent;
	border: none;
	color: #0073aa;
	padding: 0;
	font-size: 0.95em;
	cursor: pointer;
}

.holdkhb-rdv-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1em;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 6px;
	margin-bottom: 1.5em;
}

.holdkhb-rdv-card-titre {
	display: block;
	font-size: 1.1em;
	font-weight: 600;
}

.holdkhb-rdv-card-duree {
	display: block;
	color: #666;
	font-size: 0.9em;
}

.holdkhb-filtre-ligne {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1em;
	margin-bottom: 1.5em;
}

.holdkhb-filtre-vendeur {
	flex: 1;
	min-width: 220px;
}

.holdkhb-filtre-vendeur label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4em;
}

.holdkhb-filtre-vendeur select {
	width: 100%;
	padding: 0.6em;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.holdkhb-timezone {
	color: #666;
	font-size: 0.85em;
	margin: 0;
}

.holdkhb-vue-tabs {
	display: flex;
	gap: 0.4em;
}

.holdkhb-tab {
	padding: 0.4em 0.8em;
	background: #f0f0f0;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
}

.holdkhb-tab.active {
	background: #0073aa;
	color: #fff;
	border-color: #006799;
}

.holdkhb-semaine-nav,
.holdkhb-mois-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 1.5em 0 1em;
	gap: 0.5em;
}

.holdkhb-bouton-petit {
	padding: 0.4em 0.8em;
	font-size: 0.9em;
}

.holdkhb-semaine-grille {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.5em;
	margin-bottom: 1.5em;
}

.holdkhb-jour-colonne {
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 4px;
	padding: 0.6em;
}

.holdkhb-jour-titre {
	text-align: center;
	padding-bottom: 0.6em;
	border-bottom: 1px solid #eee;
	margin-bottom: 0.6em;
}

.holdkhb-jour-nom {
	display: block;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.85em;
}

.holdkhb-jour-date {
	display: block;
	color: #666;
	font-size: 0.85em;
}

.holdkhb-creneau-bouton {
	display: block;
	margin: 0.3em 0;
	padding: 0.5em;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	text-align: center;
}

.holdkhb-creneau-bouton:hover {
	background: #f0f8ff;
	border-color: #0073aa;
}

.holdkhb-creneau-bouton input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.holdkhb-creneau-bouton.selected,
.holdkhb-creneau-bouton input[type="radio"]:checked ~ .holdkhb-creneau-heure,
.holdkhb-creneau-bouton input[type="radio"]:checked ~ .holdkhb-creneau-vendeur {
	background: #0073aa;
	border-color: #006799;
	color: #fff;
}

.holdkhb-creneau-bouton.selected .holdkhb-creneau-heure,
.holdkhb-creneau-bouton.selected .holdkhb-creneau-vendeur {
	color: #fff;
}

.holdkhb-creneau-heure {
	display: block;
	font-weight: 600;
	font-size: 1em;
}

.holdkhb-creneau-vendeur {
	display: block;
	font-size: 0.8em;
	color: #666;
}

.holdkhb-pas-creneau {
	text-align: center;
	color: #999;
	padding: 1em 0;
	margin: 0;
}

.holdkhb-bouton-suite {
	margin-top: 1em;
}

.holdkhb-mensuel {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5em;
}

.holdkhb-mois-titre,
.holdkhb-semaine-titre,
.holdkhb-creneaux-jour-titre {
	font-weight: 600;
}

.holdkhb-calendrier-mois {
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 1em;
}

.holdkhb-calendrier-entetes {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.2em;
	text-align: center;
	font-weight: 600;
	margin-bottom: 0.4em;
}

.holdkhb-calendrier-grille {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.2em;
}

.holdkhb-calendrier-vide {
	aspect-ratio: 1;
}

.holdkhb-jour-calendrier {
	aspect-ratio: 1;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9em;
}

.holdkhb-jour-calendrier:hover:not(:disabled) {
	background: #f0f8ff;
}

.holdkhb-jour-calendrier.selected {
	background: #0073aa;
	color: #fff;
	border-color: #006799;
}

.holdkhb-jour-calendrier:disabled,
.holdkhb-jour-calendrier.disabled {
	color: #ccc;
	background: #f0f0f0;
	cursor: not-allowed;
}

.holdkhb-creneaux-jour {
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 1em;
}

.holdkhb-rdv-recap {
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 1em;
}

.holdkhb-mode-admin {
	padding: 0.8em 1em;
	background: #fff8e1;
	border-left: 4px solid #ffb900;
	border-radius: 4px;
	font-size: 0.95em;
}

.iti {
	width: 100%;
}

.iti input.holdkhb-phone,
.iti input.holdkhb-phone[type="tel"] {
	padding-left: 70px !important;
}

@media (max-width: 700px) {
	.holdkhb-semaine-grille,
	.holdkhb-mensuel {
		grid-template-columns: 1fr;
	}
}

/**
 * Calendrier vendeur.
 *
 * @since 1.6.0.0
 */
.holdkhb-calendrier-vendeur {
	margin: 2em 0;
}

.holdkhb-calendrier-vendeur .holdkhb-filtre-vendeurs {
	margin-bottom: 1.5em;
	padding: 1em;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 6px;
}

.holdkhb-calendrier-vendeur .holdkhb-filtre-vendeurs p {
	margin-top: 0;
	font-weight: 600;
}

.holdkhb-calendrier-vendeur .holdkhb-liste-filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	margin-bottom: 1em;
}

.holdkhb-calendrier-vendeur .holdkhb-vendeur-filtre {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.4em 0.8em;
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95em;
}

.holdkhb-calendrier-vendeur .holdkhb-vendeur-filtre input {
	margin: 0;
}

.holdkhb-calendrier-vendeur .holdkhb-vendeur-couleur {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.holdkhb-calendrier-vendeur .holdkhb-bouton-filtre {
	cursor: pointer;
}

.holdkhb-calendrier-vendeur .holdkhb-calendrier-jours {
	display: flex;
	gap: 1em;
	flex-wrap: nowrap;
}

.holdkhb-calendrier-vendeur .holdkhb-jour-colonne {
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.6em;
}

.holdkhb-calendrier-vendeur .holdkhb-jour-titre {
	margin: 0 0 0.5em;
	font-size: 1.1em;
	font-weight: 600;
	text-align: center;
}

.holdkhb-calendrier-vendeur .holdkhb-calendrier-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1em;
	gap: 1em;
	flex-wrap: wrap;
}

.holdkhb-calendrier-vendeur .holdkhb-bouton-nav {
	display: inline-block;
	padding: 0.5em 1em;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	border: 1px solid #006799;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.holdkhb-calendrier-vendeur .holdkhb-bouton-nav:hover {
	background: #005f8b;
	border-color: #004c6f;
}

.holdkhb-calendrier-vendeur .holdkhb-periode {
	font-weight: 600;
}

.holdkhb-calendrier-vendeur .holdkhb-jour-grille {
	display: grid;
	grid-auto-rows: minmax(2.2em, auto);
	gap: 1px;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	background: #f5f5f5;
}

.holdkhb-calendrier-vendeur .holdkhb-entete-heure {
	grid-column: 1;
	grid-row: 1;
	background: #f0f0f0;
}

.holdkhb-calendrier-vendeur .holdkhb-entete-vendeur {
	grid-row: 1;
	padding: 0.4em;
	text-align: center;
	font-weight: 600;
	font-size: 0.85em;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.holdkhb-calendrier-vendeur .holdkhb-creneau-heure {
	padding: 0.3em 0.6em;
	font-size: 0.8em;
	color: #666;
	background: #fff;
	text-align: right;
	border-right: 1px solid #eee;
}

.holdkhb-calendrier-vendeur .holdkhb-rdv-bloc {
	padding: 0.3em 0.5em;
	border-radius: 4px;
	color: #fff;
	font-size: 0.8em;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1.2;
	border: 1px solid rgba(255, 255, 255, 0.4);
	word-break: break-word;
}

.holdkhb-calendrier-vendeur .holdkhb-tampon-bloc {
	background: repeating-linear-gradient(
		45deg,
		#f0f0f0,
		#f0f0f0 6px,
		#e0e0e0 6px,
		#e0e0e0 12px
	);
	border: 1px solid #ddd;
}

.holdkhb-calendrier-vendeur .holdkhb-rdv-heures {
	font-size: 0.8em;
	opacity: 0.9;
}

.holdkhb-calendrier-vendeur .holdkhb-rdv-service {
	display: block;
	font-weight: 700;
}

.holdkhb-calendrier-vendeur .holdkhb-rdv-client {
	display: block;
	font-size: 0.9em;
}

.holdkhb-calendrier-vendeur .holdkhb-rdv-bloc {
	cursor: pointer;
	position: relative;
	z-index: 2;
}

.holdkhb-calendrier-vendeur .holdkhb-creneau-vide,
.holdkhb-calendrier-vendeur .holdkhb-tampon-bloc {
	position: relative;
	z-index: 1;
}

.holdkhb-calendrier-vendeur .holdkhb-creneau-vide {
	cursor: pointer;
}

.holdkhb-calendrier-vendeur .holdkhb-creneau-vide:hover {
	background: rgba(34, 113, 177, 0.15);
}

.holdkhb-calendrier-vendeur .holdkhb-creneau-hors-horaires {
	background: #6b6b6b;
	cursor: not-allowed;
}

.holdkhb-message {
	padding: 0.8em 1em;
	margin: 0.5em 0;
	border-radius: 4px;
}

.holdkhb-message-succes {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.holdkhb-message-erreur {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.holdkhb-modal {
	display: none;
	position: fixed;
	z-index: 100000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background: rgba(0, 0, 0, 0.6);
}

.holdkhb-modal-contenu {
	background: #fff;
	margin: 5% auto;
	padding: 0;
	border-radius: 4px;
	width: 90%;
	max-width: 600px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.holdkhb-modal-entete {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: #1d2327;
	color: #fff;
	border-radius: 4px 4px 0 0;
}

.holdkhb-modal-entete h2 {
	margin: 0;
	color: #fff;
	font-size: 16px;
}

.holdkhb-modal-fermer {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

.holdkhb-modal form {
	padding: 16px;
}

.holdkhb-modal-form-champs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.holdkhb-modal-champ label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.holdkhb-modal-champ input,
.holdkhb-modal-champ select,
.holdkhb-modal-champ textarea {
	width: 100%;
	box-sizing: border-box;
}

.holdkhb-modal-actions {
	margin-top: 16px;
	display: flex;
	gap: 0.5em;
}

@media (max-width: 700px) {
	.holdkhb-calendrier-vendeur .holdkhb-jour-colonne {
		flex: 0 0 90%;
	}
}

/* Template pleine largeur pour la page vendeur. */

.holdkhb-page-fullwidth {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

.holdkhb-main {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
}

.holdkhb-article-fullwidth {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.holdkhb-article-header {
	padding: 1rem 0;
	margin-bottom: 1rem;
	border-bottom: 1px solid #eee;
}

.holdkhb-article-title {
	margin: 0;
	font-size: 1.6rem;
}

.holdkhb-article-content {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Assouplissement des contraintes de thème sur la page vendeur. */

body.holdkhb-mes-rdv #primary,
body.holdkhb-mes-rdv #content,
body.holdkhb-mes-rdv .content-area,
body.holdkhb-mes-rdv #main,
body.holdkhb-mes-rdv main {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.holdkhb-mes-rdv #secondary,
body.holdkhb-mes-rdv .widget-area,
body.holdkhb-mes-rdv aside[role="complementary"] {
	display: none !important;
}