.single-product .ps-branding-designer,
.woocommerce-page .ps-branding-designer,
.ps-branding-designer {
  --ps-ink: #0f172a;
  --ps-body: #334155;
  --ps-muted: #64748b;
  --ps-line: #dbe3ef;
  --ps-surface: #ffffff;
  --ps-surface-soft: #f4f7fc;
  --ps-accent: #111827;
  --ps-accent-2: #d89c2b;
  --ps-success: #157347;
  margin: 28px 0 !important;
  padding: 24px !important;
  border: 1px solid var(--ps-line) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(160% 130% at 0% 0%, #ffffff 0%, #f5f8fd 45%, #edf2fa 100%) !important;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.08) !important;
  position: relative;
  overflow: hidden;
}

.ps-branding-designer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 45%, #d89c2b 100%);
  opacity: 0.9;
}

.ps-branding-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 16px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid #c9d6ea;
  background: #fff;
  color: #1f3d64;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ps-branding-back-link:hover {
  border-color: #a9bfdc;
  transform: translateY(-1px);
}

.ps-branding-designer__header h3 {
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 2.55rem);
  line-height: 1.08;
  color: var(--ps-ink);
  letter-spacing: -0.015em;
}

.ps-branding-designer__header p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--ps-body);
  font-size: 1.2rem;
  line-height: 1.45;
}

.ps-branding-designer__steps {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ps-branding-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #ccd8e9;
  background: #fff;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ps-branding-step.is-active {
  border-color: #1e3a8a;
  background: #1e3a8a;
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 58, 138, 0.32);
}

.ps-branding-step.is-complete {
  border-color: #157347;
  background: #e9f7f0;
  color: #14532d;
}

.ps-branding-designer__meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ps-branding-designer__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #c5d5ec;
  background: #f2f7ff;
  color: #1e3a66;
  font-size: 1.03rem;
  font-weight: 700;
}

.ps-size-run-builder {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #d6e3f4;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.ps-size-run-builder h4 {
  margin: 0;
  font-size: 1.24rem;
  color: #0f172a;
}

.ps-size-run-builder p {
  margin: 8px 0 0;
  color: #41536d;
  font-size: 0.98rem;
  line-height: 1.45;
}

.ps-size-run-progress {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 13px;
  border: 1px solid #c9d9ef;
  background: linear-gradient(180deg, #f9fcff 0%, #f2f7ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ps-size-run-progress__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ps-size-run-progress__label {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: #27446f;
}

.ps-size-run-progress__count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.94rem;
  color: #1c365a;
  font-weight: 700;
}

.ps-size-run-progress__count strong {
  font-size: 1.15rem;
  color: #0f172a;
}

.ps-size-run-progress__divider {
  color: #6b87ad;
}

.ps-size-run-progress__bar {
  margin-top: 10px;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #c7d6ec;
  background: #e9f0fb;
  overflow: hidden;
}

.ps-size-run-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8 0%, #0ea5e9 45%, #22c55e 100%);
  transition: width 0.28s ease;
}

.ps-size-run-progress__message {
  margin: 10px 0 0;
  color: #27446f;
  font-size: 0.91rem;
  line-height: 1.4;
  font-weight: 600;
}

.ps-size-run-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.ps-size-run-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.ps-size-run-table th,
.ps-size-run-table td {
  border: 1px solid #d9e4f3;
  padding: 8px;
  text-align: center;
  background: #fff;
}

.ps-size-run-table thead th {
  background: #eff4fc;
  color: #1f385f;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ps-size-run-table tbody th {
  background: #f8fbff;
  color: #1f3657;
  text-align: left;
  font-weight: 700;
}

.ps-size-run-qty {
  width: 86px;
  min-height: 38px;
  border: 1px solid #bfd1e8;
  border-radius: 9px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.ps-size-run-qty:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.16);
}

.ps-size-run-qty:disabled {
  background: #f3f4f6;
  border-color: #d8dee9;
  color: #97a2b3;
  cursor: not-allowed;
}

.ps-size-run-na {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: #94a3b8;
  font-weight: 700;
}

.ps-size-run-summary {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.ps-size-run-summary__total {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #1e3a66;
  font-size: 0.98rem;
  font-weight: 700;
}

.ps-size-run-summary__total strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  background: #1e3a8a;
  color: #fff;
  padding: 0 12px;
}

.ps-size-run-summary__lines {
  color: #4b5f7f;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ps-step-lock-notice {
  margin-top: 12px;
  border-radius: 13px;
  border: 1px solid #c6d8f2;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef5ff 100%);
  color: #1f3e67;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 11px 13px;
}

.ps-branding-designer.is-step1-locked .ps-branding-designer__workspace {
  opacity: 0.55;
  filter: saturate(0.8);
}

.ps-branding-designer.is-step1-locked .ps-branding-stage,
.ps-branding-designer.is-step1-locked .ps-branding-toolbar,
.ps-branding-designer.is-step1-locked .ps-branding-controls {
  pointer-events: none;
}

.ps-branding-designer.is-step1-ready .ps-step-lock-notice {
  border-color: #b8e4cb;
  background: linear-gradient(180deg, #edfdf4 0%, #e4f8ee 100%);
  color: #17593d;
}

.ps-branding-designer__workspace {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(460px, 1.55fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: start;
}

.ps-branding-workbench {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.ps-branding-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #d7e2f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  padding: 10px 8px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 96px;
}

.ps-tool-btn {
  border: 1px solid #d4deec;
  border-radius: 14px;
  background: #f4f8ff;
  color: #30435f;
  min-height: 66px;
  padding: 10px 8px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ps-tool-btn:hover {
  border-color: #8ea8d3;
  background: #f0f6ff;
  transform: translateY(-1px);
}

.ps-tool-btn.is-active {
  border-color: #1e3a8a;
  background: #1e3a8a;
  color: #fff;
  box-shadow: 0 14px 24px rgba(30, 58, 138, 0.3);
}

.ps-tool-btn__icon {
  font-size: 1.26rem;
  line-height: 1;
  font-weight: 800;
}

.ps-tool-btn__label {
  font-size: 0.78rem;
  letter-spacing: 0.015em;
  text-transform: none;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.ps-branding-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(130% 120% at 80% 0%, rgba(39, 51, 82, 0.88) 0%, #111a2f 45%, #090f1f 100%);
  border: 1px solid #2d3a5b;
  box-shadow: 0 28px 42px rgba(7, 13, 26, 0.38);
}

.ps-branding-stage::after {
  content: "";
  position: absolute;
  inset: auto -20% -34% -20%;
  height: 50%;
  background: radial-gradient(circle at center, rgba(216, 156, 43, 0.18) 0%, rgba(216, 156, 43, 0) 72%);
  pointer-events: none;
}

.ps-branding-stage__label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 14, 30, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ps-branding-stage__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.26));
}

.ps-branding-stage__imprint {
  position: absolute;
  border: 2px dashed rgba(216, 156, 43, 0.95);
  background: rgba(216, 156, 43, 0.2);
  box-shadow: 0 0 0 1px rgba(9, 15, 31, 0.26);
  pointer-events: none;
  z-index: 2;
}

.ps-branding-stage__logo {
  position: absolute;
  display: none;
  object-fit: contain;
  z-index: 3;
  cursor: grab;
  touch-action: none;
  user-select: none;
  filter: drop-shadow(0 12px 18px rgba(9, 15, 31, 0.45));
}

.ps-branding-stage__logo.is-dragging {
  cursor: grabbing;
}

.ps-branding-stage__logo.is-selected {
  outline: 2px solid rgba(30, 58, 138, 0.95);
  outline-offset: 2px;
}

.ps-branding-stage__text {
  position: absolute;
  display: none;
  z-index: 4;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.12;
  white-space: nowrap;
  transform-origin: top left;
  cursor: grab;
  user-select: none;
  text-shadow: 0 8px 14px rgba(0, 0, 0, 0.45);
  touch-action: none;
}

.ps-branding-stage__text.is-dragging {
  cursor: grabbing;
}

.ps-branding-stage__text.is-selected {
  outline: 2px solid rgba(216, 156, 43, 0.95);
  outline-offset: 3px;
  border-radius: 4px;
}

.ps-branding-stage__empty {
  position: absolute;
  inset: auto 20px 20px 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 14, 30, 0.72);
  backdrop-filter: blur(3px);
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-weight: 600;
}

.ps-branding-controls {
  border: 1px solid var(--ps-line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 92px;
  min-width: 0;
}

.ps-branding-controls h4 {
  margin: 0;
  color: var(--ps-ink);
  font-size: 1.84rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.ps-branding-controls__intro {
  margin: 12px 0 0;
  color: var(--ps-body);
  font-size: 1.05rem;
  line-height: 1.55;
}

.ps-tool-panel {
  display: none;
}

.ps-tool-panel.is-active {
  display: block;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #dde6f4;
  border-radius: 14px;
  background: #f8fbff;
}

.ps-branding-field {
  margin-top: 14px;
}

.ps-branding-field__label {
  display: block;
  margin: 0 0 8px;
  color: var(--ps-ink);
  font-size: 1.06rem;
  font-weight: 700;
}

.ps-branding-field__hint {
  margin: 8px 0 0;
  color: var(--ps-muted);
  font-size: 0.88rem;
}

.ps-logo-file-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px dashed #9bb2d7;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ps-logo-file-field:hover {
  border-color: #5f84be;
  background: #f0f6ff;
}

.ps-logo-file-field .ps-logo-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  background: #1e3a8a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.ps-logo-file-field .ps-logo-pick:hover {
  background: #172d6f;
  color: #fff;
}

.ps-logo-file-field__name {
  display: inline-block;
  color: #4f6076;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.ps-logo-file-field__name.has-value {
  color: #0f172a;
}

.ps-logo-upload {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.ps-branding-controls input[type="url"],
.ps-branding-controls input[type="text"],
.ps-branding-controls select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cfd9e8;
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  color: #1f2f45;
  font-size: 1rem;
}

.ps-branding-controls input[type="url"]:focus,
.ps-branding-controls input[type="text"]:focus,
.ps-branding-controls select:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.13);
}

.ps-branding-controls input[type="color"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cfd9e8;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
}

.ps-branding-controls input[type="range"] {
  width: 100%;
  margin-top: 2px;
  accent-color: #1e3a8a;
}

.ps-branding-field--inline {
  display: grid;
  grid-template-columns: 1fr;
}

.ps-text-swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ps-text-swatch {
  --ps-swatch: #ffffff;
  height: 34px;
  border-radius: 10px;
  border: 2px solid #d2ddf0;
  background: var(--ps-swatch);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ps-text-swatch:hover {
  transform: translateY(-1px);
  border-color: #94abd4;
}

.ps-text-swatch.is-active {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.22);
}

.ps-branding-text-tools {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dbe3ef;
}

.ps-branding-text-tools h5 {
  margin: 0;
  color: #0f172a;
  font-size: 1.14rem;
  line-height: 1.2;
}

.ps-branding-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ps-branding-actions .button {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
}

.ps-branding-actions--stack {
  grid-template-columns: 1fr 1fr;
}

.ps-branding-actions--stack .button {
  min-height: 42px;
}

.ps-branding-actions--styles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.ps-branding-actions--styles .button {
  min-height: 40px;
  background: #fff;
  border-color: #c9d6ea;
  color: #24364e;
}

.ps-branding-actions--styles .button:hover {
  border-color: #9bb1d4;
  background: #f7fbff;
}

.ps-branding-actions .button.is-active {
  border-color: #1e3a8a;
  background: #1e3a8a;
  color: #fff;
}

.ps-branding-actions .ps-logo-reset {
  border-color: #1e3a8a;
  background: #1e3a8a;
  color: #fff;
}

.ps-branding-actions .ps-logo-reset:hover {
  border-color: #172d6f;
  background: #172d6f;
  color: #fff;
}

.ps-branding-actions .ps-logo-clear {
  border-color: #d2d9e5;
  background: #fff;
  color: #1f2937;
}

.ps-branding-actions .ps-logo-clear:hover {
  border-color: #adb8cb;
  background: #f8fafc;
}

.ps-branding-actions .ps-text-center {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.ps-branding-actions .ps-text-center:hover {
  border-color: #020617;
  background: #020617;
  color: #fff;
}

.ps-branding-actions .ps-text-clear {
  border-color: #d2d9e5;
  background: #fff;
  color: #1f2937;
}

.ps-branding-actions .ps-text-clear:hover {
  border-color: #adb8cb;
  background: #f8fafc;
}

.ps-branding-status {
  margin-top: 13px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 600;
}

.ps-branding-status.is-success {
  color: #14532d;
  background: #e9f7ef;
  border: 1px solid #c8e9d6;
}

.ps-branding-status.is-error {
  color: #7f1d1d;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.ps-branding-controls__hint {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ps-branding-upsells {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ps-line);
}

.ps-branding-upsells h4 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  color: var(--ps-ink);
}

.ps-branding-upsells__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.ps-branding-upsells__item {
  display: block;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ps-branding-upsells__item:hover {
  border-color: #b8c7dd;
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.ps-branding-upsells__title {
  display: block;
  color: #0f172a;
  font-weight: 700;
}

.ps-branding-upsells__price {
  display: block;
  margin-top: 4px;
  color: #166534;
  font-weight: 700;
}

body.ps-customize-mode.single-product div.product .images,
body.ps-customize-mode.single-product .woocommerce-tabs,
body.ps-customize-mode.single-product .related.products,
body.ps-customize-mode.single-product .up-sells,
body.ps-customize-mode.single-product .upsells {
  display: none !important;
}

body.ps-customize-mode.single-product div.product .summary {
  float: none !important;
  width: 100% !important;
  max-width: 1300px;
  margin: 0 auto !important;
}

body.ps-customize-mode.single-product div.product .summary > :not(.product_title):not(.price):not(form.cart) {
  display: none !important;
}

body.ps-customize-mode.single-product div.product .summary .product_title {
  margin: 2px 0 8px !important;
  font-size: clamp(2rem, 3.4vw, 3.2rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

body.ps-customize-mode.single-product div.product .summary .price {
  margin: 0 0 18px !important;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem) !important;
  font-weight: 800 !important;
}

body.ps-customize-mode.single-product div.product form.cart {
  margin-top: 16px;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

body.ps-customize-mode.single-product div.product form.cart .ps-branding-designer {
  flex: 1 0 100%;
  order: 1;
}

body.ps-customize-mode.single-product div.product form.cart .quantity {
  order: 2;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d9e7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

body.ps-customize-mode.single-product div.product form.cart.ps-has-size-run-builder .quantity {
  display: none !important;
}

body.ps-customize-mode.single-product div.product form.cart .quantity input.qty {
  min-height: 54px;
  border: 0 !important;
  width: 74px;
  font-size: 1.28rem;
  font-weight: 700;
}

body.ps-customize-mode.single-product div.product form.cart .quantity .minus,
body.ps-customize-mode.single-product div.product form.cart .quantity .plus {
  min-height: 54px;
  min-width: 48px;
  border: 0;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1f2937;
  font-size: 1.2rem;
  line-height: 1;
}

body.ps-customize-mode.single-product div.product form.cart .quantity .plus {
  border-right: 0;
  border-left: 1px solid #e2e8f0;
}

body.ps-customize-mode.single-product div.product form.cart .single_add_to_cart_button {
  order: 3;
  flex: 1 1 340px;
  min-height: 56px;
  border-radius: 12px;
  border: 0 !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 70%, #334155 100%) !important;
  color: #fff !important;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.28);
}

body.ps-customize-mode.single-product div.product form.cart .single_add_to_cart_button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.34);
}

@media (max-width: 1150px) {
  .ps-branding-designer__workspace {
    grid-template-columns: 1fr;
  }

  .ps-branding-workbench {
    grid-template-columns: 1fr;
  }

  .ps-branding-toolbar {
    position: relative;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .ps-tool-btn {
    min-height: 58px;
    min-width: 114px;
    grid-template-columns: auto auto;
    gap: 8px;
    padding: 8px 14px;
  }

  .ps-branding-controls {
    position: relative;
    top: auto;
  }

  .ps-branding-stage {
    min-height: 420px;
  }
}

@media (max-width: 820px) {
  .single-product .ps-branding-designer,
  .woocommerce-page .ps-branding-designer,
  .ps-branding-designer {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .ps-branding-designer__header h3 {
    font-size: 1.72rem;
  }

  .ps-branding-designer__header p {
    font-size: 1.02rem;
  }

  .ps-branding-step {
    min-height: 40px;
    font-size: 0.83rem;
    padding: 8px 11px;
  }

  .ps-branding-designer__meta span {
    font-size: 0.94rem;
  }

  .ps-branding-stage {
    min-height: 320px;
  }

  .ps-branding-workbench {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ps-branding-toolbar {
    gap: 8px;
    padding: 8px 7px;
    overflow-x: auto;
    scrollbar-width: thin;
    flex-wrap: nowrap;
  }

  .ps-tool-btn {
    min-width: 112px;
    min-height: 50px;
  }

  .ps-tool-btn__label {
    font-size: 0.72rem;
  }

  .ps-branding-controls h4 {
    font-size: 1.42rem;
  }

  .ps-branding-actions {
    grid-template-columns: 1fr;
  }

  .ps-text-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.ps-customize-mode.single-product div.product .summary .product_title {
    font-size: 1.9rem !important;
  }

  body.ps-customize-mode.single-product div.product form.cart .single_add_to_cart_button {
    width: 100%;
  }
}
