/* Guichet Réservations — UI pack (WP)
   Cleaned version: unified controls, stable row alignment, Elementor/The7 safe.
*/

/* =========================
   Tokens
   ========================= */
:root{
  --td-radius: 14px;
  --td-radius-sm: 10px;
  --td-border: #e5e7eb;
  --td-text: #0f172a;
  --td-muted: #64748b;
  --td-bg: #f6f8fb;
  --td-surface: #ffffff;
  --td-primary: #0b5ed7;
  --td-primary-2: #084298;
  --td-danger: #dc2626;
  --td-warning-bg: #fff7ed;
  --td-warning-bd: #fed7aa;
  --td-warning-tx: #9a3412;
  --td-shadow: 0 10px 25px rgba(2, 8, 23, .08);
  --td-control-height: 44px;
}

/* =========================
   Wrapper + Full-bleed
   ========================= */
.td-root{
  background: transparent;
  --td-site-sticky-offset: 0px;
  --td-site-sticky-gap: 16px;
  position: relative;
  z-index: 120;
  isolation: isolate;
}

.td-root .td-wrap{
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 22px);
}

.td-root.td-fullbleed{
  width: 100% !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.wp-theme-dt-the7 .td-root.td-fullbleed,
body.wp-child-theme-dt-the7-child .td-root.td-fullbleed,
body.elementor-page .td-root.td-fullbleed{
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.td-root.td-fullbleed .is-layout-constrained,
.td-root.td-fullbleed .wp-block-post-content.is-layout-constrained,
.td-root.td-fullbleed .entry-content.is-layout-constrained{
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.td-root.td-fullbleed .td-wrap{
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 26px);
}

/* Neutralise common Elementor text-editor wrappers */
.elementor-widget-text-editor #guichet-reservations,
.elementor-widget-text-editor #guichet-reservations *{
  text-align: initial;
}

.elementor-widget-text-editor #guichet-reservations p{
  margin: 0;
}

/* =========================
   Base typography
   ========================= */
#guichet-reservations,
#guichet-reservations .td-layout{
  width: 100% !important;
  max-width: none !important;
}

#guichet-reservations{
  position: relative;
  z-index: 120;
  color: var(--td-text);
  font: inherit;
  font-size: 16px !important;
  line-height: 1.35 !important;
  scroll-margin-top: calc(var(--td-site-sticky-offset) + var(--td-site-sticky-gap));
}

#guichet-reservations *{
  box-sizing: border-box;
}

#guichet-reservations .td-left,
#guichet-reservations .td-right{
  font-size: 14px !important;
  line-height: 1.35 !important;
}

/* =========================
   Shell + Cards
   ========================= */
#guichet-reservations .td-shell{
  overflow: visible;
  background: var(--td-bg);
  border: 1px solid var(--td-border);
  border-radius: calc(var(--td-radius) + 4px);
  padding: clamp(12px, 2vw, 18px);
}

#guichet-reservations .td-left,
#guichet-reservations .td-right{
  position: relative;
  background: var(--td-surface);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  padding: 16px;
  box-shadow: var(--td-shadow);
}

#guichet-reservations .td-left,
#guichet-reservations .td-tabs,
#guichet-reservations .td-panels,
#guichet-reservations .td-panel{
  z-index: 121;
}

#guichet-reservations .td-right{
  position: sticky;
  top: calc(var(--td-site-sticky-offset) + 16px);
}

@media (min-width: 1101px){
  body.wp-theme-dt-the7 #guichet-reservations .td-layout,
  body.wp-child-theme-dt-the7-child #guichet-reservations .td-layout,
  body.elementor-page #guichet-reservations .td-layout{
    grid-template-columns: minmax(0, 1fr) 420px !important;
  }

  body.wp-theme-dt-the7 #guichet-reservations aside.td-right,
  body.wp-child-theme-dt-the7-child #guichet-reservations aside.td-right,
  body.elementor-page #guichet-reservations aside.td-right{
    display: block !important;
    background: var(--td-surface) !important;
    border: 1px solid var(--td-border) !important;
    border-radius: var(--td-radius) !important;
    padding: 16px !important;
    box-shadow: var(--td-shadow) !important;
    position: sticky !important;
    top: calc(var(--td-site-sticky-offset) + 16px) !important;
    z-index: 1 !important;
  }

  body.wp-theme-dt-the7 #guichet-reservations .td-shell,
  body.wp-child-theme-dt-the7-child #guichet-reservations .td-shell,
  body.elementor-page #guichet-reservations .td-shell{
    overflow: visible !important;
  }
}

body.wp-theme-dt-the7 .td-root,
body.wp-child-theme-dt-the7-child .td-root,
body.elementor-page .td-root{
  padding-top: calc(var(--td-site-sticky-offset) + var(--td-site-sticky-gap));
}

body.wp-theme-dt-the7 #guichet-reservations .td-tabs,
body.wp-theme-dt-the7 #guichet-reservations .td-panel,
body.wp-child-theme-dt-the7-child #guichet-reservations .td-tabs,
body.wp-child-theme-dt-the7-child #guichet-reservations .td-panel,
body.elementor-page #guichet-reservations .td-tabs,
body.elementor-page #guichet-reservations .td-panel{
  scroll-margin-top: calc(var(--td-site-sticky-offset) + var(--td-site-sticky-gap));
}

/* =========================
   Alerts
   ========================= */
#guichet-reservations .td-alert{
  margin-bottom: 12px;
}

#guichet-reservations .td-alert-item{
  background: var(--td-warning-bg);
  border: 1px solid var(--td-warning-bd);
  color: var(--td-warning-tx);
  border-radius: var(--td-radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}

/* =========================
   Layout
   ========================= */
#guichet-reservations .td-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 20px;
  align-items: start;
}

/* =========================
   Tabs
   ========================= */
#guichet-reservations .td-tabs{
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 8px;
  margin: 2px 0 14px;
  align-items: center;
}

#guichet-reservations .td-tab{
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.80);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--td-text);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

#guichet-reservations .td-tab:hover{
  border-color: #cbd5e1;
}

#guichet-reservations .td-tab:active{
  transform: translateY(1px);
}

#guichet-reservations .td-tab.is-active{
  background: linear-gradient(135deg, var(--td-primary), var(--td-primary-2));
  color: #fff;
  border-color: rgba(11, 94, 215, 0.35);
  box-shadow: 0 10px 22px rgba(11, 94, 215, 0.14);
}

#guichet-reservations .td-tab[disabled]{
  opacity: .5;
  cursor: not-allowed;
}

/* =========================
   Panels
   ========================= */
#guichet-reservations .td-panel{
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}

#guichet-reservations .td-panel[hidden]{
  display: none;
}

#guichet-reservations .td-panel-header{
  display: none;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: var(--td-radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
  font-weight: 700;
  background: #eff6ff;
  color: #0b3a76;
}

#guichet-reservations .td-panel-title{
  font-size: 16px;
  margin: 0 0 12px;
}

/* =========================
   Forms
   ========================= */
#guichet-reservations .td-field{
  margin-bottom: 12px;
}

#guichet-reservations label{
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

#guichet-reservations input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
#guichet-reservations select,
#guichet-reservations textarea,
#guichet-reservations .flatpickr-input,
#guichet-reservations .td-date-input{
  width: 100%;
  font-size: 14px !important;
  line-height: 1.2 !important;
  min-height: var(--td-control-height) !important;
  padding: 8px 12px !important;
  border: 1px solid var(--td-border);
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

#guichet-reservations textarea{
  min-height: 110px !important;
}

#guichet-reservations input:focus,
#guichet-reservations select:focus,
#guichet-reservations textarea:focus,
#guichet-reservations .flatpickr-input:focus,
#guichet-reservations .td-date-input:focus{
  border-color: rgba(11, 94, 215, .55);
  box-shadow: 0 0 0 4px rgba(11, 94, 215, .12);
}

#guichet-reservations .is-invalid{
  border-color: var(--td-danger) !important;
  background: #fff5f5;
}

#guichet-reservations .td-help{
  color: var(--td-muted);
  font-size: 12px;
  margin-top: 6px;
}

#guichet-reservations .td-hp-wrap{
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#guichet-reservations .td-hp-wrap label,
#guichet-reservations .td-hp-wrap input{
  font-size: 1px !important;
  line-height: 1 !important;
}

#guichet-reservations .td-turnstile-field{
  margin: 14px 0 12px;
}

#guichet-reservations .td-turnstile-help{
  margin-bottom: 8px;
}

#guichet-reservations .td-turnstile-slot{
  min-height: 70px;
}

#guichet-reservations .td-turnstile-slot iframe{
  max-width: 100%;
}
#guichet-reservations .td-checkbox-card{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d9e2f0;
  border-radius: 14px;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#guichet-reservations .td-checkbox-card:hover{
  border-color: #b6c9ea;
  background: #f4f8ff;
}

#guichet-reservations .td-checkbox-card.is-checked{
  border-color: rgba(11, 94, 215, 0.45);
  background: #eef5ff;
  box-shadow: 0 0 0 4px rgba(11, 94, 215, .08);
}

#guichet-reservations .td-checkbox-card input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#guichet-reservations .td-checkbox-card__box{
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

#guichet-reservations .td-checkbox-card.is-checked .td-checkbox-card__box{
  border-color: var(--td-primary);
  background: var(--td-primary);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

#guichet-reservations .td-checkbox-card.is-checked .td-checkbox-card__box::after{
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#guichet-reservations .td-checkbox-card__content{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#guichet-reservations .td-checkbox-card__title{
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--td-text);
}

#guichet-reservations .td-checkbox-card__help{
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--td-muted);
}

#guichet-reservations .td-checkbox-note{
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

#guichet-reservations .td-checkbox-note strong{
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #334155;
}

#guichet-reservations .td-checkbox-note span{
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--td-muted);
}
/* =========================
   Flatpickr (date inputs)
   ========================= */
#guichet-reservations .td-date-input{
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
  cursor: pointer;
}

/* =========================
   Dynamic rows (espaces / matériels)
   ========================= */
#guichet-reservations .td-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  grid-template-rows: auto var(--td-control-height);
  gap: 6px 12px;
  margin-bottom: 10px;
  align-items: stretch;
}

#guichet-reservations .td-row > *{
  min-width: 0;
}

#guichet-reservations .td-row .td-field{
  display: contents;
  margin-bottom: 0;
}

#guichet-reservations .td-row > .td-field:nth-child(1) > label,
#guichet-reservations .td-row > .td-field:nth-child(1) > .td-help{
  grid-column: 1;
}

#guichet-reservations .td-row > .td-field:nth-child(1) > select,
#guichet-reservations .td-row > .td-field:nth-child(1) > input,
#guichet-reservations .td-row > .td-field:nth-child(1) > textarea,
#guichet-reservations .td-row > .td-field:nth-child(1) > .flatpickr-input,
#guichet-reservations .td-row > .td-field:nth-child(1) > .td-date-input{
  grid-column: 1;
  grid-row: 2;
}

#guichet-reservations .td-row > .td-field:nth-child(2) > label,
#guichet-reservations .td-row > .td-field:nth-child(2) > .td-help{
  grid-column: 2;
}

#guichet-reservations .td-row > .td-field:nth-child(2) > select,
#guichet-reservations .td-row > .td-field:nth-child(2) > input,
#guichet-reservations .td-row > .td-field:nth-child(2) > textarea,
#guichet-reservations .td-row > .td-field:nth-child(2) > .flatpickr-input,
#guichet-reservations .td-row > .td-field:nth-child(2) > .td-date-input{
  grid-column: 2;
  grid-row: 2;
}

#guichet-reservations .td-row .td-field label{
  display: block;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.2;
  align-self: end;
}

#guichet-reservations .td-row .td-field .td-help{
  grid-row: 3;
  margin-top: 4px;
}

#guichet-reservations .td-row > .td-btn,
#guichet-reservations .td-row > button,
#guichet-reservations .td-row > .btn,
#guichet-reservations .td-row > a.btn,
#guichet-reservations .td-row > input[type="button"],
#guichet-reservations .td-row > input[type="submit"]{
  grid-column: 3;
  grid-row: 2;
  align-self: stretch;
  margin: 0;
}

#guichet-reservations .td-row.td-row-dates{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important;
}

#guichet-reservations .td-row.td-row-espace{
  grid-template-columns: minmax(0, 1fr) auto;
}

#guichet-reservations .td-row.td-row-espace > .td-btn,
#guichet-reservations .td-row.td-row-espace > button,
#guichet-reservations .td-row.td-row-espace > .btn{
  grid-column: 2;
}

#guichet-reservations .td-row.td-row-espace .td-help{
  margin-top: 6px;
}

#guichet-reservations .td-espace-help-card{
  padding: 10px 12px;
  border: 1px solid #d8e3f3;
  border-radius: 12px;
  background: #f7fbff;
  color: #334155;
}

#guichet-reservations .td-espace-help-card__title{
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a8a;
}

#guichet-reservations .td-espace-help-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 6px;
}

#guichet-reservations .td-espace-help-card__links{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12.5px;
  margin-bottom: 6px;
}

#guichet-reservations .td-espace-help-card__links a{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #c7d7f2;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

#guichet-reservations .td-espace-help-card__links a:hover,
#guichet-reservations .td-espace-help-card__links a:focus{
  background: #edf4ff;
  border-color: #aec5ee;
  color: #1e40af;
  text-decoration: none;
}

#guichet-reservations .td-espace-help-card__description{
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--td-muted);
}

#guichet-reservations .td-espace-help-card__description p,
#guichet-reservations .td-espace-help-card__description ul,
#guichet-reservations .td-espace-help-card__description ol{
  margin: 0 0 6px;
}

#guichet-reservations .td-espace-help-card__description p:last-child,
#guichet-reservations .td-espace-help-card__description ul:last-child,
#guichet-reservations .td-espace-help-card__description ol:last-child{
  margin-bottom: 0;
}
/* Dedicated layout for matériels list */
#guichet-reservations .td-materiel-list{
  display: grid;
  gap: 14px;
}

#guichet-reservations .td-row.td-row-materiel{
  grid-template-columns: minmax(0, 1fr) 140px;
  grid-template-rows: none;
  gap: 12px 16px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid var(--td-border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 0;
}

#guichet-reservations .td-row.td-row-materiel > *{
  min-width: 0;
}

#guichet-reservations .td-row.td-row-materiel .td-field{
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

#guichet-reservations .td-row.td-row-materiel .td-materiel-info{
  justify-content: center;
}

#guichet-reservations .td-row.td-row-materiel .td-materiel-title{
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--td-text);
  margin: 0 0 4px;
}

#guichet-reservations .td-row.td-row-materiel .td-muted{
  margin: 0;
  font-size: 12px !important;
  line-height: 1.3;
}

#guichet-reservations .td-row.td-row-materiel .td-materiel-qty > label{
  margin-bottom: 6px;
}

#guichet-reservations .td-row.td-row-materiel .td-materiel-qty input[type="number"]{
  width: 100%;
}

/* =========================
   Buttons (base)
   ========================= */
#guichet-reservations button,
#guichet-reservations .btn,
#guichet-reservations a.btn,
#guichet-reservations input[type="button"],
#guichet-reservations input[type="submit"]{
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: var(--td-control-height);
  height: var(--td-control-height);
  padding: 0 16px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: transform .05s ease, filter .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

/* Primary */
#guichet-reservations .btn-primary,
#guichet-reservations .td-btn:not(.secondary):not(.danger),
#guichet-reservations [data-action="next"],
#guichet-reservations [data-action="submit"]{
  background: linear-gradient(135deg, var(--td-primary), var(--td-primary-2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(11, 94, 215, 0.14);
}

/* Secondary */
#guichet-reservations .btn-secondary,
#guichet-reservations .td-btn.secondary,
#guichet-reservations [data-action="recalc"],
#guichet-reservations [data-action="edit"]{
  background: #fff;
  color: var(--td-primary);
  border-color: rgba(11, 94, 215, 0.35);
  box-shadow: none;
}

/* Danger */
#guichet-reservations .btn-danger,
#guichet-reservations .td-btn.danger,
#guichet-reservations [data-action="delete"],
#guichet-reservations [data-del]{
  background: #fff;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.35);
  box-shadow: none;
}

#guichet-reservations button:hover,
#guichet-reservations .btn:hover{
  filter: brightness(1.02);
}

#guichet-reservations button:active,
#guichet-reservations .btn:active{
  transform: translateY(1px);
}

#guichet-reservations button:disabled,
#guichet-reservations .btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}



/* =========================
   Submission success
   ========================= */
#guichet-reservations .td-submit-success{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(21, 128, 61, 0.08);
}

#guichet-reservations .td-submit-success__title{
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  color: #15803d;
}

#guichet-reservations .td-submit-success__text{
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #14532d;
}

#guichet-reservations .td-submit-success__message{
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dcfce7;
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  font-size: 13px;
  line-height: 1.45;
  color: #166534;
}

#guichet-reservations .td-submit-success__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

/* =========================
   Summary
   ========================= */
#guichet-reservations .td-right .td-summary-title,
#guichet-reservations .td-right h2,
#guichet-reservations .td-right h3,
#guichet-reservations .td-right h4{
  font-size: 16px !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
}

#guichet-reservations .td-summary-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 12px !important;
  margin: 8px 0 12px;
}

#guichet-reservations .td-summary-table th,
#guichet-reservations .td-summary-table td{
  border-bottom: 1px solid var(--td-border);
  padding: 6px !important;
  text-align: left;
}

#guichet-reservations .td-kpi{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px !important;
  padding: 5px 0 !important;
  border-bottom: 1px dashed #e2e8f0;
}

#guichet-reservations .td-kpi:last-child{
  border-bottom: 0;
}

#guichet-reservations .td-muted{
  color: var(--td-muted);
  font-size: 11px !important;
}

#guichet-reservations .td-price-strike{
  display: inline-block;
  margin-right: 8px;
  color: var(--td-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

#guichet-reservations .td-price-free{
  display: inline-block;
  font-weight: 700;
}

/* =========================
   Loading overlay
   ========================= */
#guichet-reservations .td-loading-overlay{
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(1px);
  z-index: 50;
  border-radius: 20px;
  pointer-events: all;
}

#guichet-reservations .td-loading-overlay.is-active{
  display: flex;
}

#guichet-reservations .td-loading-spinner{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(26, 95, 214, 0.18);
  border-top-color: #1a5fd6;
  animation: td-spin .8s linear infinite;
}

#guichet-reservations .td-loading-text{
  font-size: 14px;
  font-weight: 600;
  color: #345;
}

#guichet-reservations.is-busy .td-left,
#guichet-reservations.is-busy .td-right{
  filter: grayscale(.08);
}

@keyframes td-spin{
  to{
    transform: rotate(360deg);
  }
}
  #guichet-reservations .td-checkbox-card{
    padding: 12px 14px;
  }

  #guichet-reservations .td-checkbox-card__title{
    font-size: 15px;
  }
/* =========================
   Responsive
   ========================= */
@media (max-width: 1100px){
  #guichet-reservations .td-layout{
    grid-template-columns: 1fr;
  }

  #guichet-reservations .td-right{
    position: static;
    top: auto;
  }
}

@media (max-width: 900px){
  .td-root.td-fullbleed .td-wrap{
    padding-left: 16px;
    padding-right: 16px;
  }

  #guichet-reservations .td-layout{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #guichet-reservations .td-sidebar{
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #guichet-reservations .td-card{
    border-radius: 16px;
  }
}

@media (max-width: 899px){
  #guichet-reservations .td-tabs{
    display: none;
  }

  #guichet-reservations .td-panel{
    padding: 12px;
  }

  #guichet-reservations .td-panel[hidden]{
    display: block;
  }

  #guichet-reservations .td-panel-body{
    display: none;
  }

  #guichet-reservations .td-panel.is-active .td-panel-body{
    display: block;
  }

  #guichet-reservations .td-panel-header{
    display: block;
  }

  #guichet-reservations .td-row,
  #guichet-reservations .td-row.td-row-dates{
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
    gap: 10px;
  }

  #guichet-reservations .td-row .td-field{
    display: block;
  }

  #guichet-reservations .td-row > .td-field:nth-child(1) > label,
  #guichet-reservations .td-row > .td-field:nth-child(1) > select,
  #guichet-reservations .td-row > .td-field:nth-child(1) > input,
  #guichet-reservations .td-row > .td-field:nth-child(1) > textarea,
  #guichet-reservations .td-row > .td-field:nth-child(1) > .flatpickr-input,
  #guichet-reservations .td-row > .td-field:nth-child(1) > .td-date-input,
  #guichet-reservations .td-row > .td-field:nth-child(2) > label,
  #guichet-reservations .td-row > .td-field:nth-child(2) > select,
  #guichet-reservations .td-row > .td-field:nth-child(2) > input,
  #guichet-reservations .td-row > .td-field:nth-child(2) > textarea,
  #guichet-reservations .td-row > .td-field:nth-child(2) > .flatpickr-input,
  #guichet-reservations .td-row > .td-field:nth-child(2) > .td-date-input,
  #guichet-reservations .td-row > .td-btn,
  #guichet-reservations .td-row > button,
  #guichet-reservations .td-row > .btn,
  #guichet-reservations .td-row > a.btn,
  #guichet-reservations .td-row > input[type="button"],
  #guichet-reservations .td-row > input[type="submit"]{
    grid-column: auto;
    grid-row: auto;
  }

  #guichet-reservations .td-row > button,
  #guichet-reservations .td-row > .btn,
  #guichet-reservations .td-row > .td-btn{
    justify-self: start;
  }

  #guichet-reservations .td-row.td-row-materiel{
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
    gap: 10px;
    padding: 12px;
  }

  #guichet-reservations .td-row.td-row-materiel .td-field{
    display: flex;
  }

  #guichet-reservations .td-row.td-row-materiel .td-materiel-qty{
    max-width: 160px;
  }

  #guichet-reservations .td-submit-success{
    padding: 18px 16px;
    border-radius: 16px;
  }

  #guichet-reservations .td-submit-success__title{
    font-size: 24px;
  }

  #guichet-reservations .td-submit-success__text{
    font-size: 15px;
  }

  #guichet-reservations .td-submit-success__actions .td-btn,
  #guichet-reservations .td-submit-success__actions button,
  #guichet-reservations .td-submit-success__actions .btn{
    width: 100%;
  }
}
