html.storefront-simple #pro-tools-toggle,
html.storefront-simple #pro-tools-panel,
html.storefront-simple #save-and-load-bar,
html.storefront-simple #locked-layers-container,
html.storefront-simple #layer-manager,
html.storefront-simple .recolor-card,
html.storefront-simple #sticker-packing-btn,
html.storefront-simple #choose-asset-btn,
html.storefront-simple #replace-image-btn,
html.storefront-simple #open-qr-overlay-btn,
html.storefront-simple #edit-font-button,
html.storefront-simple #edit-text-button,
html.storefront-simple #alignment-tools,
html.storefront-simple #undo-btn,
html.storefront-simple #redo-btn,
html.storefront-simple #delete-btn,
html.storefront-simple #export-btn,
html.storefront-simple #save-svg,
html.storefront-simple #import-canvas,
html.storefront-simple #pre-made-export-btn {
  display: none !important;
}

html.storefront-simple,
html.storefront-simple body {
  height: 100%;
  overflow: hidden;
}

html.storefront-simple .section-label,
html.storefront-simple h3:not(:first-of-type) {
  display: none !important;
}

#storefront-center-btn {
  display: none;
  margin-top: 10px;
  width: 100%;
}


html.storefront-simple #storefront-center-btn {
  display: inline-flex;
  justify-content: center;
  flex: 1 1 100%;
}

/* Simple mode: make Add Text full width just like Center */
html.storefront-simple #open-add-text-btn {
  display: inline-flex;
  justify-content: center;
  flex: 1 1 100%;
  width: 100%;
  box-sizing: border-box;
}


html.storefront-simple #tools-container .section:has(#storefront-center-btn) {
  display: flex;
  flex-direction: column;
}

#storefront-more-tools-toggle,
#storefront-more-tools-panel {
  display: none;
}

html.storefront-simple #tools-container {
  position: relative;
}

html.storefront-simple #storefront-job-color-card {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

html.storefront-simple .job-color-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

html.storefront-simple .job-color-title {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

html.storefront-simple .job-color-helper {
  margin: 0;
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: right;
}

html.storefront-simple .job-color-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

html.storefront-simple .job-color-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

html.storefront-simple .job-color-picker-label {
  font-weight: 600;
  color: #1f2937;
}

html.storefront-simple .job-color-swatches {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 8px;
}

html.storefront-simple .storefront-job-color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

html.storefront-simple .storefront-job-color-swatch.selected {
  border-color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a;
}

html.storefront-simple #storefront-more-tools-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 4px;
  right: 8px;
  margin: 0;

  width: auto;
  padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;

  /* color choice #1 */
  background: #f8efe4;
  color: #5a3e2b;
  border: 1px solid #e6d5c2;
  border-radius: 6px;
}



html.storefront-simple #storefront-more-tools-panel {
  display: block;
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed #d5d5d5;
  border-radius: 8px;
  background: #fafafa;
}

html.storefront-simple #storefront-more-tools-panel[hidden] {
  display: none;
}

.storefront-more-tools-note {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

html.storefront-simple #storefront-cart-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

html.storefront-simple .storefront-cart-label {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
}

html.storefront-simple .storefront-cart-helper,
html.storefront-simple .storefront-cart-placeholder {
  margin: 0 0 12px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

html.storefront-simple .storefront-cart-intro {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

html.storefront-simple #storefront-cart-slot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

html.storefront-simple #storefront-cart-slot .quantity {
  margin: 0;
}

html.storefront-simple .storefront-cart-product {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html.storefront-simple .storefront-cart-description {
  margin: 0;
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.5;
}

html.storefront-simple .storefront-cart-price {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
  display: block;
  line-height: 1.5;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
}

html.storefront-simple .storefront-cart-price + .storefront-cart-price {
  margin-top: 6px;
}

html.storefront-simple .storefront-cart-price-summary {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef2ff;
}

html.storefront-simple .storefront-cart-price del {
  color: #6b7280;
  opacity: 0.7;
  text-decoration: line-through;
  font-weight: 600;
}

html.storefront-simple .storefront-cart-price ins {
  color: #16a34a;
  font-weight: 800;
  text-decoration: none;
}

html.storefront-simple .storefront-cart-price-label {
  font-size: 0.95rem;
  color: #374151;
}

html.storefront-simple .storefront-cart-price-amount {
  font-size: 1.05rem;
}

html.storefront-simple .storefront-cart-price .qty_table {
  width: 100%;
  border-collapse: collapse;
}

html.storefront-simple .storefront-cart-price .qty_table td {
  padding: 2px 0;
}

html.storefront-simple .storefront-cart-tier-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

html.storefront-simple .storefront-cart-tier-title::after {
  content: ':';
  margin-left: 2px;
  color: #111827;
}

html.storefront-simple .storefront-cart-quantity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fdfdfd;
}

html.storefront-simple .storefront-cart-qty-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

html.storefront-simple .storefront-cart-qty-label {
  font-weight: 700;
  color: #0f172a;
}

html.storefront-simple .storefront-cart-qty-hint {
  color: #6b7280;
  font-size: 0.9rem;
}

html.storefront-simple .storefront-cart-qty-input {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

html.storefront-simple .storefront-cart-step {
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
}

html.storefront-simple .storefront-cart-step:active {
  transform: translateY(1px);
}

html.storefront-simple .storefront-cart-qty-field {
  width: 100%;
  height: 40px;
  padding: 6px 10px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  -moz-appearance: textfield;
}

html.storefront-simple .storefront-cart-qty-field:focus {
  outline: 2px solid #bfdbfe;
  outline-offset: 1px;
  border-color: #93c5fd;
}

html.storefront-simple .storefront-cart-qty-field::-webkit-inner-spin-button,
html.storefront-simple .storefront-cart-qty-field::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

html.storefront-simple .storefront-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html.storefront-simple #storefront-cart-slot .coffee-add-to-cart {
  width: 100%;
  padding: 13px 14px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: 10px;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #ffffff;
}

html.storefront-simple #upload-btn {
  display: block;
  width: 100%;
  padding: 18px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: 14px;
  border: 1px solid #1d4ed8;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

html.storefront-simple #upload-btn:hover,
html.storefront-simple #upload-btn:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #1e40af, #1d4ed8 60%, #2563eb);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.35);
  outline: none;
}

html.storefront-simple #storefront-cart-slot .coffee-add-to-cart:hover,
html.storefront-simple #storefront-cart-slot .coffee-add-to-cart:focus {
  background: #1d4ed8;
}

html.stock-kraft #white-template-btn,
html.stock-white #kraft-template-btn { display: none !important; }

html.one-side #switch-back { display: none !important; }

html.storefront-simple.wizard-active #editor-container,
html.storefront-simple.wizard-active #tools-container,
html.storefront-simple.wizard-active #cup3d {
  pointer-events: none;
  opacity: 0.4;
}

html.storefront-simple.preview-enabled #editor-container {
  grid-template-columns: minmax(280px, 360px) minmax(0, var(--canvas-max)) minmax(220px, 320px);
  grid-template-areas:
    "tools cup preview"
    "tools switch preview"
    "tools canvas preview";
}

html.storefront-simple #storefront-preview-panel {
  grid-area: preview;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html.storefront-simple .storefront-preview-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html.storefront-simple .storefront-preview-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #111827;
}

html.storefront-simple .storefront-preview-helper {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}

html.storefront-simple .storefront-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

html.storefront-simple .storefront-preview-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  align-items: flex-start;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

html.storefront-simple .storefront-preview-card:hover,
html.storefront-simple .storefront-preview-card:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  outline: none;
  transform: translateY(-1px);
}

html.storefront-simple .storefront-preview-card.active {
  border-color: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
}

html.storefront-simple .storefront-preview-side {
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

html.storefront-simple .storefront-preview-note {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
}

html.storefront-simple .storefront-preview-img {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  min-height: 140px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
}

html.storefront-simple .storefront-preview-empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  width: 100%;
  background: #f8fafc;
  color: #475569;
  border: 1px dashed #d5d5d5;
  border-radius: 8px;
  font-size: 0.92rem;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  html.storefront-simple.preview-enabled #editor-container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "cup"
      "switch"
      "canvas"
      "tools"
      "preview";
  }

  html.storefront-simple #storefront-preview-panel {
    width: 100%;
  }
}

#storefront-wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 48px;
  z-index: 9999;
}

#storefront-wizard-overlay .wizard-card {
  position: relative;
  background: #fff;
  padding: 24px;
  max-width: 420px;
  width: min(420px, 92vw);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#storefront-wizard-overlay .wizard-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#storefront-wizard-overlay .wizard-needs-action {
  box-shadow: 0 0 0 3px #ef4444;
  border-radius: 10px;
  animation: wizard-pulse 1s ease-in-out infinite alternate;
}

@keyframes wizard-pulse {
  from { box-shadow: 0 0 0 3px #ef4444; }
  to { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.6); }
}

#storefront-wizard-overlay .wizard-color-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

#storefront-wizard-overlay .wizard-swatches {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 8px;
}

#storefront-wizard-overlay .wizard-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}

#storefront-wizard-overlay .wizard-swatch.selected {
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}

#storefront-wizard-overlay .wizard-checkbox {
  display: block;
  margin: 8px 0;
}

#storefront-wizard-continue {
  margin-top: 12px;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#storefront-repeat-order-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  padding: 24px;
}

.repeat-order-card {
  width: min(560px, 92vw);
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
  color: #0f172a;
}

.repeat-order-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.repeat-order-helper {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.5;
}

.repeat-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.repeat-order-btn {
  border: 1px solid #1f2937;
  border-radius: 999px;
  padding: 10px 18px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}

.repeat-order-btn.secondary {
  background: #f8fafc;
  color: #0f172a;
}

.repeat-order-note {
  margin-top: 18px;
}

.repeat-order-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

#storefront-repeat-order-note {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  resize: vertical;
  font: inherit;
}

#storefront-repeat-order-note.repeat-order-needs-note {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.repeat-order-hint {
  margin: 10px 0 16px;
  color: #64748b;
  font-size: 14px;
}
