/* HDKN Réservations : mise en page seulement. Couleurs et typos viennent du kit Elementor. */

.hdkn-resa {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
	gap: 12px 14px;
	margin: 0 0 16px;
	width: 100%;
}

.hdkn-resa__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hdkn-resa__row--full,
.hdkn-resa__ages,
.hdkn-resa__total,
.hdkn-resa__note,
.hdkn-resa__error,
.hdkn-resa__closed {
	grid-column: 1 / -1;
}

.hdkn-resa label,
.hdkn-resa__ages-label {
	font-weight: 600;
}

.hdkn-resa label small {
	font-weight: 400;
	opacity: .75;
}

.hdkn-resa input[type="number"] {
	width: 100%;
	max-width: 120px;
}

.hdkn-resa textarea {
	width: 100%;
	min-height: 52px;
}

.hdkn-resa__ages-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.hdkn-resa__ages-list select {
	flex: 1 1 104px;
	width: auto;
	min-width: 0;
}

.hdkn-resa__total {
	margin: 4px 0 0;
	font-size: 1.15em;
}

.hdkn-resa__detail,
.hdkn-resa__note {
	font-size: .9em;
	opacity: .8;
	margin: 0;
}

.hdkn-resa__error {
	margin: 0;
	font-weight: 600;
	color: #c41e1e;
}

.hdkn-resa__closed {
	margin: 0;
	font-weight: 600;
}

.single_add_to_cart_button[disabled] {
	opacity: .5;
	cursor: not-allowed;
}

/* Mon compte : Mes réservations */

.hdkn-compte__titre {
	margin: 0 0 12px;
}

.hdkn-compte__liste {
	display: grid;
	gap: 16px;
	margin-bottom: 32px;
}

.hdkn-compte__liste--passees {
	opacity: .75;
}

.hdkn-resa-carte {
	border: 1px solid rgba(127, 127, 127, .3);
	border-left: 4px solid currentColor;
	padding: 16px 18px;
}

.hdkn-resa-carte__tete {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 8px;
}

.hdkn-resa-carte__titre {
	margin: 0;
	font-size: 1.15em;
}

.hdkn-resa-carte__statut {
	font-size: .8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.hdkn-resa-carte__infos {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

.hdkn-resa-carte__infos li {
	margin: 0 0 4px;
}

.hdkn-resa-carte__infos strong {
	display: inline-block;
	min-width: 110px;
}

.hdkn-resa-carte__bloc {
	margin-top: 12px;
}

.hdkn-resa-carte__bloc h4,
.hdkn-resa-carte__bloc summary {
	margin: 0 0 4px;
	font-weight: 700;
	cursor: default;
}

.hdkn-resa-carte__bloc summary {
	cursor: pointer;
}

.hdkn-resa-carte__pied {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 12px;
	font-size: .9em;
}

.hdkn-resa-carte--session-annulee,
.hdkn-resa-carte--remboursee,
.hdkn-resa-carte--annulee {
	opacity: .7;
}

/* Encart de réservation de la fiche (classe « hdkn-encart » sur le conteneur Elementor) :
   collant sur grand écran, avec défilement interne s'il dépasse la hauteur de la fenêtre,
   pour que le bouton reste toujours atteignable. */

@media (min-width: 1025px) {
	.hdkn-encart {
		position: sticky !important;
		top: 120px;
		max-height: calc(100vh - 140px);
		overflow-y: auto;
		scrollbar-width: thin;
	}
	.admin-bar .hdkn-encart {
		top: 152px;
		max-height: calc(100vh - 172px);
	}
}

.hdkn-encart .hdkn-resa__closed {
	font-weight: 500;
	line-height: 1.5;
}

/* Bouton de contact ou de demande dans la fiche : pleine largeur, quel que soit le style de bouton du thème. */
.hdkn-resa a.button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box;
	padding: 17px 24px !important;
	text-align: center;
	white-space: normal;
}

/* Tous les paragraphes du bloc (total, notes, message, bouton) prennent toute la largeur de la grille. */
.hdkn-resa > p {
	grid-column: 1 / -1;
}

/* Fiche : bouton Réserver centré (le thème le passe en flex, contenu aligné à gauche). */
.hdkn-encart .single_add_to_cart_button {
	justify-content: center;
}

/* Mon compte : intertitres des cartes à la taille du texte, pas à celle des h4 du thème. */
.woocommerce-MyAccount-content .hdkn-resa-carte__bloc h4 {
	font-size: 1em;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	margin: 0 0 4px;
}

/* Panier et commande : pas d'extrait de description sous le nom de la session. */
.wc-block-components-product-metadata__description {
	display: none;
}

/* Panier : bouton « Valider la commande » à la couleur d'action du site, comme « Commander ». */
.wc-block-cart__submit-button.wc-block-components-button:not(:disabled) {
	background-color: var(--theme-color-text_link, #FA4729);
	border-color: var(--theme-color-text_link, #FA4729);
	color: #fff;
}
.wc-block-cart__submit-button.wc-block-components-button:not(:disabled):hover {
	background-color: var(--theme-color-text_hover, #F02D0C);
	border-color: var(--theme-color-text_hover, #F02D0C);
}

/* Page de remerciement. */
.hdkn-merci {
	border-left: 4px solid var(--theme-color-text_link, currentColor);
	background: rgba(127, 127, 127, .08);
	padding: 18px 22px;
	margin: 0 0 32px;
}
.hdkn-merci__titre {
	margin: 0 0 8px;
	font-size: 1.4em;
}
.hdkn-merci p {
	margin: 0 0 10px;
}
.hdkn-merci p:last-child {
	margin-bottom: 0;
}
