

/* stylelint-disable */
/************************** \
  Basic Modal Styles
\ **************************/

.modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: rgba(0, 0, 0, 0.8);
}


.modal__container {
  width: 100rem;
  max-height: calc(100dvh - 6rem);
  height: auto;
  display: grid;
  place-content: center;
  place-items: center;
  box-sizing: border-box;
  color: var(--primary-color);
  text-align: center;
  @media (width < 768px){
    display: block;
    max-height: 90dvh;
    height: auto;
  }

}

.modal__content{
  padding: 7rem 4.8rem 5rem;
  background: #fff;
  border-radius: 60px;
  position: relative;
  max-height: calc(100dvh - 6rem);
  overflow-y: auto;
  @media (max-width: 767px) {
    max-height: 90dvh;
    height: auto;
    padding: 4rem 1.6rem 3rem;
    border-radius: 20px;
  }
  .content-text{
    width: calc(100% - 46rem - 4rem);
    @media (width < 768px) {
      width: 100%;
      padding-top: 2rem;
    }
  }
  .player{
    width: max-content;
    margin-bottom: 1rem;
    padding: 0 2rem;
    font-size: 3.2rem;
    font-weight: bold;
    color: #35B7FF;
    position: relative;
    @media (width < 768px) {
        font-size: 2.4rem;
        margin-bottom: 0.5rem;
    }
    &:after, &:before {
      content: "";
      width: 3px;
      height: 70%;
      background: #35B7FF;
      position: absolute;
      bottom: 7px;
    }
    &:after {
      transform: rotate(20deg);
      right: 0;
    }
    &:before {
      transform: rotate(-20deg);
      left: 0;
    }
  }
  .cake{
    margin-bottom: 1rem;
    font-size: 4rem;
    font-weight: bold;
    @media (width < 768px) {
      font-size: 2.8rem;
      line-height: 1.6;
    }
  }
  .price{
    margin-bottom: 2.4rem;
    font-family: "Poppins", sans-serif;
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.4;
    @media (width < 768px) {
      font-size: 2rem;
    }
    span{
      font-size: 1.4rem;
      font-weight: bold;
    }
  }
  .btn{
    margin: 4rem 0;
  }
  dl{
    display: grid;
    grid-template-columns: 120px 1fr;
    border-top: 1px solid #e9e9e9;
    @media (width < 768px) {
      display: block;
    }
    dt,dd{
      padding: 1.8rem 0;
      border-bottom: 1px solid #e9e9e9;
      font-size: 1.4rem;
      font-weight: bold;
      @media (width < 768px) {
        padding: 1rem 0;
      }
    }
    dt{
      @media (width < 768px) {
        padding-bottom: 0;
        border-bottom: none;
      }
    }
    dd{
      padding-left: 30px;
      font-weight: normal;
      @media (width < 768px) {
        padding-left: 0;
      }
      span{
        font-size: 1.2rem;
        font-weight: normal;
        color: #35B7FF;
      }
    }
  }

}

.modal__content.ps {
  position: relative;
}

.modal__content .ps__rail-y {
  width: 10px;
  right: 10px !important;
  background: transparent;
  @media (width < 768px) {  
    width: 5px;
    right: 2px !important;
  }
}

.modal__content .ps__thumb-y {
  width: 6px;
  top: 0;
  right: 2px;
  border-radius: 999px;
  background-color: #35B7FF;
}

.modal-item-wrap {
  display: flex;
  gap: 4rem;
  text-align: left;
  @media (width < 768px) {
    display: block;
  }
  .content-image{
    width: 46rem;
    position:relative;
    @media (width < 768px) {
      width: 100%;
    }
    .image{
      border: 4px solid #35B7FF;
      border-radius: 70px;
      overflow: hidden;
      position: sticky;
      top: 0;
      @media (width < 768px) {
        border-radius: 40px;
        position: relative;
      }
    }
  }
}

.modal__close {
  width: 5rem;
  height: 5rem;
  border-radius: 100vmax;
  background: #35B7FF;
  position: absolute;
  top: 2rem;
  right: 2rem;
  outline: none;
  @media (width < 768px) {
    width: 3rem;
    height: 3rem;
    top: 1rem;
    right: 1rem;
  }
}

.modal__close::before {
  position: absolute;
  top: 50%;
  left: 30%;
  display: block;
  width: 2rem;
  height: 2px;
  content: "";
  background: #fff;
  transform: rotate(45deg);
  @media (width < 768px) {
    left: 20%;
  }
}

.modal__close::after {
  position: absolute;
  top: 50%;
  left: 30%;
  display: block;
  width: 2rem;
  height: 2px;
  content: "";
  background: #fff;
  transform: rotate(-45deg);
  @media (width < 768px) {
    left: 20%;
  }
}

/* Animation */
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(10%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn 0.7s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmfadeIn 0.7s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut 0.7s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmfadeOut 0.7s cubic-bezier(0.34, 0.07, 0.095, 0.995);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}
