.mrh-v4-wrapper {
  max-width: 1120px;
  margin: 1.5rem auto;
  padding: 0 1rem 2rem;
  font-family: inherit;
}

.mrh-banner {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.25rem;
}

.mrh-banner-intro h1,
.mrh-banner-welcome h1 {
  margin-top: 0;
  font-size: 1.6rem;
}

.mrh-lead {
  font-size: 1.05rem;
  color: #333;
}

.mrh-banner-register h2,
.mrh-banner-address h2,
.mrh-banner-sharecart h2,
.mrh-banner-invoice h2,
.mrh-banner-mobile-info h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.mrh-free-tag {
  background: #ffe66d;
  color: #c21807;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.mrh-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mrh-row label {
  flex: 1 1 160px;
}

.mrh-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.mrh-form input {
  margin-top: 0.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.mrh-btn-primary,
.mrh-btn-secondary,
.mrh-btn-whatsapp {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
}

.mrh-btn-primary {
  background: #ff2e88;
  color: #fff;
}

.mrh-btn-secondary {
  background: #4a6cf7;
  color: #fff;
}

.mrh-btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.mrh-btn-primary:hover,
.mrh-btn-secondary:hover,
.mrh-btn-whatsapp:hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.mrh-status {
  margin-top: 0.4rem;
  min-height: 1.1rem;
  font-size: 0.9rem;
  color: #333;
}

.mrh-small {
  font-size: 0.9rem;
  color: #555;
}

.mrh-client-tags p {
  margin: 0.15rem 0;
}

.mrh-tag-highlight {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffe66d;
  color: #c21807;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.mrh-code-inline {
  font-weight: 700;
}

.mrh-address-box {
  border-radius: 10px;
  background: #f7f9ff;
  padding: 0.9rem 1rem;
  border: 1px solid #e0e5ff;
  margin-bottom: 0.7rem;
}

.mrh-amount-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 0.7rem 0 1rem;
}

#mrh_amount_display,
#mrh_amount_display_invoice {
  width: 100%;
  max-width: 280px;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: 600;
}

.mrh-gif-placeholder {
  border-radius: 12px;
  border: 1px dashed #ccc;
  padding: 1.2rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  background: #fcfcfc;
}

.mrh-assistance ul {
  padding-left: 1.2rem;
}

.mrh-assistance li {
  margin-bottom: 0.25rem;
}

.mrh-embed-hub {
  margin-top: 0.7rem;
}

/* Étape 1 Share-A-Cart : réduire la hauteur du textarea */
#mre_shareacart_link {
  min-height: 80px !important;
  height: 80px !important;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Masquer le titre interne trop grand dans le hub existant si besoin */
#mre_hub h2:first-of-type {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .mrh-banner {
    padding: 1.2rem 1rem;
  }
}
.mrh-banner {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.5rem; /* au lieu de 1.25rem si tu veux plus d’air */
}
@media (max-width: 768px) {

  .mrh-container {
    padding: 1rem 0.75rem;
  }

  .mrh-banner {
    padding: 1.2rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
  }

  .mrh-banner h1 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .mrh-lead {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .mrh-small {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .mrh-client-tags p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .mrh-tag-highlight {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.9rem;
  }

  /* Champs de formulaire plein écran mobile */
  .mrh-form-row,
  .mrh-form-row input,
  .mrh-form-row select {
    width: 100%;
  }

  .mrh-form-row input,
  .mrh-form-row select {
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
  }

  .mrh-form-row label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
  }

  .mrh-btn,
  .mrh-btn-primary,
  .mrh-btn-whatsapp {
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }

  /* Textarea Share-A-Cart plus compact */
  #mre_shareacart_link {
    min-height: 70px !important;
    height: 70px !important;
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .mrh-banner-after-register {
    border: 2px solid #ffe66d;
    background: #fffdf3;
  }

  .mrh-banner-after-register h2 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .mrh-gif-placeholder {
    margin-top: 0.7rem;
    padding: 1rem;
    font-size: 0.85rem;
  }
}
/* Re-ordonne les bannières sur mobile pour les NON inscrits */
@media (max-width: 768px) {

  /* On transforme le wrapper en flex-column */
  .mrh-nonrelay-mobile {
    display: flex;
    flex-direction: column;
  }

  /* Par défaut, toutes les bannières gardent leur ordre naturel */
  .mrh-nonrelay-mobile .mrh-banner {
    order: 10;
  }

  /* Le bloc "Après votre inscription…" remonte tout en haut */
  .mrh-nonrelay-mobile .mrh-banner-after-register {
    order: 1;
  }

  /* Le bloc d’intro juste après (si tu veux) */
  .mrh-nonrelay-mobile .mrh-banner-intro {
    order: 2;
  }

  /* Le formulaire d’inscription vient ensuite */
  .mrh-nonrelay-mobile .mrh-banner-register {
    order: 3;
  }
}
/* ===== Bandeau promo Relay Hub – AR/FR ===== */
/* Bandeau promo Mattajirs sous le GIF */
.mattajirs-promo-strip {
  margin: 10px auto 0;
  max-width: 1120px;          /* comme ton contenu principal */
  background: #fff3c4;        /* jaune pâle */
  border-radius: 12px;
  padding: 6px 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.mattajirs-promo-strip-inner {
  display: inline-block;
  white-space: nowrap;
  animation: mattajirsPromoScroll 26s linear infinite;
  font-size: 0.9rem;
  font-weight: 500;
  color: #8a4b00;
}

/* Pour que l’arabe reste lisible même dans une phrase mixte */
.mattajirs-promo-ar {
  font-weight: 600;
}

/* Animation du défilement */
@keyframes mattajirsPromoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile : bandeau plus compact */
@media (max-width: 768px) {
  .mattajirs-promo-strip {
    margin-top: 6px;
    padding: 5px 8px;
  }

  .mattajirs-promo-strip-inner {
    font-size: 0.8rem;
  }
}
