.customywear-photo-editor-shell {
  --ws-accent: #239add;
  --ws-accent-dark: #1578b0;
  --ws-brand-dark: #1e3b66;
  --ws-brand-ink: #202020;
  --ws-bg: #f3f9fd;
  --ws-surface: #ffffff;
  --ws-surface-alt: #ecf6fb;
  --ws-ink: #112536;
  --ws-muted: #607487;
  --ws-line: #d7e6f0;
  --ws-error: #b42318;
  color: var(--ws-ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.customywear-photo-editor-shell [hidden] {
  display: none !important;
}

body.customywear-photo-editor-modal-open {
  overflow: hidden;
}

.customywear-photo-editor-launcher {
  display: grid;
  gap: 18px;
}

.customywear-photo-editor-saved-summary {
  background: linear-gradient(180deg, rgba(30, 59, 102, 0.06) 0%, rgba(35, 154, 221, 0.04) 100%);
  border: 1px solid var(--ws-line);
  border-radius: 24px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.customywear-photo-editor-saved-label {
  color: var(--ws-brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.customywear-photo-editor-saved-note {
  color: var(--ws-muted);
  margin: 0;
}

.customywear-photo-editor-saved-image {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.customywear-photo-editor-saved-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customywear-photo-editor-saved-card {
  background: #ffffff;
  border: 1px solid var(--ws-line);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  padding: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.customywear-photo-editor-saved-card.is-selected {
  border-color: var(--ws-accent);
  box-shadow: 0 0 0 3px rgba(35, 154, 221, 0.15);
}

.customywear-photo-editor-saved-thumb {
  appearance: none;
  background: #f5fbff;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.customywear-photo-editor-saved-card.is-color-preview-pending .customywear-photo-editor-saved-thumb {
  position: relative;
}

.customywear-photo-editor-saved-card.is-color-preview-pending .customywear-photo-editor-saved-thumb::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.58) 50%, transparent 100%);
  bottom: 0;
  content: "";
  left: -65%;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateX(0);
  width: 55%;
}

.customywear-photo-editor-saved-grid.is-updating-color-preview .customywear-photo-editor-saved-card.is-color-preview-pending .customywear-photo-editor-saved-thumb::after {
  animation: customywearPhotoEditorSavedColorPreviewShimmer 1.2s ease-in-out infinite;
}

@keyframes customywearPhotoEditorSavedColorPreviewShimmer {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(300%);
  }
}


.customywear-photo-editor-saved-actions {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-areas: "edit select delete";
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.customywear-photo-editor-saved-edit {
  font-size: 12px;
  grid-area: edit;
  min-width: 0;
  padding-inline: 14px;
}

.customywear-photo-editor-saved-icon {
  align-items: center;
  appearance: none;
  background: var(--ws-surface-alt);
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  color: var(--ws-ink);
  cursor: pointer;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.customywear-photo-editor-saved-icon svg {
  display: block;
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.customywear-photo-editor-saved-icon.is-selected,
.customywear-photo-editor-saved-icon:hover,
.customywear-photo-editor-saved-icon:focus-visible {
  border-color: var(--ws-accent);
  color: var(--ws-accent);
}

.customywear-photo-editor-saved-delete:hover,
.customywear-photo-editor-saved-delete:focus-visible {
  border-color: #dc2626;
  color: #dc2626;
}

.customywear-photo-editor-saved-select {
  grid-area: select;
}

.customywear-photo-editor-saved-delete {
  grid-area: delete;
}

.customywear-photo-editor-launch-button {
  align-items: center;
  appearance: none;
  background: linear-gradient(135deg, #3fb3ef 0%, #239add 55%, #1e79be 100%);
  border: 0;
  border-radius: 26px;
  box-shadow: 0 18px 34px rgba(35, 154, 221, 0.22);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
  padding: 20px 22px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.customywear-photo-editor-launch-button:hover,
.customywear-photo-editor-launch-button:focus-visible {
  box-shadow: 0 20px 38px rgba(35, 154, 221, 0.28);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.customywear-photo-editor-launch-button:active {
  transform: translateY(0) scale(0.992);
}

.customywear-photo-editor-launch-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.customywear-photo-editor-launch-icon svg {
  display: block;
  fill: currentColor;
  height: 26px;
  width: 26px;
}

.customywear-photo-editor-launch-copy {
  display: grid;
  gap: 4px;
}

.customywear-photo-editor-launch-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}

.customywear-photo-editor-launch-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.4;
}

.customywear-photo-editor-popup {
  inset: 0;
  position: fixed;
  z-index: 9998;
}

.customywear-photo-editor-popup-backdrop {
  background: rgba(7, 20, 31, 0.72);
  inset: 0;
  position: absolute;
}

.customywear-photo-editor-popup-dialog {
  display: flex;
  flex-direction: column;
  height: min(94svh, 860px);
  left: 50%;
  max-width: min(96vw, 980px);
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 1;
}

.customywear-photo-editor-popup-close {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  color: var(--ws-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 46px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 46px;
  z-index: 2;
}

.customywear-photo-editor-popup-alert {
  background: #fff9f2;
  border: 1px solid rgba(199, 124, 32, 0.22);
  border-radius: 18px;
  color: #8a4b08;
  margin: 0 0 14px;
  padding: 14px 16px;
  position: relative;
  z-index: 3;
}

.customywear-photo-editor-popup-alert-message {
  margin: 0;
}

.customywear-photo-editor-popup-alert-actions {
  flex-direction: row;
  justify-content: center;
  margin-top: 12px;
}

.customywear-photo-editor-popup-alert-actions .customywear-photo-editor-primary,
.customywear-photo-editor-popup-alert-actions .customywear-photo-editor-secondary {
  flex: 1 1 0;
}

.customywear-photo-editor-frame {
  background:
    radial-gradient(circle at top right, rgba(35, 154, 221, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  border: 1px solid var(--ws-line);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(17, 37, 54, 0.1);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.customywear-photo-editor-popup .customywear-photo-editor-frame {
  height: 100%;
  min-height: 0;
}

.customywear-photo-editor-header {
  align-items: center;
  border-bottom: 1px solid var(--ws-line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding: 14px 18px 10px;
}

.customywear-photo-editor-back,
.customywear-photo-editor-lightbox-close {
  appearance: none;
  background: var(--ws-surface-alt);
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  color: var(--ws-ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

.customywear-photo-editor-eyebrow {
  color: var(--ws-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-align: center;
  text-transform: uppercase;
}

.customywear-photo-editor-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.1;
  margin: 0;
  text-align: center;
}

.customywear-photo-editor-subtitle {
  color: var(--ws-muted);
  margin: 6px 0 0;
  max-width: 48rem;
  text-align: center;
}

.customywear-photo-editor-heading {
  grid-column: 2;
  justify-self: center;
  max-width: 36rem;
  text-align: center;
  width: 100%;
}

.customywear-photo-editor-back {
  grid-column: 1;
  justify-self: start;
}

.customywear-photo-editor-header-spacer {
  display: block;
  grid-column: 3;
  height: 44px;
  justify-self: end;
  width: 82px;
}

.customywear-photo-editor-step {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 12px 18px 18px;
}

.customywear-photo-editor-step.is-active {
  display: flex;
}

.customywear-photo-editor-upload-layout,
.customywear-photo-editor-editor,
.customywear-photo-editor-cropper,
.customywear-photo-editor-result-shell,
.customywear-photo-editor-processing,
.customywear-photo-editor-preview-panel,
.customywear-photo-editor-text-editor,
.customywear-photo-editor-text-controls {
  align-content: start;
  display: grid;
  gap: 14px;
  min-height: 0;
}

.customywear-photo-editor-guide,
.customywear-photo-editor-history-panel,
.customywear-photo-editor-editor,
.customywear-photo-editor-progress-card,
.customywear-photo-editor-preview-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--ws-line);
  border-radius: 24px;
  padding: 18px;
}

.customywear-photo-editor-upload-layout,
.customywear-photo-editor-editor,
.customywear-photo-editor-upload-panel {
  display: grid;
  gap: 12px;
  grid-template-rows: auto;
}

.customywear-photo-editor-cropper {
  justify-items: center;
}

.customywear-photo-editor-upload-layout {
  justify-items: center;
}

.customywear-photo-editor-guide,
.customywear-photo-editor-editor {
  justify-self: center;
  margin-inline: auto;
  width: min(100%, 560px);
}

.customywear-photo-editor-guide-image {
  border-radius: 20px;
  display: block;
  max-height: 18vh;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

.customywear-photo-editor-guide-list,
.customywear-photo-editor-progress-list {
  color: var(--ws-muted);
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.customywear-photo-editor-dropzone {
  align-items: center;
  background: linear-gradient(135deg, #33ace6 0%, #239add 100%);
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 74px;
  padding: 0;
  position: relative;
  text-align: center;
  touch-action: manipulation;
  width: 100%;
}

.customywear-photo-editor-file {
  cursor: pointer;
  inset: 0;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}

.customywear-photo-editor-dropzone-cta {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-size: 17px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.01em;
  min-height: 74px;
  padding: 0 18px;
  text-align: center;
  width: 100%;
}

.customywear-photo-editor-mobile-upload-options {
  display: none;
  gap: 12px;
  width: 100%;
}

.customywear-photo-editor-dropzone-icon {
  color: #ffffff;
  display: inline-flex;
  line-height: 1;
}

.customywear-photo-editor-dropzone-icon svg {
  display: block;
  fill: currentColor;
  height: 22px;
  width: 22px;
}

.customywear-photo-editor-dropzone-desktop .customywear-photo-editor-dropzone-icon {
  transform: translateY(-1px);
}

.customywear-photo-editor-dropzone-desktop .customywear-photo-editor-dropzone-icon svg {
  height: 24px;
  width: 24px;
}

.customywear-photo-editor-dropzone-mobile .customywear-photo-editor-dropzone-cta {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
}

.customywear-photo-editor-privacy-note {
  align-items: center;
  color: var(--ws-muted);
  display: grid;
  font-size: 11px;
  gap: 10px;
  grid-template-columns: auto 1fr;
  margin: 2px auto 0;
  max-width: 34rem;
  text-align: left;
}

.customywear-photo-editor-security-icon {
  background: rgba(35, 154, 221, 0.12);
  border-radius: 999px;
  color: var(--ws-accent);
  display: inline-grid;
  height: 34px;
  place-items: center;
  width: 34px;
}

.customywear-photo-editor-security-icon svg {
  display: block;
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.customywear-photo-editor-crop-instruction,
.customywear-photo-editor-text-editor-hint,
.customywear-photo-editor-final-note,
.customywear-photo-editor-result-tip,
.customywear-photo-editor-progress-card p {
  color: var(--ws-muted);
  margin: 0;
  text-align: center;
}

.customywear-photo-editor-crop-instruction {
  font-size: 12px;
  line-height: 1.35;
  max-width: 34rem;
}

.customywear-photo-editor-final-note {
  font-size: 13px;
}

.customywear-photo-editor-result-shell,
.customywear-photo-editor-processing,
.customywear-photo-editor-preview-panel {
  align-content: start;
  height: 100%;
  min-height: 0;
}

.customywear-photo-editor-result-shell {
  flex: 1 1 auto;
}

.customywear-photo-editor-preview-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  justify-items: center;
}

.customywear-photo-editor-preview-panel.is-editor {
  gap: 10px;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.customywear-photo-editor-processing {
  align-content: center;
  justify-items: center;
  padding-block: 9svh 0;
}

.customywear-photo-editor-history-panel,
.customywear-photo-editor-progress-card {
  margin: auto;
  max-width: 560px;
  width: min(100%, 560px);
}

.customywear-photo-editor-history-panel {
  display: grid;
  gap: 18px;
}

.customywear-photo-editor-history-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.customywear-photo-editor-history-image {
  display: block;
  height: auto;
  width: 100%;
}

.customywear-photo-editor-crop-stage {
  aspect-ratio: 1 / 1;
  background: var(--ws-surface-alt);
  border-radius: 24px;
  justify-self: center;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  width: min(100%, 30svh, 36vw);
}

.customywear-photo-editor-crop-inline-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  width: 100%;
}

.customywear-photo-editor-zoom-field {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.customywear-photo-editor-crop-inline-label {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.customywear-photo-editor-crop-inline-row input[type="range"] {
  min-width: 0;
}

.customywear-photo-editor-crop-inline-row .customywear-photo-editor-slider-reset {
  height: 38px;
  width: 38px;
}

.customywear-photo-editor-crop-canvas,
.customywear-photo-editor-result-canvas {
  display: block;
  height: auto;
  max-width: 100%;
  touch-action: none;
  width: 100%;
}

.customywear-photo-editor-crop-mask {
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  box-shadow: 0 0 0 999px rgba(17, 37, 54, 0.22) inset;
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.customywear-photo-editor-zoom-field,
.customywear-photo-editor-text-field,
.customywear-photo-editor-rotation-field {
  display: grid;
  gap: 8px;
}

.customywear-photo-editor-zoom-field span,
.customywear-photo-editor-text-field span,
.customywear-photo-editor-rotation-field span,
.customywear-photo-editor-control-label {
  font-weight: 700;
}

.customywear-photo-editor-text-input,
.customywear-photo-editor-text-rotation,
.customywear-photo-editor-zoom,
.customywear-photo-editor-color-picker {
  accent-color: var(--ws-accent);
}

.customywear-photo-editor-text-input {
  background: #ffffff;
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  color: var(--ws-ink);
  font: inherit;
  min-height: 48px;
  padding: 0 48px 0 14px;
}

.customywear-photo-editor-text-input-row {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}

.customywear-photo-editor-text-clear,
.customywear-photo-editor-slider-reset {
  align-items: center;
  appearance: none;
  background: var(--ws-surface-alt);
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  color: var(--ws-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.customywear-photo-editor-text-clear:hover,
.customywear-photo-editor-slider-reset:hover {
  border-color: var(--ws-accent);
  color: var(--ws-accent);
}

.customywear-photo-editor-text-clear {
  height: 36px;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
}

.customywear-photo-editor-slider-row {
  gap: 12px;
}

.customywear-photo-editor-slider-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.customywear-photo-editor-slider-value {
  color: var(--ws-accent);
  font-size: 14px;
}

.customywear-photo-editor-slider-control {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.customywear-photo-editor-slider-control--single {
  grid-template-columns: 1fr;
}

.customywear-photo-editor-shell input[type="range"] {
  appearance: none;
  background: transparent;
  height: 32px;
  width: 100%;
}

.customywear-photo-editor-shell input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, rgba(35, 154, 221, 0.95), rgba(119, 205, 239, 0.95));
  border-radius: 999px;
  height: 8px;
}

.customywear-photo-editor-shell input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: #ffffff;
  border: 3px solid var(--ws-accent);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(17, 37, 54, 0.18);
  height: 24px;
  margin-top: -8px;
  width: 24px;
}

.customywear-photo-editor-shell input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, rgba(35, 154, 221, 0.95), rgba(119, 205, 239, 0.95));
  border: 0;
  border-radius: 999px;
  height: 8px;
}

.customywear-photo-editor-shell input[type="range"]::-moz-range-thumb {
  background: #ffffff;
  border: 3px solid var(--ws-accent);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(17, 37, 54, 0.18);
  height: 24px;
  width: 24px;
}

.customywear-photo-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.customywear-photo-editor-actions-result,
.customywear-photo-editor-actions-submit,
.customywear-photo-editor-actions-editor,
.customywear-photo-editor-actions-rotation-reset {
  position: relative;
  width: 100%;
  z-index: 1;
}

.customywear-photo-editor-primary,
.customywear-photo-editor-secondary {
  appearance: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  min-height: 48px;
  padding: 0 20px;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.customywear-photo-editor-primary {
  background: var(--ws-accent);
  border: 0;
  color: #ffffff;
}

.customywear-photo-editor-primary:hover {
  background: var(--ws-accent-dark);
  transform: translateY(-1px);
}

.customywear-photo-editor-secondary {
  background: var(--ws-surface-alt);
  border: 1px solid var(--ws-line);
  color: var(--ws-ink);
}

.customywear-photo-editor-primary[disabled],
.customywear-photo-editor-secondary[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.customywear-photo-editor-progress-card h3 {
  font-size: clamp(19px, 3vw, 26px);
  line-height: 1.18;
  margin: 0;
}

.customywear-photo-editor-progress-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.customywear-photo-editor-waiting-video {
  display: block;
  height: auto;
  margin: 0 auto 2px;
  max-width: 180px;
  pointer-events: none;
  width: min(60%, 180px);
}

.customywear-photo-editor-progress-card p {
  margin: 0 0 8px;
  max-width: 32rem;
}

.customywear-photo-editor-result-ready {
  justify-self: center;
  max-width: 32rem;
  text-align: center;
}

.customywear-photo-editor-progress-meta {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.customywear-photo-editor-progress-percent {
  color: var(--ws-accent);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.customywear-photo-editor-progress-current {
  color: var(--ws-ink);
  font-weight: 700;
}

.customywear-photo-editor-progress-bar {
  background: #e3f0f8;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  width: 100%;
}

.customywear-photo-editor-progress-bar span {
  background: linear-gradient(90deg, var(--ws-accent), #77cdef);
  display: block;
  height: 100%;
  transition: width 0.35s ease;
  width: 0;
}

.customywear-photo-editor-result-image-button {
  background: var(--ws-surface-alt);
  border: 1px solid var(--ws-line);
  border-radius: 24px;
  cursor: zoom-in;
  justify-self: center;
  overflow: hidden;
  padding: 0;
  width: min(100%, 38svh, 48vw);
}

.customywear-photo-editor-result-image-button.is-editing {
  cursor: default;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
  align-self: center;
  max-height: none;
  width: min(100%, 640px);
  max-width: 100%;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-controls {
  gap: 10px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor {
  max-width: 760px;
  width: 100%;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-canvas {
  height: auto;
  max-height: none;
  width: 100%;
  max-width: 100%;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-input {
  min-height: 44px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-chip,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-font-option,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-picker-field {
  border-radius: 14px;
  min-height: 42px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-slider-row {
  gap: 8px;
}

.customywear-photo-editor-actions-result {
  justify-content: center;
}

.customywear-photo-editor-color-options,
.customywear-photo-editor-font-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.customywear-photo-editor-color-chip,
.customywear-photo-editor-font-option {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--ws-line);
  border-radius: 16px;
  color: var(--ws-ink);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  padding: 0;
}

.customywear-photo-editor-color-chip::before {
  background: var(--cwpe-chip, #111111);
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(17, 37, 54, 0.14);
  content: "";
  display: block;
  height: 18px;
  width: 18px;
}

.customywear-photo-editor-color-chip.is-active,
.customywear-photo-editor-font-option.is-active,
.customywear-photo-editor-color-picker-field.is-active {
  border-color: var(--ws-accent);
  box-shadow: 0 0 0 3px rgba(35, 154, 221, 0.12);
}

.customywear-photo-editor-color-picker-field {
  align-items: center;
  background: conic-gradient(from 180deg, #ff4d4d, #ffb347, #ffe066, #4fd1a5, #43b0ff, #7c5cff, #ff4fa3, #ff4d4d);
  border: 1px solid var(--ws-line);
  border-radius: 16px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.customywear-photo-editor-color-picker-field::before {
  background: conic-gradient(from 180deg, #ff4d4d, #ffb347, #ffe066, #4fd1a5, #43b0ff, #7c5cff, #ff4fa3, #ff4d4d);
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(17, 37, 54, 0.14);
  content: "";
  display: block;
  height: 18px;
  width: 18px;
}

.customywear-photo-editor-color-picker {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 100%;
  inset: 0;
  inline-size: 100%;
  opacity: 0;
  padding: 0;
  position: absolute;
}

.customywear-photo-editor-font-option span {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.customywear-photo-editor-actions-submit {
  margin-top: auto;
  width: 100%;
}

.customywear-photo-editor-actions-submit .customywear-photo-editor-primary {
  width: 100%;
}

.customywear-photo-editor-actions-editor {
  justify-content: center;
}

.customywear-photo-editor-upload-loading-line {
  background: #e3f0f8;
  border-radius: 999px;
  display: none;
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  width: 100%;
}

.customywear-photo-editor-upload-loading-line.is-active {
  display: block;
}

.customywear-photo-editor-upload-loading-line span {
  background: linear-gradient(90deg, var(--ws-accent), #77cdef);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 180ms ease;
  width: 0;
}

.customywear-photo-editor-status {
  border-radius: 16px;
  display: none;
  padding: 12px 14px;
}

.customywear-photo-editor-status.is-visible {
  background: #e6f5fd;
  color: var(--ws-ink);
  display: block;
}

.customywear-photo-editor-status.is-error,
.customywear-photo-editor-inline-alert {
  background: #fdeceb;
  color: var(--ws-error);
}

.customywear-photo-editor-inline-alert {
  border-radius: 16px;
  padding: 16px 18px;
}

.customywear-photo-editor-preview-link {
  align-items: center;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--ws-brand-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: auto;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.customywear-photo-editor-preview-link:hover {
  color: var(--ws-accent-dark);
  text-decoration-thickness: 2px;
}

.customywear-photo-editor-zoom-link {
  display: inline-block;
}

.customywear-photo-editor-cart-preview {
  border: 1px solid var(--ws-line);
  border-radius: 16px;
  display: block;
  height: auto;
  max-width: 96px;
  width: 96px;
}

.customywear-photo-editor-checkout-item {
  align-items: center;
  display: flex;
  gap: 12px;
}

.customywear-photo-editor-checkout-item-name {
  min-width: 0;
}

.customywear-photo-editor-lightbox {
  inset: 0;
  position: fixed;
  z-index: 9999;
}

.customywear-photo-editor-lightbox-backdrop {
  background: rgba(7, 20, 31, 0.82);
  inset: 0;
  position: absolute;
}

.customywear-photo-editor-lightbox-dialog {
  align-items: center;
  display: flex;
  justify-content: center;
  left: 50%;
  max-width: min(92vw, 1080px);
  padding: 20px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.customywear-photo-editor-lightbox-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 254, 0.96) 100%);
  border: 1px solid rgba(215, 230, 240, 0.92);
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(7, 20, 31, 0.22);
  display: grid;
  gap: 14px;
  max-width: min(92vw, 860px);
  padding: 18px;
  position: relative;
  width: 100%;
}

.customywear-photo-editor-lightbox-close {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(7, 20, 31, 0.14);
  font-size: 24px;
  height: 42px;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 42px;
  z-index: 1;
}

.customywear-photo-editor-lightbox-image {
  background: #f7fbfe;
  border: 1px solid var(--ws-line);
  border-radius: 24px;
  cursor: zoom-in;
  display: block;
  margin: 0 auto;
  max-height: min(72svh, 78vh);
  object-fit: contain;
  transition: transform 0.22s ease;
  width: 100%;
}

.customywear-photo-editor-lightbox.is-zoomed .customywear-photo-editor-lightbox-image {
  cursor: zoom-out;
  transform: scale(1.22);
}

.customywear-photo-editor-lightbox-note {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 230, 240, 0.92);
  border-radius: 18px;
  color: var(--ws-ink);
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  margin: 0;
  max-width: none;
  padding: 12px 16px;
}

.customywear-photo-editor-lightbox-note-icon {
  align-items: center;
  background: rgba(35, 154, 221, 0.12);
  border-radius: 999px;
  color: var(--ws-accent);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.customywear-photo-editor-lightbox-note-icon svg {
  display: block;
  fill: currentColor;
  height: 18px;
  width: 18px;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-popup-dialog {
    height: calc(100svh - 16px);
    max-width: calc(100vw - 16px);
  }

  .customywear-photo-editor-header,
  .customywear-photo-editor-step {
    padding: 12px 14px;
  }

  .customywear-photo-editor-actions {
    flex-direction: column;
  }

  .customywear-photo-editor-popup-alert-actions {
    flex-direction: row;
  }

  .customywear-photo-editor-primary,
  .customywear-photo-editor-secondary {
    width: 100%;
  }

  .customywear-photo-editor-guide,
  .customywear-photo-editor-editor,
  .customywear-photo-editor-progress-card,
  .customywear-photo-editor-preview-panel {
    padding: 16px;
  }

  .customywear-photo-editor-crop-stage {
    width: min(100%, 28svh, 52vw);
  }

  .customywear-photo-editor-result-image-button {
    width: min(100%, 32svh, 54vw);
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
    max-height: 34svh;
    width: auto;
    max-width: min(100%, 58vw);
  }

  .customywear-photo-editor-back {
    font-size: 12px;
    line-height: 1;
    min-height: 40px;
    min-width: 76px;
    padding: 0 12px;
    white-space: nowrap;
    writing-mode: horizontal-tb;
  }

  .customywear-photo-editor-color-options,
  .customywear-photo-editor-font-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .customywear-photo-editor-saved-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customywear-photo-editor-saved-actions {
    grid-template-areas:
      "select delete"
      "edit edit";
    grid-template-columns: auto auto;
    justify-content: center;
  }

  .customywear-photo-editor-saved-edit {
    font-size: 11px;
    min-height: 40px;
    padding-inline: 10px;
  }

  .customywear-photo-editor-saved-edit {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-launch-button {
    gap: 12px;
    grid-template-columns: auto 1fr;
    padding: 18px;
  }

  .customywear-photo-editor-launch-icon {
    height: 48px;
    width: 48px;
  }

  .customywear-photo-editor-popup-dialog {
    height: calc(100svh - 8px);
    max-width: calc(100vw - 8px);
  }

  .customywear-photo-editor-popup-close {
    right: 12px;
    top: 12px;
  }

  .customywear-photo-editor-header,
  .customywear-photo-editor-step {
    padding: 10px 12px;
  }

  .customywear-photo-editor-header {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .customywear-photo-editor-actions {
    flex-direction: column;
  }

  .customywear-photo-editor-popup-alert-actions {
    flex-direction: row;
  }

  .customywear-photo-editor-primary,
  .customywear-photo-editor-secondary,
  .customywear-photo-editor-color-chip,
  .customywear-photo-editor-font-option,
  .customywear-photo-editor-color-picker-field {
    width: 100%;
  }

  .customywear-photo-editor-slider-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .customywear-photo-editor-slider-control {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .customywear-photo-editor-color-options,
  .customywear-photo-editor-font-options {
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .customywear-photo-editor-saved-grid {
    grid-template-columns: 1fr;
  }

  .customywear-photo-editor-crop-stage,
  .customywear-photo-editor-result-image-button {
    width: min(100%, 76vw);
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
    max-height: none;
    width: 100%;
    max-width: 100%;
  }

  .customywear-photo-editor-saved-actions {
    grid-template-areas:
      "select delete"
      "edit edit";
    grid-template-columns: auto auto;
    justify-content: center;
  }

  .customywear-photo-editor-saved-icon {
    height: 44px;
    width: 44px;
  }

  .customywear-photo-editor-saved-edit {
    font-size: 12px;
  }

  .customywear-photo-editor-crop-stage {
    width: min(100%, 74vw);
  }

  .customywear-photo-editor-crop-inline-row {
    align-items: center;
    gap: 6px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    width: 100%;
  }

  .customywear-photo-editor-crop-inline-label,
  .customywear-photo-editor-slider-value {
    font-size: 11px;
  }

  .customywear-photo-editor-crop-instruction,
  .customywear-photo-editor-final-note {
    font-size: 10px;
    line-height: 1.3;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-canvas {
    max-height: none;
    width: 100%;
  }

  .customywear-photo-editor-lightbox-dialog {
    padding: 12px;
  }

  .customywear-photo-editor-lightbox-card {
    padding: 14px;
  }

  .customywear-photo-editor-font-option span {
    font-size: 12px;
  }

  .customywear-photo-editor-checkout-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .customywear-photo-editor-progress-meta {
    align-items: center;
    flex-direction: column;
  }

  .customywear-photo-editor-lightbox-note {
    max-width: calc(100vw - 24px);
  }
}


.customywear-photo-editor-upload-panel,
.customywear-photo-editor-cropper {
  justify-items: center;
}

.customywear-photo-editor-upload-panel > *,
.customywear-photo-editor-cropper > * {
  width: min(100%, 560px);
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-canvas {
  aspect-ratio: auto;
}

@media (max-width: 767px) {
  .customywear-photo-editor-back {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customywear-photo-editor-cropper > *,
  .customywear-photo-editor-upload-panel > * {
    width: 100%;
  }

  .customywear-photo-editor-crop-inline-row .customywear-photo-editor-slider-reset {
    height: 34px;
    width: 34px;
  }

  .customywear-photo-editor-processing .customywear-photo-editor-progress-card {
    margin-top: 4svh;
  }
}


/* Compact text editor refresh */
.customywear-photo-editor-preview-panel.is-editor {
  gap: 8px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 14px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-ready,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-final-note {
  display: none !important;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor {
  gap: 8px;
  max-width: 680px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-controls {
  gap: 8px;
}

.customywear-photo-editor-text-field,
.customywear-photo-editor-control-group {
  gap: 6px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor-hint {
  font-size: 11px;
  line-height: 1.25;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
  align-self: stretch;
  width: min(100%, 520px);
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-input {
  min-height: 40px;
  padding: 0 40px 0 12px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-clear {
  height: 32px;
  width: 32px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-options,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-font-options {
  gap: 8px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-chip,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-font-option,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-picker-field {
  min-height: 38px;
  border-radius: 12px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-primary,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-secondary {
  min-height: 42px;
  font-size: 14px;
  padding: 0 16px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-actions-editor {
  margin-top: 2px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-actions-editor .customywear-photo-editor-primary {
  width: 100%;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-preview-panel.is-editor {
    padding: 12px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
    width: min(100%, 460px);
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel.is-editor {
    gap: 7px;
    padding: 10px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
    width: 100%;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor {
    gap: 7px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor-hint {
    font-size: 10px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-options,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-font-options {
    gap: 6px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-chip,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-font-option,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-picker-field {
    min-height: 34px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-font-option span {
    font-size: 11px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-primary,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-secondary {
    min-height: 38px;
    font-size: 13px;
    padding: 0 14px;
  }
}

@media (max-width: 480px) {
  .customywear-photo-editor-preview-panel.is-editor {
    gap: 6px;
    padding: 8px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-input {
    min-height: 38px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-options,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-font-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


/* Final responsive editor and alert refinements */
.customywear-photo-editor-popup-backdrop {
  background: rgba(7, 20, 31, 0.8);
}

.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-backdrop,
.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-backdrop {
  background: rgba(7, 20, 31, 0.88);
}

.customywear-photo-editor-popup-alert {
  box-shadow: 0 22px 50px rgba(7, 20, 31, 0.28);
}

.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-alert {
  left: 50%;
  margin: 0;
  max-width: min(92vw, 430px);
  padding: 18px 18px 16px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  z-index: 20;
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-frame {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-dialog {
  align-items: center;
  display: flex;
  justify-content: center;
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-alert {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: min(92vw, 430px);
}

.customywear-photo-editor-upload-layout {
  justify-content: center;
  justify-items: center;
}

.customywear-photo-editor-guide,
.customywear-photo-editor-editor,
.customywear-photo-editor-upload-panel {
  margin-inline: auto;
}

.customywear-photo-editor-processing {
  padding-block: 8svh 0;
}

.customywear-photo-editor-final-note,
.customywear-photo-editor-lightbox-note {
  font-size: 14px;
  line-height: 1.4;
}

.customywear-photo-editor-preview-panel.is-editor {
  gap: 6px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  justify-items: center;
  padding: 12px 12px 10px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor {
  gap: 6px;
  max-width: 620px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-controls,
.customywear-photo-editor-control-group {
  gap: 6px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
  width: min(100%, 460px);
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-canvas {
  max-height: 48vh;
  object-fit: contain;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-input {
  min-height: 38px;
  padding-right: 42px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-chip,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-font-option,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-picker-field {
  min-height: 38px;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-primary {
  min-height: 42px;
}

.customywear-photo-editor-text-editor-hint {
  font-size: 12px;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .customywear-photo-editor-preview-panel.is-editor {
    align-items: center;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
    width: min(100%, 430px);
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-canvas {
    max-height: 42vh;
  }

  .customywear-photo-editor-actions-editor {
    margin-top: 2px;
  }

  .customywear-photo-editor-upload-layout,
  .customywear-photo-editor-upload-panel,
  .customywear-photo-editor-cropper {
    justify-items: center;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-launch-button {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .customywear-photo-editor-preview-panel.is-editor {
    padding: 10px 10px 8px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
    width: min(100%, 78vw);
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-canvas {
    max-height: 40svh;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-options,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-font-options {
    gap: 6px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-chip,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-picker-field {
    min-height: 34px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-font-option {
    min-height: 36px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-chip::before,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-picker-field::before {
    height: 14px;
    width: 14px;
  }

  .customywear-photo-editor-final-note {
    font-size: 13px;
  }
}


/* 2026-04-17 final tweak pass */
.customywear-photo-editor-popup-backdrop {
  background: rgba(7, 20, 31, 0.8);
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-backdrop,
.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-backdrop {
  background: rgba(7, 20, 31, 0.9);
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-frame {
  margin: auto;
  max-width: min(92vw, 520px);
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-header,
.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-step {
  display: none;
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-dialog {
  align-items: center;
  display: flex;
  height: 100svh;
  justify-content: center;
  max-width: min(92vw, 520px);
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-close {
  display: none;
}

.customywear-photo-editor-popup-alert {
  box-shadow: 0 22px 48px rgba(7, 20, 31, 0.25);
}

.customywear-photo-editor-saved-card.is-selected {
  border-color: var(--ws-accent);
  border-width: 3px;
  box-shadow: 0 0 0 7px rgba(35, 154, 221, 0.18);
}

.customywear-photo-editor-saved-icon.is-selected,
.customywear-photo-editor-saved-icon:hover,
.customywear-photo-editor-saved-icon:focus-visible {
  box-shadow: 0 0 0 5px rgba(35, 154, 221, 0.18);
}

.customywear-photo-editor-text-editor-hint,
.customywear-photo-editor-final-note,
.customywear-photo-editor-result-tip {
  font-size: 14px;
  line-height: 1.45;
}

.customywear-photo-editor-result-image-button {
  width: min(100%, 44svh, 54vw);
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
  width: min(100%, 520px);
}

.customywear-photo-editor-actions-submit {
  max-width: min(100%, 44svh, 54vw);
}

.customywear-photo-editor-actions-submit .customywear-photo-editor-primary {
  width: 100%;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-actions-submit {
  max-width: min(100%, 520px);
}

.customywear-photo-editor-back,
.customywear-photo-editor-lightbox-close {
  line-height: 1;
  writing-mode: horizontal-tb;
}

.customywear-photo-editor-back {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  justify-content: center;
  min-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .customywear-photo-editor-preview-panel.is-editor {
    gap: 8px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
    width: min(100%, 480px);
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor {
    max-width: 640px;
  }
}

@media (max-width: 1024px) {
  .customywear-photo-editor-result-image-button {
    width: min(100%, 38svh, 60vw);
  }

  .customywear-photo-editor-actions-submit {
    max-width: min(100%, 38svh, 60vw);
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-color-options,
  .customywear-photo-editor-font-options {
    gap: 6px;
  }

  .customywear-photo-editor-color-chip,
  .customywear-photo-editor-color-picker-field {
    min-height: 34px;
    border-radius: 12px;
  }

  .customywear-photo-editor-color-chip::before,
  .customywear-photo-editor-color-picker-field::before {
    height: 14px;
    width: 14px;
  }

  .customywear-photo-editor-font-option {
    min-height: 38px;
    border-radius: 12px;
  }

  .customywear-photo-editor-text-editor-hint,
  .customywear-photo-editor-final-note,
  .customywear-photo-editor-result-tip {
    font-size: 12px;
  }

  .customywear-photo-editor-final-note {
    font-size: 13px;
  }

  .customywear-photo-editor-result-image-button,
  .customywear-photo-editor-actions-submit,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-actions-submit {
    max-width: 100%;
    width: 100%;
  }

  .customywear-photo-editor-back {
    min-height: 38px;
    min-width: 78px;
    padding: 0 10px;
  }
}


/* latest polish pass */
.customywear-photo-editor-back {
  min-width: 44px;
  width: 44px;
  padding: 0;
  font-size: 28px;
}

.customywear-photo-editor-back span {
  display: block;
  line-height: 1;
  transform: translateX(-1px);
}

@media (max-width: 767px) {
  .customywear-photo-editor-title {
    font-size: clamp(19px, 5vw, 22px);
  }

  .customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-title {
    font-size: clamp(18px, 4.75vw, 21px);
  }

  .customywear-photo-editor-color-chip,
  .customywear-photo-editor-color-picker-field {
    min-height: 30px;
  }
}

@media (min-width: 768px) {
  .customywear-photo-editor-final-note,
  .customywear-photo-editor-lightbox-note {
    font-size: 15.5px;
  }

  .customywear-photo-editor-upload-layout {
    align-items: center;
    justify-content: center;
    justify-items: center;
    grid-template-columns: minmax(280px, 420px);
  }

  .customywear-photo-editor-guide,
  .customywear-photo-editor-editor {
    width: min(100%, 620px);
  }
}

.customywear-photo-editor-lightbox-close {
  right: 8px;
  top: 8px;
  z-index: 4;
}

@media (max-width: 767px) {
  .customywear-photo-editor-lightbox-close {
    right: 4px;
    top: 4px;
  }
}

.customywear-photo-editor-result-image-button {
  transform-origin: center center;
  touch-action: none;
}

.customywear-photo-editor-lightbox-image {
  touch-action: none;
  transform-origin: center center;
}


/* 2026-04 polish pass */
.customywear-photo-editor-upload-layout {
  width: 100%;
  justify-items: center;
  align-items: start;
  justify-content: center;
}

.customywear-photo-editor-upload-layout > * {
  margin-inline: auto;
}

.customywear-photo-editor-lightbox-image,
.customywear-photo-editor-result-image-button,
.customywear-photo-editor-result-canvas,
.customywear-photo-editor-slider-reset,
.customywear-photo-editor-saved-icon,
.customywear-photo-editor-color-chip,
.customywear-photo-editor-font-option,
.customywear-photo-editor-text-clear {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.customywear-photo-editor-result-image-button {
  touch-action: none;
}

.customywear-photo-editor-lightbox-note {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.customywear-photo-editor-lightbox-note-icon {
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .customywear-photo-editor-step[data-step="upload"] .customywear-photo-editor-upload-layout {
    justify-items: center;
  }

  .customywear-photo-editor-step[data-step="upload"] .customywear-photo-editor-guide,
  .customywear-photo-editor-step[data-step="upload"] .customywear-photo-editor-editor {
    justify-self: center;
    margin-inline: auto;
  }

  .customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-actions-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-actions-result > button {
    width: min(100%, 430px);
  }

  .customywear-photo-editor-lightbox-note {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-actions-result {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-actions-result > button {
    display: block !important;
    width: 100%;
  }

  .customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-open-final-review {
    order: 2;
  }

  .customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-open-text-editor {
    order: 1;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-chip,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-color-picker-field {
    min-height: 30px;
  }

  .customywear-photo-editor-lightbox-close {
    top: -8px;
    right: 8px;
  }
}


/* 2026-04 mobile/editor/lightbox fixes */
.customywear-photo-editor-lightbox-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.customywear-photo-editor-lightbox-note > span:last-child {
  display: inline-block;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
  pointer-events: none;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-canvas {
  pointer-events: auto;
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-actions-result {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-actions-result > .customywear-photo-editor-open-text-editor,
  .customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-actions-result > .customywear-photo-editor-open-final-review {
    display: block !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    grid-column: 1 / -1 !important;
  }

  .customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-open-text-editor {
    order: 1;
  }

  .customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-open-final-review {
    order: 2;
  }
}


/* 2026-04-18 customywear-photo-editor v2.6.0 */

.customywear-photo-editor-crop-instruction {
  font-size: calc(1em * 1.1);
}

.customywear-photo-editor-result-canvas,
.customywear-photo-editor-result-image-button,
.customywear-photo-editor-lightbox-image {
  touch-action: none;
}

.customywear-photo-editor-result-image-button.is-pinching,
.customywear-photo-editor-lightbox.is-pinching .customywear-photo-editor-lightbox-card {
  z-index: 10002;
}

.customywear-photo-editor-lightbox.is-pinching .customywear-photo-editor-lightbox-dialog,
.customywear-photo-editor-lightbox.is-pinching .customywear-photo-editor-lightbox-card {
  overflow: visible;
}

.customywear-photo-editor-lightbox.is-pinching .customywear-photo-editor-lightbox-close,
.customywear-photo-editor-lightbox.is-pinching .customywear-photo-editor-lightbox-note {
  opacity: 0;
  pointer-events: none;
}

.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-alert,
.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-alert {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 24px), 430px);
  z-index: 30;
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-dialog {
  max-width: 100vw;
  width: 100%;
}

.customywear-photo-editor-preview-panel[data-mode="choice"] .customywear-photo-editor-actions-submit,
.customywear-photo-editor-preview-panel[data-mode="choice"] .customywear-photo-editor-text-editor,
.customywear-photo-editor-preview-panel[data-mode="choice"] .customywear-photo-editor-actions-editor,
.customywear-photo-editor-preview-panel[data-mode="editor"] .customywear-photo-editor-actions-result,
.customywear-photo-editor-preview-panel[data-mode="editor"] .customywear-photo-editor-actions-submit,
.customywear-photo-editor-preview-panel[data-mode="final"] .customywear-photo-editor-actions-result,
.customywear-photo-editor-preview-panel[data-mode="final"] .customywear-photo-editor-text-editor,
.customywear-photo-editor-preview-panel[data-mode="final"] .customywear-photo-editor-actions-editor {
  display: none !important;
}

.customywear-photo-editor-preview-panel[data-mode="final"] .customywear-photo-editor-actions-submit {
  display: grid !important;
}

@media (min-width: 768px) {
  .customywear-photo-editor-mobile-upload-options {
    display: none !important;
  }

  .customywear-photo-editor-step[data-step="upload"] .customywear-photo-editor-guide {
    max-width: 116%;
  }

  .customywear-photo-editor-step[data-step="upload"] .customywear-photo-editor-upload-panel {
    padding: 1.08rem;
  }

  .customywear-photo-editor-step[data-step="upload"] .customywear-photo-editor-dropzone-cta {
    font-size: 1.08em;
    padding: 1.08em 1.2em;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-mobile-upload-options {
    display: grid;
  }

  .customywear-photo-editor-dropzone-desktop {
    display: none;
  }

  .customywear-photo-editor-preview-panel[data-mode="final"] .customywear-photo-editor-actions-submit,
  .customywear-photo-editor-preview-panel[data-mode="final"] .customywear-photo-editor-actions-submit > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  .customywear-photo-editor-preview-panel[data-mode="final"] .customywear-photo-editor-actions-result {
    display: none !important;
  }
}


/* 2026-04-18 customywear-photo-editor v2.6.1 */
@media (max-width: 767px) {
  .customywear-photo-editor-crop-instruction {
    font-size: 1.02em !important;
    line-height: 1.32 !important;
    text-wrap: balance;
  }

  .customywear-photo-editor-popup-dialog,
  .customywear-photo-editor-step,
  .customywear-photo-editor-upload-layout,
  .customywear-photo-editor-editor,
  .customywear-photo-editor-cropper,
  .customywear-photo-editor-preview-panel,
  .customywear-photo-editor-text-editor,
  .customywear-photo-editor-text-controls,
  .customywear-photo-editor-actions,
  .customywear-photo-editor-actions-result,
  .customywear-photo-editor-actions-submit,
  .customywear-photo-editor-actions-editor {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .customywear-photo-editor-cropper {
    gap: 10px;
  }

  .customywear-photo-editor-crop-stage {
    width: min(100%, 74vw);
    max-width: 74vw;
  }

  .customywear-photo-editor-actions,
  .customywear-photo-editor-actions-result,
  .customywear-photo-editor-actions-submit,
  .customywear-photo-editor-actions-editor,
  .customywear-photo-editor-cropper .customywear-photo-editor-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }

  .customywear-photo-editor-actions > *,
  .customywear-photo-editor-actions-result > *,
  .customywear-photo-editor-actions-submit > *,
  .customywear-photo-editor-actions-editor > *,
  .customywear-photo-editor-cropper .customywear-photo-editor-actions > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .customywear-photo-editor-crop-inline-row {
    grid-template-columns: minmax(44px, auto) minmax(0, 1fr) auto auto;
  }

  .customywear-photo-editor-result-image-button,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button,
  .customywear-photo-editor-actions-submit,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-actions-submit {
    width: 100% !important;
    max-width: 100% !important;
  }

  .customywear-photo-editor-lightbox,
  .customywear-photo-editor-lightbox-dialog,
  .customywear-photo-editor-lightbox-card,
  .customywear-photo-editor-lightbox-image {
    touch-action: none;
    overscroll-behavior: contain;
  }
}


/* 2026-04-18 customywear-photo-editor v2.6.2 */
.customywear-photo-editor-popup-dialog {
  box-sizing: border-box;
  max-height: calc(100svh - 32px);
  top: 16px;
  bottom: 16px;
  transform: translateX(-50%);
}

.customywear-photo-editor-text-input {
  box-sizing: border-box;
  line-height: 1.3;
  width: 100%;
}

.customywear-photo-editor-saved-thumb {
  width: 100%;
}

.customywear-photo-editor-saved-actions {
  align-items: stretch;
}

@media (min-width: 768px) {
  .customywear-photo-editor-popup-close {
    top: 24px;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-popup-dialog {
    max-height: calc(100svh - 8px);
    top: 4px;
    bottom: 4px;
  }

  .customywear-photo-editor-saved-actions {
    grid-template-areas:
      'edit edit'
      'select delete';
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .customywear-photo-editor-saved-edit,
  .customywear-photo-editor-saved-icon {
    width: 100%;
  }

  .customywear-photo-editor-saved-icon {
    min-width: 0;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-input,
  .customywear-photo-editor-text-input {
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}


/* 2026-04-18 v2.6.3 desktop spacing / saved designs / lightbox refinements */
@media (min-width: 768px) {
  .customywear-photo-editor-popup-dialog {
    height: min(92svh, 860px);
    top: 50%;
  }

  .customywear-photo-editor-popup-close {
    top: 26px;
  }

  .customywear-photo-editor-header {
    padding: 24px 22px 14px;
  }

  .customywear-photo-editor-step {
    padding-top: 18px;
  }

  .customywear-photo-editor-crop-instruction {
    font-size: 10.2px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-input,
  .customywear-photo-editor-text-input {
    min-height: 48px;
    line-height: 1.45;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.customywear-photo-editor-popup-alert {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.customywear-photo-editor-popup-alert-message {
  text-align: center;
  width: 100%;
}

.customywear-photo-editor-popup-alert-actions {
  width: 100%;
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-dialog,
.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-dialog {
  align-items: center;
  justify-content: center;
}

.customywear-photo-editor-saved-thumb.is-selected {
  box-shadow: inset 0 0 0 3px rgba(35, 154, 221, 0.28);
}

.customywear-photo-editor-saved-zoom {
  grid-area: select;
}

@media (max-width: 767px) {
  .customywear-photo-editor-saved-actions {
    align-items: stretch;
    grid-template-areas:
      'edit edit'
      'select delete';
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .customywear-photo-editor-saved-edit,
  .customywear-photo-editor-saved-icon {
    min-width: 0;
    width: 100%;
  }
}


/* v2.6.4 popup and mobile zoom fixes */
.customywear-photo-editor-popup,
.customywear-photo-editor-lightbox {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px);
}

.customywear-photo-editor-popup-dialog,
.customywear-photo-editor-lightbox-dialog {
  box-sizing: border-box;
  left: auto !important;
  margin: 0 auto;
  max-height: calc(100svh - 24px);
  position: relative !important;
  top: auto !important;
  transform: none !important;
}

.customywear-photo-editor-popup-dialog {
  height: min(94svh, 860px);
  max-width: min(96vw, 980px);
  width: min(96vw, 980px);
}

.customywear-photo-editor-lightbox-dialog {
  max-width: min(96vw, 1080px);
  width: min(96vw, 1080px);
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-dialog,
.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-dialog {
  align-items: center;
  display: flex;
  justify-content: center;
  max-width: 100%;
  width: 100%;
}

.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-alert,
.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-alert {
  left: auto !important;
  margin: 0 auto !important;
  position: relative !important;
  top: auto !important;
  transform: none !important;
  width: min(calc(100vw - 24px), 430px) !important;
}

.customywear-photo-editor-header {
  padding-top: 24px;
  padding-bottom: 16px;
}

.customywear-photo-editor-step {
  padding-top: 18px;
}

.customywear-photo-editor-crop-instruction {
  font-size: 0.85em;
}

.customywear-photo-editor-lightbox-card {
  max-height: calc(100svh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}

.customywear-photo-editor-lightbox-image {
  touch-action: none;
  will-change: transform;
}


/* v2.6.5 visibility and centering fixes */
.customywear-photo-editor-popup[hidden],
.customywear-photo-editor-lightbox[hidden],
.customywear-photo-editor-popup-alert[hidden],
.customywear-photo-editor-lightbox-note[hidden] {
  display: none !important;
}

.customywear-photo-editor-popup:not([hidden]),
.customywear-photo-editor-lightbox:not([hidden]) {
  display: flex !important;
}

.customywear-photo-editor-popup {
  align-items: center;
  box-sizing: border-box;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px);
}

.customywear-photo-editor-popup-dialog {
  box-sizing: border-box;
  margin: 0 auto;
  max-height: calc(100svh - 24px);
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-dialog,
.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-dialog {
  max-width: 100%;
  width: 100%;
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-alert,
.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-alert {
  margin: 0 auto !important;
}

.customywear-photo-editor-lightbox {
  align-items: center;
  box-sizing: border-box;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px);
}

.customywear-photo-editor-lightbox-dialog {
  box-sizing: border-box;
  margin: 0 auto;
  max-height: calc(100svh - 24px);
}

.customywear-photo-editor-lightbox-card {
  max-height: calc(100svh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
}

.customywear-photo-editor-lightbox-image {
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}


/* v2.6.6 final popup centering and customywear rename cleanup */
.customywear-photo-editor-popup[hidden],
.customywear-photo-editor-lightbox[hidden],
.customywear-photo-editor-popup-alert[hidden],
.customywear-photo-editor-lightbox-note[hidden] {
  display: none !important;
}

.customywear-photo-editor-popup,
.customywear-photo-editor-lightbox {
  align-items: center !important;
  box-sizing: border-box;
  display: none;
  inset: 0;
  justify-content: center !important;
  padding: clamp(12px, 2vw, 24px) !important;
  position: fixed !important;
}

.customywear-photo-editor-popup:not([hidden]),
.customywear-photo-editor-lightbox:not([hidden]) {
  display: flex !important;
}

.customywear-photo-editor-popup-dialog,
.customywear-photo-editor-lightbox-dialog {
  box-sizing: border-box;
  left: auto !important;
  margin: 0 auto !important;
  max-height: calc(100svh - 24px) !important;
  position: relative !important;
  top: auto !important;
  transform: none !important;
}

.customywear-photo-editor-popup-dialog {
  height: min(94svh, 860px) !important;
  max-width: min(96vw, 980px) !important;
  width: min(96vw, 980px) !important;
}

.customywear-photo-editor-lightbox-dialog {
  max-width: min(96vw, 1080px) !important;
  width: min(96vw, 1080px) !important;
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-dialog,
.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-dialog {
  align-items: center !important;
  display: flex !important;
  height: 100% !important;
  justify-content: center !important;
  max-width: 100% !important;
  width: 100% !important;
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-alert,
.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-alert {
  left: 50% !important;
  margin: 0 !important;
  max-width: min(calc(100vw - 24px), 430px) !important;
  position: fixed !important;
  text-align: center;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(calc(100vw - 24px), 430px) !important;
  z-index: 10001 !important;
}

.customywear-photo-editor-popup-alert {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.customywear-photo-editor-popup-alert-message,
.customywear-photo-editor-popup-alert-actions {
  width: 100%;
}

.customywear-photo-editor-popup-alert-actions {
  justify-content: center;
}

.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-frame {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.customywear-photo-editor-lightbox-card {
  max-height: calc(100svh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}

.customywear-photo-editor-lightbox-image {
  touch-action: none;
  will-change: transform;
}

@media (max-width: 767px) {
  .customywear-photo-editor-popup,
  .customywear-photo-editor-lightbox {
    padding: 8px !important;
  }

  .customywear-photo-editor-popup-dialog {
    max-height: calc(100svh - 16px) !important;
    width: min(100vw - 16px, 980px) !important;
  }

  .customywear-photo-editor-lightbox-dialog {
    width: min(100vw - 16px, 1080px) !important;
  }
}


/* v2.6.7 mobile space and crop action visibility refinements */
@media (max-width: 767px) {
  .customywear-photo-editor-header {
    gap: 8px !important;
    padding: 10px 14px 8px !important;
  }

  .customywear-photo-editor-header-spacer,
  .customywear-photo-editor-back,
  .customywear-photo-editor-lightbox-close {
    height: 38px;
    min-height: 38px;
  }

  .customywear-photo-editor-eyebrow {
    font-size: 10.4px !important;
    margin: 0 0 4px !important;
  }

  .customywear-photo-editor-title {
    font-size: clamp(17px, 5vw, 22px) !important;
    line-height: 1.02 !important;
  }

  .customywear-photo-editor-subtitle {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-top: 4px !important;
  }

  .customywear-photo-editor-step {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px 12px 14px !important;
    -webkit-overflow-scrolling: touch;
  }

  .customywear-photo-editor-upload-layout,
  .customywear-photo-editor-editor,
  .customywear-photo-editor-cropper {
    gap: 8px !important;
  }

  .customywear-photo-editor-editor,
  .customywear-photo-editor-guide,
  .customywear-photo-editor-upload-panel,
  .customywear-photo-editor-preview-panel {
    padding: 12px !important;
  }

  .customywear-photo-editor-crop-stage {
    width: min(100%, 68vw) !important;
    max-width: 68vw !important;
  }

  .customywear-photo-editor-crop-instruction {
    font-size: 0.92em !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
  }

  .customywear-photo-editor-crop-inline-row {
    gap: 6px !important;
  }

  .customywear-photo-editor-cropper .customywear-photo-editor-actions {
    gap: 8px !important;
    margin-top: 2px !important;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2px) !important;
  }

  .customywear-photo-editor-cropper .customywear-photo-editor-primary,
  .customywear-photo-editor-cropper .customywear-photo-editor-secondary {
    min-height: 42px !important;
    font-size: 14px !important;
  }
}

@media (min-width: 768px) {
  .customywear-photo-editor-header {
    padding-top: 22px !important;
    padding-bottom: 14px !important;
  }

  .customywear-photo-editor-eyebrow {
    font-size: 10.8px !important;
    margin-bottom: 5px !important;
  }

  .customywear-photo-editor-title {
    font-size: clamp(18px, 1.95vw, 23px) !important;
    line-height: 1.04 !important;
  }

  .customywear-photo-editor-subtitle {
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin-top: 4px !important;
  }

  .customywear-photo-editor-crop-instruction {
    font-size: 0.765em !important;
    line-height: 1.28 !important;
  }
}


/* v2.6.10 alert + lightbox + processing fixes */
.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-frame,
.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-frame {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-close,
.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-close {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-dialog,
.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-dialog {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.customywear-photo-editor-popup.is-alert-visible .customywear-photo-editor-popup-alert,
.customywear-photo-editor-popup.is-alert-only .customywear-photo-editor-popup-alert {
  box-shadow: 0 24px 60px rgba(7, 20, 31, 0.28) !important;
}

.customywear-photo-editor-lightbox-dialog,
.customywear-photo-editor-lightbox-card {
  touch-action: none;
}

.customywear-photo-editor-lightbox-card {
  overscroll-behavior: contain;
}

.customywear-photo-editor-lightbox-image {
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.customywear-photo-editor-popup.is-busy .customywear-photo-editor-actions-result,
.customywear-photo-editor-popup.is-busy .customywear-photo-editor-actions-editor {
  display: none !important;
}

.customywear-photo-editor-popup.is-busy .customywear-photo-editor-actions-submit {
  display: flex !important;
}


/* v2.6.10 mobile upload and zoom interaction fixes */
.customywear-photo-editor-result-image-button {
  overflow: hidden;
}

.customywear-photo-editor-result-image-button:focus {
  outline: none;
}

.customywear-photo-editor-result-image-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(35, 154, 221, 0.32);
}

.customywear-photo-editor-lightbox-card {
  overflow: hidden;
}

.customywear-photo-editor-lightbox.is-zoomed .customywear-photo-editor-lightbox-image {
  cursor: grab;
}

.customywear-photo-editor-lightbox.is-pinching .customywear-photo-editor-lightbox-image,
.customywear-photo-editor-lightbox.is-zoomed .customywear-photo-editor-lightbox-image:active {
  cursor: grabbing;
}


.customywear-photo-editor-lightbox-image,
.customywear-photo-editor-lightbox-card,
.customywear-photo-editor-lightbox-dialog {
  touch-action: none !important;
  overscroll-behavior: contain;
}

@media (max-width: 767px) {
  .customywear-photo-editor-result-feedback {
    margin-top: 12px !important;
    padding-bottom: 4px;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-upload-panel.is-loading .customywear-photo-editor-privacy-note {
    display: none;
  }
}

/* v2.6.30 cart/frontend metadata and popup stacking fixes */
.customywear-photo-editor-popup,
.customywear-photo-editor-lightbox {
  z-index: 2147483000 !important;
}

.customywear-photo-editor-popup-dialog,
.customywear-photo-editor-popup-alert,
.customywear-photo-editor-lightbox-dialog,
.customywear-photo-editor-lightbox-close {
  z-index: 2147483001 !important;
}

.customywear-photo-editor-cart-meta {
  margin-top: 8px;
}

.customywear-photo-editor-cart-meta-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.5;
  margin: 0 0 6px;
}

.customywear-photo-editor-cart-meta-line:last-child {
  margin-bottom: 0;
}

.customywear-photo-editor-cart-meta-label {
  font-weight: 600;
}

.customywear-photo-editor-cart-meta .customywear-photo-editor-cart-preview {
  max-width: 72px;
  width: 72px;
}

.woocommerce-mini-cart .customywear-photo-editor-cart-meta,
.widget_shopping_cart .customywear-photo-editor-cart-meta {
  margin-top: 6px;
}

/* v2.6.33 fix cart/mini-cart/checkout thumbnail trigger rendering */
.customywear-photo-editor-zoom-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.customywear-photo-editor-zoom-trigger:focus {
  outline: 2px solid var(--ws-accent, #111);
  outline-offset: 2px;
}

.customywear-photo-editor-zoom-trigger img {
  display: block;
}

/* v2.6.35 popup stacking / lightbox actions / skinny saved-design layouts */
.customywear-photo-editor-popup {
  z-index: 2147483000 !important;
}

.customywear-photo-editor-popup-dialog,
.customywear-photo-editor-popup-backdrop,
.customywear-photo-editor-lightbox {
  z-index: 2147483001 !important;
}

.customywear-photo-editor-lightbox-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.customywear-photo-editor-lightbox-action-button {
  min-width: 180px;
}

.customywear-photo-editor-saved-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.customywear-photo-editor-saved-card {
  min-width: 0;
}

.customywear-photo-editor-saved-thumb,
.customywear-photo-editor-saved-image {
  width: 100%;
}

.customywear-photo-editor-saved-actions {
  grid-template-columns: minmax(0, 1fr) minmax(42px, auto) minmax(42px, auto);
}

.customywear-photo-editor-saved-edit {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .customywear-photo-editor-saved-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-lightbox-action-button {
    min-width: 0;
    width: 100%;
  }
}


/* v2.6.36 saved-design responsiveness / top-aligned popup / minicart-safe lightbox */
.customywear-photo-editor-saved-grid,
.cwpe-saved-designs {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)) !important;
  gap: 10px !important;
}

.customywear-photo-editor-saved-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-width: 0;
  padding: 8px !important;
}

.customywear-photo-editor-saved-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 12px !important;
  display: block;
  width: 100%;
}

.customywear-photo-editor-saved-image {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.customywear-photo-editor-saved-actions {
  align-items: stretch !important;
  gap: 6px !important;
  grid-template-areas: "edit zoom delete" !important;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(36px, 40px)) !important;
}

.customywear-photo-editor-saved-edit,
.customywear-photo-editor-saved-icon {
  min-height: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
}

.customywear-photo-editor-saved-edit {
  align-items: center;
  display: inline-flex !important;
  font-size: 11px !important;
  justify-content: center;
  line-height: 1.1;
  overflow: hidden;
  padding-inline: 12px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customywear-photo-editor-saved-zoom {
  grid-area: zoom;
}

.customywear-photo-editor-saved-icon {
  width: 100% !important;
}

.customywear-photo-editor-saved-icon svg {
  height: 16px !important;
  width: 16px !important;
}

.customywear-photo-editor-popup,
.cwpe-popup {
  align-items: flex-start !important;
  justify-content: center !important;
  overflow-y: auto !important;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 12px !important;
}

.customywear-photo-editor-popup-dialog,
.cwpe-popup .customywear-photo-editor-popup-dialog {
  height: min(calc(100svh - env(safe-area-inset-top, 0px) - 20px), 860px) !important;
  left: 50% !important;
  margin: 0 auto !important;
  max-width: min(96vw, 980px) !important;
  position: relative !important;
  top: 0 !important;
  transform: translateX(-50%) !important;
}

.cwpe-upload-step,
.cwpe-upload-layout,
.cwpe-upload-editor,
.cwpe-upload-panel,
.cwpe-cropper-panel,
.cwpe-result-step,
.cwpe-result-shell,
.cwpe-review-panel,
.cwpe-text-editor-panel {
  scroll-margin-top: 0 !important;
}

.customywear-photo-editor-lightbox,
.customywear-photo-editor-lightbox * {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767px) {
  .customywear-photo-editor-saved-grid,
  .cwpe-saved-designs {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important;
  }

  .customywear-photo-editor-saved-edit,
  .customywear-photo-editor-saved-icon {
    min-height: 36px !important;
    height: 36px !important;
  }

  .customywear-photo-editor-popup,
  .cwpe-popup {
    padding-inline: 8px !important;
  }

  .customywear-photo-editor-popup-dialog,
  .cwpe-popup .customywear-photo-editor-popup-dialog {
    max-width: 100% !important;
    width: 100% !important;
  }
}


/* v2.6.37 desktop saved-design actions + popup top stacking/scroll fixes */
.customywear-photo-editor-saved-actions {
  align-items: start;
  gap: 6px;
  grid-template-areas:
    "select delete"
    "edit edit";
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customywear-photo-editor-saved-edit,
.customywear-photo-editor-saved-icon {
  height: 36px;
  min-height: 36px;
}

.customywear-photo-editor-saved-edit {
  justify-content: center;
  padding-inline: 10px;
}

.customywear-photo-editor-saved-icon {
  border-radius: 12px;
  width: 100%;
}

.customywear-photo-editor-popup,
.cwpe-popup,
.cwpe-upload-step,
.cwpe-upload-layout,
.cwpe-upload-editor,
.cwpe-upload-panel,
.cwpe-cropper-panel,
.cwpe-result-step,
.cwpe-result-shell,
.cwpe-review-panel,
.cwpe-text-editor-panel {
  scroll-margin-top: 0 !important;
}

.customywear-photo-editor-popup,
.cwpe-popup {
  align-items: flex-start !important;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(8px, env(safe-area-inset-top, 0px)) 12px 12px !important;
  z-index: 2147483646 !important;
}

.customywear-photo-editor-popup-dialog,
.cwpe-popup .customywear-photo-editor-popup-dialog {
  height: auto !important;
  left: auto !important;
  margin: 0 auto;
  max-height: calc(100svh - max(16px, calc(env(safe-area-inset-top, 0px) + 8px)) - 12px) !important;
  min-height: min(calc(100svh - max(16px, calc(env(safe-area-inset-top, 0px) + 8px)) - 12px), 860px);
  position: relative !important;
  top: auto !important;
  transform: none !important;
}

.customywear-photo-editor-popup,
.customywear-photo-editor-popup-dialog,
.customywear-photo-editor-popup-alert,
.customywear-photo-editor-lightbox,
.customywear-photo-editor-lightbox-dialog,
.customywear-photo-editor-lightbox-close,
.cwpe-popup,
.cwpe-upload-step,
.cwpe-upload-layout,
.cwpe-upload-editor,
.cwpe-upload-panel,
.cwpe-cropper-panel,
.cwpe-result-step,
.cwpe-result-shell,
.cwpe-review-panel,
.cwpe-text-editor-panel {
  z-index: 2147483646 !important;
}

.customywear-photo-editor-popup-alert,
.customywear-photo-editor-lightbox-dialog,
.customywear-photo-editor-lightbox-close {
  z-index: 2147483647 !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-saved-actions {
    gap: 6px;
  }
}


/* v2.6.38 saved-design desktop action order fix */
.customywear-photo-editor-saved-actions {
  align-items: stretch !important;
  grid-template-areas:
    "zoom delete"
    "edit edit" !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.customywear-photo-editor-saved-zoom {
  grid-area: zoom !important;
}

.customywear-photo-editor-saved-delete {
  grid-area: delete !important;
}

.customywear-photo-editor-saved-edit {
  grid-area: edit !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 34px !important;
  height: 34px !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
}

.customywear-photo-editor-saved-icon {
  min-height: 34px !important;
  height: 34px !important;
  width: 100% !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-saved-actions {
    grid-template-areas:
      "zoom delete"
      "edit edit" !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .customywear-photo-editor-saved-edit,
  .customywear-photo-editor-saved-icon {
    min-height: 36px !important;
    height: 36px !important;
  }
}


/* v2.6.39 robust saved-design desktop/mobile button rows */
.customywear-photo-editor-saved-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
}

.customywear-photo-editor-saved-actions-row {
  display: grid !important;
  gap: 6px !important;
  align-items: stretch !important;
}

.customywear-photo-editor-saved-actions-top {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.customywear-photo-editor-saved-actions-bottom {
  grid-template-columns: minmax(0, 1fr) !important;
}

.customywear-photo-editor-saved-actions-bottom .customywear-photo-editor-saved-edit {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 34px !important;
  height: 34px !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.customywear-photo-editor-saved-actions-top .customywear-photo-editor-saved-icon {
  min-height: 34px !important;
  height: 34px !important;
  width: 100% !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-saved-actions-bottom .customywear-photo-editor-saved-edit,
  .customywear-photo-editor-saved-actions-top .customywear-photo-editor-saved-icon {
    min-height: 36px !important;
    height: 36px !important;
  }
}


/* v2.6.40 desktop-only saved design button stack fix */
@media (min-width: 768px) {
  .cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions,
  .customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "zoom delete"
      "edit edit" !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  .cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-top,
  .cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-bottom,
  .customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-top,
  .customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-bottom {
    display: contents !important;
  }

  .cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-zoom,
  .customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-zoom {
    grid-area: zoom !important;
  }

  .cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-delete,
  .customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-delete {
    grid-area: delete !important;
  }

  .cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-edit,
  .customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-edit {
    grid-area: edit !important;
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }

  .cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-icon,
  .customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-icon {
    width: 100% !important;
    min-height: 34px !important;
    height: 34px !important;
  }
}


/* v2.6.41 final saved-design button stack + compact controls on all devices */
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  width: 100% !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-top,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-top {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 4px !important;
  width: 100% !important;
  order: 1 !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-bottom,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-bottom {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  order: 2 !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-bottom .customywear-photo-editor-saved-edit,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-bottom .customywear-photo-editor-saved-edit {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 8px !important;
  line-height: 1 !important;
  border-radius: 8px !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-top .customywear-photo-editor-saved-icon,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-top .customywear-photo-editor-saved-icon {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  border-radius: 8px !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-top .customywear-photo-editor-saved-icon svg,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-top .customywear-photo-editor-saved-icon svg {
  width: 14px !important;
  height: 14px !important;
}


/* v2.6.42 robust saved-design actions layout for direct buttons or wrapped rows */
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-areas:
    "zoom delete"
    "edit edit" !important;
  align-items: stretch !important;
  gap: 4px !important;
  width: 100% !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-zoom,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-zoom {
  grid-area: zoom !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-delete,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-delete {
  grid-area: delete !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-edit,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-edit {
  grid-area: edit !important;
  width: 100% !important;
  min-width: 0 !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-edit,
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-icon,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-edit,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-icon {
  margin: 0 !important;
  min-height: 26px !important;
  height: 26px !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-icon,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-edit,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-edit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 8px !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

/* keep compatibility with wrapped row markup too */
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-actions-top,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-actions-top {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px !important;
  width: 100% !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-actions-bottom,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-actions-bottom {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-actions-bottom > .customywear-photo-editor-saved-edit,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-actions-bottom > .customywear-photo-editor-saved-edit {
  width: 100% !important;
  min-height: 26px !important;
  height: 26px !important;
}


/* v2.6.43 final saved-design action layout: zoom + delete top, edit bottom on all devices */
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-areas:
    "zoom delete"
    "edit edit" !important;
  gap: 6px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-row,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions-row {
  display: contents !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-zoom,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-zoom,
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-zoom,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-zoom {
  grid-area: zoom !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-delete,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-delete,
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-delete,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-delete {
  grid-area: delete !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-edit,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-edit,
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-edit,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-edit {
  grid-area: edit !important;
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-icon,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-icon,
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-icon,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-icon {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  justify-content: center !important;
  align-items: center !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-edit,
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-icon,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-edit,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions > .customywear-photo-editor-saved-icon,
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-edit,
.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-icon,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-edit,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-icon {
  min-height: 34px !important;
  height: 34px !important;
  margin: 0 !important;
}

.cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-icon svg,
.customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-icon svg {
  width: 16px !important;
  height: 16px !important;
}

@media (max-width: 767px) {
  .cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions,
  .customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions {
    gap: 6px !important;
  }

  .cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-edit,
  .cwpe-saved-designs .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-icon,
  .customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-edit,
  .customywear-photo-editor-saved-grid .customywear-photo-editor-saved-card .customywear-photo-editor-saved-actions .customywear-photo-editor-saved-icon {
    min-height: 36px !important;
    height: 36px !important;
  }
}


/* v2.6.62 popup/lightbox close alignment and lightbox CTA polish */
.customywear-photo-editor-popup-close {
  align-items: center;
  display: inline-flex;
  font-size: 28px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  top: 14px;
  width: 44px;
}

.customywear-photo-editor-lightbox-close {
  align-items: center;
  display: inline-flex;
  font-size: 24px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  right: max(8px, calc(env(safe-area-inset-right, 0px) + 8px));
  top: max(8px, calc(env(safe-area-inset-top, 0px) + 8px));
  width: 44px;
}

.customywear-photo-editor-lightbox-actions {
  width: 100%;
}

.customywear-photo-editor-lightbox-action-button {
  background: #239add;
  border: 0;
  box-shadow: 0 10px 24px rgba(35, 154, 221, 0.28);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  width: 100%;
  /* Ensure text is always visible regardless of theme overrides */
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  text-decoration: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  white-space: nowrap;
}

.customywear-photo-editor-lightbox-action-button:hover,
.customywear-photo-editor-lightbox-action-button:focus {
  background: #1c89c3;
  color: #ffffff !important;
}

.customywear-photo-editor-lightbox-action-button:active {
  transform: scale(0.98);
}

@media (max-width: 767px) {
  .customywear-photo-editor-popup-close {
    right: 14px;
    top: 12px;
  }

  .customywear-photo-editor-lightbox-close {
    right: max(8px, calc(env(safe-area-inset-right, 0px) + 8px));
    top: max(8px, calc(env(safe-area-inset-top, 0px) + 8px));
  }
}


/* v2.6.63 mobile popup close alignment + lightbox CTA sizing + mobile note visibility */
@media (max-width: 767px) {
  .customywear-photo-editor-popup-close {
    align-items: center !important;
    display: inline-flex !important;
    height: 38px !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
  }
}

@media (min-width: 768px) {
  .customywear-photo-editor-lightbox-actions {
    margin-inline: auto;
    max-width: min(100%, 520px);
    width: 100%;
  }

  .customywear-photo-editor-lightbox-action-button {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-lightbox-card {
    padding-top: max(16px, calc(env(safe-area-inset-top, 0px) + 8px)) !important;
  }

  .customywear-photo-editor-lightbox-close {
    right: max(6px, calc(env(safe-area-inset-right, 0px) + 6px)) !important;
    top: max(-4px, calc(env(safe-area-inset-top, 0px) - 2px)) !important;
  }

  .customywear-photo-editor-lightbox-note {
    padding-right: 48px !important;
    position: relative;
  }

  .customywear-photo-editor-lightbox-note > span:last-child {
    line-height: 1.35 !important;
  }
}


/* v2.6.64 mobile close visibility + centered status + updated lightbox spacing */
.customywear-photo-editor-status,
.customywear-photo-editor-status.is-visible,
.customywear-photo-editor-status.is-error {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.customywear-photo-editor-status.is-visible,
.customywear-photo-editor-status.is-error {
  display: flex;
}

.customywear-photo-editor-popup-close {
  z-index: 2147483004 !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-popup-close {
    align-items: center !important;
    display: inline-flex !important;
    justify-content: center !important;
    font-size: 24px !important;
    height: 40px !important;
    line-height: 1 !important;
    padding: 0 !important;
    right: 12px !important;
    top: max(14px, calc(env(safe-area-inset-top, 0px) + 8px)) !important;
    transform: none !important;
    width: 40px !important;
  }

  .customywear-photo-editor-lightbox-card {
    padding-top: max(22px, calc(env(safe-area-inset-top, 0px) + 18px)) !important;
  }

  .customywear-photo-editor-lightbox-close {
    align-items: center !important;
    display: inline-flex !important;
    justify-content: center !important;
    right: max(6px, calc(env(safe-area-inset-right, 0px) + 6px)) !important;
    top: max(-10px, calc(env(safe-area-inset-top, 0px) - 6px)) !important;
    transform: none !important;
    z-index: 3 !important;
  }

  .customywear-photo-editor-lightbox-note {
    padding-right: 56px !important;
    padding-top: 14px !important;
  }

  .customywear-photo-editor-lightbox-note > span:last-child {
    display: block;
    line-height: 1.4 !important;
  }
}

@media (min-width: 768px) {
  .customywear-photo-editor-lightbox-actions {
    margin-inline: auto;
    max-width: min(100%, 460px);
    width: 100%;
  }
}


/* v2.6.66 lightbox add-to-cart status */
.customywear-photo-editor-lightbox-status {
  margin-top: 12px;
  width: 100%;
}

.customywear-photo-editor-lightbox-status[hidden] {
  display: none !important;
}


/* v2.7.0 mobile header close alignment */
@media (max-width: 767px) {
  .customywear-photo-editor-popup-close {
    top: 10px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    transform: none !important;
  }
}


/* v2.7.0 hotfix 2 mobile popup close icon alignment */
@media (max-width: 767px) {
  .customywear-photo-editor-popup-close {
    top: 10px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    line-height: 1 !important;
    transform: none !important;
  }

  .customywear-photo-editor-popup-close::before {
    content: "\00d7";
    display: block;
    font-size: 28px;
    line-height: 1;
    position: relative;
    top: -1px;
  }
}


/* v2.7.1 header and popup action fixes */
.customywear-photo-editor-header {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
}

.customywear-photo-editor-heading {
  grid-column: 2 !important;
  justify-self: center !important;
}

.customywear-photo-editor-back {
  grid-column: 1 !important;
  justify-self: start !important;
}

.customywear-photo-editor-header-spacer {
  display: none !important;
}

.customywear-photo-editor-popup-close {
  position: static !important;
  grid-column: 3 !important;
  justify-self: end !important;
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  margin: 0 !important;
  transform: none !important;
  right: auto !important;
  top: auto !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 28px !important;
}

.customywear-photo-editor-popup-close::before {
  content: none !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-header {
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    gap: 8px !important;
    padding: 10px 14px 8px !important;
  }

  .customywear-photo-editor-back,
  .customywear-photo-editor-popup-close {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  .customywear-photo-editor-popup-close {
    font-size: 24px !important;
  }
}


/* v2.7.79 lightbox button backgrounds + body-mounted token scope */
.customywear-photo-editor-lightbox {
  --ws-accent: #239add;
  --ws-accent-dark: #1578b0;
  --ws-brand-dark: #1e3b66;
  --ws-brand-ink: #202020;
  --ws-bg: #f3f9fd;
  --ws-surface: #ffffff;
  --ws-surface-alt: #ecf6fb;
  --ws-ink: #112536;
  --ws-muted: #607487;
  --ws-line: #d7e6f0;
  --ws-error: #b42318;
}

.customywear-photo-editor-lightbox .customywear-photo-editor-lightbox-close {
  appearance: none !important;
  background-color: var(--ws-surface-alt) !important;
  background-image: none !important;
  border: 1px solid var(--ws-line) !important;
  color: var(--ws-ink) !important;
}

.customywear-photo-editor-lightbox .customywear-photo-editor-lightbox-action-button {
  appearance: none !important;
  background-color: #239add !important;
  background-image: none !important;
  color: #ffffff !important;
}

.customywear-photo-editor-lightbox .customywear-photo-editor-lightbox-action-button:hover,
.customywear-photo-editor-lightbox .customywear-photo-editor-lightbox-action-button:focus-visible {
  background-color: #1c89c3 !important;
  background-image: none !important;
  color: #ffffff !important;
}


.customywear-photo-editor-design-selector {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}

.customywear-photo-editor-design-selector-label {
  color: var(--ws-brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.customywear-photo-editor-design-thumbs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customywear-photo-editor-design-thumb {
  appearance: none;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(17, 37, 54, 0.08);
  cursor: pointer;
  overflow: hidden;
  padding: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.customywear-photo-editor-design-thumb:hover,
.customywear-photo-editor-design-thumb:focus-visible {
  border-color: rgba(35, 154, 221, 0.5);
  transform: translateY(-1px);
}

.customywear-photo-editor-design-thumb.is-selected {
  border-color: var(--ws-accent);
  box-shadow: 0 0 0 4px rgba(35, 154, 221, 0.16);
}

.customywear-photo-editor-design-thumb-image {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

/* v2.8.1 result gallery sizing polish */
.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-result-image-button {
  align-items: center;
  display: flex;
  justify-content: center;
  width: min(100%, 520px);
  min-height: 320px;
  height: clamp(320px, 58vw, 520px);
  max-height: 520px;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-result-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.customywear-photo-editor-design-thumbs {
  grid-template-columns: repeat(2, minmax(0, 120px));
  justify-content: center;
  gap: 10px;
}

.customywear-photo-editor-design-thumb {
  border-radius: 14px;
  padding: 4px;
}

.customywear-photo-editor-design-thumb-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-result-image-button {
    width: 100%;
    min-height: 260px;
    height: clamp(260px, 72vw, 380px);
    max-height: 380px;
  }

  .customywear-photo-editor-design-thumbs {
    grid-template-columns: repeat(2, minmax(0, 88px));
    gap: 8px;
  }

  .customywear-photo-editor-design-thumb {
    border-radius: 12px;
    padding: 3px;
  }

  .customywear-photo-editor-design-thumb-image {
    max-height: 82px;
    border-radius: 8px;
  }
}


/* v2.8.2 enforce compact result thumbnails + fixed main image area */
.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  flex: 0 0 92px !important;
  padding: 4px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb-image {
  display: block !important;
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  margin: 0 auto !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-result-image-button {
  width: 100% !important;
  max-width: 520px !important;
  min-height: 380px !important;
  height: 380px !important;
  max-height: 380px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-result-canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumbs {
    gap: 8px !important;
  }

  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    flex-basis: 76px !important;
    padding: 3px !important;
  }

  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb-image {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
  }

  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-result-image-button {
    min-height: 300px !important;
    height: 300px !important;
    max-height: 300px !important;
  }
}

.customywear-photo-editor-recommendations,
.customywear-photo-editor-recommendation-details {
  inset: 0;
  position: fixed;
  z-index: 10005;
}

.customywear-photo-editor-recommendations-backdrop,
.customywear-photo-editor-recommendation-details-backdrop {
  background: rgba(7, 20, 31, 0.72);
  inset: 0;
  position: absolute;
}

.customywear-photo-editor-recommendations-dialog,
.customywear-photo-editor-recommendation-details-dialog {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(8, 26, 43, 0.28);
  display: flex;
  flex-direction: column;
  left: 50%;
  max-width: min(96vw, 1080px);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 1;
}

.customywear-photo-editor-recommendations-dialog {
  height: min(92svh, 900px);
  overflow: hidden;
}

.customywear-photo-editor-recommendation-details-dialog {
  max-width: min(92vw, 760px);
  padding: 24px;
}

.customywear-photo-editor-recommendations-header {
  align-items: start;
  border-bottom: 1px solid var(--ws-line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 22px 22px 18px;
}

.customywear-photo-editor-recommendations-title {
  color: var(--ws-brand-dark);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.customywear-photo-editor-recommendations-subtitle {
  color: var(--ws-muted);
  margin: 8px 0 0;
}

.customywear-photo-editor-recommendations-close,
.customywear-photo-editor-recommendation-details-close {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  color: var(--ws-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.customywear-photo-editor-recommendation-details-close {
  align-self: flex-end;
  margin-bottom: 6px;
}

.customywear-photo-editor-recommendations-status {
  min-height: 24px;
  padding: 10px 22px 0;
}

.customywear-photo-editor-recommendations-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: auto;
  padding: 18px 22px 110px;
}

.customywear-photo-editor-recommendation-card {
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 22px;
  display: grid;
  gap: 10px;
  padding: 14px;
  position: relative;
}

.customywear-photo-editor-recommendation-check {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
}

.customywear-photo-editor-recommendation-check input {
  accent-color: var(--ws-accent);
  cursor: pointer;
  height: 20px;
  width: 20px;
}

.customywear-photo-editor-recommendation-image,
.customywear-photo-editor-recommendation-details-image {
  background: var(--ws-bg);
  border-radius: 18px;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.customywear-photo-editor-recommendation-title,
.customywear-photo-editor-recommendation-details-title {
  color: var(--ws-brand-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.customywear-photo-editor-recommendation-price,
.customywear-photo-editor-recommendation-details-price {
  color: var(--ws-accent-dark);
  font-weight: 800;
}

.customywear-photo-editor-recommendation-description,
.customywear-photo-editor-recommendation-details-description {
  color: var(--ws-muted);
  line-height: 1.5;
  margin: 0;
}

.customywear-photo-editor-recommendation-details-description {
  color: var(--ws-ink);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.customywear-photo-editor-recommendation-details-description :where(p, ul, ol, blockquote, table, figure) {
  margin-top: 0;
  margin-bottom: 0.9em;
}

.customywear-photo-editor-recommendation-details-description :where(h1, h2, h3, h4, h5, h6) {
  color: var(--ws-brand-dark);
  font-weight: 800;
  line-height: 1.25;
  margin: 1.1em 0 0.45em;
}

.customywear-photo-editor-recommendation-details-description :where(h1, h2) {
  font-size: 22px;
}

.customywear-photo-editor-recommendation-details-description :where(h3) {
  font-size: 19px;
}

.customywear-photo-editor-recommendation-details-description :where(h4, h5, h6) {
  font-size: 16px;
}

.customywear-photo-editor-recommendation-details-description :where(ul, ol) {
  padding-left: 1.35em;
}

.customywear-photo-editor-recommendation-details-description :where(li) {
  margin: 0.35em 0;
}

.customywear-photo-editor-recommendation-details-description :where(a) {
  color: var(--ws-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.customywear-photo-editor-recommendation-details-description :where(strong, b) {
  color: var(--ws-brand-dark);
  font-weight: 800;
}

.customywear-photo-editor-recommendation-details-description :where(blockquote) {
  border-left: 4px solid var(--ws-line);
  color: var(--ws-muted);
  padding-left: 14px;
}

.customywear-photo-editor-recommendation-details-description :where(img) {
  border-radius: 12px;
  height: auto;
  max-width: 100%;
}

.customywear-photo-editor-recommendation-details-description :where(table) {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.customywear-photo-editor-recommendation-details-description :where(th, td) {
  border: 1px solid var(--ws-line);
  padding: 8px 10px;
  text-align: left;
}

.customywear-photo-editor-recommendation-details-description > :first-child {
  margin-top: 0;
}

.customywear-photo-editor-recommendation-details-description > :last-child {
  margin-bottom: 0;
}

.customywear-photo-editor-recommendation-details-content {
  display: grid;
  gap: 14px;
}

.customywear-photo-editor-recommendation-details-actions,
.customywear-photo-editor-recommendations-footer {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 18%);
  padding: 18px 22px 22px;
}

.customywear-photo-editor-recommendations-footer {
  border-top: 1px solid var(--ws-line);
  bottom: 0;
  position: sticky;
}

.customywear-photo-editor-recommendations-add {
  width: 100%;
}

@media (max-width: 900px) {
  .customywear-photo-editor-recommendations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .customywear-photo-editor-recommendations-dialog,
  .customywear-photo-editor-recommendation-details-dialog {
    border-radius: 22px;
    max-width: 100vw;
    width: calc(100vw - 16px);
  }

  .customywear-photo-editor-recommendations-grid {
    gap: 12px;
    padding-inline: 14px;
  }

  .customywear-photo-editor-recommendations-header,
  .customywear-photo-editor-recommendations-status,
  .customywear-photo-editor-recommendations-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.customywear-photo-editor-recommendation-description,
.customywear-photo-editor-design-selector-label {
  display: none !important;
}

.customywear-photo-editor-recommendation-card.is-current-product .customywear-photo-editor-recommendation-price {
  display: none;
}

.customywear-photo-editor-recommendation-card.is-current-product {
  border-color: var(--ws-accent);
}

.customywear-photo-editor-recommendation-details-image {
  max-height: 320px;
  object-fit: contain;
  width: 100%;
}

.customywear-photo-editor-cart-success {
  inset: 0;
  position: fixed;
  z-index: 10020;
}

.customywear-photo-editor-cart-success-backdrop {
  background: rgba(7, 20, 31, 0.72);
  inset: 0;
  position: absolute;
}

.customywear-photo-editor-cart-success-dialog {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(17, 37, 54, 0.18);
  left: 50%;
  max-height: min(90vh, 760px);
  max-width: min(94vw, 920px);
  overflow: auto;
  padding: 26px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.customywear-photo-editor-cart-success-close {
  appearance: none;
  background: var(--ws-surface-alt);
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  height: 44px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
}

.customywear-photo-editor-cart-success-title {
  font-size: 28px;
  margin: 0 0 16px;
  padding-right: 56px;
}

.customywear-photo-editor-cart-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.customywear-photo-editor-cart-success-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.customywear-photo-editor-cart-success-card {
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 18px;
  color: inherit;
  display: grid;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
}

.customywear-photo-editor-cart-success-image {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  width: 100%;
}

.customywear-photo-editor-cart-success-card-title {
  font-weight: 700;
}

.customywear-photo-editor-default-cart-progress {
  inset: 0;
  pointer-events: auto;
  position: fixed;
  z-index: 10018;
}

.customywear-photo-editor-default-cart-progress[hidden] {
  display: none !important;
}

.customywear-photo-editor-default-cart-progress-backdrop {
  background: rgba(7, 20, 31, 0.30);
  inset: 0;
  position: absolute;
}

.customywear-photo-editor-default-cart-progress-dialog {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(17, 37, 54, 0.18);
  left: 50%;
  max-width: min(88vw, 360px);
  padding: 24px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.customywear-photo-editor-default-cart-progress-message {
  color: var(--ws-ink);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}

.customywear-photo-editor-default-cart-progress-line {
  background: #e8f0f6;
  border-radius: 999px;
  height: 12px;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.customywear-photo-editor-default-cart-progress-line-image {
  border: 0 !important;
  border-radius: inherit;
  box-shadow: none !important;
  display: block;
  height: 100% !important;
  margin: 0 !important;
  max-width: none !important;
  object-fit: fill;
  padding: 0 !important;
  width: 100% !important;
}

.customywear-photo-editor-default-cart-progress-line span {
  background: linear-gradient(90deg, transparent, var(--ws-accent), #77cdef, transparent);
  border-radius: inherit;
  display: none;
  height: 100%;
  left: 0;
  opacity: 1;
  position: absolute;
  top: 0;
  transform: translate3d(-120%, 0, 0);
  width: 58%;
  will-change: transform;
}

.customywear-photo-editor-default-cart-progress-line--image-error .customywear-photo-editor-default-cart-progress-line-image {
  display: none;
}

.customywear-photo-editor-default-cart-progress-line--image-error span {
  display: block;
}

.customywear-photo-editor-default-cart-progress.is-active .customywear-photo-editor-default-cart-progress-line--image-error span {
  animation: customywearPhotoEditorDefaultCartProgressTravel 1.05s ease-in-out infinite;
}

@keyframes customywearPhotoEditorDefaultCartProgressTravel {
  0% {
    transform: translate3d(-120%, 0, 0);
  }
  100% {
    transform: translate3d(220%, 0, 0);
  }
}

.customywear-photo-editor-recommendations-dialog.is-inline {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-close {
  display: none;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 96px;
}

.customywear-photo-editor-recommendation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  border: 2px solid rgba(17, 37, 54, 0.08);
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  text-align: left;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.customywear-photo-editor-recommendation-card.is-selected {
  border-color: #239add;
  box-shadow: 0 14px 32px rgba(35, 154, 221, 0.18);
}

.customywear-photo-editor-recommendation-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(17,37,54,0.08);
  color: transparent;
  font-size: 16px;
  font-weight: 700;
}

.customywear-photo-editor-recommendation-card.is-selected .customywear-photo-editor-recommendation-check {
  background: #239add;
  color: #fff;
}

.customywear-photo-editor-recommendation-media {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  background: #f4f7fb;
}

.customywear-photo-editor-recommendation-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.customywear-photo-editor-recommendation-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customywear-photo-editor-recommendation-name {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: #112536;
}

.customywear-photo-editor-recommendation-price {
  font-size: 14px;
  color: #239add;
  font-weight: 700;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 24px);
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add {
  width: 100%;
}

@media (max-width: 640px) {
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}


/* v3.0.3 final recommendations step fix */
.customywear-photo-editor-preview-panel.is-recommendations-mode {
  display: block;
}

.customywear-photo-editor-preview-panel.is-recommendations-mode .customywear-photo-editor-result-ready,
.customywear-photo-editor-preview-panel.is-recommendations-mode .customywear-photo-editor-final-note,
.customywear-photo-editor-preview-panel.is-recommendations-mode .customywear-photo-editor-result-image-button,
.customywear-photo-editor-preview-panel.is-recommendations-mode .customywear-photo-editor-actions-result,
.customywear-photo-editor-preview-panel.is-recommendations-mode .customywear-photo-editor-actions-submit,
.customywear-photo-editor-preview-panel.is-recommendations-mode .customywear-photo-editor-result-tip,
.customywear-photo-editor-preview-panel.is-recommendations-mode .customywear-photo-editor-result-feedback,
.customywear-photo-editor-preview-panel.is-recommendations-mode .customywear-photo-editor-text-editor,
.customywear-photo-editor-preview-panel.is-recommendations-mode .customywear-photo-editor-text-editor-hint {
  display: none !important;
}

.customywear-photo-editor-preview-panel.is-recommendations-mode .customywear-photo-editor-recommendations-dialog.is-inline {
  display: block !important;
  margin-top: 0;
}

.customywear-photo-editor-recommendations-empty {
  grid-column: 1 / -1;
  padding: 20px;
  border-radius: 16px;
  background: #f4f7fb;
  color: #112536;
  text-align: center;
  font-weight: 600;
}


/* v3.0.4 upsell preview refresh */
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  align-items: stretch;
}

.customywear-photo-editor-recommendation-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
}

.customywear-photo-editor-recommendation-meta {
  display: grid;
  gap: 10px;
}

.customywear-photo-editor-recommendation-image {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.customywear-photo-editor-recommendation-details-trigger {
  width: 100%;
}


/* v3.0.4.1 upsell card polish */
.customywear-photo-editor-recommendations-title {
  margin-bottom: 0;
}

.customywear-photo-editor-recommendation-card {
  cursor: pointer;
  min-width: min(280px, 78vw);
}

.customywear-photo-editor-recommendation-card.is-current-product {
  cursor: default;
}

.customywear-photo-editor-recommendation-card.is-selected .customywear-photo-editor-recommendation-check {
  background: var(--ws-accent);
  border-color: var(--ws-accent);
  color: #fff;
}

.customywear-photo-editor-recommendation-check {
  border: 2px solid rgba(17, 37, 54, 0.12);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

.customywear-photo-editor-recommendation-image {
  border-radius: 14px;
  background: #f4f7fb;
  display: block;
  width: 100%;
}

.customywear-photo-editor-recommendation-meta {
  align-content: start;
}

.customywear-photo-editor-recommendation-card.is-current-product .customywear-photo-editor-recommendation-meta {
  gap: 12px;
}

.customywear-photo-editor-recommendation-card.is-current-product .customywear-photo-editor-recommendation-title {
  margin-bottom: -2px;
}

.customywear-photo-editor-recommendations-footer {
  z-index: 4;
}

.customywear-photo-editor-recommendations-add {
  box-shadow: 0 18px 36px rgba(17, 37, 54, 0.18);
}

@media (max-width: 640px) {
  .customywear-photo-editor-recommendation-card {
    min-width: 74vw;
  }
}


/* v3.0.5 inline upsell step */
.customywear-photo-editor-preview-panel.has-inline-recommendations {
  align-content: start;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-result-ready,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-text-editor-hint,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-final-note,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-result-image-button,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-design-selector,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-result-tip,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-actions-result,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-text-editor,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-actions-submit,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-result-feedback {
  display: none !important;
}
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-result-image-button {
  border: 0 !important;
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-result-image-button > .customywear-photo-editor-result-canvas {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}


.customywear-photo-editor-recommendations.is-inline {
  inset: auto;
  position: relative;
  width: 100%;
  z-index: 2;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: auto;
  left: auto;
  max-width: none;
  overflow: visible;
  position: relative;
  top: auto;
  transform: none;
  width: 100%;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-header,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-status,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  padding-left: 0;
  padding-right: 0;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-header {
  border-bottom: 0;
  padding-top: 0;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
  padding-top: 12px;
  padding-bottom: 110px;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  background: linear-gradient(180deg, rgba(243, 249, 253, 0) 0%, rgba(243, 249, 253, 0.96) 22%, rgba(243, 249, 253, 1) 100%);
  margin-top: auto;
  padding-top: 18px;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendation-card {
  background: var(--ws-surface);
}

@media (max-width: 680px) {
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
    width: 100%;
  }

  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
    padding-left: 0;
    padding-right: 0;
  }
}


/* v3.1.02 recommendations layout, stacking, and printable design refinements */
.customywear-photo-editor-recommendations {
  z-index: 2147483646;
}

.customywear-photo-editor-recommendation-details {
  z-index: 2147483647;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  min-height: 100%;
}

.customywear-photo-editor-recommendations.is-inline {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  display: flex;
  flex: 1 1 auto;
  height: 100%;
  margin-top: 0;
  min-height: 0;
  width: 100%;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-header {
  display: none;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-status {
  min-height: 0;
  padding-top: 0;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
  flex: 1 1 auto;
  padding-top: 0;
  padding-bottom: 108px;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  margin-top: auto;
}

.customywear-photo-editor-recommendation-details-dialog {
  max-height: min(92svh, 860px);
  overflow: auto;
  z-index: 2;
}

.customywear-photo-editor-recommendation-details-close {
  align-self: center;
  margin: 0 0 12px;
}

.customywear-photo-editor-recommendation-details-actions {
  display: flex;
  justify-content: center;
}

.customywear-photo-editor-recommendation-details-close-button {
  margin-inline: auto;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-preview-panel.has-inline-recommendations {
    padding: 12px;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel.has-inline-recommendations {
    gap: 7px;
    padding: 10px;
  }

  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
    padding-bottom: 96px;
  }
}



/* v3.1.03 final design assets, recommendation grid, and global cart popup */
.customywear-photo-editor-recommendations-summary {
  align-items: center;
  background: linear-gradient(180deg, rgba(35, 154, 221, 0.12), rgba(35, 154, 221, 0.06));
  border: 1px solid rgba(35, 154, 221, 0.16);
  border-radius: 18px;
  display: flex;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 12px 14px;
}

.customywear-photo-editor-recommendations-summary-count {
  align-items: center;
  background: var(--ws-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0 10px;
}

.customywear-photo-editor-recommendations-summary-copy {
  color: var(--ws-ink);
  font-size: 14px;
  font-weight: 700;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary-copy {
  align-items: center !important;
  display: inline-flex !important;
  line-height: 1.9 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations {
  display: grid !important;
  gap: 0;
  height: 100%;
  margin-top: 0 !important;
  max-height: 100%;
  min-height: 0;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations {
  align-content: start;
  grid-auto-rows: min-content;
  overflow: hidden;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 14px 110px;
  scroll-snap-type: none !important;
}

.customywear-photo-editor-recommendation-card {
  flex: none !important;
  min-width: 0 !important;
  width: 100%;
}

.customywear-photo-editor-recommendation-title {
  font-size: 14px;
  line-height: 1.35;
}

.customywear-photo-editor-recommendation-price {
  font-size: 14px;
  line-height: 1.3;
}

.customywear-photo-editor-recommendation-details-trigger {
  width: 100%;
}

.customywear-photo-editor-recommendations-footer {
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 24px);
  bottom: 0;
  padding: 14px;
  position: sticky;
  z-index: 4;
}

.customywear-photo-editor-recommendations-add {
  width: 100%;
}

.customywear-photo-editor-cart-success {
  inset: 0;
  padding: 16px;
  position: fixed;
  z-index: 2147483647 !important;
}

.customywear-photo-editor-cart-success-dialog {
  display: grid;
  gap: 14px;
}

.customywear-photo-editor-cart-success-message {
  color: var(--ws-ink);
  font-size: 15px;
  line-height: 1.5;
  margin: -4px 0 0;
}

.customywear-photo-editor-cart-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.customywear-photo-editor-cart-success-upsells {
  display: grid;
  gap: 14px;
}

.customywear-photo-editor-cart-success-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.customywear-photo-editor-cart-success-card {
  color: inherit;
  display: grid;
  gap: 10px;
  text-decoration: none;
}

.customywear-photo-editor-cart-success-card-title {
  font-size: 14px;
  line-height: 1.35;
  min-height: 2.7em;
}

.customywear-photo-editor-cart-success-card-price {
  color: var(--ws-accent);
  font-size: 14px;
  font-weight: 700;
}

.woocommerce .customywear-photo-editor-preview-link,
.woocommerce-page .customywear-photo-editor-preview-link {
  text-decoration: underline !important;
  text-underline-offset: 0.12em !important;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid,
  .customywear-photo-editor-recommendations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-recommendations-summary {
    margin-left: 12px;
    margin-right: 12px;
    padding: 10px 12px;
  }

  .customywear-photo-editor-recommendations-summary-count {
    font-size: 13px;
    height: 30px;
    min-width: 30px;
  }

  .customywear-photo-editor-recommendations-summary-copy {
    font-size: 13px;
  }

  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid,
  .customywear-photo-editor-recommendations-grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 104px;
  }

  .customywear-photo-editor-recommendation-card {
    border-radius: 16px;
    padding: 9px;
  }

  .customywear-photo-editor-recommendation-title,
  .customywear-photo-editor-recommendation-price {
    font-size: 13px;
  }

  .customywear-photo-editor-cart-success {
    padding: 8px;
  }

  .customywear-photo-editor-cart-success-dialog {
    gap: 12px;
    padding: 18px;
  }

  .customywear-photo-editor-cart-success-actions {
    flex-direction: column;
  }

  .customywear-photo-editor-cart-success-grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customywear-photo-editor-cart-success-card-title {
    font-size: 12px;
    min-height: 2.8em;
  }

  .customywear-photo-editor-cart-success-card-price {
    font-size: 13px;
  }
}


/* v3.1.04 production-ready popup, progress, and mobile fixes */
.customywear-photo-editor-upload-loading-line.is-active span {
  animation: cwpeUploadLoop 1.2s linear infinite;
  width: 42% !important;
}

@keyframes cwpeUploadLoop {
  0% {
    transform: translateX(-135%);
  }
  100% {
    transform: translateX(310%);
  }
}

.customywear-photo-editor-upload-loading-line:not(.is-active) span {
  animation: none;
  transform: translateX(0);
}

.customywear-photo-editor-cart-success-actions > a,
.customywear-photo-editor-cart-success-actions > button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-align: center;
}

.customywear-photo-editor-cart-success-close-bottom {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  margin: 4px auto 0;
  min-width: 168px;
  text-align: center;
}

.customywear-photo-editor-cart-success-dialog {
  padding-bottom: 22px;
}

.customywear-photo-editor-cart-success-actions .customywear-photo-editor-secondary,
.customywear-photo-editor-cart-success-actions .customywear-photo-editor-primary {
  flex: 1 1 220px;
}

.customywear-photo-editor-cart-success-close-bottom {
  background: transparent;
  border: none;
  color: var(--ws-accent-dark);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.customywear-photo-editor-preview-panel:not(.is-editor) .customywear-photo-editor-actions-result > button[hidden] {
  display: none !important;
}

.customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer {
  box-shadow: 0 -10px 24px rgba(17, 37, 54, 0.06);
}

.woocommerce .woocommerce-message,
.woocommerce-page .woocommerce-message {
  display: none !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-cart-success-title {
    display: none;
  }

  .customywear-photo-editor-cart-success-actions > a,
  .customywear-photo-editor-cart-success-actions > button {
    width: 100%;
  }

  .customywear-photo-editor-cart-success-close-bottom {
    margin-top: 2px;
  }
}



/* v3.1.10 popup + printable design + sticky layout fixes */
.customywear-photo-editor-cart-success[hidden] {
  display: none !important;
}

.customywear-photo-editor-cart-success {
  display: block;
  padding: 16px;
}

.customywear-photo-editor-cart-success-dialog {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(90svh, 760px);
  overflow: hidden;
  width: min(94vw, 920px);
  max-width: 920px;
}

.customywear-photo-editor-cart-success-title {
  color: var(--ws-brand-dark);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  margin: 0;
  padding-right: 56px;
}

.customywear-photo-editor-cart-success-message {
  margin: 0;
}

.customywear-photo-editor-cart-success-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.customywear-photo-editor-cart-success-actions > a,
.customywear-photo-editor-cart-success-actions > button {
  align-items: center;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  min-height: 52px;
  padding-inline: 18px;
  text-align: center;
  width: 100%;
}

.customywear-photo-editor-cart-success-upsells {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.customywear-photo-editor-cart-success-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-height: min(42svh, 420px);
  overflow: auto;
  padding: 2px;
}

.customywear-photo-editor-cart-success-card {
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(17, 37, 54, 0.06);
  color: inherit;
  display: grid;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
}

.customywear-photo-editor-cart-success-card-title {
  color: var(--ws-brand-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 2.7em;
}

.customywear-photo-editor-cart-success-card-price {
  color: var(--ws-accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.customywear-photo-editor-cart-success-close-bottom {
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 22px);
  border: none;
  color: var(--ws-accent-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  margin: 0 auto;
  min-width: 168px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  position: sticky;
  bottom: 0;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  z-index: 2;
}

.customywear-photo-editor-recommendations-dialog.is-inline {
  display: flex;
  flex-direction: column;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations-grid {
  display: grid !important;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  padding-bottom: 0;
}

.customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer {
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 26px);
  bottom: 0;
  box-shadow: 0 -10px 24px rgba(17, 37, 54, 0.06);
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  position: sticky !important;
  z-index: 10;
}

.customywear-photo-editor-recommendation-details-dialog {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.customywear-photo-editor-recommendation-details-content {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.customywear-photo-editor-recommendation-details-actions {
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 22px);
  bottom: 0;
  justify-content: center;
  margin-top: auto;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
  position: sticky;
  z-index: 3;
}

.customywear-photo-editor-recommendation-details-close-button {
  margin-inline: auto;
  min-width: 180px;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid,
  .customywear-photo-editor-recommendations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-cart-success {
    padding: 8px;
  }

  .customywear-photo-editor-cart-success-dialog {
    gap: 12px;
    padding: 18px;
    width: calc(100vw - 16px);
  }

  .customywear-photo-editor-cart-success-title {
    display: none;
  }

  .customywear-photo-editor-cart-success-actions {
    grid-template-columns: 1fr;
  }

  .customywear-photo-editor-cart-success-grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customywear-photo-editor-cart-success-card-title {
    font-size: 12px;
    min-height: 2.8em;
  }

  .customywear-photo-editor-cart-success-card-price {
    font-size: 13px;
  }
}


/* v3.1.10 recommendation cards, details popup close, and mobile sticky footer */
.customywear-photo-editor-recommendation-card.is-current-product .customywear-photo-editor-recommendation-check {
  display: none;
}

.customywear-photo-editor-recommendation-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.customywear-photo-editor-recommendation-current-badge {
  align-items: center;
  background: rgba(35, 154, 221, 0.12);
  border-radius: 999px;
  color: #0b6ea8;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

.customywear-photo-editor-recommendation-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.customywear-photo-editor-recommendation-details-trigger {
  width: 100%;
}

.customywear-photo-editor-recommendation-details-dialog {
  position: relative !important;
}

.customywear-photo-editor-recommendation-details-close {
  align-self: auto !important;
  left: auto !important;
  margin: 0 !important;
  position: absolute !important;
  right: 16px !important;
  top: 16px !important;
  z-index: 4;
}

.customywear-photo-editor-recommendation-details-content {
  padding-top: 30px;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog,
.customywear-photo-editor-recommendations-dialog.is-inline {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid {
  overflow: visible !important;
}

.customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer {
  bottom: 0 !important;
  padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  position: sticky !important;
  z-index: 10 !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-recommendation-details-close {
    right: 12px !important;
    top: 12px !important;
  }

  .customywear-photo-editor-recommendation-details-content {
    padding-top: 26px;
  }
}

.customywear-photo-editor-preview-panel.has-inline-recommendations,
.customywear-photo-editor-recommendations.is-inline,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  overflow: visible !important;
}



/* v3.1.12 order/admin, popup, color mockups, and upsell scroll fixes */
.customywear-photo-editor-cart-success {
  align-items: center;
  display: flex;
  justify-content: center;
}

.customywear-photo-editor-cart-success-dialog {
  left: 50%;
  margin: 0 auto;
  max-height: min(88svh, 760px);
  max-width: min(94vw, 920px);
  overflow: auto;
  padding: 26px 26px 24px;
  position: relative;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 920px);
}

.customywear-photo-editor-cart-success-title {
  padding-right: 72px;
}

.customywear-photo-editor-cart-success-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid var(--ws-line) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 18px rgba(7, 20, 31, 0.12);
  color: var(--ws-ink) !important;
  display: inline-flex;
  justify-content: center;
  right: 14px;
  text-decoration: none !important;
  top: 10px;
  z-index: 3;
}

.customywear-photo-editor-cart-success-actions > a,
.customywear-photo-editor-cart-success-actions > button {
  appearance: none;
  border-radius: 999px !important;
  font-size: 15px;
  font-weight: 800;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none !important;
}

.customywear-photo-editor-cart-success-actions > .customywear-photo-editor-primary {
  background: var(--ws-accent) !important;
  border: 0 !important;
  color: #ffffff !important;
}

.customywear-photo-editor-cart-success-actions > .customywear-photo-editor-secondary {
  background: var(--ws-surface-alt) !important;
  border: 1px solid var(--ws-line) !important;
  color: var(--ws-ink) !important;
}

.customywear-photo-editor-cart-success-actions > .customywear-photo-editor-primary:hover,
.customywear-photo-editor-cart-success-actions > .customywear-photo-editor-secondary:hover {
  transform: translateY(-1px);
}

.customywear-photo-editor-cart-success-close-bottom {
  appearance: none;
  background: var(--ws-surface-alt) !important;
  border: 1px solid var(--ws-line) !important;
  border-radius: 999px !important;
  color: var(--ws-ink) !important;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  min-height: 48px;
  min-width: 180px;
  padding: 0 22px;
  text-decoration: none !important;
}

.customywear-photo-editor-cart-success-close-bottom:hover {
  transform: translateY(-1px);
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations-grid {
  min-height: 0;
  overscroll-behavior: contain;
}

@media (min-width: 768px) {
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid,
  .customywear-photo-editor-recommendations-grid {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 14px 110px;
    scroll-snap-type: x proximity !important;
    scrollbar-width: thin;
  }

  .customywear-photo-editor-recommendation-card {
    flex: 0 0 min(280px, 28vw) !important;
    min-width: min(280px, 28vw) !important;
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-cart-success {
    padding: 10px;
  }

  .customywear-photo-editor-cart-success-dialog {
    left: 50%;
    max-height: min(88svh, 720px);
    padding: 20px 16px 18px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(94vw, 460px);
  }

  .customywear-photo-editor-cart-success-close {
    right: 10px;
    top: 6px;
  }

  .customywear-photo-editor-cart-success-title {
    font-size: 24px;
    line-height: 1.2;
    padding-right: 58px;
    padding-top: 6px;
  }

  .customywear-photo-editor-cart-success-actions {
    flex-direction: column;
  }

  .customywear-photo-editor-cart-success-close-bottom {
    margin-top: 2px;
    width: 100%;
  }
}


/* v3.1.15 desktop recommendations grid + scrolling */
@media (min-width: 768px) {
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid,
  .customywear-photo-editor-recommendations-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    flex-wrap: unset !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: min(68vh, 880px);
    padding: 0 14px 110px !important;
    scroll-snap-type: none !important;
  }

  .customywear-photo-editor-recommendation-card {
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}


/* v3.1.16 recommendations panel loading line, desktop scroll, and matched panel sizing */
.customywear-photo-editor-action-loading-line {
  align-self: stretch;
  background: #e3f0f8;
  border-radius: 999px;
  display: none;
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  width: 100%;
}

.customywear-photo-editor-action-loading-line.is-active {
  display: block;
}

.customywear-photo-editor-action-loading-line span {
  animation: cwpeUploadLoop 1.2s linear infinite;
  background: linear-gradient(90deg, var(--ws-accent), #77cdef);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 42%;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations {
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr);
  justify-items: stretch;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline {
  align-self: stretch;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog,
.customywear-photo-editor-recommendations-dialog.is-inline {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  margin-top: 0;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-header,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-status,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  width: 100%;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid {
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 110px;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer {
  margin-top: 0;
  z-index: 4;
}

@media (min-width: 768px) {
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* v3.1.18 select-your-design preview uses mask-only rendering and restores edit flow */
.customywear-photo-editor-preview-panel.has-inline-recommendations {
  align-content: stretch !important;
  grid-template-rows: minmax(0, 1fr) !important;
  justify-items: stretch !important;
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline,
.customywear-photo-editor-recommendations.is-inline,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  height: 100% !important;
  margin-top: 0 !important;
  max-height: 100% !important;
  min-height: 0 !important;
}

.customywear-photo-editor-recommendations.is-inline {
  align-self: stretch !important;
  inset: auto !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  left: auto !important;
  max-width: none !important;
  overflow: hidden !important;
  position: relative !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
  align-content: start !important;
  display: grid !important;
  flex: 1 1 auto !important;
  gap: 14px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 12px 0 110px !important;
  scroll-snap-type: none !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  margin-top: 0 !important;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 12px 0 104px !important;
  }
}


/* v3.1.16 recommendations hide-state fix */
.customywear-photo-editor-shell .customywear-photo-editor-recommendations[hidden],
.customywear-photo-editor-preview-panel > .customywear-photo-editor-recommendations[hidden],
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations[hidden],
.customywear-photo-editor-recommendations.is-inline[hidden],
.customywear-photo-editor-recommendations[aria-hidden="true"] {
  display: none !important;
}

.customywear-photo-editor-preview-panel > .customywear-photo-editor-recommendations:not(.is-active) {
  display: none;
}

/* v3.1.20 select-your-design shows larger previews without changing image aspect ratio */
.customywear-photo-editor-preview-panel[data-mode="choice"][data-result-stage="complete"] .customywear-photo-editor-result-image-button {
  width: 100% !important;
  max-width: 640px !important;
  min-height: 460px !important;
  height: 460px !important;
  max-height: 460px !important;
}

.customywear-photo-editor-preview-panel[data-mode="choice"][data-result-stage="complete"] .customywear-photo-editor-result-canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.customywear-photo-editor-preview-panel[data-mode="choice"][data-result-stage="complete"] .customywear-photo-editor-design-thumbs {
  gap: 12px !important;
}

.customywear-photo-editor-preview-panel[data-mode="choice"][data-result-stage="complete"] .customywear-photo-editor-design-thumb {
  width: 122px !important;
  min-width: 122px !important;
  max-width: 122px !important;
  flex: 0 0 122px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
}

.customywear-photo-editor-preview-panel[data-mode="choice"][data-result-stage="complete"] .customywear-photo-editor-design-thumb-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 132px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  margin: 0 auto !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel[data-mode="choice"][data-result-stage="complete"] .customywear-photo-editor-result-image-button {
    min-height: 300px !important;
    height: 300px !important;
    max-height: 300px !important;
  }

  .customywear-photo-editor-preview-panel[data-mode="choice"][data-result-stage="complete"] .customywear-photo-editor-design-thumb {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    flex-basis: 92px !important;
    padding: 4px !important;
  }

  .customywear-photo-editor-preview-panel[data-mode="choice"][data-result-stage="complete"] .customywear-photo-editor-design-thumb-image {
    max-height: 100px !important;
  }
}


/* v3.1.20 select-design image sizing: fill preview with 15px inset, preserve aspect ratio */
.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-result-image-button {
  width: 100% !important;
  max-width: 640px !important;
  min-height: 460px !important;
  height: 460px !important;
  max-height: 460px !important;
  padding: 15px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-result-canvas {
  width: calc(100% - 30px) !important;
  height: calc(100% - 30px) !important;
  max-width: calc(100% - 30px) !important;
  max-height: calc(100% - 30px) !important;
  object-fit: contain !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumbs {
  gap: 12px !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb {
  width: 128px !important;
  min-width: 128px !important;
  max-width: 128px !important;
  flex: 0 0 128px !important;
  padding: 6px !important;
  border-radius: 14px !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb-image {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  height: 116px !important;
  min-height: 116px !important;
  max-height: 116px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  margin: 0 auto !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-result-image-button {
    max-width: 100% !important;
    min-height: 360px !important;
    height: 360px !important;
    max-height: 360px !important;
    padding: 15px !important;
  }

  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-result-canvas {
    width: calc(100% - 30px) !important;
    height: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    max-height: calc(100% - 30px) !important;
  }

  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumbs {
    gap: 10px !important;
  }

  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb {
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    flex-basis: 104px !important;
    padding: 5px !important;
  }

  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb-image {
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 94px !important;
    min-height: 94px !important;
    max-height: 94px !important;
  }
}


/* v3.1.24 inline recommendations remove leftover source-preview whitespace */
.customywear-photo-editor-preview-panel.has-inline-recommendations {
  align-content: start !important;
  display: block !important;
  gap: 0 !important;
  grid-template-rows: none !important;
  justify-items: stretch !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > *:not(.customywear-photo-editor-recommendations.is-inline) {
  display: none !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline {
  display: block !important;
  flex: none !important;
  height: auto !important;
  margin: 0 !important;
  max-height: none !important;
  min-height: 0 !important;
  width: 100% !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  display: block !important;
  height: auto !important;
  margin-top: 0 !important;
  max-height: none !important;
  min-height: 0 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
  flex: none !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding-top: 0 !important;
}


/* v3.1.25 inline recommendations restore scroll + sticky footer without preview whitespace */
.customywear-photo-editor-preview-panel.has-inline-recommendations {
  align-content: stretch !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-rows: minmax(0, 1fr) !important;
  justify-items: stretch !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > *:not(.customywear-photo-editor-recommendations.is-inline) {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline {
  align-self: stretch !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog,
.customywear-photo-editor-recommendations-dialog.is-inline {
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  height: 100% !important;
  margin-top: 0 !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid {
  flex: 1 1 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-top: 0 !important;
  padding-bottom: 110px !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer {
  bottom: 0 !important;
  display: block !important;
  margin-top: 0 !important;
  position: sticky !important;
  z-index: 10 !important;
}


/* v3.1.26 inline recommendations: restore vertical scrolling and persistent bottom add-to-cart */
.customywear-photo-editor-preview-panel.has-inline-recommendations {
  align-content: stretch !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-rows: minmax(0, 1fr) !important;
  justify-items: stretch !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline,
.customywear-photo-editor-recommendations.is-inline {
  align-self: stretch !important;
  display: block !important;
  height: 100% !important;
  margin: 0 !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  align-content: stretch !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  height: 100% !important;
  left: auto !important;
  margin-top: 0 !important;
  max-height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-header,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-status,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  width: 100% !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
  -webkit-overflow-scrolling: touch !important;
  align-content: start !important;
  display: grid !important;
  flex: none !important;
  gap: 14px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  height: auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 12px 0 calc(110px + env(safe-area-inset-bottom, 0px)) !important;
  scroll-snap-type: none !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 26px) !important;
  border-top: 1px solid var(--ws-line) !important;
  bottom: 0 !important;
  box-shadow: 0 -10px 24px rgba(17, 37, 54, 0.06) !important;
  display: block !important;
  margin-top: 0 !important;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  position: sticky !important;
  z-index: 12 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add {
  display: block !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 12px 0 calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }
}


/* v3.1.27 inline recommendations hardening: visible sticky CTA + vertical scrolling */
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
  -webkit-overflow-scrolling: touch !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  display: block !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 12 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add {
  display: block !important;
  width: 100% !important;
}



/* v3.1.28 inline recommendations parity: full-height panel, vertical scroll, sticky add-to-cart */
.customywear-photo-editor-preview-panel.has-inline-recommendations {
  align-content: stretch !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-rows: minmax(0, 1fr) !important;
  justify-items: stretch !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline {
  display: block !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  align-content: stretch !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  height: 100% !important;
  inset: auto !important;
  left: auto !important;
  margin: 0 !important;
  max-height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: relative !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-header {
  border-bottom: 1px solid var(--ws-line) !important;
  padding: 0 0 14px !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-status {
  min-height: 0 !important;
  padding: 10px 0 0 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary {
  padding: 0 0 8px !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
  -webkit-overflow-scrolling: touch !important;
  align-content: start !important;
  display: grid !important;
  gap: 14px !important;
  grid-auto-flow: row !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 12px 0 calc(110px + env(safe-area-inset-bottom, 0px)) !important;
  scroll-snap-type: none !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendation-card {
  flex: 0 0 auto !important;
  max-width: none !important;
  min-width: 0 !important;
  scroll-snap-align: none !important;
  width: auto !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 26px) !important;
  border-top: 1px solid var(--ws-line) !important;
  bottom: 0 !important;
  box-shadow: 0 -10px 24px rgba(17, 37, 54, 0.06) !important;
  display: block !important;
  margin-top: 0 !important;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  position: sticky !important;
  width: 100% !important;
  z-index: 12 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add {
  display: block !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }
}



/* v3.1.29 inline recommendations troubleshooting pass:
   match result-panel height, keep vertical scroll container, and keep back button/footer visible */
.customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-result-shell {
  min-height: 0 !important;
  width: 100% !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations {
  height: 100% !important;
  min-height: 0 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  height: 100% !important;
  min-height: 0 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-header,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-header {
  display: flex !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-close,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-close,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-close {
  display: inline-flex !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
  align-content: start !important;
  grid-auto-flow: row !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendation-card,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendation-card {
  flex: 0 0 auto !important;
  max-width: none !important;
  min-width: 0 !important;
  width: auto !important;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid,
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* v3.1.30 inline recommendations style polish */
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-header,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-close {
  display: none !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-status {
  display: none !important;
  min-height: 0 !important;
  padding-top: 0 !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  line-height: 1.2;
  margin: 0 0 10px;
  padding: 10px 12px;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary-count,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary-copy {
  display: inline-flex;
  align-items: center;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
  align-content: start;
  padding-top: 4px;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  align-items: center;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add {
  display: inline-flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 420px;
  width: 100%;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add {
    max-width: 100%;
  }
}


/* v3.1.31 inline recommendations header removal and height expansion */
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-dialog {
  grid-template-rows: minmax(0, 1fr) auto !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-header,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-title,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-close {
  display: none !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary {
  justify-content: center !important;
  margin: 0 0 6px !important;
  padding: 10px 12px 6px !important;
  text-align: center !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
  padding-top: 0 !important;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  padding-top: 8px !important;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-grid {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* v3.1.32 inline recommendations summary + footer centering */
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary {
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 auto 6px !important;
  min-height: 48px !important;
  padding: 10px 14px !important;
  text-align: center !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary-copy {
  align-items: center !important;
  display: inline-flex !important;
  line-height: 1.9 !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer {
  align-items: center !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  justify-content: center !important;
  text-align: center !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add {
  display: inline-flex !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 420px !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line {
  align-self: center !important;
  margin: 0 auto !important;
  max-width: 420px !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add,
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add,
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line,
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line {
    max-width: 100% !important;
  }
}


/* v3.1.33 inline recommendations footer centering */
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add {
  align-items: center;
  align-self: center;
  display: inline-flex;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  width: min(100%, 320px);
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line {
  align-self: center;
  margin-top: 0;
  width: min(100%, 320px);
}

@media (max-width: 1024px) {
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add,
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line {
    width: 100%;
  }
}


/* v3.1.34 inline recommendations desktop footer hard-centering */
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer {
  box-shadow: none !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: center !important;
  justify-items: center !important;
  place-items: center !important;
  text-align: center !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-action-loading-line {
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  place-self: center !important;
}

@media (min-width: 1025px) {
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add {
    display: inline-flex !important;
    justify-content: center !important;
    width: 320px !important;
    max-width: 320px !important;
  }

  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-action-loading-line {
    width: 320px !important;
    max-width: 320px !important;
  }
}

@media (max-width: 1024px) {
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add,
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-action-loading-line {
    max-width: none !important;
    width: 100% !important;
  }
}


/* v3.1.36 inline recommendations footer full-width desktop fix */
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit {
  align-self: stretch !important;
  justify-self: stretch !important;
  left: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  min-width: 100% !important;
  width: 100% !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit .customywear-photo-editor-recommendations-add,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit .customywear-photo-editor-recommendations-add,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit .customywear-photo-editor-action-loading-line,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit .customywear-photo-editor-action-loading-line {
  justify-self: center !important;
  place-self: center !important;
}

@media (min-width: 1025px) {
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit .customywear-photo-editor-recommendations-add,
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit .customywear-photo-editor-recommendations-add,
  .customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit .customywear-photo-editor-action-loading-line,
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit .customywear-photo-editor-action-loading-line {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 320px !important;
    width: 320px !important;
  }
}


/* v3.1.36 inline recommendations summary/footer polish */
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary {
  margin: 0 auto !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer {
  gap: 12px !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line {
  margin-top: 4px !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add:hover,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add:focus-visible,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add:hover,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add:focus-visible {
  box-shadow: none !important;
}


/* v3.1.37 inline recommendations + text editor polish */
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary {
  align-items: flex-end !important;
  padding: 8px 14px 6px !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary-count,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-summary-copy,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary-count,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary-copy {
  align-self: flex-end !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line {
  margin-top: 8px !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add:hover,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add:focus-visible,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add:hover,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add:focus-visible {
  box-shadow: none !important;
  filter: none !important;
}

.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add::before,
.customywear-photo-editor-recommendations.is-inline .customywear-photo-editor-recommendations-add::after,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add::before,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add::after {
  box-shadow: none !important;
  filter: none !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button {
    width: calc(100% - 6px) !important;
    max-width: calc(100% - 6px) !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    align-self: start !important;
    justify-self: center !important;
    place-self: start center !important;
    margin-left: 3px !important;
    margin-right: 3px !important;
    overflow: hidden !important;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
  }
}


/* v3.1.38 mobile text editor square preview frame */
@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-image-button.is-editing {
    width: calc(100% - 6px) !important;
    max-width: calc(100% - 6px) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    align-self: start !important;
    justify-self: center !important;
    place-self: start center !important;
    margin-left: 3px !important;
    margin-right: 3px !important;
    overflow: hidden !important;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
  }
}


/* v3.1.40 mobile-only full-width result canvas */
@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-result-canvas {
    width: calc(100% - 0px) !important;
    height: calc(100% - 0px) !important;
    max-width: calc(100% - 0px) !important;
    max-height: calc(100% - 0px) !important;
  }
}





/* v3.1.45 cart success popup center-screen fix */
.customywear-photo-editor-cart-success {
  align-items: center !important;
  display: flex !important;
  inset: 0 !important;
  justify-content: center !important;
  padding: 16px !important;
  position: fixed !important;
  z-index: 10020 !important;
}

.customywear-photo-editor-cart-success-backdrop {
  inset: 0 !important;
  position: absolute !important;
}

.customywear-photo-editor-cart-success-dialog {
  left: auto !important;
  margin: 0 !important;
  max-height: min(calc(100dvh - 32px), 760px) !important;
  position: relative !important;
  top: auto !important;
  transform: none !important;
  width: min(94vw, 920px) !important;
}

.customywear-photo-editor-cart-success-close-bottom {
  display: none !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-cart-success {
    padding: 10px !important;
  }

  .customywear-photo-editor-cart-success-dialog {
    max-height: min(calc(100dvh - 20px), 720px) !important;
    width: min(94vw, 460px) !important;
  }
}


/* Cart success popup body-mounted theme + polish */
.customywear-photo-editor-cart-success {
  --ws-accent: #239add;
  --ws-accent-dark: #1578b0;
  --ws-brand-dark: #1e3b66;
  --ws-brand-ink: #202020;
  --ws-bg: #f3f9fd;
  --ws-surface: #ffffff;
  --ws-surface-alt: #ecf6fb;
  --ws-ink: #112536;
  --ws-muted: #607487;
  --ws-line: #d7e6f0;
  --ws-error: #b42318;
  color: var(--ws-ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.customywear-photo-editor-cart-success-dialog {
  background:
    radial-gradient(circle at top right, rgba(35, 154, 221, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%) !important;
  border: 1px solid rgba(17, 37, 54, 0.08);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18) !important;
}

.customywear-photo-editor-cart-success-title {
  color: var(--ws-brand-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.08;
  margin: 0;
}

.customywear-photo-editor-cart-success-message {
  color: var(--ws-muted);
  font-size: 15px;
  margin-top: -2px;
}

.customywear-photo-editor-cart-success-actions > a,
.customywear-photo-editor-cart-success-actions > button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.customywear-photo-editor-cart-success-actions > .customywear-photo-editor-primary {
  background: linear-gradient(180deg, var(--ws-accent) 0%, var(--ws-accent-dark) 100%) !important;
  box-shadow: 0 12px 26px rgba(35, 154, 221, 0.28);
}

.customywear-photo-editor-cart-success-actions > .customywear-photo-editor-primary:hover {
  background: linear-gradient(180deg, #2ca6eb 0%, var(--ws-accent-dark) 100%) !important;
  box-shadow: 0 16px 30px rgba(35, 154, 221, 0.32);
}

.customywear-photo-editor-cart-success-actions > .customywear-photo-editor-secondary {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(17, 37, 54, 0.04);
}

.customywear-photo-editor-cart-success-actions > .customywear-photo-editor-secondary:hover {
  background: var(--ws-surface-alt) !important;
  border-color: rgba(17, 37, 54, 0.18) !important;
}

.customywear-photo-editor-cart-success-upsells {
  margin-top: 6px;
}

.customywear-photo-editor-cart-success-grid {
  gap: 18px;
}

.customywear-photo-editor-cart-success-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(17, 37, 54, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  padding: 12px !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.customywear-photo-editor-cart-success-card:hover {
  border-color: rgba(35, 154, 221, 0.28) !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.customywear-photo-editor-cart-success-image {
  background: linear-gradient(180deg, rgba(30, 59, 102, 0.04) 0%, rgba(35, 154, 221, 0.08) 100%);
  border: 1px solid rgba(17, 37, 54, 0.06);
}

.customywear-photo-editor-cart-success-card-title {
  color: var(--ws-brand-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  margin: 2px 0 0;
  min-height: 2.7em;
}

.customywear-photo-editor-cart-success-card-price {
  align-items: baseline;
  color: var(--ws-accent-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.35;
}

.customywear-photo-editor-cart-success-card-price ins,
.customywear-photo-editor-cart-success-card-price del {
  text-decoration-thickness: 0.08em;
}

.customywear-photo-editor-cart-success-card-price ins {
  color: var(--ws-accent-dark);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.customywear-photo-editor-cart-success-card-price del {
  color: var(--ws-muted);
  font-size: 13px;
}

@media (max-width: 767px) {
  .customywear-photo-editor-cart-success-dialog {
    border-radius: 24px !important;
    padding: 20px 16px 18px !important;
  }

  .customywear-photo-editor-cart-success-title {
    font-size: 24px;
  }

  .customywear-photo-editor-cart-success-actions > a,
  .customywear-photo-editor-cart-success-actions > button {
    width: 100%;
  }

  .customywear-photo-editor-cart-success-grid {
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customywear-photo-editor-cart-success-card {
    border-radius: 18px !important;
    padding: 10px !important;
  }

  .customywear-photo-editor-cart-success-card-title {
    font-size: 14px;
  }
}


/* v3.1.47 mobile cart success spacing */
@media (max-width: 767px) {
  .customywear-photo-editor-cart-success-message {
    margin-top: 23px !important;
  }

  .customywear-photo-editor-cart-success-close {
    right: 2px !important;
    top: 0px !important;
  }
}


/* v3.1.50 desktop cart success title/message layout */
@media (min-width: 768px) {
  .customywear-photo-editor-cart-success-dialog {
    display: flex !important;
    flex-direction: column !important;
  }

  .customywear-photo-editor-cart-success-message {
    font-size: 18px !important;
    line-height: 1.5;
    order: 1;
  }

  .customywear-photo-editor-cart-success-actions {
    order: 2;
  }

  .customywear-photo-editor-cart-success-title {
    font-size: clamp(12px, 1.4vw, 15px) !important;
    line-height: 1.3;
    margin: 6px 0 0 !important;
    order: 3;
    padding-right: 0 !important;
  }

  .customywear-photo-editor-cart-success-upsells {
    margin-top: 0 !important;
    order: 4;
  }
}


/* v3.2.0 progressive second-design loading */
.customywear-photo-editor-result-image-button {
  position: relative;
}

.customywear-photo-editor-result-image-button.is-processing {
  cursor: default;
}

.customywear-photo-editor-result-canvas-overlay {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  overflow: hidden;
  padding: 18px;
  position: absolute;
  z-index: 2;
}

.customywear-photo-editor-result-canvas-overlay-image,
.customywear-photo-editor-result-canvas-overlay-scrim {
  inset: 0;
  position: absolute;
}

.customywear-photo-editor-result-canvas-overlay-image {
  filter: blur(18px);
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  width: 100%;
}

.customywear-photo-editor-result-canvas-overlay-scrim {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.customywear-photo-editor-result-canvas-overlay-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 37, 54, 0.08);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(17, 37, 54, 0.14);
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 320px;
  padding: 18px 18px 16px;
  position: relative;
  text-align: center;
  width: min(100%, 320px);
}

.customywear-photo-editor-result-canvas-overlay-video {
  display: block;
  height: auto;
  max-width: 132px;
  pointer-events: none;
  width: min(58%, 132px);
}

.customywear-photo-editor-result-canvas-overlay-badge,
.customywear-photo-editor-design-thumb-badge {
  background: rgba(35, 154, 221, 0.12);
  border-radius: 999px;
  color: var(--ws-accent-dark);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  justify-self: center;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 6px 10px;
  text-transform: uppercase;
}

.customywear-photo-editor-result-canvas-overlay-title {
  color: var(--ws-brand-dark);
  font-size: 16px;
  line-height: 1.25;
}

.customywear-photo-editor-result-canvas-overlay-message {
  color: var(--ws-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.customywear-photo-editor-result-canvas-overlay-bar {
  margin-top: 2px;
}

.customywear-photo-editor-result-canvas-overlay-percent {
  color: var(--ws-accent-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.customywear-photo-editor-design-thumb {
  position: relative;
}

.customywear-photo-editor-design-thumb-badge {
  left: 50%;
  position: absolute;
  top: 10px;
  transform: translateX(-50%);
  z-index: 2;
}

.customywear-photo-editor-design-thumb--pending .customywear-photo-editor-design-thumb-badge {
  background: rgba(35, 154, 221, 0.16);
}

.customywear-photo-editor-design-thumb--failed .customywear-photo-editor-design-thumb-badge {
  background: rgba(180, 35, 24, 0.14);
  color: var(--ws-error);
}

.customywear-photo-editor-design-thumb-image.is-processing,
.customywear-photo-editor-design-thumb--pending .customywear-photo-editor-design-thumb-image,
.customywear-photo-editor-design-thumb--failed .customywear-photo-editor-design-thumb-image {
  filter: blur(8px);
  transform: scale(1.04);
}

.customywear-photo-editor-design-thumb--failed {
  border-color: rgba(180, 35, 24, 0.22);
}

@media (max-width: 767px) {
  .customywear-photo-editor-result-canvas-overlay {
    padding: 14px;
  }

  .customywear-photo-editor-result-canvas-overlay-card {
    gap: 8px;
    max-width: 280px;
    padding: 14px 14px 12px;
  }

  .customywear-photo-editor-result-canvas-overlay-title {
    font-size: 15px;
  }

  .customywear-photo-editor-result-canvas-overlay-message {
    font-size: 12px;
  }

  .customywear-photo-editor-design-thumb-badge {
    top: 8px;
    font-size: 10px;
    padding: 5px 8px;
  }
}


/* v3.2.2 result screen thumbnail cleanup + tighter spacing */
.customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-result-shell,
.customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-preview-panel {
  gap: 13px !important;
}

.customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-preview-panel {
  padding: 17px !important;
}

.customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-design-selector {
  gap: 9px !important;
  margin-top: 13px !important;
}

.customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-actions {
  gap: 11px !important;
}

.customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-result-tip {
  display: none !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumbs {
  gap: 9px !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb {
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  overflow: hidden !important;
  padding: 3px !important;
  position: relative !important;
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
  flex: 0 0 84px !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb-image {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
}

.customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb-badge {
  background: rgba(17, 37, 54, 0.82) !important;
  border-radius: 999px !important;
  bottom: 8px !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  left: 50% !important;
  line-height: 1.1 !important;
  max-width: calc(100% - 12px) !important;
  overflow: hidden !important;
  padding: 5px 8px !important;
  pointer-events: none !important;
  position: absolute !important;
  text-overflow: ellipsis !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-result-shell,
  .customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-preview-panel {
    gap: 12px !important;
  }

  .customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-preview-panel {
    padding: 16px !important;
  }

  .customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-design-selector {
    gap: 8px !important;
    margin-top: 12px !important;
  }

  .customywear-photo-editor-step[data-step="result"] .customywear-photo-editor-actions {
    gap: 10px !important;
  }

  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumbs {
    gap: 8px !important;
  }

  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    flex-basis: 68px !important;
    padding: 3px !important;
  }

  .customywear-photo-editor-preview-panel[data-result-stage="complete"] .customywear-photo-editor-design-thumb-badge {
    bottom: 6px !important;
    font-size: 9px !important;
    padding: 4px 7px !important;
  }
}


/* Hide native product descriptions for customized Customywear cart items only.
   The custom preview/uploaded photo metadata remains visible and is formatted below. */
.customywear-photo-editor-customized-cart-item .woocommerce-product-details__short-description,
.customywear-photo-editor-customized-cart-item .wc-block-components-product-metadata__description,
.customywear-photo-editor-customized-cart-item .wc-block-cart-item__description,
.customywear-photo-editor-customized-cart-item .product-description,
.customywear-photo-editor-customized-cart-item .product-short-description,
.customywear-photo-editor-customized-cart-item .product-excerpt,
.customywear-photo-editor-customized-cart-item .cart-item-description,
.customywear-photo-editor-customized-cart-item .item-description,
.customywear-photo-editor-customized-cart-item .variation-Description,
.customywear-photo-editor-customized-cart-item .variation-description,
.customywear-photo-editor-upsell-cart-item .woocommerce-product-details__short-description,
.customywear-photo-editor-upsell-cart-item .wc-block-components-product-metadata__description,
.customywear-photo-editor-upsell-cart-item .wc-block-cart-item__description,
.customywear-photo-editor-upsell-cart-item .product-description,
.customywear-photo-editor-upsell-cart-item .product-short-description,
.customywear-photo-editor-upsell-cart-item .product-excerpt,
.customywear-photo-editor-upsell-cart-item .cart-item-description,
.customywear-photo-editor-upsell-cart-item .item-description,
.customywear-photo-editor-upsell-cart-item .variation-Description,
.customywear-photo-editor-upsell-cart-item .variation-description {
  display: none !important;
}

/* WooCommerce Blocks cart/checkout: keep Customywear metadata readable and one option per line. */
body.woocommerce-cart .wc-block-components-product-metadata:has([data-cwpe-cart-customization-meta="1"]) > .wc-block-components-product-metadata__description,
body.woocommerce-checkout .wc-block-components-product-metadata:has([data-cwpe-cart-customization-meta="1"]) > .wc-block-components-product-metadata__description,
body.woocommerce-cart .wc-block-components-product-metadata:has([data-cwpe-upsell-cart-item="1"]) > .wc-block-components-product-metadata__description,
body.woocommerce-checkout .wc-block-components-product-metadata:has([data-cwpe-upsell-cart-item="1"]) > .wc-block-components-product-metadata__description,
body.woocommerce-cart .customywear-photo-editor-blocks-customization-metadata > .wc-block-components-product-metadata__description,
body.woocommerce-checkout .customywear-photo-editor-blocks-customization-metadata > .wc-block-components-product-metadata__description,
body.woocommerce-cart .customywear-photo-editor-blocks-upsell-metadata > .wc-block-components-product-metadata__description,
body.woocommerce-checkout .customywear-photo-editor-blocks-upsell-metadata > .wc-block-components-product-metadata__description,
body.woocommerce-cart .customywear-photo-editor-blocks-customization-description,
body.woocommerce-checkout .customywear-photo-editor-blocks-customization-description,
body.woocommerce-cart .customywear-photo-editor-blocks-upsell-description,
body.woocommerce-checkout .customywear-photo-editor-blocks-upsell-description {
  display: none !important;
}

body.woocommerce-cart .wc-block-components-product-metadata:has([data-cwpe-cart-customization-meta="1"]) .wc-block-components-product-details,
body.woocommerce-checkout .wc-block-components-product-metadata:has([data-cwpe-cart-customization-meta="1"]) .wc-block-components-product-details,
body.woocommerce-cart .customywear-photo-editor-blocks-customization-details,
body.woocommerce-checkout .customywear-photo-editor-blocks-customization-details {
  display: block !important;
  margin: 6px 0 0 !important;
}

body.woocommerce-cart .wc-block-components-product-metadata:has([data-cwpe-cart-customization-meta="1"]) .wc-block-components-product-details li,
body.woocommerce-checkout .wc-block-components-product-metadata:has([data-cwpe-cart-customization-meta="1"]) .wc-block-components-product-details li,
body.woocommerce-cart .customywear-photo-editor-blocks-customization-details li,
body.woocommerce-checkout .customywear-photo-editor-blocks-customization-details li {
  display: block !important;
  margin: 0 0 4px !important;
  white-space: normal !important;
}

body.woocommerce-cart .wc-block-components-product-metadata:has([data-cwpe-cart-customization-meta="1"]) .wc-block-components-product-details li::after,
body.woocommerce-checkout .wc-block-components-product-metadata:has([data-cwpe-cart-customization-meta="1"]) .wc-block-components-product-details li::after,
body.woocommerce-cart .customywear-photo-editor-blocks-customization-details li::after,
body.woocommerce-checkout .customywear-photo-editor-blocks-customization-details li::after {
  content: "" !important;
  display: none !important;
}

body.woocommerce-cart .customywear-photo-editor-blocks-cart-product .wc-block-cart-item__prices,
body.woocommerce-cart .customywear-photo-editor-blocks-cart-line-item .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-cart-item__product:has([data-cwpe-cart-customization-meta="1"]) .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-cart-item__product:has([data-cwpe-upsell-cart-item="1"]) .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-cart-items__row:has([data-cwpe-cart-customization-meta="1"]) .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-cart-items__row:has([data-cwpe-upsell-cart-item="1"]) .wc-block-cart-item__prices {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.customywear-photo-editor-cart-meta-value[data-cwpe-cart-customization-meta="1"],
.wc-block-components-product-details .customywear-photo-editor-cart-meta-value[data-cwpe-cart-customization-meta="1"] {
  display: inline !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 600px) {
  body.woocommerce-cart .wc-block-components-product-metadata:has([data-cwpe-cart-customization-meta="1"]) .wc-block-components-product-details,
  body.woocommerce-checkout .wc-block-components-product-metadata:has([data-cwpe-cart-customization-meta="1"]) .wc-block-components-product-details,
  body.woocommerce-cart .customywear-photo-editor-blocks-customization-details,
  body.woocommerce-checkout .customywear-photo-editor-blocks-customization-details {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
}


/* Customywear product option selection step */
.customywear-photo-editor-preview-panel.has-option-selection {
  width: 100%;
  max-width: none;
}

.customywear-photo-editor-preview-panel.has-option-selection .customywear-photo-editor-result-image-button,
.customywear-photo-editor-preview-panel.has-option-selection .customywear-photo-editor-text-editor,
.customywear-photo-editor-result-image-button.is-cwpe-hidden-for-options,
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-result-image-button {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}


.customywear-photo-editor-option-selection {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: min(720px, calc(100vh - 170px));
  position: relative;
}

.customywear-photo-editor-option-selection[hidden] {
  display: none !important;
}

.customywear-photo-editor-option-selection-layout {
  display: grid;
  grid-template-columns: minmax(260px, 44%) minmax(280px, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: 0;
  flex: 1 1 auto;
}

.customywear-photo-editor-option-selection-preview,
.customywear-photo-editor-option-selection-content {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.customywear-photo-editor-option-selection-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  min-height: 340px;
}

.customywear-photo-editor-option-selection-preview-frame {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  overflow: hidden;
}

.customywear-photo-editor-option-selection-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.customywear-photo-editor-option-selection.is-preview-loading .customywear-photo-editor-option-selection-preview-frame {
  opacity: 0.72;
}

.customywear-photo-editor-option-selection-content {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
}

.customywear-photo-editor-option-selection-subtitle {
  margin: 0 0 12px;
  color: #475569;
  font-size: 15px;
  line-height: 1.4;
}

.customywear-photo-editor-option-selection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  min-height: 0;
  padding: 0 2px 8px 0;
  scrollbar-width: thin;
}

.customywear-photo-editor-tshirt-option {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.customywear-photo-editor-tshirt-option.is-active {
  border-color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.customywear-photo-editor-tshirt-option-header {
  width: 100%;
  border: 0;
  background: #f8fafc;
  color: #0f172a;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.customywear-photo-editor-tshirt-option-title {
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}

.customywear-photo-editor-tshirt-option-summary {
  font-size: 13px;
  color: #334155;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.customywear-photo-editor-tshirt-option-body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 11px;
}

.customywear-photo-editor-tshirt-option-group {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.customywear-photo-editor-tshirt-option-label {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
}

.customywear-photo-editor-tshirt-option-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.customywear-photo-editor-tshirt-choice {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  min-height: 36px;
  min-width: 42px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.customywear-photo-editor-tshirt-choice:hover,
.customywear-photo-editor-tshirt-choice:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
  outline: none;
}

.customywear-photo-editor-tshirt-choice.is-selected {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.14);
}

.customywear-photo-editor-tshirt-choice--color {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

.customywear-photo-editor-tshirt-color-dot,
.customywear-photo-editor-shortcode-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--cwpe-tshirt-choice-color, var(--cwpe-option-color, #111827));
  border: 1px solid rgba(15, 23, 42, 0.18);
  display: inline-block;
}

.customywear-photo-editor-tshirt-choice--color.is-selected .customywear-photo-editor-tshirt-color-dot,
.customywear-photo-editor-shortcode-color-option.is-active .customywear-photo-editor-shortcode-color-swatch {
  outline: 2px solid #0f172a;
  outline-offset: 3px;
}

.customywear-photo-editor-option-selection-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.customywear-photo-editor-add-tshirt,
.customywear-photo-editor-size-guide-trigger {
  min-height: 38px;
}

.customywear-photo-editor-size-guide-trigger {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  cursor: pointer;
}

.customywear-photo-editor-option-selection-sticky {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin-top: 12px;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 38%);
}

.customywear-photo-editor-confirm-tshirt-options {
  width: 100%;
  min-height: 50px;
}

.customywear-photo-editor-current-selection-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.customywear-photo-editor-current-selection-label {
  font-weight: 800;
  color: #0f172a;
}

.customywear-photo-editor-current-selection-toggle {
  border: 0;
  background: transparent;
  color: #0f172a;
  padding: 0;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  font-size: 15px;
  width: fit-content;
}

.customywear-photo-editor-current-selection-details {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.customywear-photo-editor-recommendation-card--current-summary .customywear-photo-editor-recommendation-meta {
  gap: 10px;
}

.customywear-photo-editor-shortcode-options {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.customywear-photo-editor-shortcode-label {
  font-weight: 800;
  color: #111827;
}

.customywear-photo-editor-shortcode-selected-value {
  color: #334155;
  font-weight: 800;
  white-space: nowrap;
}

.customywear-photo-editor-tshirt-option-label .customywear-photo-editor-shortcode-selected-value,
.customywear-photo-editor-shortcode-label .customywear-photo-editor-shortcode-selected-value {
  margin-left: 3px;
}

.customywear-photo-editor-shortcode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customywear-photo-editor-shortcode-option {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #111827;
  border-radius: 999px;
  min-height: 36px;
  padding: 7px 13px;
  font-weight: 800;
  cursor: pointer;
}

.customywear-photo-editor-shortcode-option.is-active {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}

.customywear-photo-editor-shortcode-color-option {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.customywear-photo-editor-size-guide-modal[hidden] {
  display: none !important;
}

.customywear-photo-editor-size-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.customywear-photo-editor-size-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.customywear-photo-editor-size-guide-dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: min(86vh, 860px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.customywear-photo-editor-size-guide-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.customywear-photo-editor-size-guide-heading {
  max-width: 900px;
  margin: 20px auto 15px;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #222;
}

.customywear-photo-editor-size-guide-accordion {
  max-width: 900px;
  margin: 0 auto 20px;
  font-family: Arial, sans-serif;
}

.customywear-photo-editor-size-guide-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}

.customywear-photo-editor-size-guide-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  background: #f7f7f7;
  list-style: none;
  position: relative;
}

.customywear-photo-editor-size-guide-item summary::-webkit-details-marker {
  display: none;
}

.customywear-photo-editor-size-guide-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 22px;
  line-height: 1;
}

.customywear-photo-editor-size-guide-item[open] summary::after {
  content: "−";
}

.customywear-photo-editor-size-guide-content {
  padding: 18px 20px 22px;
}

.customywear-photo-editor-size-guide-content p {
  margin-top: 12px;
  margin-bottom: 0;
  color: #555;
  line-height: 1.5;
}

.customywear-photo-editor-size-guide-table-wrap {
  overflow-x: auto;
}

.customywear-photo-editor-size-guide-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.customywear-photo-editor-size-guide-table th,
.customywear-photo-editor-size-guide-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

.customywear-photo-editor-size-guide-table th {
  background: #222;
  color: #fff;
  font-weight: 600;
}

.customywear-photo-editor-size-guide-table tr:nth-child(even) {
  background: #f9f9f9;
}

@media (max-width: 900px) {
  .customywear-photo-editor-option-selection {
    min-height: min(760px, calc(100vh - 125px));
  }

  .customywear-photo-editor-option-selection-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .customywear-photo-editor-option-selection-preview {
    min-height: 210px;
    padding: 12px;
  }

  .customywear-photo-editor-option-selection-preview-frame {
    max-width: min(280px, 72vw);
  }

  .customywear-photo-editor-option-selection-content {
    max-height: min(50vh, 420px);
  }

  .customywear-photo-editor-tshirt-option-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .customywear-photo-editor-tshirt-option-summary {
    text-align: left;
  }

  .customywear-photo-editor-tshirt-option-header {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .customywear-photo-editor-option-selection {
    min-height: auto;
  }

  .customywear-photo-editor-option-selection-content,
  .customywear-photo-editor-option-selection-preview {
    border-radius: 16px;
  }

  .customywear-photo-editor-option-selection-content {
    padding: 12px;
  }

  .customywear-photo-editor-option-selection-list {
    max-height: 48vh;
  }

  .customywear-photo-editor-tshirt-choice {
    min-height: 34px;
    min-width: 38px;
    padding: 6px 10px;
  }

  .customywear-photo-editor-size-guide-dialog {
    padding: 15px;
  }

  .customywear-photo-editor-size-guide-heading {
    font-size: 22px;
    padding: 0 10px;
  }

  .customywear-photo-editor-size-guide-item summary {
    font-size: 16px;
    padding: 14px 45px 14px 15px;
  }

  .customywear-photo-editor-size-guide-content {
    padding: 15px;
  }

  .customywear-photo-editor-size-guide-table th,
  .customywear-photo-editor-size-guide-table td {
    padding: 10px;
    font-size: 14px;
  }
}

/* v3.4.65 Select Options UI fixes: modal stacking, internal scrolling, delete control, validation */
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-step.is-active,
.customywear-photo-editor-preview-panel.has-option-selection {
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-option-selection {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.customywear-photo-editor-option-selection-layout {
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-option-selection-preview,
.customywear-photo-editor-option-selection-content {
  min-height: 0 !important;
}

.customywear-photo-editor-option-selection-content {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.customywear-photo-editor-option-selection-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px !important;
}

.customywear-photo-editor-option-selection-tools,
.customywear-photo-editor-option-selection-sticky {
  flex: 0 0 auto !important;
}

.customywear-photo-editor-option-selection-tools {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 24%, #fff 100%);
  margin-top: 8px;
  padding-top: 14px !important;
}

.customywear-photo-editor-tshirt-option-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: stretch !important;
  background: #f8fafc;
}

.customywear-photo-editor-tshirt-option-header-main {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  padding: 12px 4px 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.customywear-photo-editor-tshirt-option-remove {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  align-self: center;
  justify-self: end;
  margin-right: 8px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  color: #b91c1c;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.customywear-photo-editor-tshirt-option-remove:hover,
.customywear-photo-editor-tshirt-option-remove:focus {
  background: #fee2e2;
  border-color: #ef4444;
  outline: none;
}


.customywear-photo-editor-tshirt-option-group {
  grid-template-columns: 86px minmax(0, 1fr) !important;
}

.customywear-photo-editor-tshirt-option.has-validation-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
}

.customywear-photo-editor-tshirt-option-group.has-validation-error {
  border: 1px solid #ef4444;
  border-radius: 14px;
  background: #fff7f7;
  padding: 9px 10px;
}

.customywear-photo-editor-tshirt-option-group.has-validation-error .customywear-photo-editor-tshirt-option-label {
  color: #b91c1c;
}

.customywear-photo-editor-tshirt-option-group.has-validation-error .customywear-photo-editor-tshirt-choice {
  border-color: #f87171;
}

.customywear-photo-editor-tshirt-option-required {
  grid-column: 2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
  margin-top: -3px;
}

.customywear-photo-editor-popup.is-option-validation-alert .customywear-photo-editor-popup-alert {
  background: #fff;
  border-color: rgba(239, 68, 68, 0.24);
  box-shadow: 0 24px 60px rgba(7, 20, 31, 0.26) !important;
  color: #7f1d1d;
  left: 50% !important;
  max-width: min(calc(100vw - 28px), 420px) !important;
  position: fixed !important;
  text-align: center;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(calc(100vw - 28px), 420px) !important;
  z-index: 1000004 !important;
}

.customywear-photo-editor-popup.is-option-validation-alert .customywear-photo-editor-popup-alert-cancel {
  display: none !important;
}

.customywear-photo-editor-popup.is-option-validation-alert .customywear-photo-editor-popup-alert-confirm {
  flex: 0 0 auto;
  min-width: 110px;
}

.customywear-photo-editor-size-guide-modal {
  z-index: 1000005 !important;
}

.customywear-photo-editor-size-guide-modal.is-active {
  display: flex !important;
}

.customywear-photo-editor-size-guide-dialog {
  z-index: 1;
  overscroll-behavior: contain;
}

body.customywear-photo-editor-size-guide-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .customywear-photo-editor-option-selection {
    height: 100% !important;
    max-height: calc(100svh - 118px) !important;
  }

  .customywear-photo-editor-option-selection-layout {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .customywear-photo-editor-option-selection-preview {
    max-height: 220px;
  }

  .customywear-photo-editor-option-selection-content {
    max-height: none !important;
  }

  .customywear-photo-editor-tshirt-option-header-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .customywear-photo-editor-tshirt-option-summary {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .customywear-photo-editor-option-selection {
    max-height: calc(100svh - 96px) !important;
  }

  .customywear-photo-editor-option-selection-preview {
    min-height: 132px !important;
    max-height: 150px;
    padding: 10px !important;
  }

  .customywear-photo-editor-option-selection-preview-frame {
    max-width: min(150px, 46vw) !important;
  }

  .customywear-photo-editor-option-selection-tools {
    gap: 8px;
  }

  .customywear-photo-editor-add-tshirt,
  .customywear-photo-editor-size-guide-trigger {
    flex: 1 1 100%;
    justify-content: center;
  }

  .customywear-photo-editor-tshirt-option-group.has-validation-error {
    padding: 8px;
  }

  .customywear-photo-editor-tshirt-option-required {
    grid-column: 1;
  }

  .customywear-photo-editor-size-guide-modal {
    padding: 10px !important;
  }

  .customywear-photo-editor-size-guide-dialog {
    max-height: calc(100svh - 20px) !important;
    width: 100% !important;
  }
}



/* v3.4.66: fixed Select Options scroll frame, compact option chips, size guide accordion, and text placement shortcuts. */
.customywear-photo-editor-shell[data-cwpe-options-active="1"] [data-step="result"].is-active {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-result-shell,
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-preview-panel.has-option-selection {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: var(--cwpe-options-max-height, calc(94svh - 138px)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-preview-panel.has-option-selection {
  align-items: stretch !important;
  justify-items: stretch !important;
  padding-bottom: 12px !important;
}

.customywear-photo-editor-option-selection {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  height: var(--cwpe-options-max-height, 100%) !important;
  max-height: var(--cwpe-options-max-height, 100%) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.customywear-photo-editor-option-selection[hidden] {
  display: none !important;
}

.customywear-photo-editor-option-selection-layout {
  display: grid !important;
  flex: 1 1 auto !important;
  grid-template-columns: minmax(230px, 42%) minmax(0, 1fr) !important;
  height: var(--cwpe-options-max-height, 100%) !important;
  max-height: var(--cwpe-options-max-height, 100%) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-option-selection-preview,
.customywear-photo-editor-option-selection-content {
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-option-selection-preview {
  align-self: stretch !important;
}

.customywear-photo-editor-option-selection-content {
  display: flex !important;
  flex-direction: column !important;
  height: var(--cwpe-options-content-height, 100%) !important;
  max-height: var(--cwpe-options-content-height, 100%) !important;
}

.customywear-photo-editor-option-selection-list {
  flex: 1 1 0 !important;
  min-height: 120px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 0 4px 10px 0 !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

.customywear-photo-editor-option-selection-tools {
  flex: 0 0 auto !important;
  margin-top: 8px !important;
}

.customywear-photo-editor-option-selection-sticky {
  flex: 0 0 auto !important;
  position: sticky !important;
  bottom: 0 !important;
}

.customywear-photo-editor-tshirt-option-body {
  gap: 9px !important;
  padding: 10px 11px 12px !important;
}

.customywear-photo-editor-tshirt-option-group {
  grid-template-columns: 72px minmax(0, 1fr) !important;
  gap: 6px !important;
}

.customywear-photo-editor-tshirt-option-label {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.customywear-photo-editor-tshirt-option-choices {
  gap: 5px !important;
}

.customywear-photo-editor-tshirt-choice {
  font-size: 12px !important;
  line-height: 1 !important;
  min-height: 30px !important;
  min-width: 32px !important;
  padding: 5px 8px !important;
}

.customywear-photo-editor-tshirt-choice--size,
.customywear-photo-editor-tshirt-choice--print_location {
  flex: 0 0 auto !important;
}

.customywear-photo-editor-tshirt-option-group--size .customywear-photo-editor-tshirt-option-choices {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 2px 2px 5px !important;
  scrollbar-width: thin;
}

.customywear-photo-editor-tshirt-choice--color {
  height: 32px !important;
  min-height: 32px !important;
  min-width: 32px !important;
  width: 32px !important;
}

.customywear-photo-editor-tshirt-color-dot {
  height: 21px !important;
  width: 21px !important;
}

.customywear-photo-editor-tshirt-option-group.has-validation-error {
  padding: 7px 8px !important;
}

.customywear-photo-editor-tshirt-option-required {
  align-self: center !important;
  background: #fee2e2 !important;
  border-radius: 999px !important;
  color: #991b1b !important;
  display: inline-flex !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  grid-column: 2 !important;
  justify-self: start !important;
  line-height: 1 !important;
  margin-top: 0 !important;
  padding: 4px 8px !important;
}

.customywear-photo-editor-size-guide-item[open] > .customywear-photo-editor-size-guide-content {
  display: block !important;
}

.customywear-photo-editor-size-guide-item:not([open]) > .customywear-photo-editor-size-guide-content {
  display: none !important;
}

.customywear-photo-editor-size-guide-table-wrap {
  display: block !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.customywear-photo-editor-size-guide-table {
  display: table !important;
}

.customywear-photo-editor-text-alignment-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin: -4px auto 0;
  max-width: 100%;
  width: 100%;
}

.customywear-photo-editor-text-alignment-controls[hidden] {
  display: none !important;
}

.customywear-photo-editor-text-align-button {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  min-height: 32px;
  padding: 5px 9px;
  touch-action: manipulation;
}

.customywear-photo-editor-text-align-button:hover,
.customywear-photo-editor-text-align-button:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
  outline: none;
}

.customywear-photo-editor-text-align-button.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

@media (max-width: 900px) {
  .customywear-photo-editor-option-selection-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  .customywear-photo-editor-option-selection-preview {
    max-height: 150px !important;
    min-height: 120px !important;
    padding: 8px !important;
  }

  .customywear-photo-editor-option-selection-preview-frame {
    max-width: min(142px, 42vw) !important;
  }

  .customywear-photo-editor-option-selection-content {
    height: auto !important;
    max-height: none !important;
  }

  .customywear-photo-editor-option-selection-list {
    min-height: 180px !important;
  }

  .customywear-photo-editor-tshirt-option-group {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-preview-panel.has-option-selection {
    max-height: var(--cwpe-options-max-height, calc(100svh - 108px)) !important;
    padding: 10px !important;
  }

  .customywear-photo-editor-option-selection {
    height: var(--cwpe-options-max-height, calc(100svh - 108px)) !important;
    max-height: var(--cwpe-options-max-height, calc(100svh - 108px)) !important;
  }

  .customywear-photo-editor-option-selection-layout {
    gap: 8px !important;
  }

  .customywear-photo-editor-option-selection-subtitle {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }

  .customywear-photo-editor-tshirt-option-group {
    grid-template-columns: 60px minmax(0, 1fr) !important;
  }

  .customywear-photo-editor-tshirt-choice {
    font-size: 11px !important;
    min-height: 28px !important;
    min-width: 30px !important;
    padding: 4px 7px !important;
  }

  .customywear-photo-editor-tshirt-option-required {
    grid-column: 2 !important;
  }

  .customywear-photo-editor-text-alignment-controls {
    gap: 5px;
  }

  .customywear-photo-editor-text-align-button {
    flex: 1 1 calc(33.333% - 6px);
    justify-content: center;
    padding-inline: 6px;
  }
}


/* v3.4.67: robust Select Options mobile scrolling, compact option rows, native size-guide accordion, and back navigation polish. */
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-actions-result,
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-open-text-editor {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-result-shell,
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-preview-panel.has-option-selection {
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection {
  display: flex !important;
  flex-direction: column !important;
  height: var(--cwpe-options-max-height, min(760px, calc(100svh - 118px))) !important;
  max-height: var(--cwpe-options-max-height, min(760px, calc(100svh - 118px))) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-layout {
  flex: 1 1 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-content {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-list {
  flex: 1 1 auto !important;
  max-height: 100% !important;
  min-height: 124px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

.customywear-photo-editor-tshirt-option-body {
  overflow: visible !important;
}

.customywear-photo-editor-tshirt-option-group {
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 5px !important;
}

.customywear-photo-editor-tshirt-option-label {
  overflow-wrap: anywhere;
}

.customywear-photo-editor-tshirt-option-choices {
  gap: 4px !important;
  min-width: 0 !important;
}

.customywear-photo-editor-tshirt-choice {
  min-height: 29px !important;
  min-width: 28px !important;
  padding: 4px 7px !important;
}

.customywear-photo-editor-tshirt-choice--size {
  flex: 0 1 auto !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
  min-width: 26px !important;
  padding-inline: 6px !important;
  white-space: nowrap !important;
}

.customywear-photo-editor-tshirt-option-group--size .customywear-photo-editor-tshirt-option-choices {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 1px 1px 4px !important;
  scrollbar-width: thin;
}

.customywear-photo-editor-tshirt-option-group.has-validation-error {
  background: transparent !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.72) !important;
  padding: 5px 6px !important;
}

.customywear-photo-editor-tshirt-option-group.has-validation-error .customywear-photo-editor-tshirt-option-choices {
  gap: 3px !important;
}

.customywear-photo-editor-tshirt-option-required {
  grid-column: 2 !important;
  margin-top: 2px !important;
}

.customywear-photo-editor-size-guide-item > .customywear-photo-editor-size-guide-content {
  display: block;
}

.customywear-photo-editor-size-guide-item:not([open]) > .customywear-photo-editor-size-guide-content {
  display: none !important;
}

.customywear-photo-editor-size-guide-item[open] > .customywear-photo-editor-size-guide-content {
  display: block !important;
}

@media (max-width: 900px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  .customywear-photo-editor-tshirt-option-group {
    grid-template-columns: 52px minmax(0, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-preview-panel.has-option-selection {
    padding: 8px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection {
    height: var(--cwpe-options-max-height, calc(100svh - 96px)) !important;
    max-height: var(--cwpe-options-max-height, calc(100svh - 96px)) !important;
  }

  .customywear-photo-editor-option-selection-preview {
    max-height: 118px !important;
    min-height: 104px !important;
    padding: 6px !important;
  }

  .customywear-photo-editor-option-selection-preview-frame {
    max-width: min(112px, 36vw) !important;
  }

  .customywear-photo-editor-option-selection-content {
    padding: 9px !important;
  }

  .customywear-photo-editor-option-selection-list {
    min-height: 170px !important;
  }

  .customywear-photo-editor-option-selection-tools {
    align-items: center !important;
    gap: 6px !important;
    padding-top: 8px !important;
  }

  .customywear-photo-editor-add-tshirt {
    flex: 1 1 auto !important;
    min-height: 34px !important;
  }

  .customywear-photo-editor-size-guide-trigger {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #0f172a !important;
    flex: 0 0 auto !important;
    font-size: 13px !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    padding: 2px 0 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
  }

  .customywear-photo-editor-size-guide-trigger span[aria-hidden="true"] {
    display: none !important;
  }

  .customywear-photo-editor-tshirt-option-body {
    gap: 7px !important;
    padding: 8px 9px 10px !important;
  }

  .customywear-photo-editor-tshirt-option-group {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  .customywear-photo-editor-tshirt-option-label {
    font-size: 10.5px !important;
  }

  .customywear-photo-editor-tshirt-option-choices {
    gap: 3px !important;
  }

  .customywear-photo-editor-tshirt-choice {
    min-height: 27px !important;
    min-width: 25px !important;
    padding: 3px 5px !important;
  }

  .customywear-photo-editor-tshirt-choice--size {
    font-size: 10.5px !important;
    min-width: 24px !important;
    padding-inline: 5px !important;
  }

  .customywear-photo-editor-tshirt-choice--color {
    height: 28px !important;
    min-height: 28px !important;
    min-width: 28px !important;
    width: 28px !important;
  }

  .customywear-photo-editor-tshirt-color-dot {
    height: 18px !important;
    width: 18px !important;
  }

  .customywear-photo-editor-tshirt-option-group.has-validation-error {
    padding: 4px 5px !important;
  }

  .customywear-photo-editor-tshirt-option-required {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }
}


/* v3.4.68: Select Options card-level scrolling fix.
 * Root cause: the T-shirt cards were flex children inside the options list and could shrink
 * before the list became scrollable. Keep every card at its natural height and make only
 * the list scroll using a measured height from shell.js.
 */
.customywear-photo-editor-shell[data-cwpe-options-active="1"] [data-step="result"].is-active,
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-result-shell,
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-preview-panel.has-option-selection {
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  height: var(--cwpe-options-max-height, min(760px, calc(100svh - 118px))) !important;
  max-height: var(--cwpe-options-max-height, min(760px, calc(100svh - 118px))) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-layout {
  align-items: stretch !important;
  display: grid !important;
  flex: 0 1 auto !important;
  grid-template-columns: minmax(230px, 42%) minmax(0, 1fr) !important;
  height: var(--cwpe-options-layout-height, calc(var(--cwpe-options-max-height, 640px) - 68px)) !important;
  max-height: var(--cwpe-options-layout-height, calc(var(--cwpe-options-max-height, 640px) - 68px)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-preview,
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-content {
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-content {
  display: flex !important;
  flex-direction: column !important;
  height: var(--cwpe-options-content-height, 100%) !important;
  max-height: var(--cwpe-options-content-height, 100%) !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-list {
  display: flex !important;
  flex: 0 1 auto !important;
  flex-direction: column !important;
  gap: 10px !important;
  height: var(--cwpe-options-list-height, 420px) !important;
  max-height: var(--cwpe-options-list-height, 420px) !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 0 5px 10px 0 !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-header {
  flex: 0 0 auto !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-body {
  display: grid !important;
  flex: 0 0 auto !important;
  gap: 9px !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  padding: 10px 12px 12px !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-group {
  align-items: center !important;
  display: grid !important;
  gap: 6px !important;
  grid-template-columns: 62px minmax(0, 1fr) !important;
  min-height: 32px !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-label {
  font-size: 12px !important;
  line-height: 1.15 !important;
  min-width: 0 !important;
  overflow-wrap: normal !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-choices {
  align-items: center !important;
  display: flex !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-choice {
  flex: 0 0 auto !important;
  font-size: 12px !important;
  line-height: 1 !important;
  min-height: 29px !important;
  min-width: 28px !important;
  padding: 4px 7px !important;
  touch-action: manipulation !important;
  white-space: nowrap !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-choice--size {
  font-size: 11px !important;
  min-width: 25px !important;
  padding-inline: 5px !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-group--size .customywear-photo-editor-tshirt-option-choices {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 1px 1px 4px !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-group--size .customywear-photo-editor-tshirt-option-choices::-webkit-scrollbar {
  display: none;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-group.has-validation-error {
  grid-template-columns: 62px minmax(0, 1fr) !important;
  padding: 5px 6px !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-required {
  align-self: center !important;
  font-size: 10.5px !important;
  grid-column: 2 !important;
  line-height: 1 !important;
  margin: 1px 0 0 !important;
  max-width: 100% !important;
  padding: 3px 7px !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-preview {
    flex: 0 0 auto !important;
    max-height: 138px !important;
    min-height: 112px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-content {
    flex: 1 1 auto !important;
  }
}

@media (max-width: 600px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-preview-panel.has-option-selection {
    padding: 7px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection {
    height: var(--cwpe-options-max-height, calc(100svh - 96px)) !important;
    max-height: var(--cwpe-options-max-height, calc(100svh - 96px)) !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-layout {
    gap: 7px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-preview {
    max-height: 106px !important;
    min-height: 88px !important;
    padding: 5px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-preview-frame {
    max-width: min(102px, 34vw) !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-content {
    padding: 9px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-list {
    gap: 9px !important;
    height: var(--cwpe-options-list-height, 48svh) !important;
    max-height: var(--cwpe-options-list-height, 48svh) !important;
    padding-right: 3px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-header-main {
    padding: 9px 2px 9px 11px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-remove {
    min-height: 34px !important;
    min-width: 34px !important;
    width: 34px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-body {
    gap: 8px !important;
    padding: 9px 10px 11px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-group,
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-group.has-validation-error {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    min-height: 30px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-label {
    font-size: 11px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-choice {
    min-height: 27px !important;
    min-width: 25px !important;
    padding: 3px 5px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-choice--size {
    font-size: 10.5px !important;
    min-width: 23px !important;
    padding-inline: 4px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-choice--print_location {
    font-size: 10.8px !important;
    padding-inline: 6px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-choice--color {
    height: 27px !important;
    min-height: 27px !important;
    min-width: 27px !important;
    width: 27px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-color-dot {
    height: 17px !important;
    width: 17px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-required {
    font-size: 10px !important;
    padding-inline: 6px !important;
  }
}

/* v3.4.69: Select Options collapsible cards, mobile space recovery, icon-only text placement buttons, and accent selected states. */
.customywear-photo-editor-tshirt-choice.is-selected,
.customywear-photo-editor-shortcode-option.is-active,
.customywear-photo-editor-color-chip.is-active,
.customywear-photo-editor-font-option.is-active,
.customywear-photo-editor-color-picker-field.is-active {
  border-color: #239add !important;
  box-shadow: 0 0 0 3px rgba(35, 154, 221, 0.16) !important;
}

.customywear-photo-editor-tshirt-choice.is-selected:hover,
.customywear-photo-editor-tshirt-choice.is-selected:focus,
.customywear-photo-editor-shortcode-option.is-active:hover,
.customywear-photo-editor-shortcode-option.is-active:focus,
.customywear-photo-editor-color-chip.is-active:hover,
.customywear-photo-editor-color-chip.is-active:focus,
.customywear-photo-editor-font-option.is-active:hover,
.customywear-photo-editor-font-option.is-active:focus,
.customywear-photo-editor-color-picker-field.is-active:hover,
.customywear-photo-editor-color-picker-field.is-active:focus {
  border-color: #239add !important;
  box-shadow: 0 0 0 3px rgba(35, 154, 221, 0.2) !important;
  outline: none !important;
}

.customywear-photo-editor-text-align-button.is-active {
  background: #239add !important;
  border-color: #239add !important;
  color: #ffffff !important;
}

.customywear-photo-editor-tshirt-choice--color,
.customywear-photo-editor-shortcode-color-option {
  align-items: center !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  justify-content: center !important;
}

.customywear-photo-editor-tshirt-color-dot,
.customywear-photo-editor-shortcode-color-swatch {
  box-sizing: border-box !important;
  display: block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.customywear-photo-editor-tshirt-choice--color.is-selected .customywear-photo-editor-tshirt-color-dot,
.customywear-photo-editor-shortcode-color-option.is-active .customywear-photo-editor-shortcode-color-swatch {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18) !important;
  outline: 0 !important;
  outline-offset: 0 !important;
}

.customywear-photo-editor-text-alignment-controls {
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  justify-content: center !important;
  margin: -2px auto 0 !important;
  max-width: calc(100% - 24px) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 2px !important;
  scrollbar-width: none;
  width: fit-content !important;
  -webkit-overflow-scrolling: touch;
}

.customywear-photo-editor-text-alignment-controls::-webkit-scrollbar {
  display: none;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-alignment-controls {
  align-self: center !important;
  justify-self: center !important;
  margin-bottom: 0 !important;
  position: relative !important;
  z-index: 3 !important;
}

.customywear-photo-editor-text-align-button {
  flex: 0 0 36px !important;
  font-size: 17px !important;
  gap: 0 !important;
  height: 36px !important;
  justify-content: center !important;
  min-height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  width: 36px !important;
}

.customywear-photo-editor-text-align-button span:not([aria-hidden="true"]) {
  display: none !important;
}

.customywear-photo-editor-text-align-button span[aria-hidden="true"] {
  display: inline-flex !important;
  line-height: 1 !important;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option-header-main {
  transition: padding 0.16s ease;
}

.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-tshirt-option.is-collapsed .customywear-photo-editor-tshirt-option-header {
  border-radius: 16px;
}

@media (max-width: 767px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-layout {
    grid-template-rows: minmax(0, 1fr) !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-preview {
    display: none !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-content {
    height: var(--cwpe-options-content-height, 100%) !important;
    max-height: var(--cwpe-options-content-height, 100%) !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-tools {
    justify-content: center !important;
    text-align: center !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-size-guide-trigger {
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection.has-multiple-tshirts .customywear-photo-editor-tshirt-option-header-main {
    padding-bottom: 7.5px !important;
    padding-top: 7.5px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection.has-multiple-tshirts .customywear-photo-editor-tshirt-option-remove {
    font-size: 20px !important;
    min-height: 30px !important;
    min-width: 30px !important;
    width: 30px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection.has-multiple-tshirts .customywear-photo-editor-tshirt-option-title {
    font-size: 14px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection.has-multiple-tshirts .customywear-photo-editor-tshirt-option-summary {
    font-size: 12px !important;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-alignment-controls {
    margin-top: -4px !important;
  }

  .customywear-photo-editor-text-align-button {
    flex-basis: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    min-width: 34px !important;
    width: 34px !important;
  }
}

/* v3.4.70: Select Options plus icon/spacing and in-canvas text placement toolbar. */
.customywear-photo-editor-add-tshirt {
  align-items: center !important;
  display: inline-flex !important;
  gap: 7px !important;
  justify-content: center !important;
}

.customywear-photo-editor-add-tshirt-icon {
  align-items: center;
  background: currentColor;
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0;
  height: 16px;
  justify-content: center;
  line-height: 1;
  position: relative;
  width: 16px;
}

.customywear-photo-editor-add-tshirt-icon::before,
.customywear-photo-editor-add-tshirt-icon::after {
  background: #ffffff;
  border-radius: 999px;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.customywear-photo-editor-add-tshirt-icon::before {
  height: 2px;
  width: 8px;
}

.customywear-photo-editor-add-tshirt-icon::after {
  height: 8px;
  width: 2px;
}

.customywear-photo-editor-result-preview-wrap {
  justify-self: center;
  position: relative;
  width: min(100%, 38svh, 48vw);
}

.customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-result-image-button {
  width: 100%;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap {
  align-self: center;
  max-width: 100%;
  width: min(100%, 640px);
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-result-image-button {
  max-width: 100%;
  width: 100%;
}

.customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-text-alignment-controls {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(203, 213, 225, 0.92) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.13) !important;
  left: 50% !important;
  margin: 0 !important;
  max-width: calc(100% - 16px) !important;
  padding: 4px !important;
  pointer-events: auto !important;
  position: absolute !important;
  top: 8px !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  z-index: 5 !important;
}

.customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-text-alignment-controls[hidden] {
  display: none !important;
}

.customywear-photo-editor-result-preview-wrap .customywear-photo-editor-text-align-button {
  pointer-events: auto !important;
}

.customywear-photo-editor-tshirt-choice.is-selected,
.customywear-photo-editor-shortcode-option.is-active,
.customywear-photo-editor-color-chip.is-active,
.customywear-photo-editor-font-option.is-active,
.customywear-photo-editor-color-picker-field.is-active {
  border-color: #239add !important;
  outline-color: #239add !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-tools {
    gap: 5px !important;
    margin-top: 5px !important;
    padding-top: 6px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-sticky {
    margin-top: 6px !important;
    padding-top: 6px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-size-guide-trigger {
    justify-content: center !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection.has-multiple-tshirts .customywear-photo-editor-tshirt-option-header-main {
    padding-bottom: 7px !important;
    padding-top: 7px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection.has-multiple-tshirts .customywear-photo-editor-tshirt-option-remove {
    min-height: 29px !important;
    min-width: 29px !important;
    width: 29px !important;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap {
    align-self: start !important;
    justify-self: center !important;
    margin-left: 3px !important;
    margin-right: 3px !important;
    max-width: calc(100% - 6px) !important;
    place-self: start center !important;
    width: calc(100% - 6px) !important;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-result-image-button,
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-result-image-button.is-editing {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-text-alignment-controls {
    gap: 5px !important;
    max-width: calc(100% - 12px) !important;
    padding: 3px !important;
    top: 6px !important;
  }
}



/* v3.4.71: Select Options desktop footer clearance, mobile promo text, square design preview, and 60px text toolbar offset. */
@media (min-width: 768px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-tools {
    margin-bottom: 14px !important;
    padding-bottom: 8px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-sticky {
    margin-top: 14px !important;
    padding-top: 14px !important;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-content {
    padding-top: 6px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle {
    display: grid !important;
    gap: 2px !important;
    line-height: 1.22 !important;
    margin: 0 0 6px !important;
    padding-top: 0 !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-mobile-promo {
    color: #334155 !important;
    font-size: 12.5px !important;
  }

  .customywear-photo-editor-option-selection-promo-title {
    color: #0f172a !important;
    display: block !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .customywear-photo-editor-option-selection-promo-subtitle {
    display: block !important;
    font-weight: 700 !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection.has-multiple-tshirts .customywear-photo-editor-tshirt-option-header-main {
    padding-bottom: 6.6px !important;
    padding-top: 6.6px !important;
  }
}

.customywear-photo-editor-preview-panel:not(.is-editor):not(.has-option-selection) .customywear-photo-editor-result-preview-wrap {
  aspect-ratio: 1 / 1 !important;
  display: grid !important;
  place-items: center !important;
}

.customywear-photo-editor-preview-panel:not(.is-editor):not(.has-option-selection) .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-result-image-button {
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel:not(.is-editor):not(.has-option-selection) .customywear-photo-editor-result-preview-wrap .customywear-photo-editor-result-canvas {
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  width: 100% !important;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-text-alignment-controls {
  top: 60px !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-text-alignment-controls {
    top: 60px !important;
  }
}


/* v3.4.72: tighter Select Options spacing, all-device promo copy, square design previews, and raised text toolbar. */
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-promo,
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-mobile-promo {
  color: #334155 !important;
  display: grid !important;
  gap: 3px !important;
  line-height: 1.24 !important;
  margin: 0 0 8px !important;
  padding-top: 0 !important;
}

.customywear-photo-editor-option-selection-promo-title {
  color: #0f172a !important;
  display: block !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.customywear-photo-editor-option-selection-promo-subtitle {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

@media (min-width: 768px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-tools {
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-sticky {
    margin-top: 6px !important;
    padding-top: 8px !important;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-content {
    padding-top: 3px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-promo,
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-mobile-promo {
    gap: 2px !important;
    line-height: 1.2 !important;
    margin-bottom: 5px !important;
  }

  .customywear-photo-editor-option-selection-promo-title {
    font-size: 13px !important;
  }

  .customywear-photo-editor-option-selection-promo-subtitle {
    font-size: 12.5px !important;
  }
}

.customywear-photo-editor-preview-panel.is-editor {
  gap: 4px !important;
  row-gap: 4px !important;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor-hint {
  margin-bottom: -3px !important;
}

.customywear-photo-editor-preview-panel:not(.is-editor):not(.has-option-selection) .customywear-photo-editor-result-preview-wrap {
  aspect-ratio: 1 / 1 !important;
  display: grid !important;
  inline-size: min(100%, 520px, 54svh) !important;
  place-items: center !important;
}

.customywear-photo-editor-preview-panel:not(.is-editor):not(.has-option-selection) .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-result-image-button {
  aspect-ratio: 1 / 1 !important;
  block-size: auto !important;
  display: block !important;
  inline-size: 100% !important;
  max-block-size: none !important;
  max-inline-size: 100% !important;
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel:not(.is-editor):not(.has-option-selection) .customywear-photo-editor-result-preview-wrap .customywear-photo-editor-result-canvas {
  aspect-ratio: 1 / 1 !important;
  block-size: 100% !important;
  display: block !important;
  inline-size: 100% !important;
  max-block-size: none !important;
  object-fit: contain !important;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-text-alignment-controls {
  top: 50px !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-text-alignment-controls {
    top: 50px !important;
  }
}

/* v3.4.73: shortcode option boxes, tighter Add Text canvas spacing, robust size-guide accordion visibility. */
.customywear-photo-editor-shortcode-tshirt-box {
  margin: 12px 0;
  max-width: 680px;
  width: 100%;
}

.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-shortcode-tshirt-box-header-main {
  cursor: default !important;
  padding-right: 14px !important;
}

.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-body {
  padding: 12px 14px 14px !important;
}

.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-group {
  grid-template-columns: 86px minmax(0, 1fr) !important;
}

.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-choices {
  min-width: 0;
}

.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-choice--size {
  min-width: 34px;
  padding-left: 9px;
  padding-right: 9px;
}

.customywear-photo-editor-shortcode-option.is-active,
.customywear-photo-editor-shortcode-option.is-selected {
  border-color: #239add !important;
  box-shadow: 0 0 0 3px rgba(35, 154, 221, 0.14) !important;
}

.customywear-photo-editor-shortcode-color-option.is-active .customywear-photo-editor-shortcode-color-swatch,
.customywear-photo-editor-shortcode-color-option.is-selected .customywear-photo-editor-shortcode-color-swatch,
.customywear-photo-editor-tshirt-choice--color.is-selected .customywear-photo-editor-tshirt-color-dot {
  outline-color: #239add !important;
}

.customywear-photo-editor-preview-panel.is-editor {
  align-content: start !important;
  gap: 0 !important;
  row-gap: 0 !important;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor-hint {
  line-height: 1.25 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap {
  align-self: start !important;
  justify-self: center !important;
  margin-top: 0 !important;
  place-self: start center !important;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-text-alignment-controls {
  top: 40px !important;
}

.customywear-photo-editor-size-guide-item[open] > .customywear-photo-editor-size-guide-content {
  display: block !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.customywear-photo-editor-size-guide-item:not([open]) > .customywear-photo-editor-size-guide-content {
  display: none !important;
}

.customywear-photo-editor-size-guide-item summary {
  user-select: none;
}

@media (max-width: 767px) {
  .customywear-photo-editor-shortcode-tshirt-box {
    max-width: 100%;
  }

  .customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-header-main {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-summary {
    text-align: left !important;
  }

  .customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-group {
    grid-template-columns: 66px minmax(0, 1fr) !important;
  }

  .customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-choice {
    font-size: 12px !important;
    min-height: 30px !important;
    min-width: 32px !important;
    padding: 5px 8px !important;
  }

  .customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-choice--color {
    height: 32px !important;
    min-height: 32px !important;
    min-width: 32px !important;
    width: 32px !important;
    padding: 0 !important;
  }

  .customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-color-dot {
    height: 22px;
    width: 22px;
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-text-alignment-controls {
    top: 40px !important;
  }
}



/* v3.4.75: restore the working inline recommendations scroll/footer grid from v3.4.62,
 * while keeping the newer text-editor and option-selection fixes.
 */
.customywear-photo-editor-recommendations.is-inline,
.customywear-photo-editor-preview-panel.has-inline-recommendations .customywear-photo-editor-recommendations {
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary[hidden] {
  display: none !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary:not([hidden]) {
  grid-row: 1 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary[hidden] + .customywear-photo-editor-recommendations-grid {
  grid-row: 1 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary:not([hidden]) + .customywear-photo-editor-recommendations-grid {
  grid-row: 2 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid {
  height: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary[hidden] ~ .customywear-photo-editor-recommendations-footer {
  grid-row: 2 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary:not([hidden]) ~ .customywear-photo-editor-recommendations-footer {
  grid-row: 3 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer {
  bottom: 0 !important;
  display: grid !important;
  min-width: 100% !important;
  position: sticky !important;
  z-index: 12 !important;
}

.customywear-photo-editor-preview-panel.is-editor {
  --cwpe-editor-preview-lift: clamp(36px, 6svh, 60px);
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap {
  margin-bottom: calc(-1 * var(--cwpe-editor-preview-lift)) !important;
  margin-top: calc(-1 * var(--cwpe-editor-preview-lift)) !important;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-design-selector,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-tip,
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-actions-result {
  margin-top: 0 !important;
}

.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap > .customywear-photo-editor-text-alignment-controls {
  top: 40px !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel.is-editor {
    --cwpe-editor-preview-lift: clamp(28px, 5svh, 48px);
  }

  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-result-preview-wrap {
    margin-bottom: calc(-1 * var(--cwpe-editor-preview-lift)) !important;
    margin-top: calc(-1 * var(--cwpe-editor-preview-lift)) !important;
  }
}


/* v3.4.75: button-driven size guide accordion.
 * Avoids native <details> toggle/height conflicts inside the fixed popup.
 */
.customywear-photo-editor-size-guide-dialog {
  height: auto !important;
  max-height: min(86svh, 860px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.customywear-photo-editor-size-guide-title {
  margin: 0 !important;
}

.customywear-photo-editor-size-guide-toggle {
  appearance: none;
  background: #f7f7f7;
  border: 0;
  color: #111827;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 52px 16px 20px;
  position: relative;
  text-align: left;
  width: 100%;
}

.customywear-photo-editor-size-guide-toggle::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.customywear-photo-editor-size-guide-toggle[aria-expanded="true"]::after,
.customywear-photo-editor-size-guide-item.is-open .customywear-photo-editor-size-guide-toggle::after {
  content: "−";
}

.customywear-photo-editor-size-guide-toggle:hover,
.customywear-photo-editor-size-guide-toggle:focus-visible {
  background: #eef2f7;
  outline: 2px solid rgba(35, 154, 221, 0.35);
  outline-offset: -2px;
}

.customywear-photo-editor-size-guide-content[hidden],
.customywear-photo-editor-size-guide-item:not(.is-open) > .customywear-photo-editor-size-guide-content {
  display: none !important;
}

.customywear-photo-editor-size-guide-item.is-open > .customywear-photo-editor-size-guide-content {
  display: block !important;
}

@media (max-width: 600px) {
  .customywear-photo-editor-size-guide-toggle {
    font-size: 16px;
    padding: 14px 45px 14px 15px;
  }
}

/* v3.4.76: authoritative inline upsell scroller/footer fix.
 * The product grid owns vertical scrolling, while the add-to-cart footer remains in
 * the fixed bottom row. This overrides older overflow-visible rules that pushed the
 * sticky footer outside the clipped result frame.
 */
.customywear-photo-editor-preview-panel.has-inline-recommendations {
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations,
.customywear-photo-editor-recommendations.is-inline {
  display: block !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary,
.customywear-photo-editor-recommendations-dialog.is-inline:has(.customywear-photo-editor-recommendations-summary:not([hidden])) {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary[hidden] {
  display: none !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary .customywear-photo-editor-recommendations-summary:not([hidden]),
.customywear-photo-editor-recommendations-dialog.is-inline:has(.customywear-photo-editor-recommendations-summary:not([hidden])) .customywear-photo-editor-recommendations-summary:not([hidden]) {
  display: flex !important;
  grid-row: 1 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid {
  align-self: stretch !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations-dialog.is-inline:has(.customywear-photo-editor-recommendations-summary:not([hidden])) .customywear-photo-editor-recommendations-grid {
  grid-row: 2 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline.has-hidden-summary .customywear-photo-editor-recommendations-grid,
.customywear-photo-editor-recommendations-dialog.is-inline:not(.has-visible-summary) .customywear-photo-editor-recommendations-grid {
  grid-row: 1 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer {
  bottom: 0 !important;
  display: grid !important;
  grid-row: 2 !important;
  min-height: 0 !important;
  min-width: 100% !important;
  position: sticky !important;
  z-index: 12 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary .customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations-dialog.is-inline:has(.customywear-photo-editor-recommendations-summary:not([hidden])) .customywear-photo-editor-recommendations-footer {
  grid-row: 3 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add {
  display: inline-flex !important;
  visibility: visible !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-action-loading-line {
  max-width: 320px;
}

/* v3.4.76: size guide stays large enough to reopen sections, while panels are
 * still controlled by accessible buttons and remain scrollable on small screens.
 */
.customywear-photo-editor-size-guide-dialog {
  height: auto !important;
  max-height: min(86svh, 860px) !important;
  min-height: min(620px, calc(100svh - 36px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.customywear-photo-editor-size-guide-accordion {
  min-height: 360px;
}

.customywear-photo-editor-size-guide-content[hidden],
.customywear-photo-editor-size-guide-item:not(.is-open) > .customywear-photo-editor-size-guide-content {
  display: none !important;
}

.customywear-photo-editor-size-guide-item.is-open > .customywear-photo-editor-size-guide-content {
  display: block !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 600px) {
  .customywear-photo-editor-size-guide-dialog {
    max-height: calc(100svh - 20px) !important;
    min-height: min(560px, calc(100svh - 20px)) !important;
  }

  .customywear-photo-editor-size-guide-accordion {
    min-height: 300px;
  }
}



/* v3.4.77: authoritative inline "More with This Design" scroll/footer recovery.
 * Root cause: the inline upsell grid was given 100% height while the footer lived
 * in the same clipped grid, which could push the sticky add-to-cart row below the
 * visible panel. The grid now occupies a minmax(0, 1fr) row and owns the scroll;
 * the CTA footer is a separate bottom row and remains visible on mobile/desktop.
 */
.customywear-photo-editor-preview-panel.has-inline-recommendations {
  align-content: stretch !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline,
.customywear-photo-editor-recommendations.is-inline {
  display: block !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline {
  align-content: stretch !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  height: 100% !important;
  max-height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: relative !important;
  width: 100% !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline.has-hidden-summary {
  grid-template-rows: minmax(0, 1fr) auto !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-header,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-close,
.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-status {
  display: none !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-summary[hidden],
.customywear-photo-editor-recommendations-dialog.is-inline.has-hidden-summary .customywear-photo-editor-recommendations-summary {
  display: none !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary .customywear-photo-editor-recommendations-summary {
  align-items: flex-end !important;
  display: flex !important;
  gap: 10px !important;
  grid-row: 1 !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 auto !important;
  min-height: 48px !important;
  padding: 8px 14px 6px !important;
  text-align: center !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid {
  -webkit-overflow-scrolling: touch !important;
  align-content: start !important;
  align-self: stretch !important;
  display: grid !important;
  gap: 12px !important;
  grid-auto-flow: row !important;
  grid-row: 1 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 0 0 calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  scroll-snap-type: none !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary .customywear-photo-editor-recommendations-grid {
  grid-row: 2 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendation-card {
  flex: 0 0 auto !important;
  max-width: none !important;
  min-width: 0 !important;
  scroll-snap-align: none !important;
  width: auto !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer {
  align-content: center !important;
  align-items: center !important;
  align-self: stretch !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 20px) !important;
  border-top: 1px solid var(--ws-line) !important;
  bottom: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  flex: 0 0 auto !important;
  gap: 12px !important;
  grid-row: 2 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: center !important;
  justify-items: center !important;
  justify-self: stretch !important;
  margin-top: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  min-width: 100% !important;
  padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  place-items: center !important;
  position: sticky !important;
  text-align: center !important;
  width: 100% !important;
  z-index: 30 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary .customywear-photo-editor-recommendations-footer {
  grid-row: 3 !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 320px !important;
  min-height: 48px !important;
  place-self: center !important;
  visibility: visible !important;
  width: min(100%, 320px) !important;
}

.customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line {
  margin: 8px auto 0 !important;
  max-width: 320px !important;
  place-self: center !important;
  width: min(100%, 320px) !important;
}

@media (min-width: 1025px) {
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-grid {
    gap: 14px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-add,
  .customywear-photo-editor-recommendations-dialog.is-inline .customywear-photo-editor-recommendations-footer .customywear-photo-editor-action-loading-line {
    max-width: none !important;
    width: 100% !important;
  }
}


/* v3.4.77: high-specificity cascade guard for themes/minifiers that keep older
 * inline-recommendation !important rules after their source order.
 */
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  height: 100% !important;
  max-height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 100% !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline.has-hidden-summary {
  grid-template-rows: minmax(0, 1fr) auto !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary > .customywear-photo-editor-recommendations-summary {
  display: flex !important;
  grid-row: 1 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline.has-hidden-summary > .customywear-photo-editor-recommendations-summary,
.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline > .customywear-photo-editor-recommendations-summary[hidden] {
  display: none !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline > .customywear-photo-editor-recommendations-grid {
  -webkit-overflow-scrolling: touch !important;
  align-content: start !important;
  align-self: stretch !important;
  display: grid !important;
  grid-auto-flow: row !important;
  grid-row: 1 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scroll-snap-type: none !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary > .customywear-photo-editor-recommendations-grid {
  grid-row: 2 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline > .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit {
  align-content: center !important;
  align-items: center !important;
  align-self: stretch !important;
  display: grid !important;
  flex-direction: initial !important;
  grid-row: 2 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: center !important;
  justify-items: center !important;
  justify-self: stretch !important;
  min-width: 100% !important;
  place-items: center !important;
  position: sticky !important;
  width: 100% !important;
  z-index: 30 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline.has-visible-summary > .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit {
  grid-row: 3 !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline > .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit > .customywear-photo-editor-recommendations-add {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 320px !important;
  min-height: 48px !important;
  place-self: center !important;
  visibility: visible !important;
  width: min(100%, 320px) !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline > .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit > .customywear-photo-editor-action-loading-line {
  margin: 8px auto 0 !important;
  max-width: 320px !important;
  place-self: center !important;
  width: min(100%, 320px) !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline > .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit > .customywear-photo-editor-recommendations-add,
  .customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline > .customywear-photo-editor-recommendations-dialog.is-inline > .customywear-photo-editor-recommendations-footer.customywear-photo-editor-actions-submit > .customywear-photo-editor-action-loading-line {
    max-width: none !important;
    width: 100% !important;
  }
}


.customywear-photo-editor-preview-panel.has-inline-recommendations {
  justify-items: stretch !important;
}

.customywear-photo-editor-preview-panel.has-inline-recommendations > .customywear-photo-editor-recommendations.is-inline {
  align-self: stretch !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* v3.4.77: force the inline recommendations grid item to span the full panel width. */
.customywear-photo-editor-preview-panel.has-inline-recommendations {
  grid-template-columns: minmax(0, 1fr) !important;
}


/* v3.4.79: unified white, headerless styling for standalone option shortcodes only. */
.customywear-photo-editor-shortcode-tshirt-box--plain.customywear-photo-editor-tshirt-option,
.customywear-photo-editor-shortcode-tshirt-box--plain.customywear-photo-editor-tshirt-option.is-active {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.customywear-photo-editor-shortcode-tshirt-box--plain .customywear-photo-editor-shortcode-tshirt-box-body {
  background: #ffffff !important;
}

.customywear-photo-editor-shortcode-tshirt-box--plain .customywear-photo-editor-tshirt-option-label {
  font-size: 14.95px !important;
}

.customywear-photo-editor-shortcode-tshirt-box--plain .customywear-photo-editor-tshirt-choice {
  font-size: 14.95px !important;
  min-height: 41px !important;
  min-width: 48px !important;
  padding: 8px 14px !important;
}

.customywear-photo-editor-shortcode-tshirt-box--plain .customywear-photo-editor-tshirt-choice--size {
  min-width: 39px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.customywear-photo-editor-saved-grid.has-one-design {
  grid-template-columns: minmax(0, 60%) !important;
  justify-content: center !important;
}

.customywear-photo-editor-saved-grid.has-one-design .customywear-photo-editor-saved-card {
  width: 100%;
}

@media (max-width: 767px) {
  .customywear-photo-editor-shortcode-tshirt-box--plain .customywear-photo-editor-tshirt-choice {
    font-size: 13.8px !important;
    min-height: 35px !important;
    min-width: 37px !important;
    padding: 6px 9px !important;
  }

  .customywear-photo-editor-shortcode-tshirt-box--plain .customywear-photo-editor-tshirt-choice--size {
    min-width: 37px !important;
  }

  .customywear-photo-editor-saved-grid.has-one-design {
    grid-template-columns: minmax(0, 60%) !important;
  }
}

/* v3.4.85: Select Options promo update and responsive add-another T-shirt hint. */
@media (min-width: 768px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-title {
    font-size: 15.4px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-subtitle {
    font-size: 14.3px !important;
  }
}

.customywear-photo-editor-option-selection-tools {
  position: relative;
}

.customywear-photo-editor-add-tshirt-hint[hidden],
.customywear-photo-editor-option-selection:not(.has-add-tshirt-hint) .customywear-photo-editor-add-tshirt-hint,
.customywear-photo-editor-option-selection.has-multiple-tshirts .customywear-photo-editor-add-tshirt-hint {
  display: none !important;
}

.customywear-photo-editor-add-tshirt-hint {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 6;
  max-width: min(310px, calc(100vw - 40px));
  padding: 10px 13px;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  pointer-events: none;
  transform-origin: 26px 100%;
  animation: customywear-photo-editor-add-tshirt-hint-pulse 1.8s ease-in-out infinite;
}

.customywear-photo-editor-add-tshirt-hint::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 100%;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: #0f172a;
}

@keyframes customywear-photo-editor-add-tshirt-hint-pulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-add-tshirt-hint {
    bottom: calc(100% + 8px);
    left: 0;
    max-width: min(270px, calc(100vw - 34px));
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .customywear-photo-editor-add-tshirt-hint::after {
    left: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customywear-photo-editor-add-tshirt-hint {
    animation: none;
  }
}



/* v3.4.87: Shortcode color preview sync, lighter Select Options promo subtitle, and nudge-based text placement controls. */
.customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-subtitle {
  font-weight: 500 !important;
  opacity: 0.86 !important;
}

.customywear-photo-editor-text-align-button[data-cwpe-text-align="center"] span[aria-hidden="true"],
.customywear-photo-editor-text-align-button[data-cwpe-text-align="middle"] span[aria-hidden="true"] {
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
}


/* v3.4.87: lightweight upsell quantity controls and compact current-item details popup. */
.customywear-photo-editor-recommendation-card:not(.is-current-product) .customywear-photo-editor-recommendation-details-trigger,
.customywear-photo-editor-recommendation-details-link {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ws-brand-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  justify-self: start;
  line-height: 1.25;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  width: auto;
}

.customywear-photo-editor-recommendation-card:not(.is-current-product) .customywear-photo-editor-recommendation-details-trigger:hover,
.customywear-photo-editor-recommendation-details-link:hover {
  color: var(--ws-accent-dark);
}

.customywear-photo-editor-recommendation-card:not(.is-current-product) .customywear-photo-editor-recommendation-details-trigger:focus-visible,
.customywear-photo-editor-recommendation-details-link:focus-visible {
  outline: 2px solid var(--ws-accent);
  outline-offset: 3px;
}

.customywear-photo-editor-recommendation-quantity {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: flex-start;
  max-width: 100%;
}

.customywear-photo-editor-recommendation-quantity-label {
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.customywear-photo-editor-recommendation-quantity-button {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  color: var(--ws-brand-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 30px;
}

.customywear-photo-editor-recommendation-quantity-button:hover,
.customywear-photo-editor-recommendation-quantity-button:focus-visible {
  border-color: var(--ws-brand-dark);
}

.customywear-photo-editor-recommendation-quantity-input {
  appearance: textfield;
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  color: var(--ws-brand-dark);
  font-size: 14px;
  font-weight: 800;
  height: 30px;
  max-width: 54px;
  padding: 0 8px;
  text-align: center;
}

.customywear-photo-editor-recommendation-quantity-input::-webkit-inner-spin-button,
.customywear-photo-editor-recommendation-quantity-input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.customywear-photo-editor-current-selection-toggle--popup {
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  padding: 8px 12px;
}

.customywear-photo-editor-current-selection-toggle--popup:hover,
.customywear-photo-editor-current-selection-toggle--popup:focus-visible {
  border-color: var(--ws-brand-dark);
}

.customywear-photo-editor-recommendation-details.is-current-selection-details .customywear-photo-editor-recommendation-details-dialog {
  max-width: min(92vw, 620px);
}

.customywear-photo-editor-recommendation-details.is-current-selection-details .customywear-photo-editor-recommendation-details-content {
  gap: 12px;
}

.customywear-photo-editor-current-selection-details--popup {
  display: grid;
  gap: 8px;
  list-style-position: inside;
  margin: 0;
  max-height: min(56vh, 420px);
  overflow-y: auto;
  padding: 2px;
}

.customywear-photo-editor-current-selection-details--popup li {
  background: #f8fafc;
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  color: var(--ws-ink);
  padding: 10px 12px;
}

.customywear-photo-editor-current-selection-details--popup strong {
  color: var(--ws-brand-dark);
}
/* v3.4.89: alignment icons, tighter mobile options panel, and responsive upsell controls. */
.customywear-photo-editor-text-align-icon svg {
  display: block;
  height: 19px;
  width: 19px;
}

.customywear-photo-editor-text-align-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.customywear-photo-editor-current-selection-toggle,
.customywear-photo-editor-current-selection-toggle strong,
.customywear-photo-editor-current-selection-toggle u {
  white-space: nowrap !important;
}

.customywear-photo-editor-current-selection-toggle {
  max-width: 100%;
}

.customywear-photo-editor-current-selection-toggle span[aria-hidden="true"] {
  flex: 0 0 auto;
}

.customywear-photo-editor-recommendation-card:not(.is-current-product) .customywear-photo-editor-recommendation-details-link {
  justify-self: end !important;
  text-align: right !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-content {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: -15px !important;
    padding: 0 1px 0 !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-promo,
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-mobile-promo {
    margin-bottom: 4px !important;
  }

  .customywear-photo-editor-recommendation-quantity {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    justify-content: flex-start !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .customywear-photo-editor-recommendation-quantity-label {
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
  }

  .customywear-photo-editor-recommendation-quantity-button {
    flex: 0 0 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    width: 28px !important;
  }

  .customywear-photo-editor-recommendation-quantity-input {
    box-sizing: border-box !important;
    flex: 0 0 44px !important;
    height: 28px !important;
    max-width: 44px !important;
    min-width: 44px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    width: 44px !important;
  }

  .customywear-photo-editor-recommendation-card:not(.is-current-product) .customywear-photo-editor-recommendation-details-link {
    justify-self: end !important;
    margin-left: auto !important;
  }

  .customywear-photo-editor-current-selection-toggle--popup {
    max-width: 100% !important;
    overflow: hidden !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .customywear-photo-editor-current-selection-toggle--popup strong {
    display: inline-block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}


/* v3.4.89: mobile promo visibility, compact selection-count button, and held text nudge polish. */
.customywear-photo-editor-text-align-button {
  touch-action: manipulation;
  user-select: none;
}

@media (max-width: 767px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-content {
    overflow: visible !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-promo,
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-mobile-promo {
    box-sizing: border-box !important;
    display: block !important;
    line-height: 1.18 !important;
    margin-bottom: 6px !important;
    max-width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-title {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.16 !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-subtitle {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .customywear-photo-editor-current-selection-toggle--popup {
    align-items: center !important;
    gap: 4px !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .customywear-photo-editor-current-selection-toggle--popup strong,
  .customywear-photo-editor-current-selection-toggle--popup u {
    font-size: 12px !important;
    letter-spacing: -0.01em !important;
    line-height: 1 !important;
    max-width: 100% !important;
  }

  .customywear-photo-editor-current-selection-toggle--popup span[aria-hidden="true"] {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .customywear-photo-editor-current-selection-toggle--popup strong,
  .customywear-photo-editor-current-selection-toggle--popup u {
    font-size: 11px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-title {
    font-size: 11.4px !important;
  }
}


/* v3.4.90: mobile promo full-visibility and restored multi-shirt details icon. */
@media (max-width: 767px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-promo,
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-mobile-promo {
    min-height: auto !important;
    overflow: visible !important;
    width: 100% !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-title.is-mobile-split {
    display: grid !important;
    gap: 1px !important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-title-line {
    display: block !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-title {
    font-size: 11.8px !important;
    line-height: 1.12 !important;
    overflow: visible !important;
  }

  .customywear-photo-editor-current-selection-toggle--popup {
    gap: 3px !important;
  }

  .customywear-photo-editor-current-selection-toggle--popup span[aria-hidden="true"] {
    align-items: center !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    font-size: 11px !important;
    height: 1em !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin-left: 1px !important;
    min-width: 11px !important;
    width: 11px !important;
  }
}

@media (max-width: 380px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-title {
    font-size: 11px !important;
  }

  .customywear-photo-editor-current-selection-toggle--popup span[aria-hidden="true"] {
    font-size: 10px !important;
    min-width: 10px !important;
    width: 10px !important;
  }
}


/* v3.4.92: shortcode color/size selected value labels. */
@media (max-width: 767px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-content {
    margin-top: 0 !important;
    overflow: visible !important;
    padding-top: 4px !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-promo,
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-subtitle.is-mobile-promo {
    align-items: start !important;
    display: grid !important;
    gap: 2px !important;
    line-height: 1.12 !important;
    margin: 0 0 4px !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
    z-index: 2 !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-title {
    display: grid !important;
    font-size: 11.5px !important;
    gap: 1px !important;
    line-height: 1.12 !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-title-line {
    display: block !important;
    line-height: 1.12 !important;
    max-height: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-list {
    margin-top: 0 !important;
  }

  .customywear-photo-editor-current-selection-toggle--popup span[aria-hidden="true"] {
    display: inline-flex !important;
  }
}

@media (max-width: 380px) {
  .customywear-photo-editor-shell[data-cwpe-options-active="1"] .customywear-photo-editor-option-selection-promo-title {
    font-size: 10.8px !important;
    letter-spacing: -0.01em !important;
  }
}


/* v3.4.93: shortcode option summary line. */
.customywear-photo-editor-shortcode-selection-summary {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.customywear-photo-editor-shortcode-tshirt-box--plain .customywear-photo-editor-shortcode-selection-summary {
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .customywear-photo-editor-shortcode-selection-summary {
    font-size: 13px;
    line-height: 1.3;
  }
}


/* v3.4.96: shortcode selected values are shown only in the top summary line. */
.customywear-photo-editor-shortcode-option-group .customywear-photo-editor-shortcode-selected-value,
.customywear-photo-editor-shortcode-options .customywear-photo-editor-shortcode-selected-value {
  display: none !important;
}

/* v3.4.97 More with This Design in-panel add-to-cart video progress */
.customywear-photo-editor-recommendations-dialog.has-cart-add-progress {
  overflow: hidden;
  position: relative;
}


/* v3.4.108: Keep duplicated cart progress status available to assistive technology without showing a second visible "Adding to cart..." line. */
.customywear-photo-editor-visually-hidden {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.customywear-photo-editor-cart-add-progress {
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border-radius: inherit;
  display: flex;
  inset: 0;
  justify-content: center;
  min-height: 100%;
  padding: 18px;
  position: absolute;
  z-index: 9;
}

.customywear-photo-editor-cart-add-progress[hidden] {
  display: none !important;
}

.customywear-photo-editor-cart-add-progress-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--ws-line, #dcecf6);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(7, 20, 31, 0.10);
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 460px;
  padding: clamp(18px, 4vw, 30px);
  text-align: center;
  width: min(100%, 460px);
}

/* v3.4.100: cropped fast video asset; keep the player transparent so no browser letterboxing is visible. */
.customywear-photo-editor-cart-add-progress-video {
  aspect-ratio: 44 / 25;
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  display: block;
  height: auto;
  max-width: 180px;
  object-fit: contain;
  outline: 0;
  pointer-events: none;
  width: min(52vw, 180px);
}

.customywear-photo-editor-cart-add-progress-title {
  color: var(--ws-ink, #102433);
  font-size: clamp(19px, 3.6vw, 26px);
  line-height: 1.16;
  margin: 0;
}

.customywear-photo-editor-cart-add-progress-message {
  color: var(--ws-muted, #60717d);
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.customywear-photo-editor-cart-add-progress-bar {
  margin-top: 2px;
  width: 100%;
}

.customywear-photo-editor-cart-add-progress-meta {
  gap: 8px;
}

.customywear-photo-editor-cart-add-progress-percent {
  font-size: clamp(26px, 7vw, 40px);
}

.customywear-photo-editor-cart-add-progress-current {
  font-size: 14px;
}

.customywear-photo-editor-cart-progress-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .customywear-photo-editor-cart-add-progress {
    padding: 12px;
  }

  .customywear-photo-editor-cart-add-progress-card {
    border-radius: 20px;
    gap: 10px;
    padding: 18px 16px;
  }

  .customywear-photo-editor-cart-add-progress-video {
    max-width: 150px;
    width: min(58vw, 150px);
  }
}



/* v3.4.100: Keep More with This Design add-to-cart progress clean and prevent underlying controls from showing. */
.customywear-photo-editor-shell.customywear-photo-editor-cart-progress-active .customywear-photo-editor-header {
  display: none !important;
}

.customywear-photo-editor-recommendations-dialog.has-cart-add-progress {
  overflow: hidden !important;
  position: relative !important;
}

.customywear-photo-editor-recommendations-dialog.has-cart-add-progress > :not(.customywear-photo-editor-cart-add-progress) {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.customywear-photo-editor-recommendations-dialog.has-cart-add-progress > .customywear-photo-editor-recommendations-footer,
.customywear-photo-editor-recommendations-dialog.has-cart-add-progress .customywear-photo-editor-recommendations-add,
.customywear-photo-editor-recommendations-dialog.has-cart-add-progress .customywear-photo-editor-action-loading-line {
  display: none !important;
}

.customywear-photo-editor-recommendations-dialog.has-cart-add-progress > .customywear-photo-editor-cart-add-progress {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  z-index: 120 !important;
}

.customywear-photo-editor-recommendations.has-cart-add-progress .customywear-photo-editor-recommendations-backdrop,
.customywear-photo-editor-recommendations.has-cart-add-progress .customywear-photo-editor-recommendations-close {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}


/* v3.4.102 - Mobile sticky Start Customizing button */
.customywear-photo-editor-mobile-sticky-launch {
  display: none;
}

@media (max-width: 767px) {
  .customywear-photo-editor-mobile-sticky-launch {
    align-items: center;
    appearance: none;
    background: linear-gradient(135deg, #3fb3ef 0%, #239add 55%, #1e79be 100%);
    border: 0;
    border-radius: 18px 18px 0 0;
    bottom: 0;
    box-shadow: 0 -12px 30px rgba(35, 154, 221, 0.24);
    color: #ffffff;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: auto auto;
    justify-content: center;
    left: 0;
    min-height: 48px;
    opacity: 0;
    padding: 7px max(16px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    pointer-events: none;
    position: fixed;
    right: 0;
    text-align: left;
    transform: translateY(115%);
    transition: opacity 0.22s ease, transform 0.22s ease, filter 0.2s ease;
    width: 100%;
    z-index: 9997;
  }

  .customywear-photo-editor-mobile-sticky-launch[hidden] {
    display: none !important;
  }

  .customywear-photo-editor-mobile-sticky-launch.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .customywear-photo-editor-mobile-sticky-launch:hover,
  .customywear-photo-editor-mobile-sticky-launch:focus-visible {
    filter: brightness(1.03);
  }

  .customywear-photo-editor-mobile-sticky-launch:active {
    transform: translateY(0) scale(0.992);
  }

  .customywear-photo-editor-mobile-sticky-launch .customywear-photo-editor-launch-icon {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    height: 34px;
    width: 34px;
  }

  .customywear-photo-editor-mobile-sticky-launch .customywear-photo-editor-launch-icon svg {
    height: 18px;
    width: 18px;
  }

  .customywear-photo-editor-mobile-sticky-launch .customywear-photo-editor-launch-copy {
    display: block;
  }

  .customywear-photo-editor-mobile-sticky-launch .customywear-photo-editor-launch-title {
    display: block;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1;
    white-space: nowrap;
  }

  body.customywear-photo-editor-modal-open .customywear-photo-editor-mobile-sticky-launch {
    opacity: 0;
    pointer-events: none;
    transform: translateY(115%);
  }
}


/* v3.4.106 fast dedicated cart-popup upsells */
.customywear-photo-editor-cart-success-title[hidden],
.customywear-photo-editor-cart-success-upsells[hidden] {
  display: none !important;
}

.customywear-photo-editor-cart-success-dialog {
  max-height: min(88svh, 760px) !important;
  overflow: hidden !important;
}

.customywear-photo-editor-cart-success-upsells {
  min-height: 0;
  overflow: hidden;
}

.customywear-photo-editor-cart-success-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  max-height: min(44svh, 420px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 2px 6px 10px 2px !important;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.customywear-photo-editor-cart-success-card {
  min-width: 0;
  will-change: transform;
}

.customywear-photo-editor-cart-success-image {
  background: var(--ws-surface-alt);
  display: block;
}

.customywear-photo-editor-cart-success-card-title {
  display: -webkit-box;
  min-height: 0 !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.customywear-photo-editor-cart-success-card-price {
  min-height: 1.4em;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-cart-success-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-cart-success-dialog {
    max-height: min(90svh, 720px) !important;
    overflow: hidden !important;
  }

  .customywear-photo-editor-cart-success-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: min(46svh, 360px) !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  .customywear-photo-editor-cart-success-card {
    gap: 8px !important;
  }

  .customywear-photo-editor-cart-success-card-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 380px) {
  .customywear-photo-editor-cart-success-grid {
    gap: 10px !important;
  }

  .customywear-photo-editor-cart-success-card {
    padding: 8px !important;
  }
}


/* v3.4.107 cart-popup upsell scroll containment fix */
.customywear-photo-editor-cart-success-title[hidden],
.customywear-photo-editor-cart-success-upsells[hidden] {
  display: none !important;
}

.customywear-photo-editor-cart-success {
  box-sizing: border-box;
  overflow: hidden !important;
}

.customywear-photo-editor-cart-success *,
.customywear-photo-editor-cart-success *::before,
.customywear-photo-editor-cart-success *::after {
  box-sizing: border-box;
}

.customywear-photo-editor-cart-success-dialog {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: min(88svh, 760px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-cart-success-dialog.is-showing-upsells {
  height: min(88svh, 760px) !important;
}

.customywear-photo-editor-cart-success-dialog > .customywear-photo-editor-cart-success-close,
.customywear-photo-editor-cart-success-dialog > .customywear-photo-editor-cart-success-title,
.customywear-photo-editor-cart-success-dialog > .customywear-photo-editor-cart-success-message,
.customywear-photo-editor-cart-success-dialog > .customywear-photo-editor-cart-success-actions {
  flex: 0 0 auto !important;
}

.customywear-photo-editor-cart-success-upsells {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.customywear-photo-editor-cart-success-grid {
  align-content: start !important;
  flex: 1 1 auto !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 2px 8px calc(18px + env(safe-area-inset-bottom)) 2px !important;
  scrollbar-gutter: stable !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

.customywear-photo-editor-cart-success-card {
  align-content: start !important;
  height: max-content !important;
}

.customywear-photo-editor-cart-success-image {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: cover !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-cart-success-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-cart-success {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)) !important;
  }

  .customywear-photo-editor-cart-success-dialog {
    max-height: min(92svh, 720px) !important;
    width: min(100%, 94vw) !important;
  }

  .customywear-photo-editor-cart-success-dialog.is-showing-upsells {
    height: min(92svh, 720px) !important;
  }

  .customywear-photo-editor-cart-success-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding-bottom: calc(22px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 380px) {
  .customywear-photo-editor-cart-success-grid {
    gap: 10px !important;
  }
}


/* v3.4.109: Popup close now restores the previous page scroll position in JavaScript; no additional CSS needed. */


/* Designs history shortcode */
.customywear-photo-editor-designs-history {
  --cwpe-history-accent: var(--ws-accent, #239add);
  --cwpe-history-ink: var(--ws-ink, #112536);
  --cwpe-history-muted: var(--ws-muted, #607487);
  --cwpe-history-line: var(--ws-line, #d7e6f0);
  --cwpe-history-surface: var(--ws-surface, #ffffff);
  --cwpe-history-soft: var(--ws-bg, #f3f9fd);
  color: var(--cwpe-history-ink);
  display: grid;
  gap: 20px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  margin: 24px 0;
}

.customywear-photo-editor-designs-history-hero {
  background:
    radial-gradient(circle at top left, rgba(35, 154, 221, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(30, 59, 102, 0.08), rgba(35, 154, 221, 0.05));
  border: 1px solid var(--cwpe-history-line);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(17, 37, 54, 0.08);
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  position: relative;
}

.customywear-photo-editor-designs-history-hero::after {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  content: "";
  height: 132px;
  position: absolute;
  right: -54px;
  top: -54px;
  width: 132px;
}

.customywear-photo-editor-designs-history-eyebrow {
  color: var(--cwpe-history-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customywear-photo-editor-designs-history-hero h2,
.customywear-photo-editor-designs-history-empty h3,
.customywear-photo-editor-designs-history-product-copy h3,
.customywear-photo-editor-designs-history-designs-heading h4 {
  color: var(--cwpe-history-ink);
  margin: 0;
}

.customywear-photo-editor-designs-history-hero h2 {
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.customywear-photo-editor-designs-history-hero p,
.customywear-photo-editor-designs-history-empty p,
.customywear-photo-editor-designs-history-designs-heading p {
  color: var(--cwpe-history-muted);
  margin: 0;
}

.customywear-photo-editor-designs-history-list {
  display: grid;
  gap: 18px;
}

.customywear-photo-editor-designs-history-product {
  align-items: stretch;
  background: var(--cwpe-history-surface);
  border: 1px solid var(--cwpe-history-line);
  border-radius: 30px;
  box-shadow: 0 16px 38px rgba(17, 37, 54, 0.07);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.5fr);
  overflow: hidden;
  padding: clamp(14px, 2.2vw, 22px);
}

.customywear-photo-editor-designs-history-product-card {
  background: linear-gradient(180deg, #ffffff, rgba(236, 246, 251, 0.75));
  border: 1px solid rgba(215, 230, 240, 0.9);
  border-radius: 24px;
  display: grid;
  gap: 14px;
  grid-template-rows: auto 1fr;
  padding: 14px;
}

.customywear-photo-editor-designs-history-product-image-link {
  background: #f7fbfe;
  border-radius: 20px;
  display: block;
  overflow: hidden;
}

.customywear-photo-editor-designs-history-product-image {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.customywear-photo-editor-designs-history-product-image-link:hover .customywear-photo-editor-designs-history-product-image {
  transform: scale(1.035);
}

.customywear-photo-editor-designs-history-product-copy {
  align-content: start;
  display: grid;
  gap: 8px;
}

.customywear-photo-editor-designs-history-product-copy > span,
.customywear-photo-editor-designs-history-count,
.customywear-photo-editor-designs-history-design-meta > span {
  color: var(--cwpe-history-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.customywear-photo-editor-designs-history-product-copy h3 {
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.12;
}


.customywear-photo-editor-designs-history-product-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.customywear-photo-editor-designs-history-product-title-link:hover,
.customywear-photo-editor-designs-history-product-title-link:focus-visible {
  color: var(--cwpe-history-accent);
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.customywear-photo-editor-designs-history-product-price {
  color: var(--cwpe-history-ink);
  font-weight: 900;
}

.customywear-photo-editor-designs-history-product-link {
  justify-self: start;
  margin-top: 6px;
  text-decoration: none;
}

.customywear-photo-editor-designs-history-designs {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.customywear-photo-editor-designs-history-designs-heading {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.customywear-photo-editor-designs-history-designs-heading h4 {
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.1;
}

.customywear-photo-editor-designs-history-count {
  background: rgba(35, 154, 221, 0.1);
  border: 1px solid rgba(35, 154, 221, 0.16);
  border-radius: 999px;
  color: var(--cwpe-history-accent);
  flex: 0 0 auto;
  padding: 8px 11px;
  white-space: nowrap;
}

.customywear-photo-editor-designs-history-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customywear-photo-editor-designs-history-design-card {
  background: #ffffff;
  border: 1px solid rgba(215, 230, 240, 0.95);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(17, 37, 54, 0.06);
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 10px;
}

.customywear-photo-editor-designs-history-preview {
  appearance: none;
  background: #f7fbfe;
  border: 0;
  border-radius: 17px;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.customywear-photo-editor-designs-history-preview img {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.customywear-photo-editor-designs-history-preview:hover img {
  transform: scale(1.04);
}

.customywear-photo-editor-designs-history-design-meta {
  display: grid;
  gap: 8px;
}

.customywear-photo-editor-designs-history-edit {
  min-height: 34px;
  width: 100%;
}

.customywear-photo-editor-designs-history-edit.is-loading {
  cursor: progress;
  opacity: 0.78;
}

.customywear-photo-editor-designs-history-load-more {
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--cwpe-history-line);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(17, 37, 54, 0.06);
  color: var(--cwpe-history-ink);
  cursor: pointer;
  font-weight: 900;
  justify-self: center;
  min-height: 44px;
  padding: 0 22px;
}

.customywear-photo-editor-designs-history-load-more:hover {
  border-color: rgba(35, 154, 221, 0.42);
  color: var(--cwpe-history-accent);
}

.customywear-photo-editor-designs-history-empty,
.customywear-photo-editor-designs-history-feedback {
  background: #ffffff;
  border: 1px solid var(--cwpe-history-line);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(17, 37, 54, 0.06);
  padding: 22px;
}

.customywear-photo-editor-designs-history-feedback {
  color: var(--cwpe-history-muted);
}

.customywear-photo-editor-designs-history-feedback.is-error {
  border-color: rgba(180, 35, 24, 0.22);
  color: var(--ws-error, #b42318);
}

.customywear-photo-editor-designs-history-editor-host {
  min-height: 0;
  overflow: visible;
}

.customywear-photo-editor-history-mounted-shell {
  height: 0;
  min-height: 0;
  overflow: visible;
}

.customywear-photo-editor-history-mounted-shell > .customywear-photo-editor-launcher {
  display: none !important;
}

@media (max-width: 1024px) {
  .customywear-photo-editor-designs-history-product {
    grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.35fr);
  }

  .customywear-photo-editor-designs-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .customywear-photo-editor-designs-history {
    gap: 16px;
    margin: 16px 0;
  }

  .customywear-photo-editor-designs-history-hero,
  .customywear-photo-editor-designs-history-product {
    border-radius: 24px;
  }

  .customywear-photo-editor-designs-history-product {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .customywear-photo-editor-designs-history-product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto;
    padding: 12px;
  }

  .customywear-photo-editor-designs-history-product-image-link {
    align-self: start;
  }

  .customywear-photo-editor-designs-history-product-copy h3 {
    font-size: 19px;
  }

  .customywear-photo-editor-designs-history-product-link {
    min-height: 40px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .customywear-photo-editor-designs-history-designs-heading {
    display: grid;
  }

  .customywear-photo-editor-designs-history-count {
    justify-self: start;
  }

  .customywear-photo-editor-designs-history-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customywear-photo-editor-designs-history-design-card {
    border-radius: 18px;
    padding: 8px;
  }

  .customywear-photo-editor-designs-history-design-meta > span {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .customywear-photo-editor-designs-history-edit {
    font-size: 13px;
    min-height: 40px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 420px) {
  .customywear-photo-editor-designs-history-product-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .customywear-photo-editor-designs-history-grid {
    gap: 8px;
  }
}

.customywear-photo-editor-designs-history-footer {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 767px) {
  .customywear-photo-editor-designs-history-footer {
    justify-content: stretch;
  }

  .customywear-photo-editor-designs-history-footer .customywear-photo-editor-designs-history-product-link {
    justify-content: center;
    width: 100%;
  }
}


/* Designs history carousel controls (v3.4.112). */
.customywear-photo-editor-designs-history-slider {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-width: 0;
}

.customywear-photo-editor-designs-history-viewport {
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 2px 14px;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.customywear-photo-editor-designs-history-viewport:focus-visible {
  outline: 3px solid rgba(35, 154, 221, 0.35);
  outline-offset: 4px;
}

.customywear-photo-editor-designs-history-grid {
  align-items: stretch;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  grid-template-columns: none;
  min-width: 0;
}

.customywear-photo-editor-designs-history-design-card {
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.customywear-photo-editor-designs-history-preview {
  cursor: pointer;
}

.customywear-photo-editor-designs-history-card-actions {
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-areas:
    "zoom delete"
    "edit edit";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}


.customywear-photo-editor-designs-history-zoom {
  grid-area: zoom;
}

.customywear-photo-editor-designs-history-delete {
  grid-area: delete;
}

.customywear-photo-editor-designs-history-edit {
  grid-area: edit;
}

.customywear-photo-editor-designs-history-icon,
.customywear-photo-editor-designs-history-arrow {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--cwpe-history-line);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(17, 37, 54, 0.07);
  color: var(--cwpe-history-ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.customywear-photo-editor-designs-history-icon {
  height: 34px;
  width: 100%;
}

.customywear-photo-editor-designs-history-icon svg {
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.customywear-photo-editor-designs-history-arrow {
  align-self: center;
  font-size: 30px;
  height: 44px;
  line-height: 1;
  width: 44px;
  z-index: 1;
}

.customywear-photo-editor-designs-history-arrow {
  border-radius: 999px;
}

.customywear-photo-editor-designs-history-icon:hover,
.customywear-photo-editor-designs-history-arrow:hover {
  border-color: rgba(35, 154, 221, 0.48);
  box-shadow: 0 12px 24px rgba(17, 37, 54, 0.1);
  color: var(--cwpe-history-accent);
  transform: translateY(-1px);
}

.customywear-photo-editor-designs-history-icon:focus-visible,
.customywear-photo-editor-designs-history-arrow:focus-visible {
  outline: 3px solid rgba(35, 154, 221, 0.35);
  outline-offset: 3px;
}

.customywear-photo-editor-designs-history-icon:disabled,
.customywear-photo-editor-designs-history-arrow:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
}

.customywear-photo-editor-designs-history-delete:hover {
  border-color: rgba(180, 35, 24, 0.3);
  color: var(--ws-error, #b42318);
}

.customywear-photo-editor-designs-history-delete.is-loading {
  cursor: progress;
  opacity: 0.72;
}

@media (max-width: 767px) {
  .customywear-photo-editor-designs-history-slider {
    gap: 8px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .customywear-photo-editor-designs-history-viewport {
    padding-bottom: 12px;
  }

  .customywear-photo-editor-designs-history-grid {
    gap: 10px;
  }

  .customywear-photo-editor-designs-history-design-card {
    flex-basis: calc((100% - 10px) / 2);
  }

  .customywear-photo-editor-designs-history-card-actions {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customywear-photo-editor-designs-history-icon,
  .customywear-photo-editor-designs-history-edit {
    height: 36px;
    min-height: 36px;
  }

  .customywear-photo-editor-designs-history-icon {
    width: 100%;
  }

  .customywear-photo-editor-designs-history-icon svg {
    height: 16px;
    width: 16px;
  }

  .customywear-photo-editor-designs-history-arrow {
    font-size: 26px;
    height: 38px;
    min-height: 38px;
    width: 38px;
  }
}

@media (max-width: 420px) {
  .customywear-photo-editor-designs-history-slider {
    gap: 6px;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .customywear-photo-editor-designs-history-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customywear-photo-editor-designs-history-icon,
  .customywear-photo-editor-designs-history-edit,
  .customywear-photo-editor-designs-history-arrow {
    height: 34px;
    min-height: 34px;
  }

  .customywear-photo-editor-designs-history-icon {
    width: 100%;
  }

  .customywear-photo-editor-designs-history-arrow {
    width: 34px;
  }
}

/* v3.4.124: lift only the text-editor hint copy so the yellow print-area guide and controls keep their existing positions. */
.customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor-hint {
  transform: translateY(-4px) !important;
}

@media (max-width: 767px) {
  .customywear-photo-editor-preview-panel.is-editor .customywear-photo-editor-text-editor-hint {
    transform: translateY(-3px) !important;
  }
}


/* v3.4.128 mobile upload button refinement.
 * Keep one mobile upload control; native mobile pickers still offer camera/gallery.
 */
@media (max-width: 767px) {
  .customywear-photo-editor-step[data-step="upload"] .customywear-photo-editor-mobile-upload-options {
    display: grid;
    gap: 0 !important;
    grid-template-columns: minmax(0, 1fr);
    margin-top: -8px !important;
    width: 100%;
  }

  .customywear-photo-editor-step[data-step="upload"] .customywear-photo-editor-mobile-upload-options .customywear-photo-editor-dropzone-mobile {
    min-height: 70px;
    width: 100%;
  }

  .customywear-photo-editor-step[data-step="upload"] .customywear-photo-editor-mobile-upload-options .customywear-photo-editor-dropzone-cta {
    min-height: 70px;
  }

  .customywear-photo-editor-step[data-step="upload"] .customywear-photo-editor-mobile-upload-options + .customywear-photo-editor-privacy-note {
    margin-top: -2px !important;
  }
}


/* Couple shortcode upload UI. */
.customywear-photo-editor-shell[data-cwpe-mode="couple"] .customywear-photo-editor-dropzone-desktop,
.customywear-photo-editor-shell[data-cwpe-mode="couple"] .customywear-photo-editor-mobile-upload-options {
  display: none;
}

.customywear-photo-editor-couple-panel {
  display: grid;
  gap: 14px;
}

.customywear-photo-editor-couple-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.customywear-photo-editor-couple-card {
  background: var(--ws-surface);
  border: 2px solid var(--ws-line);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(17, 37, 54, 0.06);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.customywear-photo-editor-couple-card.is-invalid {
  border-color: var(--ws-error);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.13);
}

.customywear-photo-editor-couple-upload-button {
  align-items: center;
  background: linear-gradient(180deg, var(--ws-accent) 0%, var(--ws-accent-dark) 100%);
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 54px;
  padding: 14px 16px;
  text-align: center;
  width: 100%;
}

.customywear-photo-editor-couple-upload-button input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.customywear-photo-editor-couple-summary {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 172px minmax(0, 1fr);
}

.customywear-photo-editor-couple-thumb {
  aspect-ratio: 1 / 1;
  background: var(--ws-surface-alt);
  border: 1px solid var(--ws-line);
  border-radius: 18px;
  display: block;
  object-fit: cover;
  width: 172px;
}

.customywear-photo-editor-couple-summary-copy {
  align-content: center;
  align-self: center;
  display: grid;
  gap: 10px;
  justify-items: start;
  min-width: 0;
}

.customywear-photo-editor-couple-summary-copy strong {
  color: var(--ws-ink);
  font-size: 15px;
}

.customywear-photo-editor-couple-replace {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  color: var(--ws-brand-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  padding: 8px 12px;
  white-space: nowrap;
  width: fit-content;
}

.customywear-photo-editor-couple-actions {
  display: grid;
  gap: 8px;
}

.customywear-photo-editor-couple-validation {
  color: var(--ws-error);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  min-height: 1.3em;
}

@media (max-width: 767px) {
  .customywear-photo-editor-couple-grid {
    grid-template-columns: 1fr;
  }

  .customywear-photo-editor-couple-card {
    border-radius: 18px;
    padding: 12px;
  }

  .customywear-photo-editor-couple-summary {
    gap: 12px;
    grid-template-columns: 111px minmax(0, 1fr);
  }

  .customywear-photo-editor-couple-thumb {
    border-radius: 16px;
    width: 111px;
  }

  .customywear-photo-editor-couple-upload-button {
    min-height: 52px;
  }
}

/* v3.4.160: Keep the product-page "Your designs" launcher to 3 cards per row on normal desktop.
 * Earlier auto-fit compatibility rules can otherwise create 4 cards on medium/large screens.
 * Ultra-wide layouts may use 4 cards only on very large viewports.
 */
@media (min-width: 768px) and (max-width: 2199px) {
  .customywear-photo-editor-saved-summary .customywear-photo-editor-saved-grid:not(.has-one-design) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 2200px) {
  .customywear-photo-editor-saved-summary .customywear-photo-editor-saved-grid:not(.has-one-design) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

