/* CPG Réservation : formulaire [booking_form] (fiche produit WooCommerce).
   Carte aux couleurs du site (--cpg-resa-couleur, reprise de YITH à la migration) : libellés discrets
   en capitales, champs clairs, services en grille avec leur prix, total mis en avant. Les cases à
   cocher sont dessinées ici pour ne pas prendre la couleur du thème. */
.cpg-resa-produit { --cpg-resa-couleur: #333; --cpg-resa-couleur-clair: #777; --cpg-resa-sejour: color-mix(in srgb, var(--cpg-resa-couleur) 16%, #fff); --cpg-resa-encre: #2b2b2b; --cpg-resa-doux: #6b6b6b; --cpg-resa-trait: #e4e0d8; --cpg-resa-fond: #faf8f4;
	text-align: left; color: var(--cpg-resa-encre); background: #fff; border: 1px solid var(--cpg-resa-trait); border-top: 3px solid var(--cpg-resa-couleur); padding: 28px 28px 30px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.cpg-resa-produit * { box-sizing: border-box; }
.cpg-resa-produit [hidden] { display: none !important; }
.cpg-resa-produit .cpg-resa-produit-prix { font-size: 1.6em; font-weight: 600; line-height: 1.2; margin: 0 0 22px; color: var(--cpg-resa-couleur); }
.cpg-resa-produit-section { margin: 0 0 24px; position: relative; }
.cpg-resa-produit-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cpg-resa-doux); margin: 0 0 10px; }
.cpg-resa-produit input[type="text"], .cpg-resa-produit input[type="number"], .cpg-resa-produit select {
	width: 100%; max-width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--cpg-resa-trait); border-radius: 0; background: var(--cpg-resa-fond); color: var(--cpg-resa-encre); font: inherit; font-size: 15px; box-shadow: none; transition: border-color .15s, background .15s;
}
.cpg-resa-produit input[type="text"]:focus, .cpg-resa-produit input[type="number"]:focus, .cpg-resa-produit select:focus { outline: none; border-color: var(--cpg-resa-couleur); background: #fff; }
.cpg-resa-produit input::placeholder { color: #9a958c; opacity: 1; }
.cpg-resa-produit-date { cursor: pointer; }
.cpg-resa-produit-periode { display: flex; align-items: center; border: 1px solid var(--cpg-resa-trait); background: var(--cpg-resa-fond); transition: border-color .15s; }
.cpg-resa-produit-periode:focus-within { border-color: var(--cpg-resa-couleur); background: #fff; }
.cpg-resa-produit .cpg-resa-produit-periode input[type="text"] { border: 0; flex: 1 1 0; min-width: 0; background: transparent; }
.cpg-resa-produit-fleche { flex: 0 0 auto; padding: 0 6px; color: var(--cpg-resa-couleur); font-size: 18px; }

/* Services : grille de cartes à cocher, prix à droite. */
/* Deux colonnes seulement si le formulaire est assez large (chaque carte fait au moins 250 px), quelle que soit la taille de l'écran. */
.cpg-resa-produit-services .cpg-resa-produit-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.cpg-resa-produit-service { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 10px 0 0; border: 1px solid var(--cpg-resa-trait); background: #fff; transition: border-color .15s, background .15s; }
.cpg-resa-produit-service:hover { border-color: var(--cpg-resa-couleur-clair); }
.cpg-resa-produit-service.cpg-resa-coche { border-color: var(--cpg-resa-couleur); background: var(--cpg-resa-fond); }
.cpg-resa-produit-service label { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; cursor: pointer; margin: 0; padding: 11px 0 11px 12px; font-size: 14px; line-height: 1.35; }
.cpg-resa-produit-service .cpg-resa-produit-service-nom { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.cpg-resa-produit-service-prix { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--cpg-resa-couleur); white-space: nowrap; }
.cpg-resa-produit .cpg-resa-produit-service input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; padding: 0; border: 1px solid #b9b2a5; border-radius: 2px; background: #fff; display: grid; place-content: center; cursor: pointer; }
.cpg-resa-produit .cpg-resa-produit-service input[type="checkbox"]::before { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.cpg-resa-produit .cpg-resa-produit-service input[type="checkbox"]::after { display: none !important; }
/* Thème YITH Proteo : il enveloppe les cases dans span.checkboxbutton et dessine la sienne en ::before. */
.cpg-resa-produit span.checkboxbutton { position: static; display: inline-flex; flex: 0 0 auto; }
.cpg-resa-produit span.checkboxbutton::before { display: none !important; }
.cpg-resa-produit span.checkboxbutton input[type="checkbox"] { opacity: 1; position: static; }
.cpg-resa-produit .cpg-resa-produit-service input[type="checkbox"]:checked { background: var(--cpg-resa-couleur); border-color: var(--cpg-resa-couleur); }
.cpg-resa-produit .cpg-resa-produit-service input[type="checkbox"]:checked::before { opacity: 1; }
.cpg-resa-produit .cpg-resa-produit-service input[type="checkbox"]:focus-visible { outline: 2px solid var(--cpg-resa-couleur); outline-offset: 2px; }
.cpg-resa-aide { position: relative; display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; color: #9a958c; cursor: help; line-height: 0; }
.cpg-resa-aide:hover, .cpg-resa-aide:focus-visible { color: var(--cpg-resa-couleur); }
.cpg-resa-aide:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.cpg-resa-aide svg { width: 16px; height: 16px; fill: currentColor; }
.cpg-resa-bulle { position: absolute; right: -4px; bottom: calc(100% + 8px); z-index: 20; width: max-content; max-width: 260px; padding: 9px 12px; background: #262626; color: #fff; font-size: 13px; line-height: 1.45; text-align: left; border-radius: 2px; white-space: normal; box-shadow: 0 6px 18px rgba(0,0,0,.2); }

/* Totaux. */
.cpg-resa-produit-totaux { padding: 16px 18px; background: var(--cpg-resa-fond); border: 1px solid var(--cpg-resa-trait); }
.cpg-resa-produit-ligne { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--cpg-resa-trait); }
.cpg-resa-produit-ligne span:last-child { white-space: nowrap; }
.cpg-resa-produit-total { margin-top: 4px; padding-top: 12px; border-bottom: 0; font-size: 17px; font-weight: 700; }
.cpg-resa-produit-total span:last-child { color: var(--cpg-resa-couleur); }
.cpg-resa-produit .cpg-resa-erreur { color: #a3261f; background: #fbeeed; border-left: 3px solid #a3261f; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.cpg-resa-calcul .cpg-resa-produit-totaux { opacity: .5; }
.cpg-resa-produit .single_add_to_cart_button { display: block; width: 100%; min-height: 54px; margin: 0; border: 0; border-radius: 0; background: var(--cpg-resa-couleur); color: #fff; font-size: 20px; cursor: pointer; transition: filter .15s; }
.cpg-resa-produit .single_add_to_cart_button:hover, .cpg-resa-produit .single_add_to_cart_button:focus-visible { background: var(--cpg-resa-couleur); color: #fff; filter: brightness(.92); }

/* Calendrier de choix des dates : jours libres dans la couleur du site, en gras ; jours pris simplement grisés. */
.cpg-resa-produit .cpg-resa-calendrier { position: absolute; z-index: 30; left: 0; top: 100%; margin: 6px 0 0; padding: 16px; width: 330px; max-width: 100%; border: 1px solid var(--cpg-resa-trait); border-top: 3px solid var(--cpg-resa-couleur); background: #fff; color: var(--cpg-resa-encre); box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.cpg-resa-cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.cpg-resa-cal-tete strong { font-weight: 600; text-transform: capitalize; }
.cpg-resa-produit .cpg-resa-cal-nav { min-height: 0; width: 34px; height: 34px; padding: 0; background: none; border: 1px solid var(--cpg-resa-trait); border-radius: 50%; color: var(--cpg-resa-encre); font-size: 18px; line-height: 1; box-shadow: none; cursor: pointer; }
.cpg-resa-produit .cpg-resa-cal-nav:hover:not(:disabled) { border-color: var(--cpg-resa-couleur); color: var(--cpg-resa-couleur); background: none; }
.cpg-resa-produit .cpg-resa-cal-nav:disabled { opacity: .25; cursor: default; }
/* Les boutons du calendrier gardent la police du texte (le thème met la sienne sur tous les boutons). */
.cpg-resa-produit .cpg-resa-calendrier button { font-family: inherit; font-style: normal; text-transform: none; }
.cpg-resa-cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cpg-resa-cal-js { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--cpg-resa-doux); padding: 6px 0; }
.cpg-resa-produit .cpg-resa-cal-j { display: block; width: 100%; height: 38px; min-height: 0; padding: 0; margin: 0; text-align: center; line-height: 38px; font-size: 14px; font-weight: 700; border: 0; border-radius: 0; background: none; color: var(--cpg-resa-couleur); box-shadow: none; text-transform: none; letter-spacing: 0; }
.cpg-resa-produit button.cpg-resa-cal-j { cursor: pointer; }
.cpg-resa-produit button.cpg-resa-cal-j:hover, .cpg-resa-produit button.cpg-resa-cal-j:focus-visible { background: var(--cpg-resa-fond); color: var(--cpg-resa-couleur); outline: 1px solid var(--cpg-resa-couleur); outline-offset: -1px; }
.cpg-resa-produit .cpg-resa-cal-off { color: #c4c0b8; font-weight: 400; text-decoration: none; }
.cpg-resa-produit .cpg-resa-cal-arrivee, .cpg-resa-produit .cpg-resa-cal-depart { background: var(--cpg-resa-couleur) !important; color: #fff !important; }
.cpg-resa-produit .cpg-resa-cal-sejour { background: var(--cpg-resa-sejour) !important; }

@media (max-width: 767px) {
	.cpg-resa-produit { padding: 22px 16px 24px; }
	.cpg-resa-produit-services .cpg-resa-produit-liste { gap: 6px; }
}
@media (max-width: 400px) {
	.cpg-resa-produit .cpg-resa-calendrier { width: 100%; padding: 12px; }
}
/* Liste des horaires : le thème la remplace par Select2 (le vrai <select> est masqué). */
.cpg-resa-produit .select2-container { width: 100% !important; }
.cpg-resa-produit .select2-container .select2-selection--single { height: 50px !important; padding: 0 !important; display: flex; align-items: center; border: 1px solid var(--cpg-resa-trait); border-radius: 0; background: var(--cpg-resa-fond); }
.cpg-resa-produit .select2-container--focus .select2-selection--single, .cpg-resa-produit .select2-container--open .select2-selection--single { border-color: var(--cpg-resa-couleur); background: #fff; }
.cpg-resa-produit .select2-container .select2-selection__rendered { padding: 0 40px 0 16px; line-height: 48px; font-size: 15px; color: var(--cpg-resa-encre); }
.cpg-resa-produit .select2-container .select2-selection__arrow { height: 48px; right: 10px; }
.cpg-resa-produit .select2-container--disabled .select2-selection--single { opacity: .7; cursor: default; }
