#map {
  width: 100%;
  height: 100vh;
}

#gmap-container .row {
  flex-direction: column;
}

.spm #mags-google-maps-map {
  width: 100%;
  height: 100%;
  /* min-height: 400px; */
  border: #ccc solid 1px;
  margin: 0;
}

#gmap-container {
  height: 100%;
}

.easy-autocomplete.eac-green-light {
  width: 100% !important;
}

#button-addon2,
.easy-autocomplete.eac-green-light input {
  background-color: #f5f5f5;
  color: #080808;
  border: none;
  &::placeholder {
    color: #747474;
  }
}

.geolocator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: fixed;
  inset: 0;
  max-width: 100vw;
  overflow: auto;
  z-index: 10000;
  opacity: 0.6;
  transform: translatex(100%);
  -webkit-transform: translatex(100%);
  transition: all 0.35s ease 0s;
  -webkit-transition: all 0.35s ease 0s;
  visibility: hidden;
  background-color: #fff;
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    grid-template-rows: 50dvh 50dvh;
  }
}

.geolocator-wrapper.opened {
  opacity: 1;
  transform: translatex(0);
  -webkit-transform: translatex(0);
  visibility: visible;
}

.store-label {
  position: relative;
  padding-block: 2px;
}

.store-label::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 13px solid #d9eee0;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}
.store-panel {
  display: block;
  height: 100%;
  background-color: #fff;
}

.store-panel .btn-close {
  position: absolute;
  top: 10px;
  right: 12px;
}

.store-panel__container {
  padding: 0;
  padding: 40px 55px;
  display: flex;
  background-color: var(--primary);
  color: #fff;
}
.store-panel__header {
  margin-top: auto;
  width: 100%;
}
.store-panel__header .title {
  font-size: 2rem;
  line-height: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

/* Style de la liste des villes (recherche) */
#mag-list {
  max-height: 70dvh;
  overflow-y: auto;
  width: 100%;
  margin: 1.875rem auto;
  padding-inline: 40px;
}

@media (max-width: 991px) {
  #mag-list {
    padding-inline: 15px;
  }
}

#mag-list a {
  color: #212529;
  padding: 15px;
  display: flex;
  flex: 1;
  align-items: center;
  border-top: solid 1px #d7e1db;
  gap: 10px;
}

#mag-list li:first-child a {
  border-top: none;
}

#mag-list li:last-child a {
  border-bottom: solid 1px #d7e1db;
}

#mag-list .mag {
  flex: 1;
}

#mag-list .arrow-city::after {
  content: " ";
  display: inline-block;
  border-bottom: 2px solid #212529;
  border-right: 2px solid #212529;
  height: 15px;
  width: 15px;
  transform: rotate(-45deg);
}

#mag-list .mag-container {
  display: flex;
  p.h3 {
    font-size: 1.375rem;
    font-weight: bold;
  }
  address {
    line-height: 1.3125rem;
  }
}

#mag-list address {
  margin: 0;
}

.btn-geoloc {
  background-color: #09552f;
  color: #fff;
  font-weight: bold;
  &:hover {
    color: #09552f;
    background-color: #fff;
  }
}
#cp_or_city {
  background-image: url("/themes/rural-master/assets/img/search-store.svg");
  background-size: auto;
  background-repeat: no-repeat;
  background-position-x: calc(100% - 12px);
  background-position-y: center;
}
#eac-container-cp_or_city {
  position: relative;
  color: #080808;
}

#eac-container-cp_or_city ul {
  position: absolute;
  background-color: white;
  width: 100%;
  margin: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
}

#eac-container-cp_or_city ul li {
  cursor: pointer;
  padding: 4px 15px;
}

#eac-container-cp_or_city ul li:hover {
  background-color: #d9eedf;
}

#cp_or_city:focus {
  box-shadow: none;
  outline: none;
  border-color: #212529;
}

/* Popin changement de magasin */
.vePopin .modal-header {
  border: none;
  padding: 2.2rem 2.2rem 1.8rem 0;
}

.vePopin .modal-body {
  padding: 0px 4.8rem;
}

.vePopin .modal-body p:first-child {
  font-size: 1.55rem;
  font-weight: 500;
  text-wrap: pretty;
  line-height: 1.7rem;
}

#popinChangeShop .modal-body p:last-child {
  font-size: 1.25rem;
}

.vePopin .modal-footer {
  border: none;
  gap: 20px;
  padding-bottom: 3rem;
}

.vePopin .modal-body p:first-child {
  font-size: 1.5625rem !important;
}

.vePopin .modal-footer .btn,
.vePopin a {
  border: none;
  margin: 0;
  font-size: 1.125rem !important;
}

#popinChangeShop .modal-footer a {
  border: none;
  margin: 0;
}

.vePopin .modal-footer svg {
  width: 35px;
  height: 25px;
}

#popinChangeShop .modal-footer-cart .btn-popin-continue-shop {
  color: #008a2f;
  background-color: #d9eee0;
  padding: 0.8rem 1.3125rem;
}

#popinChangeShop .modal-footer-product .btn-close-popin,
#newsletterPopin .modal-footer button {
  padding: 0.8rem 1.3125rem;
}

#popinChangeShop .modal-footer-product .btn-popin-continue-shop,
#popinChangeShop .modal-footer-cart .btn-close-popin {
  padding: 0.8rem 3.75rem;
  color: #fff;
}

.vePopin .modal-dialog {
  top: 40%;
  transform: translateY(-50%) !important;
}

#popinChangeShop .modal-footer-cart .btn-close-popin,
#popinChangeShop .modal-footer-cart .btn-popin-continue-shop {
  padding: 0.8rem;
}

@media (min-width: 576px) {
  .vePopin .modal-dialog {
    max-width: 600px;
  }
}

@media (max-width: 767.98px) {
  .vePopin .modal-footer {
    flex-direction: column;
  }

  .vePopin .modal-footer > .btn {
    width: auto;
  }

  #newsletterPopin .modal-footer .store-choice {
    margin-top: 0px;
  }

  .vePopin .modal-footer button,
  .vePopin .modal-footer a {
    min-width: 245px;
    justify-content: center;
  }
}
@media (max-width: 550px) {
  .vePopin .modal-body {
    padding-inline: 2rem;
  }
  .vePopin .modal-body p:first-child {
    font-size: 1.375rem !important;
  }

  .gmap-tools {
    flex-direction: column;
    align-items: start !important;
  }

  .gmap-tools > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 991px) {
  .see-maps {
    display: inline-block !important;
  }

  .spm {
    padding-top: 1rem;
    background-color: #FFF;
    /* height: 50dvh; */
  }

  /* .sp {
    height: 51dvh;
  } */

  #mag-list {
    /* display: none; */
    margin-block: 0.625rem;
    /* height: 32dvh; */
    width: 100%;
    max-height: 275px;
  }

  #mag-list a {
    margin-inline: 15px;
    padding: 10px 0;
  }
  /* .store-panel {
    height: 100%;
  } */
  .store-panel__container {
    padding: 20px 15px 20px;
  }
  .store-panel__header .title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  #mag-list .mag-container {
    p.h3 {
      font-size: 1.25rem;
      font-weight: bold;
    }
  }
}

/* Partie fiche produit */
#stock-block {
  .store-selector {
    .store-choice-content {
      display: grid;
      grid-template-columns: 35px 1fr;
      align-items: center;
      & > span {
        font-size: 1.375rem;
        line-height: 1.625rem;
      }
      & > div {
        grid-column: 2;
        grid-row: 2;
      }
    }
  }
}
