html.rr-modal-open,
body.rr-modal-open {
  overflow: hidden !important;
}


/* Wrapper réservation */
.rr-reservation {
  display: inline-block;

  /* espace avec le bouton existant */
}

.rr-cta-wrapper .rr-btn.btn:not(.btn-border):hover,
.rr-cta-wrapper .rr-btn.btn:not(.btn-border):focus,
.rr-cta-wrapper .rr-btn.btn:not(.btn-border):active {
  background-color: #8B2B3B !important;
  border-color: #8B2B3B !important;
  color: #ffffff !important;
}

.rr-cta-wrapper a.rr-btn:hover {
  background-color: #8B2B3B !important;
}

.rr-cta-wrapper .rr-btn.btn {
  background-image: none !important;
}

.rr-cta-wrapper {
  display: flex !important;

  flex-direction: column;
  gap: 1rem;
  width: 240px;
  margin: auto;
  border: 1 px solid pink;
  position: relative !important;
  opacity: 1 !important;
  visibility: 1 !important;

}

.rr-cta-wrapper a {}

.rr-cta-wrapper .btn {
  width: 240px !important;
  border-radius: 50rem !important;
}


/* --------------------
   Base modal
-------------------- */
/* ==========================================================
   CTA RÉSERVATION (slider)
========================================================== */

/* Wrapper du bouton injecté */
.rr-reservation {
  display: inline-block;
}

/* Bouton réservation */
.rr-btn {
  white-space: nowrap;
}

/* Wrapper CTA (bouton existant + réservation) */
.rr-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 240px;
  margin: 0 auto;
}

/* Uniformisation des boutons */
.rr-cta-wrapper .btn {
  width: 100%;
  border-radius: 50rem;
}

/* ==========================================================
   MODAL
========================================================== */

.rr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.rr-modal.active {
  display: block;
}

/* Overlay */
.rr-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* 🔑 CONTENEUR SCROLLABLE */
.rr-modal-content {
  position: relative;

  /* largeur maîtrisée */
  width: auto !important;
  max-width: 560px !important;
  min-width: 0 !important;

  /* centrage */
  margin: 20px auto;

  /* hauteur maîtrisée */
  max-height: calc(100vh - 40px);
  overflow-y: auto;

  /* style */
  padding: 24px;
  background: #ffffff;
  border-radius: 8px;
  box-sizing: border-box;
}





/* Bouton fermeture */
.rr-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}


/* ==========================================================
   BLOCKS (cards légères)
========================================================== */


.rr-block {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

h3.rr-block-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 7px !important;
  background-color: #8B2B3B;
  color: white;
  text-align: center;
}

.rr-modal-notice {
  margin: 6px 0 14px;
  font-size: 14px;
  color: #8B2B3B;
  line-height: 1.4;
}

/* ==========================================================
   GRID
========================================================== */

.rr-grid {
  display: grid;
  gap: 12px;
}

.rr-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.rr-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

  .rr-grid-2,
  .rr-grid-3 {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   FIELDS
========================================================== */

.rr-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.rr-field label {
  font-size: 13px;
  margin-bottom: 4px;
  color: #333;
}

.rr-field input,
.rr-field select,
.rr-field textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
}

.rr-field select {
  padding: 11px 10px;
}

/* Focus propre, sobre */
.rr-field input:focus,
.rr-field select:focus,
.rr-field textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: none;
}


/* ==========================================================
   ERREURS
========================================================== */

.rr-error {
  display: none;
  margin-bottom: 12px;
  font-size: 14px;
  color: #b00020;
}


/* ==========================================================
   SUBMIT
========================================================== */

.rr-submit {
  margin-top: 8px;
  border-radius: 50rem;
}