.popup-render-init .popup-render {
  position: fixed;
  inset: 0;
  z-index: -9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.popup-render-init .popup-render__content {
  position: relative;
  width: 100%;
  max-width: 750px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}
.popup-render-init .popup-render__main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.popup-render-init .popup-render__footer {
  display: flex;
  gap: 14px;
  justify-content: end;
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.popup-render-init .popup-render__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #333;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.popup-render-init .popup-render__close:hover {
  background: #e5e5e5;
  color: #000;
}
.popup-render-init .popup-render__close:focus {
  outline: 2px solid #e40c44;
  outline-offset: 2px;
}
.popup-render-init.popup-render-open .popup-render {
  opacity: 1;
  visibility: visible;
  z-index: 9999;
}
.popup-render-init.popup-render-open .popup-render__content {
  transform: translateY(0) scale(1);
}

.m3dreader__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.m3dreader__modal.is-active {
  opacity: 1;
  visibility: visible;
}
.m3dreader__modal.is-active .m3dreader__modal-content {
  transform: translateY(0) scale(1);
}
.m3dreader__modal-content {
  position: relative;
  width: 100%;
  max-width: 750px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}
.m3dreader__close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #333;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.m3dreader__close-modal:hover {
  background: #e5e5e5;
  color: #000;
}
.m3dreader__close-modal:focus {
  outline: 2px solid #e40c44;
  outline-offset: 2px;
}
.m3dreader__modal-title {
  margin: 0 45px 20px 0;
  color: #222;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
.m3dreader__modal-body {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
}
.m3dreader__modal-body p {
  margin: 0 0 15px;
}
.m3dreader__modal-body p:last-child {
  margin-bottom: 0;
}
.m3dreader__modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}