.rc8-product-launcher {
  display: grid;
  gap: 18px;
}

.rc8-product-launcher h2 {
  margin: 4px 0 8px;
}

.rc8-product-launcher p {
  margin: 0;
  color: #7b7974;
  line-height: 1.45;
}

.rc8-product-form-relocated {
  display: contents;
}

.rc8-product-wizard[hidden] {
  display: none !important;
}

html.rc8-product-wizard-open,
body.rc8-product-wizard-open {
  overflow: hidden !important;
}

.rc8-product-wizard {
  position: fixed;
  inset: 0;
  bottom: var(--rc8-keyboard-inset, 0px);
  z-index: 99999;
  background: #fff;
  color: #1f1f1f;
}

.rc8-product-wizard-shell {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #fff;
}

.rc8-product-wizard-header {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: max(12px, env(safe-area-inset-top)) 24px 12px;
  border-bottom: 1px solid #ecebe8;
  background: rgba(255,255,255,.97);
}

.rc8-wizard-link {
  border: 0;
  background: transparent;
  color: #222;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#rc8-product-close {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dedbd6;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 650;
}

.rc8-save-exit {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dedbd6;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}

.rc8-product-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #ecebe8;
}

.rc8-product-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #222;
  transition: width .25s ease;
}

.rc8-product-wizard-main {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 34px 28px 130px;
}

.rc8-product-wizard-main.rc8-product-wizard-main-category {
  overflow-y: hidden;
}

.rc8-product-step-host {
  max-width: 720px;
  margin: 0 auto;
}

.rc8-product-step {
  display: grid;
  gap: 14px;
}

.rc8-product-kicker {
  color: #8e8b85;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.rc8-product-step h1 {
  margin: 0;
  color: #202020;
  font-size: clamp(38px, 8vw, 64px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}

.rc8-product-step > p {
  margin: 2px 0 8px;
  color: #73716c;
  font-size: 18px;
  line-height: 1.45;
}

.rc8-product-step-content {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.rc8-product-step-content .owner-field {
  display: grid;
  gap: 9px;
}

.rc8-product-step-content .owner-field > span {
  display: none;
}

.rc8-product-step-content input,
.rc8-product-step-content textarea,
.rc8-product-step-content select {
  width: 100%;
  min-height: 68px;
  border: 1.5px solid #d9d7d2;
  border-radius: 22px;
  background: #fff;
  padding: 16px 18px;
  color: #222;
  font: inherit;
  font-size: 20px;
  outline: none;
  box-sizing: border-box;
}

.rc8-product-step-content textarea {
  min-height: 180px;
  resize: vertical;
}

.rc8-product-step-content input:focus,
.rc8-product-step-content textarea:focus,
.rc8-product-step-content select:focus {
  border-color: #222;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.rc8-product-choice-grid,
.rc8-product-option-stack {
  display: grid;
  gap: 12px;
}

.rc8-category-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rc8-category-choice-grid .rc8-product-choice {
  min-height: 74px;
  padding: 14px 16px;
  gap: 10px;
}

.rc8-category-choice-grid .rc8-product-choice span {
  min-width: 0;
  font-size: 17px;
  line-height: 1.2;
}

.rc8-category-choice-grid .rc8-product-choice b {
  width: 28px;
  height: 28px;
}

.rc8-product-choice,
.rc8-product-option {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1.5px solid #ddd9d4;
  border-radius: 24px;
  background: #fff;
  color: #222;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.rc8-product-choice span,
.rc8-product-option strong {
  font-size: 19px;
  font-weight: 800;
}

.rc8-product-choice b,
.rc8-product-option b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f0eeea;
}

.rc8-product-choice.selected,
.rc8-product-option.selected {
  border: 2px solid #222;
  background: #faf9f7;
}

.rc8-product-choice.selected b,
.rc8-product-option.selected b {
  background: #222;
  color: #fff;
}

.rc8-product-option span {
  display: grid;
  gap: 5px;
}

.rc8-product-option small {
  color: #77746f;
  font-size: 14px;
  line-height: 1.35;
}

.rc8-product-step-content .image-picker-block {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.rc8-product-step-content .image-picker-copy {
  display: none;
}

.rc8-product-step-content .image-picker-layout {
  display: grid;
  gap: 16px;
}

.rc8-product-step-content .image-preview {
  min-height: 340px;
  border: 2px dashed #c9c5bf;
  border-radius: 30px;
  background: #faf9f7;
  overflow: hidden;
}

.rc8-product-step-content .image-preview img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.rc8-product-step-content .image-picker-actions {
  display: grid;
  gap: 10px;
}

.rc8-product-review {
  overflow: hidden;
  border: 1px solid #e4e1dc;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(22,20,17,.08);
}

.rc8-product-review-image {
  min-height: 280px;
  background: #f5f2ed;
}

.rc8-product-review-image img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
}

.rc8-product-review-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  font-size: 72px;
}

.rc8-product-review-copy {
  padding: 22px 24px 10px;
}

.rc8-product-review-copy > span {
  color: #8a8781;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rc8-product-review-copy h3 {
  margin: 6px 0;
  font-size: 32px;
  line-height: 1.02;
}

.rc8-product-review-copy p {
  margin: 0 0 12px;
  color: #77746f;
  line-height: 1.45;
}

.rc8-product-review-copy strong {
  font-size: 24px;
}

.rc8-product-review-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 24px 24px;
}

.rc8-product-review-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f1ed;
  font-size: 13px;
  font-weight: 700;
}

.rc8-product-wizard-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--rc8-keyboard-inset, 0px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid #ecebe8;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px);
}
.rc8-product-wizard.keyboard-visible .rc8-product-wizard-footer { padding-bottom:14px; }
.rc8-product-wizard .owner-size-editor { display:grid;gap:12px;min-width:0; }
.rc8-product-wizard .owner-size-editor > p { margin:0 0 4px;line-height:1.45; }
.rc8-product-wizard .owner-size-headings { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;font-size:13px;font-weight:700;color:#666; }
.rc8-product-wizard #owner-size-rows { display:grid;gap:14px; }
.rc8-product-wizard .owner-size-row { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:center;min-width:0;padding:12px;border:1px solid #e6e6e3;border-radius:17px; }
.rc8-product-wizard .owner-size-row > input:not([type="checkbox"]) { width:100%;min-width:0;min-height:52px;box-sizing:border-box;padding:10px 12px;font-size:16px; }
.rc8-product-wizard .owner-size-row > label { display:inline-flex;align-items:center;gap:8px;min-width:0;font-size:14px; }
.rc8-product-wizard .owner-size-row input[type="checkbox"] { appearance:auto;width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;padding:0;border-radius:4px;accent-color:#f8781d; }
.rc8-product-wizard .owner-size-row > button { justify-self:end;min-width:36px;min-height:36px;border-radius:50%;background:#f4f4f1;font-size:22px;line-height:1; }

.rc8-wizard-back,
.rc8-wizard-next {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.rc8-wizard-back {
  border: 0;
  background: transparent;
  text-decoration: underline;
}

.rc8-wizard-next {
  border: 0;
  background: #222;
  color: #fff;
}

.rc8-wizard-next:disabled {
  opacity: .55;
}

.rc8-product-wizard .owner-submit,
.rc8-product-wizard .switch-row,
.rc8-product-wizard .owner-grid,
.rc8-product-wizard #category-select,
.rc8-product-wizard select[name="tone"] {
  display: none !important;
}

@media (max-width: 560px) {
  .rc8-product-wizard-header {
    grid-template-columns: 44px 1fr auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .rc8-save-exit {
    font-size: 13px;
    padding: 9px 11px;
  }

  .rc8-product-wizard-main {
    padding: 28px 22px 120px;
  }

  .rc8-product-wizard-main.rc8-product-wizard-main-category {
    overflow-y: hidden;
    padding-top: 22px;
    padding-bottom: 92px;
  }

  .rc8-product-step h1 {
    font-size: 44px;
  }

  .rc8-product-step > p {
    font-size: 16px;
  }

  .rc8-product-step-category {
    gap: 10px;
  }

  .rc8-product-step-category > p {
    margin-bottom: 2px;
  }

  .rc8-product-step-category .rc8-product-step-content {
    margin-top: 4px;
    overflow: visible;
  }

  .rc8-category-choice-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 42%;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-right: -22px;
    padding: 2px 22px 10px 0;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .rc8-category-choice-grid::-webkit-scrollbar {
    display: none;
  }

  .rc8-category-choice-grid .rc8-product-choice {
    min-height: 82px;
    justify-content: flex-start;
    padding: 14px;
    scroll-snap-align: start;
  }

  .rc8-category-choice-grid .rc8-product-choice span {
    font-size: 16px;
    line-height: 1.18;
  }

  .rc8-product-wizard-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Free accompaniments share one editor and remain usable on phone screens. */
#owner-accompaniments-editor { display:grid; gap:16px; min-width:0; }
#owner-accompaniments-rows { display:grid; gap:14px; }
#owner-accompaniments-rows[hidden], #owner-add-accompaniment[hidden] { display:none; }
#owner-accompaniments-editor .rc8-extra-editor-row { display:grid; gap:10px; padding:14px; border:1px solid #e4e4e4; border-radius:14px; min-width:0; background:#fafafa; }
#owner-accompaniments-editor .rc8-extra-editor-row > input { width:100%; min-width:0; box-sizing:border-box; }
#owner-accompaniments-editor .rc8-extra-editor-row > span { color:#666; font-size:13px; }
#owner-accompaniments-editor label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:14px; color:#444; }
#owner-accompaniments-editor input[type="file"] { flex:1 1 100%; width:100%; min-width:0; font-size:13px; }
#owner-accompaniments-editor button { min-height:44px; border:1px solid #ddd; border-radius:10px; padding:9px 14px; background:#fff; color:#333; font:inherit; cursor:pointer; }

#owner-accompaniments-editor #owner-add-accompaniment { order:-1; width:100%; min-height:56px; background:#b54b0b; color:#fff; border-color:#b54b0b; font-weight:650; }
#owner-accompaniments-editor .rc8-extra-enable { flex-wrap:nowrap; }
#owner-accompaniments-editor input[type="checkbox"] { appearance:auto; width:22px; height:22px; min-height:22px; padding:0; border-radius:4px; flex:0 0 22px; accent-color:#b54b0b; }
#owner-accompaniments-editor .rc8-extra-hint { order:-1; margin:0; color:#73716c; font-size:14px; }

#owner-accompaniments-editor .rc8-extra-group-tabs { display:flex; gap:8px; }
#owner-accompaniments-editor button[aria-pressed="true"] { border-color:#b54b0b; background:#fff3e8; }
#owner-accompaniments-editor .rc8-extra-selection-rail { display:grid; grid-auto-flow:column; grid-auto-columns:39%; gap:10px; overflow-x:auto; padding:4px 0 12px; scroll-snap-type:x proximity; }
#owner-accompaniments-editor .rc8-extra-select-card { display:flex; flex-direction:column; align-items:stretch; gap:10px; text-align:left; padding:10px; scroll-snap-align:start; }
#owner-accompaniments-editor .rc8-extra-select-card img { width:100%; aspect-ratio:5/4; object-fit:contain; border-radius:8px; background:#fafafa; }
#owner-accompaniments-editor .rc8-extra-select-card span { color:#a2470e; font-size:14px; }
#owner-accompaniments-editor .rc8-extra-selected-summary { font-size:14px; color:#666; }
.rc8-extra-library-dialog { width:min(640px,92vw); max-height:90dvh; box-sizing:border-box; border:0; border-radius:22px; padding:22px; color:#333; }
.rc8-extra-library-dialog::backdrop { background:rgba(0,0,0,.45); }
.rc8-extra-library-dialog header { display:flex; align-items:center; justify-content:space-between; }
.rc8-extra-library-dialog form { display:grid; gap:14px; margin-top:18px; }
.rc8-extra-library-dialog label { display:grid; gap:6px; }
.rc8-extra-library-dialog input:not([type=checkbox]),.rc8-extra-library-dialog select { width:100%; min-height:44px; box-sizing:border-box; border:1px solid #ddd; border-radius:10px; padding:10px; font:inherit; }
.rc8-extra-library-dialog button { min-height:44px; padding:10px 14px; border:1px solid #ddd; border-radius:10px; font:inherit; background:#fff; color:#333; cursor:pointer; }
.rc8-extra-library-dialog button[type=submit] { background:#b54b0b; color:#fff; border-color:#b54b0b; }
.rc8-extra-library-dialog [data-list],.rc8-extra-library-dialog [data-groups] { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.rc8-extra-library-dialog [data-preview] { width:140px; aspect-ratio:5/4; object-fit:contain; }
#owner-accompaniments-editor label[hidden] { display:none; }

#products-card > .card-heading { flex-wrap:wrap; }
#products-card > .card-heading > button { flex:1 1 100%; min-width:0; white-space:normal; min-height:48px; }


/* Category rename within the product wizard; lives below choices on iPhone. */
.rc8-wizard-category-edit-toggle {
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 16px 0 8px;
  padding: 10px 14px;
  border: 1px solid #dedbd6;
  border-radius: 14px;
  background: #faf9f7;
  color: #252525;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.rc8-wizard-category-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
  padding: 14px;
  margin: 0 0 18px;
  border: 1px solid #dedbd6;
  border-radius: 18px;
  background: #faf9f7;
}
.rc8-wizard-category-edit input { width: 100%; min-width: 0; box-sizing: border-box; }
.rc8-wizard-category-edit .dark-button { grid-column: 1 / -1; min-height: 44px; }
@media (max-width: 520px) {
  .rc8-wizard-category-edit { grid-template-columns: minmax(0, 1fr) 78px; gap: 8px; padding: 12px; }
}


/* Saved menu headings: separate Choose and Edit controls, mobile-first. */
.rc8-heading-choice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.rc8-heading-choice-row .rc8-product-choice { min-width: 0; min-height: 72px; }
.rc8-heading-choice-row .rc8-product-choice span { overflow-wrap: anywhere; }
.rc8-heading-edit-button {
  min-width: 68px;
  min-height: 48px;
  border: 1.5px solid #d9d5d0;
  border-radius: 18px;
  background: #faf9f7;
  color: #292825;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  padding: 8px 10px;
}
.rc8-heading-edit-button[aria-expanded="true"] { border-color: #222; background: #f0ede8; }
.rc8-heading-edit-form {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1.5px solid #d9d5d0;
  border-radius: 18px;
  background: #faf9f7;
}
.rc8-heading-edit-form .owner-field { min-width: 0; }
.rc8-heading-edit-form input { display: block; box-sizing: border-box; width: 100%; min-width: 0; }
.rc8-heading-edit-form small { font-size: 12px; line-height: 1.45; color: #68635f; }
.rc8-heading-edit-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rc8-heading-edit-actions .dark-button { min-height: 44px; }
@media(max-width:520px) {
  .rc8-heading-choice-row { gap: 6px; }
  .rc8-heading-choice-row .rc8-product-choice { padding: 16px 14px; border-radius: 19px; }
  .rc8-heading-edit-button { min-width: 62px; padding: 8px; border-radius: 16px; }
  .rc8-heading-edit-form { padding: 13px; }
}

/* Deleting a menu heading is confirmed separately; products are retained. */
.rc8-heading-row-actions { display:flex; align-items:stretch; gap:6px; min-width:0; }
.rc8-heading-row-actions .rc8-heading-edit-button,
.rc8-heading-row-actions .rc8-heading-delete-button {
  min-width:60px; min-height:48px; padding:8px; border-radius:16px; font-size:13px;
}
.rc8-heading-delete-button {
  border:1.5px solid #dbbbb4; background:#fffaf8; color:#9c4333;
  font:inherit; font-weight:750; cursor:pointer;
}
.rc8-heading-delete-button[aria-expanded="true"] { background:#fff0ec; }
.rc8-heading-delete-confirm {
  border:1.5px solid #e5c6bf; border-radius:18px; background:#fffaf8;
  padding:16px; display:grid; gap:12px;
}
.rc8-heading-delete-confirm strong { font-size:16px; line-height:1.4; }
.rc8-heading-delete-confirm p { margin:0; color:#544e4b; font-size:14px; line-height:1.5; }
.rc8-heading-delete-confirm-button {
  min-height:44px; padding:10px 14px; border:0; border-radius:12px;
  background:#a53c2a; color:white; font:inherit; font-size:14px; font-weight:700; cursor:pointer;
}
.rc8-heading-delete-confirm-button:disabled { opacity:.6; cursor:wait; }
@media(max-width:520px) {
  .rc8-heading-row-actions { gap:4px; }
  .rc8-heading-row-actions .rc8-heading-edit-button,
  .rc8-heading-row-actions .rc8-heading-delete-button { min-width:52px; padding:5px; font-size:12px; }
  .rc8-heading-delete-confirm { padding:13px; }
}

/* Product group management inherits heading actions but stays mobile-friendly. */
.rc8-brand-choice-row { grid-template-columns:minmax(0,1fr) auto; }
.rc8-brand-choice-row .rc8-product-choice { min-width:0; }
.rc8-saved-brand-grid .rc8-heading-delete-confirm,
.rc8-saved-brand-grid .rc8-heading-edit-form {
  min-width:0; overflow-wrap:anywhere; margin:0 0 6px;
}
.rc8-saved-brand-grid .rc8-heading-edit-form input { max-width:100%; }
@media(max-width:520px) {
  .rc8-brand-choice-row { gap:6px; }
  .rc8-brand-choice-row .rc8-product-choice { padding:16px 14px; border-radius:19px; }
}


/* AI PHOTO PICKER REUSE — visually identical to the existing manual PICHA step.
   Scope every override to AI so the manual product workflow is unchanged. */
.rc8-product-step-ai-image .image-picker-block,
.rc8-product-step-ai-image .image-picker-layout {
  width: 100%;
  min-width: 0;
}
.rc8-product-step-ai-image .product-image-preview-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  justify-self: center;
}
.rc8-product-step-ai-image .image-preview {
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 5 / 4 !important;
  border: 1px dashed #c9c5bf;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.rc8-product-step-ai-image .image-preview.has-image { border-style: solid; }
.rc8-product-step-ai-image .image-preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center;
  background: white;
}
.rc8-product-step-ai-image .rc8-ai-preview-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(20,20,20,.80);
  color: white;
  font-size: 11px;
  font-weight: 760;
  pointer-events: none;
}
.rc8-product-step-ai-image .rc8-ai-image-placeholder {
  color: #666;
  font-size: 18px;
  font-weight: 650;
}
.rc8-product-step-ai-image .image-picker-actions input[type="file"] {
  display: none !important;
}
.rc8-product-step-ai-image .image-picker-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 10px !important;
}
.rc8-product-step-ai-image .image-picker-actions .soft-button {
  min-width: 0;
  min-height: 52px;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
.rc8-product-step-ai-image .product-gallery-owner-meta {
  display: flex;
  justify-content: flex-end;
}
.rc8-product-step-ai-image .product-gallery-owner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rc8-product-step-ai-image .product-gallery-owner-tile {
  aspect-ratio: 5 / 4;
  background: #f8f8f8;
}
.rc8-product-step-ai-image .product-gallery-owner-tile img {
  object-fit: contain;
  background: white;
}
.rc8-product-step-ai-image .rc8-ai-photo-count {
  color: #77736d;
  font-size: 13px;
  font-weight: 750;
}
.rc8-product-step-ai-image .rc8-ai-photo-hint {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #9d410c;
}
.rc8-product-footer-error {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% + 6px);
  z-index: 10;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #f3c1a2;
  border-radius: 14px;
  background: #fff5ee;
  color: #7d2d09;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 6px 24px rgba(30,20,14,.10);
}
.rc8-product-footer-error[hidden] { display: none !important; }
@media (max-width: 430px) {
  .rc8-product-step-ai-image .image-picker-actions .soft-button { font-size: 13px; }
}


/* AI Preview editor — keeps edits isolated per generated 5:4 photo. */
.rc8-ai-review-preview {
  background: #fff;
  display: grid;
  place-items: center;
}
.rc8-ai-review-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  aspect-ratio: 5 / 4;
  object-fit: contain !important;
  background: #fff;
}
.rc8-ai-review-image-tools {
  display: grid;
  gap: 12px;
  padding: 16px 18px 20px;
  border-top: 1px solid #ebe7e1;
  background: #fff;
}
.rc8-ai-review-image-label {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 15px;
}
.rc8-ai-review-image-label small {
  color: #716f69;
  font-size: 12px;
}
.rc8-ai-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rc8-ai-review-actions button,
.rc8-ai-quick-chips button {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid #d8d4ce;
  border-radius: 999px;
  background: #faf9f7;
  color: #26221e;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.rc8-ai-review-actions button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.rc8-ai-original-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}
.rc8-product-step-content .rc8-ai-original-picker select {
  width: auto;
  max-width: 170px;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 14px;
}
.rc8-ai-review-prompt {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.rc8-ai-review-prompt[hidden] { display: none !important; }
.rc8-ai-review-prompt > label {
  font-size: 14px;
  font-weight: 700;
}
.rc8-product-step-content .rc8-ai-review-prompt textarea {
  min-height: 115px;
  font-size: 16px;
  line-height: 1.45;
  border-radius: 16px;
  resize: vertical;
}
.rc8-ai-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rc8-product-step-content .rc8-ai-apply-edit {
  border: 0;
  border-radius: 14px;
  padding: 14px 20px;
  min-height: 48px;
  color: #fff;
  background: #202020;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}
.rc8-ai-review-safe-note {
  margin: 0;
  font-size: 12px;
  color: #77736d;
  line-height: 1.5;
}
.rc8-ai-secondary-image {
  margin-top: 4px;
}
@media (max-width: 480px) {
  .rc8-ai-review-image-tools { padding: 14px; }
  .rc8-ai-review-actions button { flex: 1 1 43%; }
  .rc8-ai-review-image-label { display: grid; }
}


/* AI catalogue presentation controls — only visible in AI product wizard. */
.rc8-ai-presentation-explainer {
  color: #605e59;
  line-height: 1.45;
  font-size: 15px;
  margin: 0 0 5px;
}
.rc8-ai-presentation-group {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #e2ded8;
  border-radius: 22px;
  background: #fbfaf8;
}
.rc8-ai-presentation-group legend {
  color: #252525;
  font-size: 16px;
  font-weight: 800;
  padding: 0 6px;
}
.rc8-ai-presentation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.rc8-ai-presentation-pill {
  min-height: 44px;
  border: 1.5px solid #d5d2cc;
  border-radius: 999px;
  background: #fff;
  color: #252525;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 15px;
  cursor: pointer;
  touch-action: manipulation;
}
.rc8-ai-presentation-pill.is-selected,
.rc8-ai-presentation-pill[aria-pressed="true"] {
  background: #202020;
  color: #fff;
  border-color: #202020;
}
.rc8-ai-presentation-pill:focus-visible {
  outline: 3px solid #e5a04b;
  outline-offset: 2px;
}
.rc8-ai-presentation-note {
  color: #77736d;
  font-size: 13px;
  line-height: 1.45;
  margin: 13px 0 0;
}
@media (max-width: 560px) {
  .rc8-ai-presentation-group { padding: 14px; }
  .rc8-ai-presentation-pill { font-size: 13px; padding: 10px 13px; }
}

/* Product Edit: one-tap Picha / Heading / Bei / All choice.
   Independent modal; add-product and AI creation use the original wizard. */
.rc8-product-edit-chooser[hidden]{display:none!important}
.rc8-product-edit-chooser{
 position:fixed;
 inset:0;
 z-index:100002;
 display:flex;
 align-items:flex-end;
 justify-content:center;
 color:#212121;
}
.rc8-product-edit-chooser-backdrop{
 position:absolute;
 inset:0;
 background:rgba(0,0,0,.46);
}
.rc8-product-edit-chooser-panel{
 position:relative;
 z-index:1;
 width:min(560px,100%);
 max-width:100%;
 padding:22px 20px max(23px,env(safe-area-inset-bottom));
 border-radius:26px 26px 0 0;
 background:#fff;
 box-shadow:0 -16px 40px rgba(0,0,0,.16);
 box-sizing:border-box;
}
.rc8-product-edit-chooser-head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;margin-bottom:19px}
.rc8-product-edit-chooser-head span{
 display:block;color:#8d8883;font-size:11px;letter-spacing:.12em;font-weight:800;margin-bottom:7px;
}
.rc8-product-edit-chooser-head h2{font-size:clamp(24px,6vw,33px);font-weight:800;line-height:1.1;letter-spacing:-.035em;margin:0;color:#222}
.rc8-product-edit-chooser-head button{
 flex:0 0 40px;width:40px;height:40px;border:1px solid #dedbd6;border-radius:50%;
 background:#fff;font-size:24px;line-height:1;color:#222;
}
.rc8-product-edit-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.rc8-product-edit-choices button{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;
 min-width:0;min-height:105px;padding:15px;border:1px solid #dedbd6;border-radius:18px;
 background:#f9f8f6;color:#222;text-align:left;cursor:pointer;font:inherit;
}
.rc8-product-edit-choices button:active{background:#f1eee8}
.rc8-product-edit-choices button:focus-visible{outline:3px solid #fc7c2e;outline-offset:2px}
.rc8-product-edit-choices strong{font-size:clamp(16px,4vw,20px);font-weight:800;line-height:1.12}
.rc8-product-edit-choices small{font-size:12px;color:#77716b;line-height:1.35}
.rc8-quick-heading-label{font-size:15px;color:#625e59;font-weight:700;line-height:1.3;margin-top:10px}
@media(max-width:370px){
 .rc8-product-edit-chooser-panel{padding:18px 14px max(20px,env(safe-area-inset-bottom))}
 .rc8-product-edit-choices{gap:8px}
 .rc8-product-edit-choices button{min-height:92px;padding:11px}
 .rc8-product-edit-choices small{font-size:11px}
}
@media(min-width:760px){
 .rc8-product-edit-chooser{align-items:center}
 .rc8-product-edit-chooser-panel{border-radius:24px;padding:28px}
}

/* Keep recommendation choices compact: departments are grouped above one
   horizontally swipeable, unfilled subcategory rail. */
.rc8-product-step-recommendations .bp-recommend-navigation {
  display:grid;gap:5px;min-width:0;margin-top:0;
}
.rc8-product-step-recommendations .bp-recommend-departments,
.rc8-product-step-recommendations .bp-recommend-category-pills {
  display:flex;align-items:center;gap:14px;min-width:0;overflow-x:auto;overflow-y:hidden;
  white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.rc8-product-step-recommendations .bp-recommend-departments::-webkit-scrollbar,
.rc8-product-step-recommendations .bp-recommend-category-pills::-webkit-scrollbar { display:none; }
.rc8-product-step-recommendations .bp-recommend-department-tab,
.rc8-product-step-recommendations .bp-recommend-category-pill {
  display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;
  min-height:34px;padding:4px 3px;border:0;border-radius:0;background:transparent!important;
  color:#555;font:inherit;font-size:14px;font-weight:600;white-space:nowrap;box-shadow:none;
}
.rc8-product-step-recommendations .bp-recommend-department-tab[aria-pressed="true"] { color:#1d1d1d;font-weight:800; }
.rc8-product-step-recommendations .bp-recommend-category-pill { min-height:30px;font-size:13px;font-weight:500;color:#666; }
.rc8-product-step-recommendations .bp-recommend-category-pill[aria-pressed="true"] { color:#222;font-weight:750;text-decoration:underline;text-decoration-color:#f8781d;text-decoration-thickness:2px;text-underline-offset:5px; }
.rc8-product-step-recommendations .bp-recommend-department-icon { display:inline-flex;align-items:center; }
.rc8-product-step-recommendations .bp-recommend-department-icon svg { width:24px;height:24px; }
.rc8-product-step-recommendations .rc8-recommendation-rail { gap:10px!important;padding:2px 0 5px!important; }
.rc8-product-step-recommendations .rc8-recommendation-rail > button { flex-basis:38%!important;min-width:118px!important; }
.rc8-product-step-recommendations .rc8-recommendation-rail > button img { height:auto;max-height:104px; }
.rc8-product-wizard-main:has(.rc8-product-step-recommendations) { overflow:hidden;padding:12px 18px 8px; }
.rc8-product-step-recommendations { gap:7px; }
.rc8-product-step-recommendations h1 { font-size:clamp(30px,7vw,46px); }
.rc8-product-step-recommendations > p { margin:0;color:#73716c;font-size:15px;line-height:1.35; }
.rc8-product-step-recommendations .rc8-product-step-content { gap:5px;margin-top:0;min-height:0; }
.rc8-product-step-recommendations .rc8-product-step-content > p { margin:2px 0 0;font-size:14px; }
@media(max-height:760px) {
  .rc8-product-wizard-main:has(.rc8-product-step-recommendations) { padding-top:6px; }
  .rc8-product-step-recommendations h1 { font-size:30px; }
  .rc8-product-step-recommendations > p { font-size:14px; }
  .rc8-product-step-recommendations .rc8-recommendation-rail > button img { max-height:78px; }
}

/* Shared Library import: grouped, thumb-friendly list with category and
   subcategory rails; bottom actions track the visual viewport above the keyboard. */
.fx-library {
  position:fixed;inset:auto 0 var(--fx-library-keyboard-inset,0px);width:100%;height:min(92dvh,900px);max-width:none;max-height:none;
  margin:0;border:0;border-radius:24px 24px 0 0;padding:18px 18px max(14px,env(safe-area-inset-bottom));
  box-sizing:border-box;background:#fff;color:#1f1f1f;box-shadow:0 -10px 40px #0002;
}
.fx-library[open] { display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:10px; }
.fx-library::backdrop { background:#17171770;backdrop-filter:blur(4px); }
.fx-library header { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.fx-library header h2 { margin:2px 0 0;font-size:25px;line-height:1.05; }
.fx-library-kicker { color:#85827c;font-size:11px;font-weight:800;letter-spacing:.14em; }
.fx-library [data-close] { flex:0 0 42px;width:42px;height:42px;border:0;border-radius:50%;background:#f2f2ef;color:#222;font-size:28px; }
.fx-library [data-stage] { min-height:0;overflow:hidden;display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr);gap:8px; }
.fx-library-search { display:grid;gap:5px;color:#777;font-size:12px;font-weight:700; }
.fx-library input:not([type=checkbox]),.fx-library select { box-sizing:border-box;width:100%;min-height:46px;border:1px solid #e2e1dd;border-radius:15px;background:#f3f3f1;padding:10px 14px;font:inherit;font-size:16px; }
.fx-library-departments,.fx-library-groups { display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch; }
.fx-library-departments::-webkit-scrollbar,.fx-library-groups::-webkit-scrollbar { display:none; }
.fx-library-department { flex:0 0 auto;min-height:39px;padding:8px 15px;border:0;border-radius:999px;background:#f8781d;color:white;font-weight:700; }
.fx-library-department[aria-pressed="true"] { background:#191919;color:#fff; }
.fx-library-chip { flex:0 0 auto;min-height:30px;padding:4px 3px;border:0;border-radius:0;background:transparent;color:#666;font-size:14px; }
.fx-library-chip[aria-pressed="true"] { color:#222;font-weight:800;text-decoration:underline;text-decoration-color:#f8781d;text-decoration-thickness:2px;text-underline-offset:5px; }
.fx-library-bulk-select { min-height:34px; }
.fx-library-select-group { border:0;background:transparent;color:#444;padding:5px 0;font-weight:750; }
.fx-library-list { min-height:0;overflow:auto;overscroll-behavior:contain;border-radius:16px;background:#f5f5f3; }
.fx-library-item { display:flex;align-items:center;gap:11px;min-height:62px;padding:8px 10px;border-bottom:1px solid #e7e6e2; }
.fx-library-item:last-child { border-bottom:0; }
.fx-library-item input[type=checkbox] { appearance:auto;flex:0 0 20px;width:20px;height:20px;accent-color:#f8781d; }
.fx-library-item img { flex:0 0 52px;border-radius:12px;object-fit:contain;background:#fff; }
.fx-library-item-copy { display:grid;gap:3px;min-width:0;flex:1; }
.fx-library-item-copy strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.fx-library-item-copy small,.fx-library-exists { color:#777;font-size:12px; }
.fx-library-exists { color:#18804b;white-space:nowrap; }
.fx-library-status { min-height:18px;margin:0;color:#777;font-size:13px; }
.fx-library footer { position:sticky;bottom:0;display:flex;justify-content:space-between;gap:10px;padding-top:8px;background:rgba(255,255,255,.97); }
.fx-library footer button { min-height:48px;padding:0 16px;border:0;border-radius:16px;background:#f1f1ef;color:#222;font:inherit;font-weight:750; }
.fx-library footer .fx-library-primary { margin-left:auto;background:#1e1e1e;color:#fff; }
.fx-library footer button:disabled { opacity:.45; }
.fx-library-config-help { margin:0;color:#777;font-size:14px; }
.fx-library-price-groups { overflow:auto;min-height:0;display:grid;align-content:start;gap:9px; }
.fx-library-price-group { display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:11px;border-radius:16px;background:#f4f4f2; }
.fx-library-price-group strong { font-size:14px; }
.fx-library-target { display:grid;gap:6px;font-size:13px;font-weight:750; }
@media(min-width:700px) { .fx-library { left:50%;right:auto;bottom:50%;transform:translate(-50%,50%);width:min(92vw,620px);height:min(88dvh,780px);border-radius:24px; } }

.fx-library [data-stage]:has(.fx-library-price-groups) { grid-template-rows:auto auto minmax(0,1fr); }

/* Restore the shared photo step: centered preview, controls below. */
.rc8-product-step-image .image-picker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 12px;
}
.rc8-product-step-image .product-image-preview-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-width: 0;
}
.rc8-product-step-image .image-preview {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 5 / 4 !important;
  background: #fff;
}
.rc8-product-step-image .image-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center;
}
.rc8-product-step-image .image-picker-actions {
  width: 100%;
  max-width: 480px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.rc8-product-step-image .image-picker-actions input[type="file"] {
  display: none !important;
}
.rc8-product-step-image .image-picker-actions .soft-button {
  justify-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 10px;
  text-align: center;
}
.rc8-product-step-image .product-image-standard {
  width: 100%;
  max-width: 480px;
  text-align: center;
}
