/**
 * @author    WEBTEX SAS <contact@webtex.fr>
 * @copyright 2025 WEBTEX SAS
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 *
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 *
 * DISCLAIMER
 *
 * This module is proprietary software. You may not redistribute, modify,
 * or reverse-engineer this code without explicit written permission from WEBTEX SAS.
 * For commercial use or customization, please contact us at contact@webtex.fr.
 */
.address-validation-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow: hidden;
}

.address-validation-modal.open {
  display: flex;
}

.address-validation-modal .modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.address-validation-modal .closeModal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.address-validation-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.address-validation-modal p {
  margin: 0.3rem 0;
  line-height: 1.4;
}

.address-comparison {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.address-block {
  flex: 1;
  padding: 1rem 2rem;
  margin: 0;
  border: 1px solid #cecece;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.av-btn {
  border: 1px solid #cecece;
  border-top: 0;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  font-weight: 400;
  color: #000;
  transition: transform 0.2s ease;
  width: 100%;
}

.av-btn:hover {
  font-weight: 600;
}

/* =============================
   RESPONSIVE MOBILE
============================= */
@media (max-width: 768px) {
  .address-validation-modal {
    align-items: flex-start;
    padding: 0;
  }

  .address-validation-modal .modal-content {
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    padding: 1.2rem;
    margin: 0;
  }

  .address-comparison {
    flex-direction: column;
    gap: 1.2rem;
  }

  .buttons {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  /* .av-btn {
    width: 80%;
    max-width: 300px;
  } */
}

/* =============================
   BLOQUE LE BODY QUAND LA MODAL EST OUVERTE
============================= */
body.modal-open {
  overflow: hidden;
  height: 100vh;
}


.av-line {
  margin: 3px 0;
  font-weight: 400;
  color: #222;
}
.av-label {
  display: none; /* labels masqués car on formate par lignes */
}
.av-value {
  font-weight: 400;
}
.av-value.is-different {
  font-weight: 600;
  color: #000;
}
.av-diff {
  font-weight: 600;
  color: #000;
}

