customize-modal,
.customize-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1999999998;
}

customize-modal[open="true"],
.customize-modal[open="true"] {
  display: flex;
}

customize-modal::before,
.customize-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  animation: customize-modal--mask 0.3s ease-in;
  background: rgb(0 0 0 / 50%);
}

customize-modal .customize-modal-content,
.customize-modal .customize-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  animation: customize-modal--drawer-bottom 0.3s ease-in;
  background: #fff;
}

@media screen and (min-width: 959px) {
  customize-modal .customize-modal-content,
  .customize-modal .customize-modal-content {
    width: 540px;
    height: 640px;
    border-radius: 6px;
    box-shadow:
      0 1px 1px 0 rgb(0 0 0 / 10%),
      0 2px 5px 0 rgb(0 0 0 / 20%);
  }
}

@keyframes customize-modal--mask {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes customize-modal--drawer-bottom {
  from {
    transform: translate(0, 30%);
    opacity: 0;
  }

  to {
    transform: translate(0, 0);
    opacity: 1;
  }
}
