/* ----------------------------------------------------------- */
/* == tingle v0.15.2 */
/* ----------------------------------------------------------- */

.tingle-modal * {
  box-sizing: border-box;
}
.tingle-modal::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.tingle-modal::-webkit-scrollbar-track {
  border-radius: 5px;
  box-shadow: 0 0 4px #fff inset;
}
.tingle-modal::-webkit-scrollbar-thumb {
  border-radius: 0px;
  background: #fff;
}

.tingle-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 1);
  opacity: 0;
  user-select: none;
  cursor: pointer;

  -webkit-user-select: none;
  -ms-user-select: none;
}

/* confirm and alerts
-------------------------------------------------------------- */

.tingle-modal--confirm .tingle-modal-box {
  text-align: center;
}

/* modal
-------------------------------------------------------------- */

.tingle-modal--noOverlayClose {
  cursor: default;
}

.tingle-modal--noClose .tingle-modal__close {
  display: none;
}

.tingle-modal__close {
  position: fixed;
  height: 3rem;
  width: 3rem !important;
  background-color: #b1d0e5;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  padding: 0.8rem;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
  outline: none !important;
}

.tingle-modal__close svg * {
  fill: #fff;
}

.tingle-modal__closeLabel {
  display: none;
}

.tingle-modal__close:hover {
  color: #fff;
}

.tingle-modal-box {
  width: 100%;
  max-width: 1588px;
  border-radius: 0;
  position: relative;
  flex-shrink: 0;
  margin: auto;
  background: #fff;
  color: #333333;
  opacity: 1;
  cursor: auto;
  will-change: transform, opacity;
}

.tingle-modal-box__content {
  padding: 0;
}

.tingle-modal-box__footer {
  padding: 1.5rem 2rem;
  width: auto;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  background-color: #f5f5f5;
  cursor: auto;
}

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

.tingle-modal-box__footer--sticky {
  position: fixed;
  bottom: -200px;
  /* TODO : find a better way */
  z-index: 10001;
  opacity: 1;
  transition: bottom 0.3s ease-in-out 0.3s;
}

/* state
-------------------------------------------------------------- */

.tingle-enabled {
  position: fixed;
  right: 0;
  left: 0;
  overflow: hidden;
}

.tingle-modal--visible .tingle-modal-box__footer {
  bottom: 0;
}

.tingle-enabled .tingle-content-wrapper {
  filter: blur(8px);
}

.tingle-modal--visible {
  visibility: visible;
  opacity: 1;
}

.tingle-modal--visible .tingle-modal-box {
  animation: scale 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.tingle-modal--overflow {
  display: inline-block;
  overflow-y: scroll;
  padding: 0 0;
}
.tingle-modal--overflow::after {
  content: "";
  display: block;
  height: 8vh;
}

/* responsive
-------------------------------------------------------------- */

@media (max-width: 767px) {
  .tingle-modal {
    top: 0px;
    padding: 7vh 5% 0 5%;
    width: 100%;
  }

  .tingle-modal-box {
    width: 100%;
    border-radius: 0;
  }

  .tingle-modal--overflow {
    display: inline-block;
  }

  .tingle-modal-box__content {
    padding: 0;
  }

  .tingle-modal--noClose {
    top: 0;
  }

  .tingle-modal--noOverlayClose {
    padding-top: 0;
  }

  .tingle-modal-box__footer .tingle-btn {
    display: block;
    float: none;
    margin-bottom: 1rem;
    width: 100%;
  }

  .tingle-modal__close {
    position: fixed;
    height: 2rem;
    width: 2rem !important;
    background-color: #b1d0e5;
    top: 1rem;
    right: 5%;
    z-index: 1000;
    padding: 0.8rem;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0;
    border-radius: 5px;
    outline: none !important;
  }
}

@media (min-width: 767px) {
  .tingle-modal__close {
    font-size: 1.2rem;
    top: 20px;
    right: 20px;
  }

  .tingle-modal__closeIcon {
    font-size: 1.2rem;
    margin-right: 0;
  }
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .tingle-modal:before {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);
  }

  .tingle-enabled .tingle-content-wrapper {
    filter: none;
  }
}

/* animations
-------------------------------------------------------------- */

@keyframes scale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#page__heading {
  position: fixed;
  height: 100%;
  width: 100%;
  display: none;
  align-items: center;
}

.inner-x {
  padding: 0 30px;
}

.inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
