/********************
	Style général des modals
********************/
.modal,
.modal-open {
  overflow: hidden
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  outline: 0;
  background: transparent;
  opacity: 0;
  transition: all .3s;
}

.modal.in {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
  display: flex !important;
  align-items: center;
}

.modal p + p {
  margin-top: .25em
}

.modal.fade .modal-dialog {
  transition: -webkit-transform .3s ease-out;
  transition: transform .3s ease-out;
  transition: transform .3s ease-out, -webkit-transform .3s ease-out;
  -webkit-transform: translateY(-25%);
  transform: translateY(-25%)
}

.modal.in .modal-dialog {
  -webkit-transform: translate(0);
  transform: translate(0)
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px
}

.modal-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border-radius: .3rem;
  outline: 0
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
  display: none;
}

.modal-backdrop.fade {
  opacity: 0
}

.modal-backdrop.in {
  opacity: .5
}

.modal-header {
  background: var(--color-primary);
  padding: 1em;
  border-bottom: 1px solid #e5e5e5
}

.modal-header:after {
  content: "";
  display: table;
  clear: both
}

.modal-title {
  font-size: 1em;
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-white-default);
}

.modal-body {
  position: relative;
  color: #232323;
  font-size: var(--font-size-300);
  padding: 1em;
}

.modal-header .close {
  color: #fff;
  opacity: 1;
}

.modal-body__info-value {
  display: flex;
  justify-content: space-between;
}

.modal-footer {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5
}

.modal-footer:after {
  content: "";
  display: table;
  clear: both
}

.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll
}

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

  .modal-sm {
    max-width: 300px
  }
}

@media (min-width: 992px) {
  .modal-lg {
    max-width: 900px
  }
}

@media (max-width: 767px) {
  .modal-header {
    font-size: var(--font-size-100);
  }
}

@media (min-width: 768px) {
  .modal-header {
    font-size: var(--font-size-400);
  }
}

/********************
	Wishlist
********************/

.wishlist-modal.show {
  display: flex !important;
  align-items: center;
}

.wishlist-modal .modal-header {
  padding: 10px calc(10px + (30 - 10) * ((100vw - 320px) / (1920 - 320)))
}

.wishlist-modal .modal-header h5 {
  font-size: calc(16px + (22 - 16) * ((100vw - 320px) / (1920 - 320)));
  color: #fff;
}

.wishlist-modal.fade .modal-dialog {
  width: calc(300px + (400 - 300) * ((100vw - 320px) / (1920 - 320)));
  margin: auto;
}

.wishlist-modal .wishlist-add-to-new i,
.wishlist-modal .wishlist-add-to-new {
  color: var(--color-primary) !important;
}

.wishlist-modal a.text-primary:hover,
.wishlist-modal a.text-primary:hover i {
  color: #000 !important;
}
