/* Custom Pet Studio: upload overlay + canvas WYSIWYG */

.ptc-busy {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 34, 51, 0.45);
  backdrop-filter: blur(2px);
}

.ptc-busy[hidden] {
  display: none !important;
}

.ptc-modal__dialog {
  position: relative;
}

.ptc-busy__box {
  width: min(360px, 86vw);
  background: #fff;
  color: #1a2233;
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.ptc-busy__spin {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 4px solid #d7eef7;
  border-top-color: #2a6f86;
  animation: ptcSpin 0.8s linear infinite;
}

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

.ptc-busy__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.ptc-busy__msg {
  margin: 0;
  color: #5a6b7d;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ptc-template-list.has-many {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ptc-template-item.is-active {
  outline: 2px solid #2a6f86;
}

.ptc-canvas-wrap .canvas-container {
  margin: 0 auto;
  max-width: 100%;
}

.ptc-canvas-wrap #ptc-canvas,
.ptc-canvas-wrap .canvas-container canvas {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: unset !important;
}
