/* ───────────────────────────────────────────────────────────────────────────
   FICHIER : dashboard.css
   CHEMIN  : /var/www/cm-platform/frontend/modules/booking/css/dashboard/dashboard.css
   RÔLE    : base dashboard Booking, layout, formulaires, shortcodes, horaires,
             indisponibilités et rendez-vous
   ─────────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────── */
/* FICHIER : booking.css                                                       */
/* CHEMIN  : /var/www/cm-platform/frontend/modules/booking/booking.css          */
/* RÔLE    : Module Prise de rendez-vous - Dashboard créateur                  */
/*                                                                            */
/* CORRECTION DEMANDÉE :                                                       */
/* - Fenêtre de prévisualisation agrandie en modale interne.                  */
/* - Le bouton Agrandir n’ouvre plus une URL publique.                         */
/* - Prévisualisation agrandie non réservable via booking-public.js.           */
/* - Le rendu agrandi laisse booking-public.css gérer les dimensions réelles.  */
/* - Suppression des surcharges internes qui déformaient le calendrier.        */
/* - Conservation du design actuel du bloc de prévisualisation compact.        */
/* - Conservation des menus déroulants RDV / indisponibilités.                 */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-booking,
.cm-booking *{
  box-sizing:border-box;
}

.cm-booking{
  width:100%;
  color:var(--cm-text);
}

.cm-booking-loading,
.cm-booking-error{
  border:1px solid var(--cm-border);
  border-radius:18px;
  background:#fff;
  padding:18px;
  color:var(--cm-text-soft);
}

.cm-booking-error{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#b91c1c;
  background:#fff7f7;
  border-color:#fecaca;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 1. Hero module                                                              */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-booking-hero{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  padding:20px;
  border-radius:22px;
  border:1px solid #d8e4f2;
  background:
    radial-gradient(circle at 10% 0%, rgba(32,74,157,.14), transparent 34%),
    linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);
  box-shadow:var(--cm-shadow);
}

.cm-booking-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:8px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--cm-primary-soft);
  color:var(--cm-primary-dark);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.cm-booking-hero h2{
  margin:0;
  font-size:28px;
  line-height:1.05;
  letter-spacing:-.03em;
  color:var(--cm-text);
}

.cm-booking-hero p{
  max-width:620px;
  margin:8px 0 0;
  color:var(--cm-text-soft);
  font-size:14px;
  line-height:1.55;
}

.cm-booking-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  min-width:360px;
}

.cm-booking-stats div{
  border:1px solid var(--cm-border);
  border-radius:16px;
  background:#fff;
  padding:14px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  box-shadow:var(--cm-shadow-soft);
}

.cm-booking-stats strong{
  font-size:22px;
  line-height:1;
  color:var(--cm-primary-dark);
}

.cm-booking-stats span{
  font-size:12px;
  color:var(--cm-text-soft);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 2. Layout principal                                                         */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-booking-layout{
  display:grid;
  grid-template-columns:minmax(360px,.88fr) minmax(0,1.12fr);
  gap:14px;
  align-items:start;
}

.cm-booking-left,
.cm-booking-right{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}

.cm-booking-card{
  min-width:0;
  border:1px solid var(--cm-border);
  border-radius:20px;
  background:#fff;
  padding:18px;
  box-shadow:var(--cm-shadow);
}

.cm-booking-card--settings{
  padding:18px;
}

.cm-booking-card--compact{
  padding:16px 18px;
}

.cm-booking-card--preview{
  padding:18px;
  overflow:hidden;
}

.cm-booking-cardHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.cm-booking-cardHead h3{
  margin:0;
  font-size:20px;
  line-height:1.15;
  letter-spacing:-.02em;
}

.cm-booking-cardHead p{
  margin:5px 0 0;
  color:var(--cm-text-soft);
  font-size:13px;
  line-height:1.45;
}

.cm-booking-cardHead--preview{
  align-items:center;
}

.cm-booking-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#4338ca;
  font-size:11px;
  font-weight:900;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 3. Formulaires                                                              */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-booking-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.cm-booking-field{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-bottom:12px;
}

.cm-booking-field label{
  font-size:13px;
  font-weight:800;
  color:var(--cm-text);
}

.cm-booking-field input,
.cm-booking-field select,
.cm-booking-field textarea,
.cm-booking-hourRow input{
  width:100%;
  border:1px solid var(--cm-border);
  border-radius:14px;
  background:#fff;
  padding:11px 13px;
  color:var(--cm-text);
  outline:none;
}

.cm-booking-field input:focus,
.cm-booking-field select:focus,
.cm-booking-field textarea:focus,
.cm-booking-hourRow input:focus{
  border-color:#b9cfef;
  box-shadow:0 0 0 3px rgba(32,74,157,.08);
}

.cm-booking-field textarea{
  resize:vertical;
}

.cm-booking-two{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.cm-booking-muted{
  margin:0;
  color:var(--cm-text-soft);
  font-size:12px;
  line-height:1.4;
}

.cm-booking-muted a{
  color:var(--cm-primary);
  font-weight:800;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 4. Shortcodes                                                               */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-booking-card--shortcodes .cm-booking-field{
  margin-bottom:10px;
}

.cm-booking-copyLine{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}

.cm-booking-copyLine input{
  min-width:0;
  border:1px solid var(--cm-border);
  border-radius:14px;
  background:#fff;
  padding:10px 12px;
  color:var(--cm-text);
  outline:none;
  font-size:12px;
}

.cm-booking-copyLine button,
.cm-booking-blockForm button,
.cm-booking-listItem button{
  border:1px solid var(--cm-primary);
  background:var(--cm-primary);
  color:#fff;
  border-radius:14px;
  padding:10px 13px;
  cursor:pointer;
  font-weight:800;
}

.cm-booking-listItem button{
  border-color:#d8e4f2;
  background:#fff;
  color:var(--cm-text);
}

.cm-booking-copyLine--readonly{
  grid-template-columns:minmax(0,1fr);
}

.cm-booking-copyLine--textarea{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:stretch;
}

.cm-booking-copyLine--textarea textarea{
  width:100%;
  min-width:0;
  min-height:142px;
  border:1px solid var(--cm-border);
  border-radius:14px;
  background:#fff;
  padding:12px 13px;
  color:var(--cm-text);
  outline:none;
  font-family:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size:12px;
  line-height:1.55;
  resize:vertical;
  white-space:pre;
  overflow:auto;
}

.cm-booking-copyLine--textarea textarea:focus{
  border-color:#b9cfef;
  box-shadow:0 0 0 3px rgba(32,74,157,.08);
}

.cm-booking-copyLine--textarea button{
  align-self:stretch;
  min-width:108px;
}

.cm-booking-urlBox{
  margin-top:14px;
  padding:14px;
  border:1px solid #dbe7f5;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);
}

.cm-booking-urlBox--html{
  background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
  border-color:#d8e4f2;
}

.cm-booking-urlBox > div:first-child{
  margin-bottom:10px;
}

.cm-booking-urlBox strong{
  display:block;
  font-size:14px;
  color:var(--cm-text);
  margin-bottom:3px;
}

.cm-booking-urlBox span{
  display:block;
  font-size:12px;
  color:var(--cm-text-soft);
}

.cm-booking-urlBox--html .cm-booking-muted{
  margin-top:9px;
}

.cm-booking-tip{
  margin-top:14px;
  padding:14px;
  border:1px solid #cfe0f5;
  border-radius:16px;
  background:#f4f8ff;
}

.cm-booking-tip strong{
  display:block;
  margin-bottom:6px;
  color:var(--cm-primary-dark);
  font-size:14px;
}

.cm-booking-tip p{
  margin:0 0 10px;
  color:var(--cm-text-soft);
  font-size:12.5px;
  line-height:1.55;
}

.cm-booking-tip p:last-child{
  margin-bottom:0;
}

.cm-booking-tip p span{
  display:block;
  margin-top:4px;
  color:var(--cm-text);
  font-size:12px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.cm-booking-notice{
  margin-top:10px;
  border:1px solid rgba(34,197,94,.24);
  border-radius:14px;
  background:rgba(34,197,94,.10);
  padding:10px 12px;
  color:#15803d;
  font-size:13px;
  font-weight:800;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 5. Personnalisation formulaire public                                       */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-booking-customization{
  margin:4px 0 10px;
  padding:16px;
  border:1px solid #dbe7f5;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);
}

.cm-booking-sectionTitle{
  margin-bottom:14px;
}

.cm-booking-sectionTitle h4{
  margin:0;
  color:var(--cm-text);
  font-size:17px;
  line-height:1.2;
  font-weight:900;
}

.cm-booking-sectionTitle p{
  margin:6px 0 0;
  color:var(--cm-text-soft);
  font-size:13px;
  line-height:1.45;
}

.cm-booking-planNotice{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin:4px 0 12px;
  padding:14px;
  border:1px solid #dbe7f5;
  border-radius:16px;
  background:#f8fbff;
}

.cm-booking-planNotice strong{
  color:var(--cm-text);
  font-size:14px;
  font-weight:900;
}

.cm-booking-planNotice span{
  color:var(--cm-text-soft);
  font-size:12.5px;
  line-height:1.45;
}

.cm-booking-planNotice--premium{
  margin-top:12px;
  background:#fff8f1;
  border-color:#fed7aa;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 6. Logo                                                                     */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-booking-logoUploader{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:14px;
  padding:14px;
  border:1px solid #dbe7f5;
  border-radius:16px;
  background:#fff;
}

.cm-booking-logoUploaderTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.cm-booking-logoUploaderTop label{
  display:block;
  margin-bottom:5px;
  color:var(--cm-text);
  font-size:13px;
  font-weight:900;
}

.cm-booking-logoPreview{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:84px;
  padding:12px;
  border:1px dashed #bfd2eb;
  border-radius:14px;
  background:#f8fbff;
}

.cm-booking-logoPreview img{
  display:block;
  max-width:180px;
  max-height:72px;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:10px;
}

.cm-booking-logoActions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.cm-booking-logoImportBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  border:1px solid var(--cm-primary);
  border-radius:14px;
  background:var(--cm-primary);
  color:#fff;
  padding:10px 14px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.cm-booking-logoImportBtn input{
  display:none;
}

.cm-booking-logoRemoveBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  border:1px solid #dbe7f5;
  border-radius:14px;
  background:#fff;
  color:var(--cm-text);
  padding:10px 14px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.cm-booking-logoNotice{
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
  font-weight:850;
  line-height:1.45;
}

.cm-booking-logoNotice.is-success{
  border:1px solid rgba(34,197,94,.24);
  background:rgba(34,197,94,.10);
  color:#15803d;
}

.cm-booking-logoNotice.is-error{
  border:1px solid rgba(239,68,68,.24);
  background:rgba(239,68,68,.10);
  color:#b91c1c;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 7. Horaires                                                                 */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-booking-hours{
  border-top:1px dashed var(--cm-border);
  padding-top:14px;
}

.cm-booking-hours h4{
  margin:0 0 5px;
  font-size:16px;
}

.cm-booking-hours > p{
  margin:0 0 12px;
  color:var(--cm-text-soft);
  font-size:13px;
  line-height:1.5;
}

.cm-booking-hourRow{
  display:grid;
  grid-template-columns:118px minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin-bottom:10px;
  padding:10px;
  border:1px solid #edf2f8;
  border-radius:16px;
  background:#fbfdff;
}

.cm-booking-check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:800;
}

.cm-booking-check input{
  width:auto;
}

.cm-booking-hourRange{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:8px;
  align-items:center;
}

.cm-booking-hourRange span{
  color:var(--cm-text-soft);
}

.cm-booking-custom{
  grid-column:2 / -1;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 8. Indisponibilités + rendez-vous                                           */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-booking-blockForm{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  margin-bottom:12px;
}

.cm-booking-blockForm input{
  width:100%;
  border:1px solid var(--cm-border);
  border-radius:14px;
  background:#fff;
  padding:11px 13px;
  color:var(--cm-text);
  outline:none;
}

.cm-booking-list{
  display:flex;
  flex-direction:column;
  gap:9px;
}

.cm-booking-list--scroll{
  max-height:360px;
  overflow:auto;
  padding-right:4px;
}

.cm-booking-list--appointments{
  max-height:460px;
}

.cm-booking-listItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid #edf2f8;
  border-radius:16px;
  background:#fbfdff;
  padding:12px;
}

.cm-booking-listItem strong{
  display:block;
  margin-bottom:3px;
  font-size:14px;
}

.cm-booking-listItem span{
  display:block;
  color:var(--cm-text-soft);
  font-size:12px;
}

.cm-booking-listItem small{
  display:block;
  margin-top:4px;
  color:#475569;
  font-size:12px;
  line-height:1.35;
}

.cm-booking-empty{
  border:1px dashed var(--cm-border-strong);
  border-radius:16px;
  background:var(--cm-surface-soft);
  padding:16px;
  color:var(--cm-text-soft);
  font-size:13px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* 8.1 Accordéons listes                                                       */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-booking-accordion{
  margin-top:12px;
  border:1px solid #dbe7f5;
  border-radius:16px;
  background:#f8fbff;
  overflow:hidden;
}

.cm-booking-accordionSummary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 14px;
  cursor:pointer;
  color:var(--cm-text);
  font-size:13px;
  font-weight:900;
  user-select:none;
}

.cm-booking-accordionSummary::-webkit-details-marker{
  display:none;
}

.cm-booking-accordionSummary strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:10px;
  background:#ffffff;
  border:1px solid #dbe7f5;
  color:var(--cm-primary-dark);
  transition:transform .18s ease;
}

.cm-booking-accordion[open] .cm-booking-accordionSummary strong{
  transform:rotate(180deg);
}

.cm-booking-accordion .cm-booking-list{
  padding:0 12px 12px;
}

/* ─────────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────── */
/* 8.2 Modale rendez-vous depuis notification                                  */
/* ─────────────────────────────────────────────────────────────────────────── */

.cm-booking-secondaryBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  border:1px solid #d8e4f2;
  border-radius:13px;
  background:#fff;
  color:var(--cm-primary-dark);
  padding:9px 13px;
  cursor:pointer;
  font-size:13px;
  font-weight:900;
}

.cm-booking-secondaryBtn:hover{
  border-color:var(--cm-primary);
  background:#f4f8ff;
}

.cm-booking-secondaryBtn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.cm-booking-appointmentsModal{
  position:fixed;
  inset:0;
  z-index:99980;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.cm-booking-appointmentsModalBackdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(5px);
}

.cm-booking-appointmentsModalPanel{
  position:relative;
  z-index:2;
  display:flex;
  width:min(980px, calc(100vw - 48px));
  max-height:calc(100vh - 48px);
  overflow:hidden;
  flex-direction:column;
  border:1px solid #d8e4f2;
  border-radius:26px;
  background:#fff;
  box-shadow:0 28px 80px rgba(15,23,42,.24);
}

.cm-booking-appointmentsModalClose{
  position:absolute;
  top:16px;
  right:16px;
  z-index:3;
  width:42px;
  height:42px;
  border:1px solid #d8e4f2;
  border-radius:15px;
  background:#fff;
  color:var(--cm-text);
  cursor:pointer;
  font-size:28px;
  line-height:1;
  font-weight:700;
}

.cm-booking-appointmentsModalHead{
  padding:26px 78px 20px 26px;
  border-bottom:1px solid #e8eef7;
  background:linear-gradient(180deg,#fff 0%, #f8fbff 100%);
}

.cm-booking-appointmentsModalHead span{
  display:inline-flex;
  margin-bottom:8px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--cm-primary-soft);
  color:var(--cm-primary-dark);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.cm-booking-appointmentsModalHead h3{
  margin:0;
  color:var(--cm-text);
  font-size:26px;
  line-height:1.08;
  letter-spacing:-.03em;
}

.cm-booking-appointmentsModalHead p{
  max-width:660px;
  margin:8px 0 0;
  color:var(--cm-text-soft);
  font-size:14px;
  line-height:1.5;
}

.cm-booking-appointmentsModalBody{
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:auto;
  padding:18px 22px;
  background:#fff;
}

.cm-booking-appointmentRecap{
  display:grid;
  gap:14px;
  border:1px solid #dbe7f5;
  border-radius:20px;
  background:#fbfdff;
  padding:16px;
}

.cm-booking-appointmentRecap.is-highlighted{
  border-color:var(--cm-primary);
  background:linear-gradient(180deg,#fff 0%, #f4f8ff 100%);
  box-shadow:0 18px 42px rgba(32,74,157,.14);
}

.cm-booking-appointmentRecapTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.cm-booking-appointmentRecapTop strong{
  display:block;
  margin-bottom:3px;
  color:var(--cm-text);
  font-size:18px;
  font-weight:950;
}

.cm-booking-appointmentRecapTop span{
  display:inline-flex;
  color:var(--cm-primary-dark);
  font-size:14px;
  font-weight:900;
}

.cm-booking-appointmentRecapTop em{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:#e0f2fe;
  color:#075985;
  font-size:11px;
  font-style:normal;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.cm-booking-appointmentRecap.is-highlighted .cm-booking-appointmentRecapTop em{
  background:var(--cm-primary);
  color:#fff;
}

.cm-booking-appointmentRecapGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.cm-booking-appointmentRecapGrid div,
.cm-booking-appointmentRecapNote{
  min-width:0;
  border:1px solid #edf2f8;
  border-radius:15px;
  background:#fff;
  padding:11px;
}

.cm-booking-appointmentRecapGrid span,
.cm-booking-appointmentRecapNote span{
  display:block;
  margin-bottom:5px;
  color:var(--cm-text-soft);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.cm-booking-appointmentRecapGrid strong{
  display:block;
  color:var(--cm-text);
  font-size:13px;
  font-weight:900;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.cm-booking-appointmentRecapNote p{
  margin:0;
  color:#475569;
  font-size:13px;
  line-height:1.5;
}

.cm-booking-appointmentRecapActions,
.cm-booking-appointmentsModalFooter{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.cm-booking-appointmentRecapActions button{
  border:1px solid #fecaca;
  border-radius:13px;
  background:#fff7f7;
  color:#b91c1c;
  padding:9px 13px;
  cursor:pointer;
  font-size:13px;
  font-weight:900;
}

.cm-booking-appointmentsModalFooter{
  align-items:center;
  padding:16px 22px;
  border-top:1px solid #e8eef7;
  background:#f8fbff;
}

.cm-booking-appointmentsModalFooter button{
  min-height:40px;
  border:1px solid #d8e4f2;
  border-radius:14px;
  background:#fff;
  color:var(--cm-text);
  padding:10px 14px;
  cursor:pointer;
  font-size:13px;
  font-weight:900;
}

.cm-booking-appointmentsModalFooter button:last-child{
  border-color:var(--cm-primary);
  background:var(--cm-primary);
  color:#fff;
}
/* ──────────────────────────────────────────────────────────────────────────────
   4.1 Intégration et partage - correction boutons
   IMPORTANT :
   - Empêche les boutons "Copier le code" de prendre toute la hauteur du textarea.
   - Donne un rendu SaaS propre aux actions Email / SMS / WhatsApp / Messenger.
   - Ne modifie pas la logique JavaScript.
   ────────────────────────────────────────────────────────────────────────────── */

.cm-booking-card--shortcodes .cm-booking-copyLine--textarea{
  grid-template-columns:minmax(0,1fr) 154px;
  align-items:start;
}

.cm-booking-card--shortcodes .cm-booking-copyLine--textarea textarea{
  min-height:132px;
  max-height:190px;
}

.cm-booking-card--shortcodes .cm-booking-copyLine--textarea button{
  align-self:start;
  width:154px;
  min-width:154px;
  height:44px;
  min-height:44px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  border-radius:14px;
  font-size:13px;
  line-height:1;
}

.cm-booking-card--shortcodes .cm-booking-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:10px;
}

.cm-booking-card--shortcodes .cm-booking-miniButton{
  min-height:38px;
  padding:9px 13px;
  border:1px solid #d8e4f2;
  border-radius:12px;
  background:#fff;
  color:var(--cm-primary);
  font-size:13px;
  font-weight:850;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.cm-booking-card--shortcodes .cm-booking-miniButton:hover{
  border-color:#b9cfef;
  background:#f8fbff;
}

@media (max-width:760px){
  .cm-booking-card--shortcodes .cm-booking-copyLine--textarea{
    grid-template-columns:1fr;
  }

  .cm-booking-card--shortcodes .cm-booking-copyLine--textarea button{
    width:100%;
    min-width:0;
  }

  .cm-booking-card--shortcodes .cm-booking-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cm-booking-card--shortcodes .cm-booking-miniButton{
    width:100%;
  }
}

@media (max-width:460px){
  .cm-booking-card--shortcodes .cm-booking-actions{
    grid-template-columns:1fr;
  }
}

/* ──────────────────────────────────────────────────────────────────────────────
   4.2 Intégration web - blocs de code compacts
   Objectif :
   - Réduire la hauteur des zones de code.
   - Éviter le gros décalage visuel avec les boutons Copier.
   - Garder les scrollbars utiles pour les codes HTML longs.
   ────────────────────────────────────────────────────────────────────────────── */

.cm-booking-card--shortcodes .cm-booking-copyLine--textarea{
  grid-template-columns:minmax(0,1fr) 154px;
  align-items:center;
  gap:10px;
}

.cm-booking-card--shortcodes .cm-booking-copyLine--textarea textarea{
  min-height:96px;
  height:96px;
  max-height:112px;
  resize:vertical;
  font-size:12px;
  line-height:1.45;
}

.cm-booking-card--shortcodes .cm-booking-copyLine--textarea button{
  align-self:center;
  height:44px;
  min-height:44px;
  max-height:44px;
}

.cm-booking-card--shortcodes .cm-booking-field{
  margin-bottom:12px;
}

.cm-booking-card--shortcodes .cm-booking-field label{
  margin-bottom:6px;
}

.cm-booking-card--shortcodes .cm-booking-muted{
  margin:4px 0 8px;
}

@media (max-width:760px){
  .cm-booking-card--shortcodes .cm-booking-copyLine--textarea{
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .cm-booking-card--shortcodes .cm-booking-copyLine--textarea textarea{
    height:104px;
    min-height:104px;
  }

  .cm-booking-card--shortcodes .cm-booking-copyLine--textarea button{
    width:100%;
  }
}

/* ──────────────────────────────────────────────────────────────────────────────
   4.3 Partage du lien - alignement bouton Copier
   Objectif :
   - Aligner "Copier le lien" sur le même style que "Copier le code".
   - Éviter un bouton trop large / trop haut dans le bloc de partage.
   ────────────────────────────────────────────────────────────────────────────── */

.cm-booking-card--shortcodes .cm-booking-urlBox > .cm-booking-copyLine:not(.cm-booking-copyLine--textarea){
  grid-template-columns:minmax(0,1fr) 154px;
  align-items:center;
  gap:10px;
}

.cm-booking-card--shortcodes .cm-booking-urlBox > .cm-booking-copyLine:not(.cm-booking-copyLine--textarea) button{
  width:154px;
  min-width:154px;
  height:44px;
  min-height:44px;
  max-height:44px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  border-radius:14px;
  font-size:13px;
  line-height:1;
}

.cm-booking-card--shortcodes .cm-booking-urlBox > .cm-booking-copyLine:not(.cm-booking-copyLine--textarea) input{
  height:44px;
  min-height:44px;
}

@media (max-width:760px){
  .cm-booking-card--shortcodes .cm-booking-urlBox > .cm-booking-copyLine:not(.cm-booking-copyLine--textarea){
    grid-template-columns:1fr;
  }

  .cm-booking-card--shortcodes .cm-booking-urlBox > .cm-booking-copyLine:not(.cm-booking-copyLine--textarea) button{
    width:100%;
    min-width:0;
  }
}
