print-studio {
  display: block;
  margin: 16px 0;
}
print-studio[hidden] {
  display: none;
}
.ps-launch {
  width: 100%;
  padding: 16px 22px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ps-launch:disabled {
  opacity: 0.5;
  cursor: default;
}
.ps-dialog {
  --ps-ink: #243d34;
  --ps-muted: #70776f;
  --ps-line: #e3e6de;
  --ps-green: #264f3c;
  box-sizing: border-box;
  border: 0;
  padding: 0;
  border-radius: 18px;
  width: calc(100vw - 32px);
  max-width: 1280px;
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);
  background: #fff;
  color: var(--ps-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 24px 100px #0004;
  overflow: clip;
  overscroll-behavior: contain;
}
.ps-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.ps-dialog::backdrop {
  background: #15271eb3;
  backdrop-filter: blur(5px);
}
.ps-dialog * {
  box-sizing: border-box;
}
.ps-dialog [hidden] {
  display: none !important;
}
.ps-dialog button,
.ps-dialog input,
.ps-dialog textarea,
.ps-dialog select {
  font: inherit;
  color: inherit;
}
.ps-dialog button {
  cursor: pointer;
}
.ps-dialog button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ps-dialog button:focus-visible,
.ps-dialog input:focus-visible,
.ps-dialog select:focus-visible,
.ps-dialog textarea:focus-visible,
.ps-dialog summary:focus-visible,
.ps-artwork:focus-visible {
  outline: 3px solid #5b9c78;
  outline-offset: 3px;
}
.ps-side-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.ps-side-switcher button,
.ps-text-add,
.ps-review-heading button {
  border: 1px solid var(--ps-line);
  border-radius: 7px;
  padding: 10px 14px;
  background: #fff;
  min-height: 44px;
}
.ps-side-switcher button[aria-pressed="true"] {
  border-color: var(--ps-green);
  background: var(--ps-green);
  color: #fff;
}
.ps-composition {
  position: absolute;
  pointer-events: none;
  user-select: none;
  transform-origin: center;
}
.ps-text-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ps-text-controls {
  margin: 18px 0;
}
.ps-text-controls textarea {
  resize: vertical;
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--ps-line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  font-size: 16px;
}
.ps-text-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.ps-text-options select {
  width: 100%;
}
.ps-font-picker {
  position: relative;
  min-width: 0;
}
.ps-font-picker [data-text-font] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #d8ddd4;
  border-radius: 7px;
  background: #fff;
  text-align: left;
  font: inherit;
  overflow-wrap: anywhere;
}
.ps-font-picker [data-text-font]::after {
  content: "\2304";
  flex-shrink: 0;
}
.ps-font-menu {
  position: absolute;
  scroll-margin-block: 8px;
  z-index: 4;
  top: calc(100% + 6px);
  left: 0;
  width: min(320px, calc(100vw - 80px));
  max-width: calc(100vw - 80px);
  padding: 10px;
  border: 1px solid var(--ps-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(0 0 0 / 12%);
  font-weight: 400;
}
.ps-font-menu [data-font-search] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ps-line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: 16px;
  color: var(--ps-ink);
  background: #fff;
}
.ps-font-menu .ps-zone-hint {
  margin: 8px 0;
}
.ps-font-menu .ps-zone-hint:empty {
  display: none;
}
.ps-font-results {
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ps-font-results [role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  font: inherit;
}
.ps-font-results [role="option"] small {
  font-size: 14px;
  color: var(--ps-muted);
}
.ps-font-results [role="option"][aria-selected="true"] {
  font-weight: 600;
}
.ps-font-results [role="option"]:hover,
.ps-font-results [role="option"][data-active="true"] {
  background: #f2f5ef;
}
@media (max-width: 740px) {
  .ps-font-results {
    max-height: 132px;
  }
}
.ps-text-controls [data-text-error]:empty {
  display: none;
}
.ps-document-review {
  align-self: stretch;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 20px 28px;
}
.ps-review-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ps-review-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}
.ps-review-sides {
  justify-content: center;
  gap: 6px;
  margin: 0;
}
.ps-review-heading .ps-review-sides button {
  flex: 0 1 auto;
  min-width: 84px;
  min-height: 40px;
  padding: 8px 16px;
}
.ps-review-hint,
.ps-document-review [data-review-summary] {
  margin: 8px 0;
  font-size: 14px;
}
.ps-document-review [data-review-error]:empty {
  display: none;
}
.ps-review-proofs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 12px 0;
}
.ps-review-proofs:has(> :only-child) {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
.ps-review-proofs figure {
  margin: 0;
  min-width: 0;
}
.ps-review-proofs figcaption {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}
.ps-review-proofs img {
  width: 100%;
  max-height: min(38dvh, 340px);
  object-fit: contain;
  display: block;
  background: #f4f5ef;
}
@media (max-width: 600px) {
  .ps-document-review {
    padding: 20px 18px;
  }
  .ps-side-switcher {
    margin-bottom: 10px;
  }
  .ps-side-switcher button {
    flex: 1;
    padding: 8px;
    font-size: 14px;
  }
  .ps-review-proofs {
    gap: 16px;
  }
  .ps-review-sides {
    order: 1;
    flex-basis: 100%;
  }
}
.ps-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 32px;
  border-bottom: 1px solid var(--ps-line);
}
.ps-icon-button {
  border: 1px solid var(--ps-line);
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 25px !important;
  font-weight: 300;
  line-height: 1;
}
.ps-workspace {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  min-height: 0;
  overflow: clip;
}
.ps-workspace > section {
  align-self: stretch;
  min-width: 0;
  margin: 0;
}
.ps-preview {
  background: #f4f5ef;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  position: relative;
}
.ps-preview .ps-side-switcher {
  justify-content: center;
  margin: 0;
}
.ps-preview .ps-side-switcher button {
  flex: 0 1 auto;
}
.ps-preview-top {
  display: none;
}
.ps-pill {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: 20px;
  padding: 7px 17px;
  color: var(--ps-ink);
  font-weight: 600;
}
.ps-stage-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  container-type: size;
}
.ps-stage {
  width: min(100%, calc(100cqh * var(--ps-aspect, 1)));
  max-width: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ps-product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.ps-print-area {
  position: absolute;
  border: 1.5px dashed #3b6b5399;
  background: #e6f0e515;
  pointer-events: none;
}
.ps-artwork {
  position: absolute;
  pointer-events: none;
  user-select: none;
  transform-origin: center;
}
.ps-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}
.ps-stage-hint {
  display: none;
}
.ps-panel {
  padding: 24px 32px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ps-product-info {
  margin-bottom: 23px;
}
.ps-product-info h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 0;
}
.ps-controls {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.ps-field {
  display: block;
  font-size: 16px;
  margin: 17px 0;
  font-weight: 600;
}
.ps-field > span,
.ps-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.ps-field output {
  font-size: 14px;
  font-weight: 400;
  color: var(--ps-muted);
}
.ps-field select {
  width: 100%;
  border: 1px solid #d8ddd4;
  border-radius: 7px;
  background: #fff;
  padding: 11px 12px;
  font-size: 16px;
}
.ps-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ps-methods button {
  flex: 1 1 120px;
  padding: 11px 8px;
  border: 1px solid var(--ps-line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}
.ps-methods button[aria-pressed="true"] {
  border-color: var(--ps-green);
  background: #eff4eb;
  color: var(--ps-green);
  box-shadow: inset 0 0 0 1px var(--ps-green);
}
.ps-divider {
  height: 1px;
  background: var(--ps-line);
  margin: 23px 0;
}
.ps-zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ps-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--ps-line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 4px;
  font-size: 14px !important;
  color: var(--ps-muted);
}
.ps-zone svg {
  display: block;
  width: 45px;
  height: 45px;
}
.ps-zone svg path {
  fill: #f5f6f1;
  stroke: #bdc7b8;
  stroke-width: 1.5;
}
.ps-zone svg g {
  fill: #6e8b75;
}
.ps-zone[aria-pressed="true"] {
  border-color: var(--ps-green);
  box-shadow: inset 0 0 0 1px var(--ps-green);
  background: #eff4eb;
  color: var(--ps-green);
  font-weight: 600;
}
.ps-zone-hint {
  font-size: 14px;
  color: var(--ps-muted);
  margin: 9px 0 20px;
}
.ps-step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
}
.ps-step-heading > span {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid #d2dacd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ps-muted);
}
.ps-step-heading h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.ps-step-heading button {
  margin-left: auto;
  border: 0;
  background: transparent;
  text-decoration: underline;
  font-size: 14px;
  min-height: 32px;
}
.ps-tabs {
  display: flex;
  border-bottom: 1px solid var(--ps-line);
  margin-bottom: 16px;
}
.ps-tabs button {
  flex: 1;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  padding: 10px 0;
  color: var(--ps-muted);
}
.ps-tabs button[aria-pressed="true"] {
  border-bottom-color: var(--ps-green);
  color: var(--ps-ink);
  font-weight: 600;
}
.ps-dropzone {
  position: relative;
  border: 1.5px dashed #b6c5b2;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 17px 10px;
  gap: 6px;
  background: #fafbf7;
  text-align: center;
  cursor: pointer;
}
.ps-dropzone:hover,
.ps-dragover {
  background: #eff4e8;
}
.ps-dropzone:focus-within {
  outline: 3px solid #5b9c78;
  outline-offset: 3px;
}
.ps-upload-icon {
  font-size: 25px;
  line-height: 1.2;
}
.ps-dropzone .ps-spinner {
  width: 26px;
  height: 26px;
  margin: 2px 0;
  border-color: var(--ps-line);
  border-top-color: var(--ps-green);
}
.ps-dropzone[aria-busy="true"] {
  border-style: solid;
  background: #eff4e8;
}
.ps-dropzone[aria-busy="true"],
.ps-dropzone[aria-busy="true"] .ps-file {
  cursor: progress;
}
.ps-dropzone strong {
  font-size: 14px;
  font-weight: 600;
}
.ps-dropzone > span:last-of-type {
  font-size: 14px;
  color: var(--ps-muted);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.ps-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.ps-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 14px;
  max-height: 220px;
  overflow: auto;
}
.ps-library-item {
  padding: 6px;
  border: 1px solid var(--ps-line);
  border-radius: 7px;
  background: #fafbf8;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  font-size: 14px !important;
}
.ps-library-item img {
  height: 65px;
  width: 100%;
  object-fit: contain;
}
.ps-library-item[aria-pressed="true"] {
  border-color: var(--ps-green);
  box-shadow: inset 0 0 0 1px var(--ps-green);
}
.ps-upload-history {
  margin-bottom: 12px;
}
.ps-upload-history h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.ps-upload-history .ps-library-item {
  min-width: 0;
}
.ps-upload-history .ps-library-item span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ps-line);
}
.ps-chosen > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-chosen button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  font-size: 14px;
  min-height: 32px;
}
.ps-field input[type="range"] {
  width: 100%;
  accent-color: var(--ps-green);
  margin: 6px 0;
  cursor: pointer;
  height: 22px;
}
.ps-quality {
  font-size: 14px;
  line-height: 1.5;
  color: #397654;
  margin: 7px 0;
}
.ps-quality.ps-warning {
  color: #915718;
  border-left: 2px solid currentColor;
  padding-left: 10px;
}
.ps-technique-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ps-muted);
  margin: 19px 0 14px;
}
.ps-rights {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.ps-rights input {
  accent-color: var(--ps-green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}
.ps-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 20px;
  padding: 19px 30px;
  background: #fff;
  border-top: 1px solid var(--ps-line);
  z-index: 2;
}
.ps-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ps-price strong {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.ps-price span {
  font-size: 14px;
  color: var(--ps-muted);
}
.ps-price [data-unit-price] {
  font-size: 14px;
  font-weight: 500;
  color: var(--ps-ink);
}
.ps-purchase {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ps-purchase > label {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ps-purchase input {
  border: 1px solid var(--ps-line);
  border-radius: 6px;
  width: 66px;
  padding: 8px;
  height: 38px;
  font-size: 16px;
}
.ps-primary {
  border: 0;
  border-radius: 7px;
  background: var(--ps-green);
  color: white !important;
  font-weight: 500;
  font-size: 16px !important;
  padding: 15px 24px;
  min-width: 188px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}
.ps-cart-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.ps-primary:hover {
  background: #1d3f2f;
}
.ps-primary span {
  font-size: 19px;
  line-height: 1;
}
.ps-message {
  flex-basis: 100%;
  font-size: 14px;
  margin: 0;
  color: var(--ps-green);
}
.ps-message:not(:empty) {
  padding-top: 12px;
}
.ps-error {
  color: #a03126;
}
.ps-loading {
  padding: 45px 32px;
  font-size: 15px;
}
.ps-dialog .ps-skeleton {
  /* Keep placeholders visible when the theme hides empty divs. */
  display: block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 7px;
  background: #e4e7e9;
}
.ps-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 15%,
    #f2f4f670 35%,
    #ffffffd9 50%,
    #f2f4f670 65%,
    transparent 85%
  );
  transform: translateX(-100%);
}
.ps-skeleton-pill {
  width: 100px;
  height: 31px;
  border-radius: 20px;
}
.ps-skeleton-label {
  width: 92px;
  height: 12px;
}
.ps-skeleton-product {
  width: min(74%, 380px, 68cqh);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
}
.ps-skeleton-hint {
  width: 60%;
  height: 10px;
  margin: 12px auto 0;
  flex-shrink: 0;
}
.ps-skeleton-panel {
  overflow: hidden;
}
.ps-skeleton-title {
  width: 72%;
  height: 24px;
  margin-bottom: 28px;
}
.ps-skeleton-group {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.ps-skeleton-row {
  display: flex;
  gap: 8px;
}
.ps-skeleton-row > * {
  flex: 1;
  min-width: 0;
}
.ps-skeleton-control {
  height: 40px;
}
.ps-skeleton-heading {
  width: 44%;
  height: 16px;
}
.ps-skeleton-zone {
  height: 84px;
}
.ps-skeleton-caption {
  width: 80%;
  height: 10px;
}
.ps-skeleton-upload {
  height: 126px;
  border-radius: 10px;
}
.ps-skeleton-price {
  width: 180px;
  max-width: 100%;
  margin: 0;
  gap: 8px;
}
.ps-skeleton-purchase {
  width: 188px;
  max-width: 100%;
  height: 50px;
  justify-self: end;
}
.ps-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 740px) {
  .ps-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    overflow: clip;
  }
  .ps-dialog[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .ps-header {
    padding: 8px 20px;
  }
  .ps-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(160px, 26dvh) minmax(0, 1fr);
    min-height: 0;
    overflow: clip;
  }
  .ps-dialog[data-document-mode="true"] .ps-workspace {
    grid-template-rows: minmax(200px, 30dvh) minmax(0, 1fr);
  }
  .ps-preview {
    min-height: 0;
    padding: 12px 16px;
    overflow: clip;
  }
  .ps-stage-wrap {
    min-height: 0;
  }
  .ps-stage {
    max-width: none;
    height: auto;
  }
  .ps-product-image {
    width: 100%;
    height: 100%;
  }
  .ps-panel {
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    padding: 23px 20px;
  }
  .ps-footer {
    padding: 14px 20px;
    gap: 12px;
  }
  .ps-price strong {
    font-size: 20px;
  }
  .ps-price span {
    font-size: 14px;
    max-width: 140px;
  }
  .ps-purchase {
    gap: 10px;
  }
  .ps-primary {
    min-width: 150px;
    padding: 15px;
    gap: 14px;
  }
  .ps-purchase input {
    width: 52px;
  }
  .ps-pill {
    padding: 4px 12px;
  }
  .ps-dialog button {
    min-height: 40px;
  }
}
@media (max-width: 740px) {
  .ps-footer {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(0, 1.5fr);
    gap: 4px 12px;
  }
  .ps-price {
    display: contents;
  }
  .ps-price strong {
    grid-column: 1;
    grid-row: 1;
  }
  .ps-price [data-unit-price] {
    grid-column: 1;
    grid-row: 2;
  }
  .ps-price [data-price-hint] {
    grid-column: 1 / -1;
    grid-row: 3;
    max-width: none;
  }
  .ps-purchase {
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 0;
    gap: 8px;
  }
  .ps-footer:has(.ps-price[hidden]) .ps-purchase {
    grid-column: 1 / -1;
  }
  .ps-purchase input {
    width: 46px;
  }
  .ps-primary {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    gap: 8px;
  }
  .ps-message {
    grid-column: 1/-1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ps-dialog[open] .ps-skeleton::after {
    animation: ps-shimmer 1.8s ease-in-out infinite;
  }
  @keyframes ps-shimmer {
    to {
      transform: translateX(100%);
    }
  }
  .ps-dialog[open] {
    animation: ps-appear 0.16s ease-out;
  }
  @keyframes ps-appear {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.ps-minimum {
  font-size: 14px;
  color: var(--ps-muted);
  margin: 8px 0;
}

.ps-artwork {
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
}
.ps-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ps-colors button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ps-line);
  border-radius: 7px;
  padding: 8px 10px;
  background: white;
  color: var(--ps-ink);
  font-size: 14px;
  cursor: pointer;
}
.ps-colors button[aria-pressed="true"] {
  outline: 2px solid var(--ps-green);
  outline-offset: 1px;
}
.ps-color-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid #0003;
  border-radius: 50%;
}

.ps-upload-colors {
  margin-top: 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ps-line);
}
.ps-palette-controls {
  margin: 0;
  padding: 0;
  min-width: 0;
  border: 0;
}
.ps-palette-hint,
.ps-palette-status {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ps-muted);
  margin: 8px 0;
}
.ps-palette-status.ps-error {
  color: #a03126;
}
.ps-palette-count {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}
.ps-palette-list {
  display: grid;
  gap: 8px;
}
.ps-palette-row {
  padding: 14px;
  border: 1px solid var(--ps-line);
  border-radius: 8px;
  background: #fafbf8;
  min-width: 0;
}
.ps-palette-row-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.ps-palette-row-heading > :first-child {
  font-weight: 600;
}
.ps-palette-row-heading > :last-child {
  font-size: 14px;
  text-decoration: underline;
}
.ps-palette-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
}
.ps-palette-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ps-palette-inputs input {
  border: 1px solid #c5cebf;
  border-radius: 5px;
  background: white;
  min-height: 40px;
}
.ps-palette-inputs input[type="color"] {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 4px;
  cursor: pointer;
}
.ps-palette-inputs input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.ps-palette-inputs input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 3px;
}
.ps-palette-inputs input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 3px;
}
.ps-palette-inputs input[type="text"] {
  min-width: 0;
  width: 100%;
  padding: 4px 6px;
  font-size: 14px;
  text-transform: lowercase;
}
.ps-palette-options {
  margin-top: 10px;
}
.ps-palette-options summary,
.ps-palette-reduction summary {
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
}
.ps-palette-options[open] summary {
  margin-bottom: 8px;
}
.ps-palette-reduction {
  margin-top: 8px;
}
.ps-palette-reduction .ps-field {
  margin-top: 8px;
}
.ps-palette-merge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  min-width: 0;
}
.ps-palette-merge select {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  border: 1px solid #c5cebf;
  border-radius: 5px;
  background: white;
  padding: 5px;
  font-size: 14px;
}
.ps-palette-transparent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  min-height: 40px;
}
.ps-palette-transparent input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--ps-green);
}
.ps-palette-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ps-palette-actions button,
.ps-palette-retry {
  border: 1px solid var(--ps-line);
  border-radius: 6px;
  background: white;
  font-size: 14px;
  padding: 9px;
  min-height: 40px;
}

.ps-size-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  align-items: center;
  gap: 16px;
}
.ps-size-row input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--ps-green);
}
.ps-size-number {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.ps-size-number input {
  font-size: 16px;
  width: 66px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--ps-line);
  border-radius: 7px;
  background: white;
  color: var(--ps-ink);
}

.ps-quote {
  padding: 20px 28px;
  border-top: 1px solid #dbe2d7;
}
.ps-quote-toggle {
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  color: inherit;
  padding: 8px 0;
}
.ps-quote-toggle:disabled {
  opacity: 0.5;
  cursor: default;
}
.ps-quote-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ps-quote form {
  max-width: 680px;
  margin: 16px auto;
}
.ps-quote label {
  display: block;
  margin: 12px 0;
  font-size: 14px;
}
.ps-quote input:not([type="checkbox"]),
.ps-quote textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #9aaa9b;
  border-radius: 6px;
  font: inherit;
}
.ps-quote .ps-quote-consent {
  display: flex;
  gap: 10px;
}
.ps-quote [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .ps-quote-fields {
    grid-template-columns: 1fr;
  }
  .ps-quote {
    padding: 16px;
  }
}

.ps-quantity input {
  font-size: 16px;
  width: 110px;
  padding: 10px 12px;
  border: 1px solid var(--ps-line);
  border-radius: 6px;
  background: white;
}
.ps-quantity-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin: 17px 0;
}
.ps-variant-quantities {
  --ps-variant-action-size: 28px;
  --ps-variant-thumbnail-size: 40px;
  margin: 16px 0;
}
.ps-variant-heading,
.ps-variant-row {
  display: grid;
  grid-template-columns: var(--ps-variant-thumbnail-size) minmax(0, 1fr) 76px;
  align-items: center;
  gap: 6px;
}
.ps-variant-quantities[data-multiple="true"] .ps-variant-heading,
.ps-variant-quantities[data-multiple="true"] .ps-variant-row {
  grid-template-columns:
    var(--ps-variant-thumbnail-size) minmax(0, 1fr)
    76px var(--ps-variant-action-size);
}
.ps-variant-heading > span {
  grid-column: 3;
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-muted);
}
.ps-variant-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--ps-line);
}
.ps-variant-row .ps-field {
  min-width: 0;
  margin: 0;
}
.ps-variant-row select,
.ps-variant-row .ps-quantity input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.ps-variant-row .ps-quantity input {
  padding-inline: 6px;
}
.ps-variant-row-actions {
  display: flex;
}
.ps-variant-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--ps-variant-thumbnail-size);
  height: var(--ps-variant-thumbnail-size);
  padding: 2px;
  border: 1px solid var(--ps-line);
  border-radius: 7px;
  background: #fff;
  color: var(--ps-muted);
}
.ps-variant-preview img {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.ps-variant-placeholder {
  width: 26px;
  height: 26px;
}
.ps-variant-preview img + .ps-variant-placeholder {
  visibility: hidden;
}
.ps-variant-eye {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 17px;
  height: 17px;
  padding: 2px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ps-line);
}
.ps-variant-preview[aria-pressed="true"] {
  border-color: #5b9c78;
}
.ps-variant-preview[aria-pressed="true"] .ps-variant-eye {
  background: #e8f2eb;
  color: #245b36;
  box-shadow: 0 0 0 1px #5b9c78;
}
.ps-variant-preview:hover {
  border-color: #5b9c78;
}
.ps-variant-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.ps-variant-actions button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 6px 0;
  text-decoration: underline;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.ps-variant-row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ps-variant-action-size);
  height: var(--ps-variant-action-size);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ps-muted);
  cursor: pointer;
}
.ps-variant-row-actions button:hover,
.ps-variant-row-actions button:focus-visible {
  background: #eef1eb;
  color: var(--ps-ink);
}
.ps-variant-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
.ps-variant-row-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (any-pointer: coarse) {
  .ps-variant-quantities {
    --ps-variant-action-size: 44px;
    --ps-variant-thumbnail-size: 44px;
  }
}
.ps-variant-actions [data-total-quantity] {
  font-size: 14px;
  font-weight: 600;
}
.ps-review-variant {
  min-width: 0;
}
.ps-review-variant h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.ps-quantity-section .ps-quantity {
  margin: 0;
}
.ps-quantity-discounts {
  min-width: 0;
  font-size: 14px;
}
.ps-quantity-tiers {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  border: 1px solid var(--ps-line);
  border-radius: 8px;
  overflow: hidden;
}
.ps-quantity-tiers li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 7px 10px;
}
.ps-quantity-tiers li + li {
  border-top: 1px solid var(--ps-line);
}
.ps-quantity-tiers li[data-active] {
  background: #e8f2eb;
  color: #245b36;
  font-weight: 600;
}
.ps-quantity-savings {
  margin: 8px 0;
  line-height: 1.5;
}
.ps-quantity-savings:empty {
  display: none;
}
.ps-quantity-discounts small {
  display: block;
  color: var(--ps-muted);
  font-size: 14px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
}
@media (max-width: 420px) {
  .ps-quantity-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.ps-ink-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.ps-free-color {
  width: 52px;
  height: 44px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--ps-line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
}
.ps-text-options .ps-free-color {
  width: 100%;
}
.ps-color-value {
  font-size: 14px;
  font-family: monospace;
}
.ps-ink-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--ps-line);
  border-radius: 6px;
  background: white;
  font-size: 14px !important;
}
.ps-ink-choice[aria-pressed="true"] {
  border-color: var(--ps-green);
  box-shadow: 0 0 0 1px var(--ps-green);
  background: #f2f6f1;
}
.ps-spinner {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid #ffffff60;
  border-top-color: #fff;
  border-radius: 50%;
  animation: ps-spin 0.8s linear infinite;
}
@keyframes ps-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ps-spinner {
    animation-duration: 2s;
  }
}
