/*
 * Prise de rendez-vous : reprend les polices du thème (inherit) et sa couleur d'accent (--psyrdv-accent,
 * injectée depuis le réglage « Accent » du thème Ashe). Aucune police ni ressource distante.
 */

.psyrdv-booking {
	--psyrdv-accent: #ca9b52;
	--psyrdv-on-accent: #1d2327;
	--psyrdv-text: #1d2327;
	--psyrdv-muted: #50575e;
	--psyrdv-error: #b32d2e;
	font: inherit;
	color: inherit;
	max-width: 760px;
}

.psyrdv-booking * {
	box-sizing: border-box;
}

.psyrdv-booking .psyrdv-title {
	margin: 0 0 16px;
}

/* Ashe impose « outline: 0 !important » : sans !important ici, le focus clavier serait invisible. */
.psyrdv-booking .psyrdv-title:focus,
.psyrdv-booking .psyrdv-week-title:focus,
.psyrdv-booking .psyrdv-summary:focus {
	outline: 2px solid var(--psyrdv-text) !important;
	outline-offset: 4px;
}

.psyrdv-sr-only,
.psyrdv-booking .psyrdv-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Boutons : cibles d'au moins 44 px, focus toujours visible. */
.psyrdv-booking .psyrdv-button,
.psyrdv-booking .psyrdv-slot {
	display: inline-block;
	min-height: 44px;
	min-width: 44px;
	padding: 10px 16px;
	font: inherit;
	line-height: 1.2;
	color: var(--psyrdv-text);
	background: #fff;
	border: 2px solid var(--psyrdv-accent);
	border-radius: 4px;
	cursor: pointer;
}

.psyrdv-booking .psyrdv-button-primary {
	/* Couleur du texte choisie côté serveur pour le meilleur contraste sur l'accent du thème. */
	color: var(--psyrdv-on-accent);
	background: var(--psyrdv-accent);
	font-weight: 600;
}

.psyrdv-booking .psyrdv-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.psyrdv-booking button:focus-visible,
.psyrdv-booking input:focus-visible,
.psyrdv-booking a:focus-visible {
	outline: 3px solid var(--psyrdv-text) !important;
	outline-offset: 2px;
}

.psyrdv-booking .psyrdv-link {
	padding: 4px 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

/* Tarif de la consultation : sur l'écran de choix et dans le récapitulatif (absent sans tarif). */
.psyrdv-booking .psyrdv-price,
.psyrdv-booking .psyrdv-recap-price {
	margin: 0 0 16px;
	font-weight: 600;
}

.psyrdv-booking .psyrdv-next {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	padding: 16px;
	border-left: 4px solid var(--psyrdv-accent);
	background: rgba(0, 0, 0, 0.03);
}

.psyrdv-booking .psyrdv-next p {
	margin: 0;
}

.psyrdv-booking .psyrdv-weeknav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 16px;
}

.psyrdv-booking .psyrdv-weeknav h3 {
	margin: 0;
	font-size: 1.1em;
}

.psyrdv-booking .psyrdv-day h4 {
	margin: 16px 0 8px;
	font-size: 1em;
}

.psyrdv-booking .psyrdv-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.psyrdv-booking .psyrdv-slot:hover,
.psyrdv-booking .psyrdv-slot:focus-visible {
	background: rgba(0, 0, 0, 0.05);
}

.psyrdv-booking .psyrdv-form {
	display: grid;
	gap: 16px;
}

.psyrdv-booking .psyrdv-field label {
	display: block;
	margin: 0 0 4px;
	font-weight: 600;
}

.psyrdv-booking .psyrdv-field input {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	font: inherit;
	/* Au moins 16 px : sinon Safari sur iPhone zoome à chaque champ. */
	font-size: max(16px, 1em);
	border: 1px solid var(--psyrdv-muted);
	border-radius: 4px;
}

.psyrdv-booking .has-error input {
	border: 2px solid var(--psyrdv-error);
}

.psyrdv-booking .psyrdv-required,
.psyrdv-booking .psyrdv-hint {
	color: var(--psyrdv-muted);
	font-weight: normal;
	font-size: 0.9em;
}

.psyrdv-booking .psyrdv-hint {
	margin: 0 0 4px;
}

.psyrdv-booking .psyrdv-check {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 10px;
	align-items: start;
}

.psyrdv-booking .psyrdv-check input {
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
}

.psyrdv-booking .psyrdv-check .psyrdv-hint,
.psyrdv-booking .psyrdv-check .psyrdv-field-error {
	grid-column: 1 / -1;
}

.psyrdv-booking .psyrdv-field-error,
.psyrdv-booking .psyrdv-error {
	margin: 0 0 4px;
	color: var(--psyrdv-error);
	font-weight: 600;
}

.psyrdv-booking .psyrdv-summary {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 2px solid var(--psyrdv-error);
	border-radius: 4px;
}

.psyrdv-booking .psyrdv-summary p {
	margin: 0;
	font-weight: 600;
}

.psyrdv-booking .psyrdv-summary ul {
	margin: 8px 0 0 20px;
}

.psyrdv-booking .psyrdv-late {
	margin: 0;
	padding: 12px 16px;
	border-left: 4px solid var(--psyrdv-error);
	background: rgba(179, 45, 46, 0.06);
}

.psyrdv-booking .psyrdv-done-when {
	font-size: 1.15em;
}

@media (max-width: 480px) {
	.psyrdv-booking .psyrdv-weeknav {
		justify-content: center;
	}

	.psyrdv-booking .psyrdv-weeknav h3 {
		order: -1;
		width: 100%;
		text-align: center;
	}
}
