/* needed for old browsers */
dialog {
  display: block;
  border: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 700;
}
/* removes scroll when modal is opened */
.no-scroll {
  overflow: hidden;
}
/* overlay covers everything */
.simple-modal-overlay,
.simple-animated-modal-overlay,
.simple-animatedtransform-modal-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .8;
  z-index: 666;
  cursor: pointer;
}
.simple-modal-overlay[data-background-click="disabled"],
.simple-animated-modal-overlay[data-background-click="disabled"],
.simple-animatedtransform-modal-overlay[data-background-click="disabled"],
.simple-left-modal-overlay[data-background-click="disabled"] {
  cursor: auto;
}
.simple-animated-modal-overlay,
.simple-animatedtransform-modal-overlay {
  animation: fadewhite ease .5s 1 normal ;
}

@keyframes fadewhite {
  0% {
    opacity: 0;
  }
  100% {
    opacity: .8;
  }
}
/* modal */
#js-modal,
.simple-modal,
.simple-animated-modal,
.simple-animatedtransform-modal {
  overflow: auto;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}
.simple-modal h1,
.simple-animated-modal h1,
.simple-animatedtransform-modal h1 {
  margin-top: 0;
}
.simple-modal .simple-animated-modal-close__text,
.simple-animated-modal .simple-animated-modal-close__text,
.simple-animatedtransform-modal .simple-animated-modal-close__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  border: 0;
}
.simple-modal-close,
.simple-animated-modal-close,
.simple-animatedtransform-modal-close {
  background: url(/themes/custom/arsbase/images/liste-filtres/close_rwd_filters.png);
  float: right;
  border-radius: 1em;
  color: #16427b;
  border: 0;
  font: inherit;
  padding: 0;
  cursor: pointer;
  width: 38px;
  height: 38px;
}
.simple-modal-close:focus,
.simple-modal-close:hover,
.simple-modal-close:active {
  outline: 1px solid black;
}
.simple-modal-close:hover,
.simple-modal-close:active {
  background: #4d287f;

}

.simple-animatedtransform-modal {
  -webkit-animation: pop ease .5s 1 normal ;
  animation: pop ease .5s 1 normal ;
}

@-webkit-keyframes pop {
  0% {
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  100% {
    opacity: 1;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    -webkit-transform: scale(1);
    transform: scale(1);
    max-height: 100%;
    width: 70%;
    left: 15%;
  }
}
@keyframes pop {
  0% {
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  100% {
    opacity: 1;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    -webkit-transform: scale(1);
    transform: scale(1);
    max-height: 100%;
    width: 70%;
    left: 15%;
  }
}


/* another modal styling example */
/* tooltip modal for it’s easy button */
.simple-left-modal-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, .8);
  opacity: .8;
  z-index: 666;
  cursor: pointer;
}

.simple-left-modal {
  left: auto;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  z-index: 667;
  position: fixed;
  width: 40em;
  max-width: 100%;
  padding: 0 1em 1em 1em;
  font-size: 1em;
  border: 0;
  overflow: auto;
  background-color: #aaa ; /* fallback IE9 */
  background-image:
    -webkit-linear-gradient(
      top,
      #128197 3em,
      #f7f7f7 3em
    );  background-image:
  linear-gradient(
    to bottom,
    #128197 3em,
    #f7f7f7 3em
  );
  background-attachment: local;
}
.simple-left-modal-close {
  position: absolute;
  top: .5em;
  right: 0;
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
}
.simple-left-modal-title {
  color: #fff;
  font-size: 1.5em;
}

/* it can be easily adapted in media-queries for tablets/mobile */

/* for this example: tablets */
@media (max-width: 55.625em) {

  .simple-modal,
  .simple-animated-modal {
    left: 5%;
    top: 5%;
    height: 90%;
    width: 90%;
  }

}

/* for this example: mobile */
@media (max-width: 44.375em) {

  .simple-modal,
  .simple-animated-modal {
    left: 1%;
    top: 1%;
    width: 98%;
    height: 98%;
  }

}
.simple-animated-modal__wrapper .btn-primary,
.simple-animated-modal__wrapper .collapse {
  display: none;
}
