.product-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility 0s linear .28s;
}

.product-layer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .28s ease;
}

.product-layer-dim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .35s ease;
}

.product-layer.is-open .product-layer-dim {
  opacity: 1;
}

.product-layer-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90vw;
  height: min(90vh, 900px);
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, calc(-50% + 30px)) scale(.96);
  opacity: 0;
  transition:
    transform .42s cubic-bezier(.2, .85, .2, 1),
    opacity .28s ease,
    box-shadow .35s ease;
}

.product-layer.is-open .product-layer-wrap {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.product-layer-wrap.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  animation: productSpin .8s linear infinite;
  z-index: 3;
}

@keyframes productSpin {
  to {
    transform: rotate(360deg);
  }
}

.product-layer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.product-layer-close:hover {
  background: #fff;
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

#productLayerFrame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .28s ease .12s, transform .38s ease .12s;
}

#productLayerFrame.is-ready {
  opacity: 1;
  transform: translateY(0);
}

html.layer-open,
body.layer-open {
  overflow: hidden;
}

.js-solution-more {
  cursor: pointer;
}

@media (max-width: 1400px), (max-height: 900px) {
  .product-layer-wrap {
    width: 96vw;
    height: 94vh;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .product-layer-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

@media (max-width: 1280px), (max-height: 760px) {
  .product-layer-wrap {
    width: 97vw;
    height: 95vh;
    max-width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    border-radius: 14px;
  }

  .product-layer-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}
