/**
 * =============================================================
 * mimo-jetbooking.css
 * =============================================================
 * Styles pour les templates override JetBooking :
 *  - jet-booking/form-field-separate.php  (dates arrivée/départ)
 *  - jet-booking/form-fields/guests-field.php  (personnes + distribution)
 *
 * Ces classes s'appliquent au formulaire WooCommerce JetBooking
 * (page produit chambre) ET dans le widget Elementor.
 * =============================================================
 */

/* =============================================================
   ORDRE DES CHAMPS .jet-booking-form (flexbox column)
   Objectif : Dates - Nb personnes - Distribution - Email - Services
   ============================================================= */
.jet-booking-form {
  display: flex;
  flex-direction: column;
}

/* 1. Dates arrive / depart */
.jet-booking-form .jet-abaf-product-check-in-out { order: 1; }

/* 2. Nombre de personnes (Guests select) */
.jet-booking-form .jet-abaf-product-guests       { order: 2; }

/* 3. Section distribution (injectée via hook PHP) */
.jet-booking-form #mimo-distribution             { order: 3; }

/* 4. E-mail */
.jet-booking-form .jet-abaf-product-user-email   { order: 4; }

/* 5. Champs supplémentaires (attributs, services) à tout le reste */
.jet-booking-form > *                            { order: 9; }

/* Total JetBooking */
.jet-booking-form .jet-abaf-product-total        { order: 10; }
.jet-booking-form button.single_add_to_cart_button  { order: 12; }


.mimo-checkinout {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.mimo-checkinout__field {
  flex: 1 1 140px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mimo-checkinout__label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 2px;
}

.mimo-checkinout__icon {
  display: flex;
  align-items: center;
  color: #1f5a4a;   /* Couleur principale Mimo Voyages */
  flex-shrink: 0;
}
.mimo-checkinout__control {
  position: relative;
}

.mimo-checkinout__input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 0.03em;
}

.mimo-checkinout__input:hover {
  border-color: #1f5a4a;
}

.mimo-checkinout__input:focus,
.mimo-checkinout__input.active {
  border-color: #1f5a4a;
  box-shadow: 0 0 0 3px rgba(31, 90, 74, 0.12);
  outline: none;
}

.mimo-checkinout__input:not(:placeholder-shown):not([value=""]) {
  border-color: #1f5a4a;
  background: #f0f9f6;
}

.mimo-checkinout__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;   /* aligner verticalement avec les inputs */
  color: #9ca3af;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .mimo-checkinout {
    flex-direction: column;
    gap: 12px;
  }
  .mimo-checkinout__arrow {
    display: none;
  }
  .mimo-checkinout__field {
    flex: 1 1 100%;
  }
}

.mimo-checkinout__nights {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #f0f9f6;
  border: 1.5px solid #1f5a4a;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f5a4a;
  white-space: nowrap;
  margin-bottom: 2px;  /* aligner avec les inputs */
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.mimo-checkinout__nights-count {
  font-size: 1rem;
}

.mimo-checkinout__nights-label {
  font-weight: 500;
  opacity: 0.8;
}

.mimo-checkinout .date-picker-wrapper {
  z-index: 9999;
}

/* Arrondir  le popover du calendrier */
.mimo-checkinout .date-picker-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.jet-abaf-product-check-in-out .jet-abaf-separate-fields .jet-abaf-separate-field__inline:first-child+.jet-abaf-separate-field__inline {
    padding-left: 5px;
    padding-top: 5px;
}

/* =============================================================
   SECTION GUESTS  guests-field.php override
   ============================================================= */

.mimo-guests {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.mimo-guests__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.mimo-guests__label-icon {
  display: flex;
  align-items: center;
  color: #1f5a4a;
  flex-shrink: 0;
}

.mimo-guests__select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: auto;
}

.mimo-guests__select:hover { border-color: #1f5a4a; }
.mimo-guests__select:focus {
  border-color: #1f5a4a;
  box-shadow: 0 0 0 3px rgba(31, 90, 74, 0.12);
  outline: none;
}

.mimo-guests__distribution {
  background: #eef7f3;
  border: 1.5px solid #d1e8e3;
  border-radius: 10px;
  padding: 5px;
  animation: mimoSlideDown 0.25s ease;
}

@keyframes mimoSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mimo-guests__distribution-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a1a1a1;
  margin: 0 0 12px;
}

.mimo-guests__distribution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 400px) {
  .mimo-guests__distribution-grid { grid-template-columns: 1fr; }
}

.mimo-guests__dist-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mimo-guests__dist-label,
.jet-abaf-product-check-in-out .jet-abaf-separate-fields .jet-abaf-separate-field__inline .jet-abaf-separate-field__label,
.jet-booking-form label,
h5.jet-abaf-product-services-heading,
.jet_abaf_guests {
  display: flex;
  /*flex-direction: column;*/
  gap: 1px;
  font-size: var(--e-global-typography-00ea727-font-size);
  font-weight: 400;
  line-height: var(--e-global-typography-00ea727-line-height);
  letter-spacing: var(--e-global-typography-00ea727-letter-spacing);
  color: var(--e-global-color-536684f) !important;
}

.mimo-guests__dist-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: #9ca3af;
}

.mimo-guests__dist-input {
  padding: 8px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.mimo-guests__dist-input:hover  { border-color: #1f5a4a; }
.mimo-guests__dist-input:focus  {
  border-color: #1f5a4a;
  box-shadow: 0 0 0 3px rgba(31, 90, 74, 0.12);
  outline: none;
}

.jet-abaf-product-check-in-out .jet-abaf-separate-fields .jet-abaf-separate-field__inline{
  padding: 5px;
  background-color: #eef7f3;
  border-radius: 8px;
  max-width: 48% !important;
}
.jet-abaf-product-guests.form-field.mimo-guests-wrap,
.jet-abaf-product-user-email.form-field,
.jet-abaf-product-services{
  padding: 5px;
  background-color: #eef7f3;
  border-radius: 8px;
}
.mimo-guests__distribution,
.jet-abaf-product-services{
 margin-bottom: 12px;
}

.jet-abaf-product-check-in-out .jet-abaf-separate-fields {
    gap: 8px;
    justify-content: space-between;
}
.mimo-guests__dist-banner {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.jet-abaf-product-services .form-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.jet-abaf-product-services .woocommerce-Price-amount {
    margin-left: auto;
    color: #1f5a4a;
    font-weight: 700;
    white-space: nowrap;
}
.jet-abaf-product-total{
  flex-direction: column;
}
.jet-abaf-product-total .mimo-total-line{
  color : #1f5a4a;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  width: 100%;
} 
.jet-abaf-product-total .mimo-reduction-line{
  color : #F06930;
  display: flex;
  justify-content: space-between;
  width: 100%;
} 
.jet-abaf-product-total .mimo-reduction-line .mimo-reduction-line__label{
  font-size: 14px;
}
.jet-abaf-product-total .jet-abaf-product-total__price{
  font-size: 24px;
}


/* =============================================================
   STYLE DU SELECT ORIGINAL JetBooking (#jet_abaf_guests)
   JS renomme le label et ajoute .mimo-guests-wrap sur le conteneur
   ============================================================= */

/* Conteneur du select original */
.jet-abaf-product-guests.mimo-guests-wrap,
.jet-abaf-product-guests {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

/* Label renommÃƒÂ© "Nombre de personnes" par JS */
label[for="jet_abaf_guests"],
.mimo-guests__label-native {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
}

/* Select original stylisÃƒÂ© */
#jet_abaf_guests {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: auto;
}

#jet_abaf_guests:hover { border-color: #1f5a4a; }
#jet_abaf_guests:focus {
  border-color: #1f5a4a;
  box-shadow: 0 0 0 3px rgba(31, 90, 74, 0.12);
  outline: none;
}




/* =============================================================
   LIGNE DE REDUCTION ENFANTS - au-dessus du total JetBooking
   (.jet-abaf-product-total__wrap injecte dans la reponse AJAX)
   ============================================================= */

.mimo-reduction-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mimo-reduction-line__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #e05d25;
  flex: 1;
}

.mimo-reduction-line__amount {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e05d25;
  white-space: nowrap;
}

/* Le wc_price() retourne un <span>, on le neutralise */
.mimo-reduction-line__amount .woocommerce-Price-amount {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}

/* -- Sous-total (avant réductions) ---------------------------- */
.mimo-reduction-line--subtotal {
  color: #A1A1AA;
  border-top: 1px solid #e5e7eb;
  padding-top: 2px;
}

.mimo-reduction-line__amount--subtotal {
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-color: #9ca3af;
  opacity: 0.75;
}

.mimo-reduction-line--subtotal .mimo-reduction-line__label,
.mimo-reduction-line.mimo-reduction-line--subtotal .mimo-reduction-line__amount--subtotal {
  color: #6b7280;
  font-weight: 500;
}

.variation-Pricebreakdown {
    display: none !important;
}
/* -- Prix de base par nuit ----------------------------- */
.mimo-base-price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 4px;
  gap: 12px;
}

.mimo-base-price-line__label {
  font-size: 0.82rem;
  color: #A1A1AA;
  font-style: italic;
}

.mimo-base-price-line__amount {
  font-size: 0.82rem;
  color: #A1A1AA;
  font-style: italic;
  white-space: nowrap;
}
