@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }

  to {
    transform: rotate(1turn);
  }
}

#greenleaze-error {
  font-style: italic;
}

* {
  font-family: Helvetica, "Helvetica Neue";
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}

.greenleaze-modal-container {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  /* margin-inline: 20px; */
}

.modal-wrapper {
  display: flex;
  min-height: 400px;
  position: relative;
  width: 90%;
  max-width: 850px;
  margin: auto;
  background-color: white;
  /* transform: translateX(50%); */
  padding: 2rem;
  padding-inline: 3rem;
  /* background-color: red; */

  border-radius: 20px;
  gap: 40px;
  align-items: center;
}

.greenleaze-left-container {
  width: calc(45% - 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  height: 85%;
}

.greenleaze-right-container {
  display: flex;
  width: calc(45% - 20px);
  flex-direction: column;
  justify-content: space-between;
  height: 85%;
  padding-right: 3px;
  gap: 20px;
}

.greenleaze-modal-title,
.greenleaze-modal-title span {
  font-size: 23px;
  font-weight: 900;
  line-height: 27.6px;
  text-align: left;
  margin-top: 0;
  align-items: center;
  gap: 5px;
}

.advantage-greenleazes-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: rgba(208, 230, 229, 0.15);
  border-radius: 10px;
  padding: 20px;
}
.advantage-greenleaze {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.greenleaze-advantage-illustration {
  background-color: hsl(155, 73%, 20%);
  width: 20px;
  height: 20px;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.greenleaze-advantage-illustration img {
  width: 100%;
  height: 100%;
}

.ml-007 {
  margin-left: 0.7em;
}

.ml-5 {
  margin-left: 5em;
}

.mt-2 {
  margin-top: 2em;
}

.mt-3 {
  margin-top: 3.5em;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.greenleaze-button {
  border-radius: 10px;
  background: #0d5537;
  font-size: 23px;
  letter-spacing: 1px;
  color: white;
  border: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
  cursor: pointer;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  position: relative;
}

.btn-close-modal-greenleaze {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #aaa;
  border: none;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background-color: transparent;
  outline: none;
}

.btn-close-modal-greenleaze:hover,
.btn-close-modal-greenleaze:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.slider-container-greenleaze-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  justify-content: space-between;
  /* margin-top: 20px; */
}

.slider-container-greenleaze-button-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.slider-container-greenleaze {
  width: "100%"; /* Match or exceed the width of the slider */
  text-align: center; /* Center the slider within the container */
}

#monthSlider-greenleaze {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: transparent;
  background-color: #d0e6e5;
  border-radius: 20px;
  outline: none;
  transition: opacity 0.2s;
  padding: 0;
}

#monthSlider-greenleaze:hover {
  opacity: 1;
}

#monthSlider-greenleaze::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #0d5537 url("logo-greenleaze-slider.svg") no-repeat center;
  cursor: pointer;
  border-radius: 50%;
  background-size: 60%;
  color: white;
  font-size: 16px;
  text-align: center;
  line-height: 25px;
}

#monthSlider-greenleaze::-moz-range-greenleaze-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #0d5537 url("logo-greenleaze-slider.svg") no-repeat center;
  cursor: pointer;
  border-radius: 50%;
  background-size: 60%;
  color: white;
  font-size: 16px;
  text-align: center;
  line-height: 25px;
}

#sliderValue {
  margin-top: 20px;
  font-size: 20px;
  color: #333;
}

.slider-labels-greenleaze {
  font-weight: 400;
  font-size: 13px;
  line-height: 15.6px;
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.slider-labels-greenleaze span {
  color: #000;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.text-modal-greenleaze {
  display: flex;
}

.abo-title {
  font-size: 23px;
  font-weight: 700;
  line-height: 27.6px;
  text-align: center;
  margin-top: 47px;
}

.table-greenleaze {
  font-size: 20px;
  font-weight: 400;
  line-height: 36.2px;
  width: 100%;
  flex-grow: 0.5;
}

.detail {
  font-size: 12px;
  line-height: 14px;
}

.lines:last-child {
  text-align: right;
}

.button--loading {
  color: transparent;
}
.button--loading::after {
  content: "";
  position: absolute;
  width: 16px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

.alignement-greenleaze {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

.lines .detail {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.detail {
  font-size: 12px;
  line-height: 14px;
}

.modal-content-abonnement-greenleaze {
  width: 90%;
  max-width: 700px;
  height: 430px; /* Adjusted height to match the modal in screenshot */
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: white; /* Changed from red to white */
  padding: 20px; /* Padding inside the modal box */

  max-height: 90vh; /* Limite la hauteur de la modal Ã  90% de la hauteur de l'Ã©cran */
  overflow-y: auto; /* Ajoute un dÃ©filement si le contenu dÃ©passe la hauteur maximale */
  position: relative; /* Pour le positionnement absolu du bouton de fermeture */
}

@media (max-width: 560px) {
  .modal-wrapper {
    box-sizing: border-box;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    border-radius: 0px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 1.5rem;
    /* height: fit-content; */
    /* max-height: 90vh; */
    /* max-height: 90vh; */
    /* background-color: red; */
  }
  .greenleaze-modal-container {
    flex-direction: column;
    flex-wrap: nowrap;
    /* background-color: red; */
    height: 100vh;
    /* height: fit-content; */
    /* padding-top: 20px; */
    /* padding-bottom: 20px; */
  }
  .greenleaze-left-container {
    width: 100%;
    /* height: fit-content; */
  }
  .greenleaze-right-container {
    width: 100%;
  }

  .slider-container-greenleaze-container {
    position: sticky;
    background-color: white;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 0px;
    bottom: -1.5rem;
  }
}
