.tpl-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tpl-preview-modal.is-open {
  display: flex;
  opacity: 1;
}
.tpl-preview-modal__box {
  position: relative;
  width: 90vw;
  max-width: 1400px;
  height: 95vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(16px);
  transition: transform 0.2s ease;
}
.tpl-preview-modal.is-open .tpl-preview-modal__box {
  transform: translateY(0);
}
.tpl-preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}
.tpl-preview-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tpl-preview-modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tpl-preview-modal__actions button, .tpl-preview-modal__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #555;
  font-size: 16px;
  text-decoration: none;
}
.tpl-preview-modal__actions button svg, .tpl-preview-modal__actions a svg {
  width: 1rem;
}
.tpl-preview-modal__actions button:hover, .tpl-preview-modal__actions a:hover {
  background: #eee;
}
.tpl-preview-modal__body {
  position: relative;
  width: 100%;
  height: calc(100% - 53px);
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.tpl-preview-modal__body.is-mobile .tpl-preview-modal__frame {
  width: 390px;
  height: 96%;
  max-height: 844px;
  border-radius: 28px;
  box-shadow: 0 0 0 8px #222, 0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.tpl-preview-modal__frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: width 0.25s ease, height 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease;
}
.tpl-preview-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.tpl-preview-modal__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 1;
}
.tpl-preview-modal__loading.is-hidden {
  display: none;
}
.tpl-preview-modal__spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e2e2e2;
  border-top-color: #333;
  border-radius: 50%;
  animation: tpl-spin 0.7s linear infinite;
}
@media (max-width: 768px) {
  .tpl-preview-modal__box {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  .tpl-preview-modal__title {
    display: none;
  }
  .tpl-preview-modal__header {
    justify-content: space-between;
  }
  .tpl-preview-modal__body.is-mobile .tpl-preview-modal__frame {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
}
.tpl-preview-device-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #eee;
  border-radius: 8px;
  flex-shrink: 0;
}
.tpl-preview-device-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
}
.tpl-preview-device-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.tpl-preview-device-btn.is-active {
  background: #fff;
  color: #222;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
@keyframes tpl-spin {
  to {
    transform: rotate(360deg);
  }
}
/*# sourceMappingURL=4baab5832e8b9bf3ed63a9da0282d4067f2e44c1.modal_preview.scss.map */
