/* LFDC 0.29.11 — Fenêtres de réservation compactes.
   Styles uniquement : RTEC conserve ses traitements et sa validation.
   Isolation : sélecteurs spécifiques aux formulaires de réservation. */
html body .lfdc-book-popup.lfdc-book-popup--bounded > .lfdc-book-popup-panel {
  height:auto!important;
  max-height:min(var(--lfdc-book-panel-max,79dvh),calc(var(--lfdc-book-vvh,100dvh) - 14px))!important;
}
html body .lfdc-book-popup.lfdc-book-popup--bounded .lfdc-book-popup-content {
  flex:0 1 auto!important; padding:9px 12px!important;scrollbar-gutter:auto!important;
}
html body .lfdc-book-popup .lfdc-book-popup-head { padding:9px 13px!important;gap:8px!important; }
html body .lfdc-book-popup .lfdc-book-popup-head h2 { font-size:19px!important;margin:1px 0!important;line-height:1.15!important; }
html body .lfdc-book-popup .lfdc-book-popup-close { min-width:36px!important;width:36px!important;height:36px!important;flex-basis:36px!important;font-size:24px!important; }
html body .lfdc-book-popup-form :is(.rtec-form-fields,.rtec-outer-wrap,.rtec-registration-form,#rtec,form.rtec-form) {
  margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;
}
html body .lfdc-book-popup-form :is(.rtec-form-field,.rtec-form-field-wrap,.rtec-field-wrap,.rtec-form-row,.rtec-form-field-group,.rtec-input-wrap,.rtec-form-group),
html body .lfdc-book-popup-form .rtec-form-fields > :is(div,p) {
  margin-top:0!important;margin-bottom:7px!important;padding-top:0!important;padding-bottom:0!important;
}
html body .lfdc-book-popup-form :is(form.rtec-form,form[id^="rtec"],.rtec-registration-form form) > p {
  margin:0 0 7px!important;padding:0!important;
}
html body .lfdc-book-popup-form label {font-size:13px!important;line-height:1.2!important;margin:0 0 3px!important;}
html body .lfdc-book-popup-form :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea) {
  margin:1px 0 7px!important;padding:7px 10px!important;min-height:39px!important;font-size:16px!important;
}
html body .lfdc-book-popup-form :is(.rtec-register-button,.rtec-submit-button,button[type="submit"],input[type="submit"]) {
  margin:7px auto 2px!important;min-height:41px!important;padding:7px 17px!important;font-size:15px!important;
}
html body .lfdc-book-popup-form :is(.rtec-form-message,.rtec-message,.rtec-success,.rtec-error,.rtec-confirmation) {
  margin:5px 0!important;padding:9px 12px!important;line-height:1.35!important;font-size:14px!important;
}
/* RTEC natif utilisé dans la fiche événement : mêmes espacements. */
body.lfdc-site :is(.rtec-modal,.rtec-modal-content,.rtec-form-modal) :is(.rtec-form-field,.rtec-form-field-wrap,.rtec-field-wrap,.rtec-form-row,.rtec-form-group) {
  margin-block:0 7px!important;padding-block:0!important;
}
body.lfdc-site :is(.rtec-modal,.rtec-form-modal) :is(input[type="text"],input[type="email"],input[type="tel"],select,textarea) {
  min-height:39px!important;padding:7px 10px!important;margin-bottom:7px!important;font-size:16px!important;
}
body.lfdc-site :is(.rtec-modal,.rtec-form-modal) :is(.rtec-modal-inner,.rtec-modal-content) {
  max-height:min(78dvh,var(--lfdc-reservation-visible-height,78dvh))!important;overflow-y:auto!important;
}
/* Fenêtre d'administration de la fiche événement. */
html body .lfdc-r-admin-dialog[open] {
  padding:11px!important;border-width:3px!important;border-radius:14px!important;
  width:min(96vw,480px)!important;max-height:min(82dvh,var(--lfdc-reservation-admin-max,82dvh))!important;
}
html body .lfdc-r-dialog-header {margin-bottom:8px!important;gap:8px!important;}
html body .lfdc-r-dialog-header h3 {font-size:21px!important;}
html body .lfdc-r-admin-fields {gap:7px!important;margin-bottom:7px!important;}
html body .lfdc-r-admin-fields label {gap:2px!important;font-size:13px!important;line-height:1.2!important;}
html body .lfdc-r-admin-fields input {min-height:38px!important;padding:6px 9px!important;font-size:16px!important;}
html body .lfdc-r-overbook-option {margin-bottom:7px!important;font-size:12px!important;}
html body .lfdc-r-admin-help {font-size:11px!important;margin-bottom:7px!important;}
html body .lfdc-r-admin-save,html body .lfdc-r-admin-delete {min-height:39px!important;font-size:15px!important;padding:7px 12px!important;}
/* Fenêtre de modification des participants sur l'accueil. */
html body .lfdc-res-dialog-panel {width:min(96vw,450px)!important;padding:12px!important;max-height:min(82dvh,var(--lfdc-reservation-admin-max,82dvh))!important;}
html body .lfdc-res-dialog-head {padding-bottom:7px!important;gap:8px!important;}
html body .lfdc-res-dialog form {margin:8px 0 0!important;gap:7px!important;}
html body .lfdc-res-dialog form label {gap:3px!important;}
html body .lfdc-res-dialog form input:not([type="hidden"]) {min-height:38px!important;padding:7px 9px!important;font-size:16px!important;}
html body .lfdc-res-dialog-caution {margin:7px 0 0!important;}
/* Première cellule : neutraliser les déplacements du thème. */
html body .lfdc-book-popup > .lfdc-book-popup-panel:nth-child(2),
html body .lfdc-book-popup > .lfdc-book-popup-backdrop:nth-child(1){grid-column:1!important;grid-row:1!important;grid-area:1/1!important;}
@media(max-width:680px){
 html body .lfdc-book-popup.lfdc-book-popup--bounded .lfdc-book-popup-content {padding:7px 10px!important;}
 html body .lfdc-book-popup .lfdc-book-popup-head {padding:7px 10px!important;}
 html body .lfdc-book-popup .lfdc-book-popup-head h2 {font-size:17px!important;}
 html body .lfdc-book-popup-form :is(.rtec-form-field,.rtec-form-field-wrap,.rtec-field-wrap,.rtec-form-row) {margin-bottom:5px!important;}
 html body .lfdc-r-admin-fields {grid-template-columns:minmax(0,1fr)!important;gap:6px!important;}
 html body .lfdc-r-admin-dialog[open] {max-height:min(78dvh,var(--lfdc-reservation-admin-max,78dvh))!important;}
}
@media(max-height:430px){
 html body .lfdc-book-popup .lfdc-book-popup-eyebrow {display:none!important;}
 html body .lfdc-book-popup.lfdc-book-popup--bounded .lfdc-book-popup-head {padding:5px 10px!important;}
 html body .lfdc-book-popup.lfdc-book-popup--bounded .lfdc-book-popup-content {padding:5px 10px!important;}
 html body .lfdc-r-admin-dialog[open] {padding:7px!important;}
}
