.aps-shell,
.aps-shell * {
  box-sizing: border-box;
}

.aps-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: 0;
  background: var(--aps-card);
  overflow: hidden;
}

body.page-id-11,
body.page-id-11 main#wp--skip-link--target,
body.page-id-11 main#wp--skip-link--target > .wp-block-group,
body.page-id-11 .wp-block-post-content {
  background: var(--aps-card);
}

.aps-hero {
  border-radius: 0;
}

.aps-upload--primary {
  margin-bottom: 4px;
  padding: 18px;
  border: 1px solid var(--aps-line);
  background: #fff;
}

.aps-ai-section {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--aps-line);
}

.aps-rights-notice {
  margin: 0;
  color: var(--aps-muted);
  font-size: 12px;
  line-height: 1.45;
}

.aps-choice-groups {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.aps-choice-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.aps-choice-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.aps-choice {
  flex: 1 1 0;
  min-width: 0;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #bbbdb7;
  border-radius: 8px;
  background: #fff;
  color: var(--aps-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.aps-choice.is-selected {
  border-color: var(--aps-ink);
  background: var(--aps-ink);
  color: #fff;
}

.aps-mockup {
  aspect-ratio: 1 / 1;
  background: #fff;
}

.aps-mockup-note {
  margin: -8px 0 16px;
  color: var(--aps-muted);
  font-size: 12px;
  line-height: 1.4;
}

.aps-artwork-box {
  position: absolute;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  transform-origin: center;
}

.aps-artwork-box:active {
  cursor: grabbing;
}

.aps-artwork-box .aps-artwork {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.aps-resize-handle {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--aps-accent);
  box-shadow: 0 1px 5px rgb(0 0 0 / 35%);
  touch-action: none;
}

.aps-resize-handle--nw { top: -14px; left: -14px; cursor: nwse-resize; }
.aps-resize-handle--ne { top: -14px; right: -14px; cursor: nesw-resize; }
.aps-resize-handle--sw { bottom: -14px; left: -14px; cursor: nesw-resize; }
.aps-resize-handle--se { right: -14px; bottom: -14px; cursor: nwse-resize; }

.aps-drag-hint {
  margin: -8px 0 16px;
  color: var(--aps-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.aps-variant-controls {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(150px, .7fr) minmax(260px, 1.3fr);
}

.aps-swatches {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 48px;
}

.aps-swatch {
  appearance: none;
  background: var(--aps-swatch);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #a9aca7;
  cursor: pointer;
  height: 38px;
  padding: 0;
  position: relative;
  width: 38px;
}

.aps-swatch.is-selected {
  box-shadow: 0 0 0 3px var(--aps-accent);
}

.aps-swatch.is-selected::after {
  color: var(--aps-accent);
  content: '✓';
  font-size: 20px;
  font-weight: 900;
  inset: 4px;
  position: absolute;
  text-align: center;
  text-shadow: 0 1px 1px #fff, 0 -1px 1px #fff;
}

.aps-sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.aps-size-slider {
  display: grid;
  gap: 8px;
}

.aps-size-slider output {
  background: var(--aps-ink);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  justify-self: start;
  min-width: 46px;
  padding: 5px 12px;
  text-align: center;
}

.aps-size-slider input[type='range'] {
  accent-color: var(--aps-accent);
  cursor: pointer;
  margin: 2px 0;
  padding: 0;
  width: 100%;
}

.aps-size-slider__labels {
  color: var(--aps-muted);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  justify-content: space-between;
}

.aps-result img {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e9e9e9 25%, transparent 25%),
    linear-gradient(-45deg, #e9e9e9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9e9e9 75%),
    linear-gradient(-45deg, transparent 75%, #e9e9e9 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.aps-progress {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 40px 12px;
  text-align: center;
}

.aps-progress__ring {
  display: grid;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: conic-gradient(var(--aps-accent) var(--aps-progress), #e6e3da 0);
  place-items: center;
}

.aps-progress__ring::before {
  grid-area: 1 / 1;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: var(--aps-card);
  content: '';
}

.aps-progress__ring strong {
  z-index: 1;
  grid-area: 1 / 1;
  font-size: 24px;
}

.aps-progress__copy {
  display: grid;
  width: min(100%, 420px);
  gap: 9px;
}

.aps-progress__copy > span,
.aps-progress__copy > small {
  color: var(--aps-muted);
}

.aps-progress__bar {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e6e3da;
}

.aps-progress__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--aps-accent);
  transition: width .5s ease;
}

.aps-progress__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  color: var(--aps-muted);
  font-size: 11px;
  list-style: none;
}

.aps-progress__steps .is-active,
.aps-progress__steps .is-done {
  color: var(--aps-ink);
  font-weight: 800;
}

#ai-print-studio.alignfull,
.aps-login.alignfull {
  width: auto;
  max-width: none !important;
}

body.page-id-11 .wp-block-post-title {
  width: 100%;
  max-width: none !important;
}

.aps-layout,
.aps-panel,
.aps-field,
.aps-inline > *,
.aps-reference,
.aps-upload,
.aps-compose {
  min-width: 0;
}

.aps-panel {
  max-width: 100%;
  overflow: hidden;
}

.aps-field input:not([type="checkbox"]):not([type="radio"]),
.aps-field textarea,
.aps-field select,
.aps-reference input[type="file"],
.aps-upload input[type="file"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.aps-reference input[type="file"],
.aps-upload input[type="file"] {
  overflow: hidden;
  font-size: clamp(14px, 2.5vw, 18px);
}

.aps-reference input[type="file"]::file-selector-button,
.aps-upload input[type="file"]::file-selector-button {
  max-width: 55%;
  margin-right: 0.55rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .aps-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
  }

  .aps-layout--two {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (min-width: 701px) and (max-width: 1199px) {
  .aps-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aps-compose {
    grid-column: 1 / -1;
  }

  .aps-layout--two .aps-compose {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .aps-layout,
  .aps-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .aps-panel {
    padding: 20px 16px;
  }

  .aps-reference,
  .aps-upload {
    padding: 12px;
  }

  .aps-choice-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .aps-variant-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}
