/* Generated from styles.css; edit the source, then prepare-frontend.py. */

body.variant-id-modal-open{
  overflow: hidden;
}

/* codex-desktop-catalog-category-menu-regular-plus-1px-20260526 */
@media (min-width: 901px) {
  #editorView .category-menu-name,
  #editorView .category-menu-count {
    font-size: var(--crm-navigation-font-size, 14px);
    font-weight: var(--crm-navigation-font-weight, 400);
  }
  #editorView .category-menu-group-name {
    font-size: var(--crm-navigation-font-size, 15px);
    font-weight: var(--crm-navigation-font-weight, 700);
  }
  #editorView .category-menu-group-toggle > .category-menu-count {
    display: none;
  }}

.editor-catalog-title {
  display: grid;
  align-content: end;
  min-height: 84.390625px;
  margin-bottom: 12px;
  padding-bottom: 2px;
}

.editor-catalog-title.content-layer-title {
  align-content: start;
}

.editor-category-menu {
  top: 112px;
  padding: 16px;
}

.editor-category-menu .category-menu-list {
  max-height: calc(100vh - 192px);
}

.photo-thumb {
  display: block;
  aspect-ratio: 3 / 2;
  width: calc(100% + 20px);
  max-width: none;
  margin: -10px -10px 0;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.92);
}

.editor-area {
  padding: 22px 0 24px;
  min-width: 0;
}

.editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.editor-header > div:first-child {
  min-width: 0;
}

.editor-source-updated {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
}

.editor-back-button {
  white-space: nowrap;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 12px;
  align-items: start;
}

.editor-grid.category-settings-mode {
  grid-template-columns: minmax(0, 1fr);
}

.editor-main-stack {
  grid-column: 1;
  display: grid;
  min-width: 0;
  gap: var(--editor-panel-gap, 12px);
}

@media (min-width: 901px) {

  html.crm-content-embedded .product-flag-switch-track {
    border-color: var(--crm-palette-muted);
    background: var(--crm-palette-selection);
    box-shadow: none;
  }

  html.crm-content-embedded .product-flag-switch-thumb {
    background: var(--crm-palette-secondary);
    box-shadow: none;
  }

  html.crm-content-embedded .product-flag-switch-control input:checked + .product-flag-switch-track {
    border-color: var(--crm-palette-lime);
    background: var(--crm-palette-lime);
  }

  html.crm-content-embedded .product-flag-switch-control input:checked + .product-flag-switch-track .product-flag-switch-thumb {
    background: var(--crm-palette-workspace);
  }}

.variant-summary-panel.product-overview-sizes {
  align-items: stretch;
  border: 0;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.variant-summary-panel.product-overview-sizes .variant-table {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.variant-summary-panel.product-overview-sizes .variant-row {
  padding-inline: 18px;
}

.variant-summary-panel,
.geometry-panel{
  grid-column: 1;
}

.geometry-panel {
  display: grid;
  gap: 14px;
  border-color: rgba(255, 255, 255, 0.62);
  background: #fff;
  color: var(--ink);
}

.geometry-panel .panel-title {
  margin-bottom: 0;
}

.geometry-panel .panel-title h3 {
  color: var(--ink);
}

.geometry-refresh-button {
  min-height: auto;
  padding: 4px 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.geometry-refresh-button:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--ink);
  transform: none;
}

.geometry-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.geometry-status a {
  color: var(--ink);
  text-decoration-color: rgba(9, 8, 17, 0.42);
}

.geometry-content {
  display: grid;
  gap: 12px;
}

.geometry-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(88, 66, 139, 0.24);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

html.crm-content-embedded .geometry-empty {
  padding: 0;
  border: 0;
  background: transparent;
}

.geometry-head {
  display: flex;
  justify-content: flex-end;
}

.geometry-source {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.geometry-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.geometry-size-picker {
  min-width: 160px;
  border-color: rgba(88, 66, 139, 0.18);
  background: #fff;
  color: var(--ink);
}

.geometry-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr);
  gap: 12px;
  align-items: stretch;
}

.geometry-visual {
  min-width: 0;
  min-height: 100%;
  border: 1px solid rgba(88, 66, 139, 0.14);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.geometry-diagram {
  min-width: 0;
  aspect-ratio: 1280 / 789;
  background: #fff;
}

.geometry-diagram svg,
.geometry-diagram img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.geometry-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(88, 66, 139, 0.14);
  border-radius: 8px;
  background: #fff;
}

.geometry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.geometry-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(88, 66, 139, 0.12);
}

.geometry-table tr:last-child td {
  border-bottom: 0;
}

.geometry-table td:first-child {
  color: var(--muted);
}

.geometry-table td:last-child {
  text-align: right;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.variant-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid rgba(88, 66, 139, 0.14);
  padding-top: 12px;
}

.variant-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.variant-panel-head h4 {
  margin: 0;
  font-size: 14px;
}

.variant-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.variant-table {
  display: grid;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(88, 66, 139, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
}

.variant-row {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns:
    minmax(50px, 0.42fr)
    minmax(112px, 1fr)
    minmax(112px, 0.86fr)
    minmax(112px, 0.86fr)
    minmax(82px, 0.62fr)
    minmax(42px, 0.36fr)
    minmax(50px, 0.4fr)
    minmax(42px, 0.36fr)
    minmax(48px, 0.38fr)
    minmax(42px, 0.36fr)
    minmax(58px, 0.46fr)
    minmax(52px, 0.4fr);
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(88, 66, 139, 0.12);
  background: transparent;
  padding: 8px 10px;
  font-size: 12px;
}

.variant-row:first-child {
  border-top: 0;
}

.variant-row span,
.variant-row b {
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.variant-row strong,
.variant-row em,
.variant-row .variant-onec-id,
.variant-row .variant-barcode,
.variant-row .variant-base-price,
.variant-row .variant-warehouse-stock {
  min-width: 0;
  overflow-wrap: anywhere;
  font-style: normal;
}

.variant-row strong {
  color: var(--muted);
  font-weight: 700;
}

.variant-sku-cell {
  min-width: 0;
}

.variant-sku-button {
  appearance: none;
  display: inline;
  max-width: 100%;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(117, 66, 217, 0.36);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.variant-sku-button:hover,
.variant-sku-button:focus-visible {
  color: #7542d9;
  text-decoration-color: currentColor;
}

.variant-sku-button:focus-visible {
  outline: 2px solid rgba(117, 66, 217, 0.32);
  outline-offset: 3px;
}

.variant-row .variant-onec-id {
  color: var(--muted);
  font-weight: 700;
}

.variant-row .variant-barcode {
  color: var(--muted);
  font-weight: 700;
}

.variant-row .variant-base-price {
  color: var(--muted);
  font-weight: 700;
}

.variant-row .variant-warehouse-stock {
  color: var(--muted);
  font-weight: 700;
}

.variant-row-head {
  background: rgba(24, 28, 35, 0.06);
  border-color: rgba(24, 28, 35, 0.08);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  padding-bottom: 16px;
  text-transform: uppercase;
}

.variant-row-head + .variant-row {
  padding-top: 16px;
}

.variant-row-head strong,
.variant-row-head em,
.variant-row-head .variant-onec-id,
.variant-row-head .variant-barcode,
.variant-row-head .variant-base-price,
.variant-row-head .variant-warehouse-stock,
.variant-row-head b {
  color: var(--muted);
}

@media (min-width: 901px) {
  .variant-row {
    gap: 6px;
    padding-inline: 8px;
  }

  .variant-row strong,
  .variant-row .variant-barcode {
    font-size: 11px;
    line-height: 1.15;
  }

  /* codex-variant-table-plain-text-labels-20260609 */
  .variant-panel,
  .variant-panel-head h4,
  .variant-panel-head span,
  .variant-table,
  .variant-row,
  .variant-row span,
  .variant-row strong,
  .variant-row em,
  .variant-row b,
  .variant-row .variant-onec-id,
  .variant-row .variant-barcode,
  .variant-row .variant-base-price,
  .variant-row .variant-warehouse-stock,
  .variant-row-head,
  .variant-row-head strong,
  .variant-row-head em,
  .variant-row-head .variant-onec-id,
  .variant-row-head .variant-barcode,
  .variant-row-head .variant-base-price,
  .variant-row-head .variant-warehouse-stock,
  .variant-row-head b{
    color: #222;
    font-weight: 400;
  }

  /* codex-variant-stock-values-center-no-unit-20260609 */
  .variant-row .variant-warehouse-stock,
  .variant-row > b {
    justify-self: stretch;
    text-align: center;
  }

  /* codex-desktop-variant-id-barcode-in-article-modal-20260610 */
  .variant-row .variant-onec-id,
  .variant-row .variant-barcode {
    display: none;
  }}

.variant-summary-panel.product-overview-sizes .variant-row-head {
  min-height: 50.4px;
  align-items: center;
  border: 0;
  background: #f9f9f9;
  color: #222;
  padding-block: 0;
}

.variant-summary-panel.product-overview-sizes .variant-row-head span,
.variant-summary-panel.product-overview-sizes .variant-row-head strong,
.variant-summary-panel.product-overview-sizes .variant-row-head em,
.variant-summary-panel.product-overview-sizes .variant-row-head .variant-onec-id,
.variant-summary-panel.product-overview-sizes .variant-row-head .variant-barcode,
.variant-summary-panel.product-overview-sizes .variant-row-head .variant-base-price,
.variant-summary-panel.product-overview-sizes .variant-row-head .variant-warehouse-stock,
.variant-summary-panel.product-overview-sizes .variant-row-head b {
  color: #222;
  line-height: 1.1;
}

.variant-show-all-sizes {
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(88, 66, 139, 0.12);
  padding: 13px 18px 15px;
}

.variant-show-all-sizes-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  padding: 0;
  text-align: center;
}

.variant-show-all-sizes-button:hover,
.variant-show-all-sizes-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.variant-show-all-sizes-button:focus-visible {
  outline: 2px solid rgba(117, 66, 217, 0.32);
  outline-offset: 4px;
}

.variant-empty {
  color: var(--muted);
  font-size: 13px;
}

.variant-id-modal {
  width: min(430px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.variant-id-modal::backdrop {
  background: rgba(0, 0, 0, 0.38);
}

.variant-id-modal-card {
  overflow: hidden;
  border: 1px solid rgba(24, 28, 35, 0.14);
  border-radius: 8px;
  background: #fff;
}

.variant-id-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(24, 28, 35, 0.1);
  padding: 20px 22px 16px;
}

.variant-id-modal-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.variant-id-modal-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.variant-id-modal-close {
  appearance: none;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(24, 28, 35, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.variant-id-modal-close:hover,
.variant-id-modal-close:focus-visible {
  border-color: rgba(117, 66, 217, 0.38);
  color: #7542d9;
}

.variant-id-modal-close:focus-visible {
  outline: 2px solid rgba(117, 66, 217, 0.22);
  outline-offset: 2px;
}

.variant-id-modal-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.variant-id-modal-list > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(24, 28, 35, 0.08);
  padding: 16px 22px;
}

.variant-id-modal-list > div:first-child {
  border-top: 0;
}

.variant-id-modal-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.variant-id-modal-list dd {
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.photo-card {
  position: relative;
  border: 1px solid rgba(88, 66, 139, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  padding: 10px;
  cursor: grab;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 140ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-grid.drag-sorting {
  user-select: none;
}

.photo-grid.drag-sorting .photo-card {
  will-change: transform;
}

.photo-card:active {
  cursor: grabbing;
}

.photo-card.dragging {
  opacity: 1;
  transform: none;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.1);
  z-index: 2;
}

.photo-card.drop-before,
.photo-card.drop-after {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
}

.photo-card.drop-before::before,
.photo-card.drop-after::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
}

.photo-card.drop-before::before {
  top: -8px;
}

.photo-card.drop-after::before {
  bottom: -8px;
}

.photo-preview,
.photo-details {
  display: contents;
}

html.crm-content-embedded .photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
}

html.crm-content-embedded .photo-card {
  border-radius: 0;
  /* A final portrait tile must consume all remaining space in its row. */
  flex: max(1, var(--photo-ratio, 1.5)) 1 calc(140px * var(--photo-ratio, 1.5));
  min-width: 0;
  padding: 0;
}

html.crm-content-embedded .photo-preview {
  position: relative;
  display: block;
}

html.crm-content-embedded .photo-preview .photo-thumb {
  border-radius: 0;
  width: 100%;
  height: auto;
  aspect-ratio: var(--photo-ratio, 1.5);
  margin: 0;
  background: transparent;
}

html.crm-content-embedded .photo-card .photo-details {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 8px 12px;
  background: rgb(0 0 0 / 80%);
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

html.crm-content-embedded .photo-card:is(:hover, :focus-within) .photo-details {
  opacity: 1;
  pointer-events: auto;
}

html.crm-content-embedded .photo-details input[data-photo-alt] {
  margin-top: 0;
  color: inherit;
}

html.crm-content-embedded .photo-details .photo-stats {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  min-height: 0;
  color: var(--crm-palette-secondary, #cdcdcd);
}

html.crm-content-embedded .photo-details .photo-stats > span + span::before {
  content: "·";
  margin-right: 6px;
}

.photo-card input {
  margin-top: 8px;
  cursor: text;
}

.photo-card input[data-photo-alt] {
  min-height: 24px;
  padding: 0;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.photo-card input[data-photo-alt]:focus {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.photo-stats {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  min-height: 42px;
  padding-right: 96px;
  color: var(--muted);
  font-size: 12px;
}

.photo-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
  z-index: 1;
}

.photo-actions-left,
.photo-actions-right {
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.photo-actions-left {
  margin-right: auto;
}

.photo-actions .icon-button {
  border-color: rgba(88, 66, 139, 0.12);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
  color: rgba(9, 8, 17, 0.72);
  opacity: 0.78;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.photo-actions .icon-button:hover,
.photo-actions .icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.74);
  color: rgba(9, 8, 17, 0.88);
  opacity: 1;
}

/* Undo and processing occupy the same slot immediately before the brush. */
.photo-color-history {
  position: absolute;
  right: 60px;
  bottom: 12px;
}
.photo-color-progress { pointer-events: none; }
.photo-color-progress svg { animation: photo-color-spin 900ms linear infinite; }
html.crm-content-embedded .photo-card--color-history .photo-details {
  opacity: 1;
  pointer-events: auto;
}

.photo-optimize-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-color: rgba(88, 66, 139, 0.12);
  background: rgba(255, 255, 255, 0.54);
  color: rgba(9, 8, 17, 0.72);
  opacity: 0.82;
  backdrop-filter: blur(6px);
}

.photo-optimize-button:hover,
.photo-optimize-button:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  color: rgba(9, 8, 17, 0.9);
  opacity: 1;
}

.photo-card--optimizing .photo-optimize-button {
  opacity: 0.5;
}

.photo-copy-button {
  color: var(--ink);
}

.photo-download-original-button {
  color: var(--ink);
  text-decoration: none;
}

/* codex-photo-lightbox-modal-desktop-20260524 */
@media (min-width: 901px) {
  body.photo-lightbox-open {
    overflow: hidden;
  }

  .photo-thumb {
    cursor: zoom-in;
  }

  .photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 40px;
    background: rgba(9, 8, 17, 0.78);
  }

  .photo-lightbox-stage {
    position: relative;
    display: grid;
    place-items: center;
    max-width: 96vw;
    max-height: 92vh;
  }

  .photo-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    object-fit: contain;
  }

  .photo-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    outline: 0;
    background: rgba(0, 0, 0, 0.46);
    box-shadow: none;
    color: transparent;
    font-size: 0;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }

  .photo-lightbox-close::before,
  .photo-lightbox-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 4px;
    border-radius: 999px;
    background: rgba(229, 231, 235, 0.74);
    transform-origin: center;
  }

  .photo-lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .photo-lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .photo-lightbox-close:hover,
  .photo-lightbox-close:focus-visible {
    background: rgba(0, 0, 0, 0.62);
    outline: 0;
    box-shadow: none;
  }

  .photo-lightbox-close:hover::before,
  .photo-lightbox-close:hover::after,
  .photo-lightbox-close:focus-visible::before,
  .photo-lightbox-close:focus-visible::after {
    background: rgba(243, 244, 246, 0.86);
  }}

.accounting-heading .editor-source-updated {
  margin: 0;
}

@media (max-width: 1100px) {

  .editor-area {
    padding: 22px 16px 24px;
  }

  .editor-category-menu {
    position: static;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }
  .variant-summary-panel,
  .geometry-panel{
    grid-column: auto;
    grid-row: auto;
    position: static;
  }}

@media (max-width: 900px) {
  .editor-header{
    grid-template-columns: 1fr;
    display: grid;
  }
  .editor-area{
    padding-left: 16px;
    padding-right: 16px;
  }
  .geometry-layout {
    grid-template-columns: 1fr;
  }

  .geometry-size-picker {
    width: 100%;
  }

  .geometry-panel .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .geometry-refresh-button {
    width: auto;
  }

  .variant-summary-panel .panel-title{
    align-items: flex-start;
    flex-direction: column;
  }

  .variant-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .variant-row {
    grid-template-columns: minmax(42px, 0.35fr) minmax(0, 1fr);
  }

  .variant-row-head {
    display: none;
  }

  .variant-row-head + .variant-row {
    border-top: 0;
    padding-top: 8px;
  }

  .variant-row .variant-barcode,
  .variant-row .variant-onec-id,
  .variant-row .variant-base-price,
  .variant-row em,
  .variant-row b {
    grid-column: 2;
  }

  .variant-row .variant-onec-id {
    display: none;
  }

  .variant-row .variant-warehouse-stock {
    grid-column: 2;
  }

  .variant-row .variant-warehouse-stock.is-empty {
    display: none;
  }

  .variant-row .variant-warehouse-stock::before {
    content: attr(data-label) " ";
    color: var(--muted);
    font-weight: 600;
  }}

html.crm-content-embedded{
  --crm-row-base-height: var(--crm-embedded-row-height, 55px);
}
html.crm-content-embedded{
  --crm-menu-row-height: calc(var(--crm-row-base-height, 55px) * 0.575);
  --crm-list-row-height: var(--crm-menu-row-height);
}
@media (min-width: 768px) { html.crm-content-embedded body { --crm-search-icon-size: 25.3px; }}

html.crm-content-embedded body .app-shell > .topbar {
  display: none !important;
}

html.crm-content-embedded body {
  margin: 0;
  padding: 0;
  background: var(--crm-palette-workspace, #202124);
}

html.crm-content-embedded .app-shell {
  max-width: none;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.crm-content-embedded{
  --crm-second-menu-background: var(--crm-palette-panel, #202124);
}

html.crm-content-embedded {
  color-scheme: dark;
  --ink: var(--crm-palette-text, #f4f5f7);
  --muted: var(--crm-palette-muted, #b8bbc2);
  --surface: var(--crm-palette-workspace, #292a2d);
  --surface-solid: var(--crm-palette-panel, #202124);
  --surface-soft: var(--crm-palette-workspace, #242528);
  --line: var(--crm-palette-divider, #3b3d40);
  --line-strong: var(--crm-palette-divider, #4c4e52);
}
html.crm-content-embedded :is(.app-shell, .app-main, #catalogView, .catalog-table-wrap) {
  background: var(--crm-palette-workspace, #202124);
  color: var(--ink);
}
html.crm-content-embedded body #catalogView :is(.catalog-head, .catalog-panel, .category-menu, .sync-panel > button, .sync-filter-card, .metric-card, th, td, input, select) {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--line);
}
html.crm-content-embedded body #catalogView :is(.catalog-table-wrap, .catalog-table tbody td) { background: var(--surface-soft); }
html.crm-content-embedded body #catalogView .catalog-table tbody tr:hover td { background: var(--surface); }

html.crm-content-embedded #catalogView .catalog-panel:has(td.empty-cell) {
  background: var(--surface-soft);
}

html.crm-content-embedded body #catalogView .catalog-table tbody td.empty-cell {
  background: var(--surface-soft);
  border-bottom: 0;
}

html.crm-content-embedded body .topbar :is(.topbar-search input, .topbar-health-widget) {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}

html.crm-content-embedded body .topbar :is(.topbar-health-widget-pill, .topbar-search-icon),
html.crm-content-embedded body #catalogView :is(.category-menu-item, .sync-filter-card, .metric-card):is(:hover, :focus-visible) {
  background: var(--surface);
  color: var(--ink);
}

html.crm-content-embedded body .topbar :is(.topbar-actions button, .topbar-menu-button) {
  color: var(--ink);
}

html.crm-content-embedded body .topbar .topbar-search input::placeholder,
html.crm-content-embedded body .topbar .topbar-health-widget-copy span {
  color: var(--muted);
}

html.crm-content-embedded body #catalogView :is(.sync-filter-card, .metric-filter-card)[aria-pressed="true"],
html.crm-content-embedded body #catalogView .category-menu-item.active {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

html.crm-content-embedded #topbarHealthWidget{
  display: none !important;
}

html.crm-content-embedded #catalogView {
  --content-footer-height: var(--crm-menu-row-height, 27.5px);
  padding-bottom: var(--content-footer-height);
}

html.crm-content-embedded #catalogView .catalog-head,
html.crm-content-embedded #catalogView .catalog-sidebar-metrics {
  display: none;
}

html.crm-content-embedded body:has(#catalogView:not(.is-hidden)) :is(.catalog-layout, .catalog-panel) {
  margin-top: 0;
}

html.crm-content-embedded #catalogView .crm-content-footer {
  position: fixed;
  inset: auto 0 0 var(--content-footer-start, 0px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--content-footer-height);
  box-sizing: border-box;
  padding: 0 16px;
  padding-inline-start: var(--content-footer-padding, 16px);
  overflow-x: auto;
  background: var(--crm-palette-panel, #1c1d20);
  border-top: 1px solid rgb(255 255 255 / 20%);
}

html.crm-content-embedded body #catalogView .crm-content-footer :is(.sync-filter-card, .metric-card) {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row-reverse;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
}

html.crm-content-embedded #catalogView .crm-content-footer :is(strong, span, p) {
  margin: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.3;
}

html.crm-content-embedded body #catalogView .crm-content-footer button:is(:hover, :focus-visible, [aria-pressed="true"]) {
  background: var(--surface);
}

html.crm-content-embedded #catalogView .crm-content-footer button[aria-pressed="true"] {
  color: #d6f56b;
}

html.crm-content-embedded #catalogView {
  padding: 0 0 var(--content-footer-height);
}

html.crm-content-embedded :is(#catalogView, #editorView) :is(.catalog-sidebar, .product-sidebar-categories) {
  position: sticky;
  top: 0;
  display: block;
  height: calc(100dvh - var(--content-footer-height));
  max-height: none;
  border-inline-end: 1px solid var(--line);
}

html.crm-content-embedded body :is(#catalogView, #editorView) .category-menu {
  position: static;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

html.crm-content-embedded :is(#catalogView, #editorView) :is(.category-menu-list, .category-menu-group, .category-menu-children, .category-menu-nested, .category-menu-grandchildren) {
  gap: 0;
  padding-block: 0;
}

html.crm-content-embedded :is(#catalogView, #editorView) .category-menu-list {
  align-content: start;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  scrollbar-color: var(--line-strong) transparent;
}

html.crm-content-embedded :is(#catalogView, #editorView) :is(.category-menu-group-toggle, .category-menu-item) {
  box-sizing: border-box;
  width: 100%;
  height: var(--crm-section-menu-row-height, 55px);
  min-height: 0;
  padding-block: 0;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  border-radius: 0;
  box-shadow: none;
}

html.crm-content-embedded :is(#catalogView, #editorView) :is(.category-menu-group-toggle, .category-menu-item:not(.is-child, .is-branch, .is-grandchild, .is-fourth-level)) {
  padding-inline-start: 24px;
}

html.crm-content-embedded :is(#catalogView, #editorView) :is(.category-menu-group-toggle:hover, .category-menu-group.has-active > .category-menu-group-toggle, .category-menu-nested.has-active > .category-menu-item.is-branch) {
  background: var(--surface);
}

@media (max-width: 900px) {
  html.crm-content-embedded :is(#catalogView, #editorView) :is(.catalog-sidebar, .product-sidebar-categories) {
    position: static;
    height: auto;
    max-height: 40dvh;
    overflow: auto;
    border-inline-end: 0;
  }}

html.crm-content-embedded #catalogView {
  --content-table-header-height: var(--content-row-height);
  padding: 0 0 var(--content-footer-height);
}
html.crm-content-embedded #catalogView .catalog-table-wrap {
  border-radius: 0;
  box-shadow: none;
}
html.crm-content-embedded #catalogView .catalog-table thead tr {
  height: var(--content-table-header-height);
}

html.crm-content-embedded body #catalogView .catalog-table th {
  box-sizing: border-box;
  height: var(--content-table-header-height);
  padding-block: 0;
  border-bottom: 1px solid var(--content-row-divider);
  background: var(--surface-solid);
}
@media (min-width: 901px) {
  html.crm-content-embedded #catalogView .catalog-layout {
    background: linear-gradient(var(--crm-palette-workspace, #1c1d20), var(--crm-palette-workspace, #1c1d20)) top / 100% var(--content-table-header-height) no-repeat;
  }
  html.crm-content-embedded #catalogView .catalog-sidebar {
    padding: calc(var(--content-table-header-height) + 0px) 0 0 0;
  }
  html.crm-content-embedded #catalogView .catalog-sidebar::before {
    content: "";
    position: absolute;
    inset: calc(var(--content-table-header-height) - 1px) -12px auto 0;
    border-bottom: 1px solid rgb(255 255 255 / 20%);
  }}

@media (min-width: 901px) {
  html.crm-content-embedded #catalogView.crm-content-card-open #catalogLayout > .catalog-sidebar {
    border-inline-end-color: var(--content-row-divider);
  }}

html.crm-content-embedded #catalogView #catalogLayout > :is(.catalog-sidebar, .catalog-subcategories) {
  background: var(--crm-menu-background, var(--crm-palette-panel, #1c1d20));
}

html.crm-content-embedded #catalogView #catalogLayout :is(.category-menu, .crm-category-menu-footer, .crm-subcategory-menu-footer) {
  background: var(--crm-menu-background, var(--crm-palette-panel, #1c1d20));
}

html.crm-content-embedded #catalogView .catalog-subcategories[hidden] {
  display: none;
}

html.crm-content-embedded #catalogView .catalog-layout:has(.catalog-subcategories:not([hidden])) {
  grid-template-columns: repeat(2, minmax(0, clamp(140px, 19%, 280px))) minmax(0, 1fr);
  gap: 0;
}

html.crm-content-embedded #catalogView .catalog-layout:has(.catalog-subcategories:not([hidden])) .catalog-sidebar {
  padding: 0;
}

html.crm-content-embedded #catalogView .catalog-layout:has(.catalog-subcategories:not([hidden])) .catalog-sidebar::before {
  content: none;
}

html.crm-content-embedded #catalogView .catalog-subcategories .category-menu-item.is-child {
  padding-inline-start: var(--content-menu-inset);
}

html.crm-content-embedded #catalogView .catalog-subcategories .category-menu-item.is-grandchild {
  padding-inline-start: 36px;
}

html.crm-content-embedded #catalogView .catalog-subcategories .category-menu-item.is-fourth-level {
  padding-inline-start: 48px;
}

html.crm-content-embedded body #catalogView .catalog-sidebar :is(.category-menu-group-toggle.is-open, .category-menu-item.active) {
  background: var(--crm-palette-workspace, #18191c);
  color: var(--ink);
}

@media (max-width: 900px) {
  html.crm-content-embedded #catalogView .catalog-layout:has(.catalog-subcategories:not([hidden])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.crm-content-embedded #catalogView .catalog-panel {
    grid-column: 1 / -1;
  }}

html.crm-content-embedded body #editorView {
  --content-footer-height: 0px;
  color: var(--ink);
  background: var(--surface-solid);
  --crm-card-inset-start: 0px;
  --crm-card-inset-end: 16px;
  padding: 0;
  padding-inline: var(--crm-card-inset-start) var(--crm-card-inset-end);
}

html.crm-content-embedded #editorView .product-sidebar-categories {
  box-sizing: border-box;
  padding: 0;
}

html.crm-content-embedded #editorView .accounting-heading h2 .product-site-link-button {
  background: transparent;
  color: var(--crm-palette-text, #fff);
}

html.crm-content-embedded #editorView .editor-area {
  padding-block: 12px 0;
}

html.crm-content-embedded body #editorView.workspace:not(.is-hidden) :is(.panel, .variant-id-modal-card, .description-preview, .settings-category-woo-card, .upload-zone, .variant-row-head) {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--line);
  box-shadow: none;
}

html.crm-content-embedded body #editorView :is(input:not([type="checkbox"], [type="radio"]), select, textarea, [contenteditable="true"]) {
  color: var(--ink);
  background: var(--surface-solid);
  border-color: var(--line-strong);
}

html.crm-content-embedded body #editorView :is(.variant-row, .spec-row, .content-tabs-row) {
  border-color: var(--line);
}

html.crm-content-embedded body #editorView :is(.variant-row > *, .spec-row > *, .product-site-link, .content-tab, .description-format-button, .description-mode-tab) {
  color: var(--ink);
}

html.crm-content-embedded #editorView .description-format-toolbar {
  border-color: transparent;
  background: transparent;
}

html.crm-content-embedded body #editorView .content-tabs-row :is(.content-tab, .description-format-button, .description-mode-tab) {
  background: transparent;
  border-color: transparent;
}

html.crm-content-embedded body #editorView .content-tabs-row :is(.content-tab, .description-format-button, .description-mode-tab):focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -2px;
}

html.crm-content-embedded body #editorView .variant-id-modal-close {
  background: var(--surface);
  border-color: var(--line);
}

html.crm-content-embedded body #editorView :is(.content-tab.active, .description-mode-tab.active) {
  color: #d6f56b;
}

html.crm-content-embedded body #editorView .validation-panel {
  background: var(--surface-soft);
  color: var(--ink);
}

html.crm-content-embedded #catalogView {
  --content-row-height: var(--crm-section-menu-row-height, 55px);
  --content-menu-inset: 24px;
  --content-thumb-size: calc((var(--content-row-height) - 8px) * 0.81);
  --content-thumb-gap: 28px;
  --content-row-divider: var(--crm-retail-row-divider, var(--crm-divider-color, rgb(255 255 255 / 6%)));
}

html.crm-content-embedded #catalogView .catalog-table {
  background: var(--surface-soft);
  border-collapse: separate;
  border-spacing: 0;
}

html.crm-content-embedded body #catalogView .catalog-table th,
html.crm-content-embedded body #catalogView .catalog-table tbody td,
html.crm-content-embedded #catalogView :is(.category-menu-group-toggle, .category-menu-item) {
  border-bottom: 1px solid var(--content-row-divider);
}

html.crm-content-embedded #catalogView .catalog-sidebar:not(.catalog-fourth-menu) :is(.category-menu-group-toggle, .category-menu-item) {
  border-bottom-color: transparent;
}

html.crm-content-embedded #catalogView .catalog-table tbody tr.clickable-row > td {
  box-sizing: border-box;
  height: var(--content-row-height);
  padding-block: 0;
}

html.crm-content-embedded #catalogView .catalog-table :is(.catalog-product-column-head, td:has(> .table-product)) {
  box-sizing: border-box;
  width: 450px;
  max-width: 450px;
}

html.crm-content-embedded #catalogView .catalog-table td:has(> .table-product) {
  padding-inline-start: var(--content-menu-inset);
}

html.crm-content-embedded #catalogView .table-product {
  column-gap: var(--content-thumb-gap);
  grid-template-columns: var(--content-thumb-size) minmax(0, 1fr);
  min-height: 0;
  line-height: 1;
}

html.crm-content-embedded body #catalogView .catalog-table .catalog-product-column-head {
  color: var(--ink);
  padding-inline-start: var(--content-menu-inset);
}

html.crm-content-embedded #catalogView .catalog-product-head {
  padding-inline-start: 0;
}

html.crm-content-embedded #catalogView .catalog-thumbnail-heading {
  display: grid;
  place-items: center;
  flex: 0 0 var(--content-thumb-size);
  margin-inline-end: calc(var(--content-thumb-gap) - 12px);
}

html.crm-content-embedded[data-crm-hidden-columns~="thumbnails"] #catalogView .catalog-thumbnail-heading{
  display: none;
}

html.crm-content-embedded #catalogView th.catalog-discount-price {
  text-align: left;
}

html.crm-content-embedded #catalogView .table-thumb {
  border-radius: 6px;
  width: var(--content-thumb-size);
  height: var(--content-thumb-size);
}

html.crm-content-embedded #catalogView .table-product > div {
  min-width: 0;
}

html.crm-content-embedded #catalogView .table-product :is(.table-product-title-link, strong) {
  max-width: none;
}

html.crm-content-embedded #catalogView .table-product-title-link:is(:hover, :focus-visible) strong {
  color: var(--ink);
}

html.crm-content-embedded #catalogView .catalog-sizes-cell {
  box-sizing: border-box;
  width: 140px;
  min-width: 140px;
  white-space: nowrap;
}

html.crm-content-embedded #catalogView .catalog-select-hitbox {
  display: flex;
  height: calc(var(--content-row-height) - 1px);
  min-height: 0;
  margin: 0;
}

html.crm-content-embedded body :is(#catalogView, #editorView),
html.crm-content-embedded body :is(#catalogView, #editorView) * {
  font-weight: 400 !important;
}

html.crm-content-embedded #catalogView .catalog-layout:has(.catalog-subcategories:not([hidden])) {
  grid-template-columns: 84px minmax(0, clamp(140px, 19%, 280px)) minmax(0, 1fr);
}

html.crm-content-embedded #catalogView .catalog-sidebar .crm-category-icon-button {
  justify-content: center;
  padding-inline: 0;
}

html.crm-content-embedded #catalogView :is(.crm-category-icon-button svg, .crm-subcategory-icon) {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  html.crm-content-embedded #catalogView .catalog-layout:has(.catalog-subcategories:not([hidden])) {
    grid-template-columns: 84px minmax(0, 1fr);
  }}

html.crm-content-embedded #catalogLayout:has(.catalog-subcategories:not([hidden])) > .catalog-sidebar:not([hidden]) {
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--crm-menu-row-height, 27.5px);
  gap: 0;
  box-sizing: border-box;
}

html.crm-content-embedded #catalogLayout:has(.catalog-subcategories:not([hidden])) .crm-category-menu-footer {
  display: block;
  grid-row: 2;
  position: relative;
  box-sizing: border-box;
  background: inherit;
  border-top: 0;
}
html.crm-content-embedded #catalogLayout:not(.crm-category-menu-expanded) #crmCategoryMenuToggle,
html.crm-content-embedded #catalogLayout.crm-subcategory-menu-collapsed #crmSubcategoryMenuToggle,
html.crm-content-embedded #catalogLayout.crm-fourth-menu-collapsed #crmFourthMenuToggle {
  justify-items: center;
  padding-inline: 0;
}
html.crm-content-embedded #catalogLayout:not(.crm-category-menu-expanded) #crmCategoryMenuToggle svg {
  transform: rotate(180deg);
}

html.crm-content-embedded #catalogLayout:not(.crm-category-menu-expanded) .crm-category-icon-button > :not(svg),
html.crm-content-embedded #catalogLayout.crm-category-menu-expanded .crm-category-icon-button > svg {
  display: none;
}

html.crm-content-embedded #catalogLayout.crm-category-menu-expanded .crm-category-icon-button {
  justify-content: flex-start;
  padding-inline: 24px;
}

html.crm-content-embedded #catalogLayout.crm-category-menu-expanded:has(.catalog-subcategories:not([hidden])) {
  grid-template-columns: repeat(2, minmax(0, clamp(140px, 19%, 280px))) minmax(0, 1fr);
}

@media (max-width: 900px) {
  html.crm-content-embedded #catalogLayout.crm-category-menu-expanded:has(.catalog-subcategories:not([hidden])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}

html.crm-content-embedded #editorGrid {
  grid-template-columns: minmax(0, 1fr);
}

html.crm-content-embedded #validationStack {
  display: contents;
}

html.crm-content-embedded #editorView .crm-card-actions-bar {
  box-sizing: border-box;
  min-height: var(--crm-list-row-height, 55px);
  padding-block: 0;
  border-bottom: 0;
  margin-inline: calc(-1 * var(--crm-card-inset-start)) calc(-1 * var(--crm-card-inset-end));
  padding-inline: calc(16px + var(--crm-card-inset-start)) calc(16px + var(--crm-card-inset-end));
}

html.crm-content-embedded .crm-card-actions-bar .quality-review-badge.is-reviewed {
  width: min(46px, calc(var(--crm-list-row-height, 55px) - 8px));
  height: min(46px, calc(var(--crm-list-row-height, 55px) - 8px));
}

html.crm-content-embedded #editorView .product-overview-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

html.crm-content-embedded #catalogView .crm-card-publish-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: min(40px, 100%);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--crm-palette-lime, #d6fa55);
  cursor: pointer;
}

html.crm-content-embedded #catalogView .crm-card-publish-button:is(:hover, :focus-visible) {
  background: var(--crm-palette-selection, #383a3d);
}

html.crm-content-embedded #catalogView .crm-card-publish-button:disabled {
  opacity: .5;
  cursor: default;
}

html.crm-content-embedded body #editorView :is(.photo-card, .geometry-visual, .geometry-diagram, .geometry-table-wrap, .media-panel .icon-button) {
  background: var(--surface-solid);
  border-color: var(--line);
  color: var(--ink);
}

html.crm-content-embedded body #editorView .geometry-table td {
  border-color: var(--line);
}

html.crm-content-embedded body #editorView .media-panel .icon-button:is(:hover, :focus-visible),
html.crm-content-embedded body #editorView .category-menu-item.active {
  background: var(--surface);
}

html.crm-content-embedded #catalogView.crm-content-card-open :is(.catalog-panel, .crm-content-footer:not(.crm-card-publish-footer)),
html.crm-content-embedded #catalogView:not(.crm-content-card-open) .crm-content-footer.crm-card-publish-footer,
html.crm-content-embedded #catalogLayout #editorView > .product-sidebar-categories {
  display: none;
}

html.crm-content-embedded body #catalogLayout > #editorView:not(.is-hidden) {
  display: block;
  min-width: 0;
  min-height: 100dvh;
}

@media (max-width: 900px) {
  html.crm-content-embedded #catalogLayout > #editorView {
    grid-column: 1 / -1;
  }}

html.crm-content-embedded #catalogView :is(.catalog-subcategories, #catalogSubcategoryMenu) {
  scrollbar-width: none;
}
html.crm-content-embedded #catalogView :is(.catalog-subcategories, #catalogSubcategoryMenu)::-webkit-scrollbar {
  display: none;
}
html.crm-content-embedded #catalogSubcategoryMenu .category-menu-count {
  display: none;
}
html.crm-content-embedded #catalogView #catalogSubcategoryMenu .is-empty-leaf .category-menu-name {
  color: var(--crm-palette-muted, #92949b);
}

html.crm-content-embedded body #editorView.workspace:not(.is-hidden) :is(
  [data-product-editor-panel],
  .validation-panel,
  .variant-table,
  .variant-row-head,
  .spec-table,
  .photo-card,
  .geometry-visual,
  .geometry-diagram,
  .geometry-table-wrap
) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.crm-content-embedded body #editorView.workspace:not(.is-hidden) .variant-row-head {
  text-transform: none;
}

html.crm-content-embedded body #editorView .product-overview-sizes .variant-row-head > * {
  color: var(--crm-palette-muted, #bbb);
  font-size: 14px;
  font-weight: 400;
}

html.crm-content-embedded #editorView .variant-show-all-sizes-button {
  color: var(--crm-palette-text, #fff);
}

html.crm-content-embedded #catalogView .crm-card-publish-footer {
  overflow: visible;
}

html.crm-content-embedded .crm-card-publish-footer .quality-review-badge.is-reviewed {
  border: 0;
  box-sizing: border-box;
  inline-size: var(--crm-profile-avatar-size);
  block-size: var(--crm-profile-avatar-size);
}

html.crm-content-embedded #editorView .accounting-heading h2 .product-title-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.crm-content-embedded #editorView .product-title-archive-badge {
  flex-shrink: 0;
  background: var(--crm-palette-selection, #383a3d);
  color: var(--crm-palette-text, #cdcdcd);
}

html.crm-content-embedded[data-crm-hidden-columns~="status"] .catalog-table tr > :is(th, td:not([colspan])):nth-child(5),
html.crm-content-embedded[data-crm-hidden-columns~="readiness"] .catalog-table tr > :is(th, td:not([colspan])):nth-child(6),
html.crm-content-embedded[data-crm-hidden-columns~="retail"] .catalog-table tr > .catalog-retail-price,
html.crm-content-embedded[data-crm-hidden-columns~="discount"] .catalog-table tr > .catalog-discount-price,
html.crm-content-embedded[data-crm-hidden-columns~="stock"] .catalog-table tr > .catalog-stock-cell,
html.crm-content-embedded[data-crm-hidden-columns~="photos"] .catalog-table tr > :is(th, td:not([colspan])):nth-child(10),
html.crm-content-embedded.crm-catalog-badges-hidden .catalog-table .catalog-badges-cell,
html.crm-content-embedded[data-crm-hidden-columns~="badge-hit"] .catalog-table .catalog-badge-isHit,
html.crm-content-embedded[data-crm-hidden-columns~="badge-new"] .catalog-table .catalog-badge-isDiscount,
html.crm-content-embedded[data-crm-hidden-columns~="badge-review"] .catalog-table .catalog-quality-review {
  display: none;
}

html.crm-content-embedded #catalogView :is(.catalog-select-head, .catalog-select-cell) {
  box-sizing: border-box;
  width: var(--content-row-height);
  min-width: var(--content-row-height);
  max-width: var(--content-row-height);
  padding-inline: 0;
}
html.crm-content-embedded #catalogView .catalog-product-head {
  flex-wrap: wrap;
  gap: 6px 10px;
}
html.crm-content-embedded #catalogView .catalog-product-head .button:not(.is-hidden) {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
}

@media (min-width: 901px) {
  html.crm-content-embedded #catalogView:has(.catalog-subcategories:not([hidden])) {
    --content-category-width: 84px;
    --content-subcategory-width: clamp(140px, 19%, 280px);
  }

  html.crm-content-embedded #catalogView:has(.crm-category-menu-expanded .catalog-subcategories:not([hidden])) {
    --content-category-width: var(--content-subcategory-width);
  }

  html.crm-content-embedded #catalogView #catalogLayout:has(.catalog-subcategories:not([hidden])) {
    grid-template-columns: var(--content-category-width) var(--content-subcategory-width) minmax(0, 1fr);
  }

  html.crm-content-embedded #catalogView #catalogLayout:has(.catalog-subcategories:not([hidden])) > .catalog-sidebar {
    height: 100dvh;
  }

  html.crm-content-embedded #catalogView.crm-content-card-open #catalogLayout:has(.catalog-subcategories:not([hidden])) > .catalog-sidebar {
    height: calc(100dvh - var(--content-footer-height));
  }

  html.crm-content-embedded #catalogView:has(.catalog-subcategories:not([hidden])) .crm-content-footer {
    --content-footer-start: calc(var(--content-category-width) + var(--content-subcategory-width));
    --content-footer-padding: 32px;
  }}

html.crm-content-embedded[data-crm-hidden-columns~="thumbnails"] #catalogView .table-product {
  grid-template-columns: minmax(0, 1fr);
}

html.crm-content-embedded[data-crm-hidden-columns~="thumbnails"] #catalogView .table-thumb {
  display: none;
}

@media (min-width: 901px) {
  html.crm-content-embedded body #catalogLayout > #editorView:not(.is-hidden) {
    --crm-card-inset-start: 32px;
    --crm-card-inset-end: 48px;
  }}

@media (min-width: 901px) {
  html.crm-content-embedded #editorView .variant-row {
    box-sizing: border-box;
    height: var(--crm-list-row-height, 55px);
    padding-block: 0;
  }}

html.crm-content-embedded #editorView .variant-row .is-stock-positive {
  color: #d6fa65;
}

html.crm-content-embedded #editorView .variant-row .is-stock-negative {
  color: #ff7979;
}

html.crm-content-embedded #editorView .spec-subheading {
  color: var(--crm-palette-text, #fff);
}

html.crm-content-embedded #editorView :is(#productColorsPanel, [data-product-editor-panel]:has(> .panel-title)) {
  border-inline: 0;
  padding: 0 18px 18px;
}

html.crm-content-embedded #editorView [data-product-editor-panel] > :is(.panel-title, h3) {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: calc(2 * var(--crm-list-row-height, 55px));
  margin: 0 calc(-18px - var(--crm-card-inset-end)) 8px calc(-18px - var(--crm-card-inset-start));
  padding-inline: calc(16px + var(--crm-card-inset-start)) calc(16px + var(--crm-card-inset-end));
  border-bottom: 1px solid var(--content-row-divider);
}

html.crm-content-embedded #editorView [data-product-editor-panel] :is(h3, .panel-title > h3) {
  font-size: 16px;
  line-height: 1.08;
}

@media (max-width: 900px) {
  html.crm-content-embedded #editorView [data-product-editor-panel] :is(h3, .panel-title > h3) {
    font-size: 13.5px;
  }}

html.crm-content-embedded #editorView [data-product-editor-panel] {
  position: relative;
}

/* The title and sizes share the first surface; count only visible sections after them. */
html.crm-content-embedded #editorView .editor-main-stack > :nth-child(odd of [data-product-editor-panel]:not(.product-overview-panel, .product-overview-sizes, .is-hidden, .crm-card-block-hidden, [hidden])) {
  isolation: isolate;
}

html.crm-content-embedded #editorView .editor-main-stack > :nth-child(odd of [data-product-editor-panel]:not(.product-overview-panel, .product-overview-sizes, .is-hidden, .crm-card-block-hidden, [hidden]))::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline: calc(-1 * var(--crm-card-inset-start)) calc(-1 * var(--crm-card-inset-end));
  z-index: -1;
  background: rgb(255 255 255 / 2%);
  pointer-events: none;
}

html.crm-content-embedded #editorView [data-product-editor-panel]::after {
  content: "";
  position: absolute;
  inset-inline: calc(-1 * var(--crm-card-inset-start)) calc(-1 * var(--crm-card-inset-end));
  inset-block-end: 0;
  border-bottom: 1px solid var(--content-row-divider);
  pointer-events: none;
}

@media (min-width: 901px) {
  html.crm-content-embedded #editorView .product-overview-panel[data-product-editor-panel]::after {
    content: none;
  }

  html.crm-content-embedded #editorView .product-overview-sizes[data-product-editor-panel]::after {
    inset-inline: 0;
  }}

html.crm-content-embedded #editorView .editor-main-stack:has(> [data-product-editor-panel]:not([hidden])) {
  row-gap: 0;
}

html.crm-content-embedded body #editorView.workspace:not(.is-hidden) .product-overview-sizes .variant-row {
  border-block: 0;
}

html.crm-content-embedded #editorView #productColorsPanel[data-product-editor-panel] {
  padding-bottom: 0;
}

html.crm-content-embedded #editorView #productColorsPanel .product-color-row:last-child {
  border-bottom: 0;
}

html.crm-content-embedded #editorView #specSummaryPanel[data-product-editor-panel] > .panel-title {
  margin-bottom: 0;
}

html.crm-content-embedded #editorView #specSummaryPanel .product-flag-spec-table .spec-row:first-child {
  border-top: 0;
  padding-top: 0;
}

html.crm-content-embedded #productColorsPanel .product-colors-heading {
  justify-content: space-between;
  gap: 8px;
}

html.crm-content-embedded #editorView #productColorsPanel > .product-colors-heading {
  margin-bottom: 0;
}

html.crm-content-embedded #productColorsPanel .product-colors-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

html.crm-content-embedded #productColorsPanel [data-colors-status]:empty {
  display: none;
}

html.crm-content-embedded #editorView :is(#specSummaryPanel, #specDetailsPanel) .spec-row,
html.crm-content-embedded #editorView #specDetailsPanel .spec-subheading {
  box-sizing: border-box;
  min-height: var(--crm-list-row-height, 55px);
  margin-inline: calc(-18px - var(--crm-card-inset-start)) calc(-18px - var(--crm-card-inset-end));
  padding: 0 calc(18px + var(--crm-card-inset-end)) 0 calc(18px + var(--crm-card-inset-start));
}

html.crm-content-embedded #editorView #specDetailsPanel .spec-table-details > .spec-subheading {
  margin-block: 0;
  border-top: 1px solid var(--line);
}

html.crm-content-embedded #editorView #specDetailsPanel .spec-table-details > .spec-subheading:first-child {
  border-top: 0;
}

@media (min-width: 901px) {
  html.crm-content-embedded #editorView #specDetailsPanel .spec-row {
    grid-template-columns: minmax(120px, 20%) minmax(0, 1fr);
  }}

@media (min-width: 901px) {
  html.crm-content-embedded #editorView #specSummaryPanel,
  html.crm-content-embedded #editorView .content-panel {
    /* Include the card insets when placing the visible right edge at the midpoint. */
    margin-inline-end: calc(50% + (var(--crm-card-inset-start) + var(--crm-card-inset-end)) / 2);
    min-inline-size: 0;
  }

  html.crm-content-embedded #editorView #specSummaryPanel .spec-row > * {
    overflow-wrap: anywhere;
  }}

html.crm-content-embedded #editorView #specSummaryPanel > .panel-title {
  display: none;
}

html.crm-content-embedded #editorView #specSummaryPanel .product-flag-spec-table > .spec-row:first-child {
  border-top: 0;
}

html.crm-content-embedded #productColorsPanel .product-color-row {
  box-sizing: border-box;
  margin-inline: calc(-18px - var(--crm-card-inset-start)) calc(-18px - var(--crm-card-inset-end));
  padding-inline: calc(18px + var(--crm-card-inset-start)) calc(18px + var(--crm-card-inset-end));
  min-height: var(--crm-list-row-height, 55px);
  padding-block: 4px;
  border-color: var(--line);
}

html.crm-content-embedded body #editorView #productColorsPanel button {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

@media (min-width: 901px) {
  html.crm-content-embedded #editorView .editor-area {
    padding-top: 0;
  }

  html.crm-content-embedded body #editorView.workspace:not(.is-hidden) .product-overview-sizes {
    margin-inline: calc(-1 * var(--crm-card-inset-start)) calc(-1 * var(--crm-card-inset-end));
  }

  html.crm-content-embedded body #editorView.workspace:not(.is-hidden) .product-overview-sizes .variant-row {
    min-height: 0;
    padding-inline: calc(18px + var(--crm-card-inset-start)) calc(18px + var(--crm-card-inset-end));
  }

  html.crm-content-embedded body #editorView.workspace:not(.is-hidden) .product-overview-panel {
    box-sizing: border-box;
    height: calc(3 * var(--crm-section-menu-row-height, 55px));
    align-content: center;
    margin-inline: calc(-1 * var(--crm-card-inset-start)) calc(-1 * var(--crm-card-inset-end));
    padding-block: 0;
    padding-inline: calc(16px + var(--crm-card-inset-start)) calc(16px + var(--crm-card-inset-end));
    border-bottom: 1px solid var(--content-row-divider);
  }}

html.crm-content-embedded #catalogLayout.crm-subcategory-menu-collapsed .catalog-subcategories:not(.catalog-fourth-menu) .category-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding-inline: 0;
}

html.crm-content-embedded #catalogLayout.crm-subcategory-menu-collapsed .catalog-subcategories:not(.catalog-fourth-menu) .category-menu-item > :not(.crm-subcategory-icon) {
  display: none;
}

html.crm-content-embedded #catalogLayout.crm-subcategory-menu-collapsed .catalog-subcategories:not(.catalog-fourth-menu) .crm-subcategory-icon {
  display: block;
}

html.crm-content-embedded #catalogLayout.crm-subcategory-menu-collapsed #crmSubcategoryMenuToggle svg {
  transform: rotate(180deg);
}

@media (min-width: 901px) {
  html.crm-content-embedded #catalogView:has(.crm-subcategory-menu-collapsed .catalog-subcategories:not([hidden])) {
    --content-subcategory-width: 84px;
  }

  html.crm-content-embedded #catalogView:has(.crm-category-menu-expanded .catalog-subcategories:not([hidden])) {
    --content-category-width: clamp(140px, 19%, 280px);
  }}

@media (max-width: 900px) {
  html.crm-content-embedded #catalogView #catalogLayout.crm-subcategory-menu-collapsed:has(.catalog-subcategories:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) 84px;
  }}

html.crm-content-embedded #catalogView .catalog-fourth-menu .category-menu-item {
  padding-inline-start: 24px;
}

html.crm-content-embedded #catalogLayout.crm-fourth-menu-collapsed .catalog-fourth-menu .category-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding-inline: 0;
}

html.crm-content-embedded #catalogLayout.crm-fourth-menu-collapsed .catalog-fourth-menu .category-menu-item > :not(.crm-subcategory-icon) {
  display: none;
}

html.crm-content-embedded #catalogLayout.crm-fourth-menu-collapsed .catalog-fourth-menu .crm-subcategory-icon {
  display: block;
}

html.crm-content-embedded #catalogLayout.crm-fourth-menu-collapsed #crmFourthMenuToggle svg {
  transform: rotate(180deg);
}

@media (min-width: 901px) {
  html.crm-content-embedded #catalogView:not(.crm-content-card-open):has(.catalog-subcategories:not([hidden])) {
    padding-bottom: 0;
  }

  html.crm-content-embedded #catalogView:not(.crm-content-card-open) #catalogLayout:has(.catalog-subcategories:not([hidden])) > .catalog-panel {
    min-height: 100dvh;
    margin-bottom: var(--content-footer-height);
    overflow-anchor: none;
  }

  html.crm-content-embedded #catalogView:has(.catalog-fourth-menu:not([hidden])) {
    --content-fourth-menu-width: clamp(140px, 19%, 280px);
  }

  html.crm-content-embedded #catalogView:has(.crm-fourth-menu-collapsed .catalog-fourth-menu:not([hidden])) {
    --content-fourth-menu-width: 84px;
  }

  html.crm-content-embedded #catalogView #catalogLayout:has(.catalog-fourth-menu:not([hidden])) {
    grid-template-columns: var(--content-category-width) var(--content-subcategory-width) var(--content-fourth-menu-width) minmax(0, 1fr);
  }

  html.crm-content-embedded #catalogView:has(.catalog-fourth-menu:not([hidden])) .crm-content-footer {
    --content-footer-start: calc(var(--content-category-width) + var(--content-subcategory-width) + var(--content-fourth-menu-width));
  }}

@media (max-width: 900px) {
  html.crm-content-embedded #catalogView #catalogLayout:has(.catalog-fourth-menu:not([hidden])) {
    grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr);
  }

  html.crm-content-embedded #catalogView #catalogLayout.crm-fourth-menu-collapsed:has(.catalog-fourth-menu:not([hidden])) {
    grid-template-columns: 84px minmax(0, 1fr) 84px;
  }}

html.crm-content-embedded #productColorsPanel .product-colors-search {
  position: relative;
  max-width: 100%;
}

html.crm-content-embedded body #editorView #productColorsPanel :is([data-colors-search-toggle], [data-colors-refresh]) {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
}

html.crm-content-embedded body #editorView #productColorsPanel :is([data-colors-search-toggle], [data-colors-refresh], .product-color-exclude) {
  color: var(--crm-palette-secondary);
}

html.crm-content-embedded body #editorView #productColorsPanel :is([data-colors-search-toggle], [data-colors-refresh], .product-color-exclude):is(:hover, :focus-visible, [aria-expanded="true"]) {
  color: #fff;
}

html.crm-content-embedded #productColorsPanel :is([data-colors-search-toggle], [data-colors-refresh], .product-color-exclude) svg {
  display: block;
  width: var(--crm-rail-icon-size, 21px);
  height: var(--crm-rail-icon-size, 21px);
}

html.crm-content-embedded #productColorsPanel [data-colors-search-toggle][aria-expanded="true"] {
  position: absolute;
  inset: 0 auto 0 2px;
  height: 100%;
}

html.crm-content-embedded #productColorsPanel #productColorsSearch {
  width: 320px;
  height: 28px;
  max-width: 100%;
  margin: 0;
}

html.crm-content-embedded body #editorView #productColorsSearch input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 10px 0 30px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  background: var(--crm-palette-workspace, #18191c);
  color: var(--crm-palette-text, #f4f5f7);
  font-size: 12px;
  box-shadow: none;
}

html.crm-content-embedded #productColorsSearch input::placeholder {
  color: var(--crm-palette-muted, #bbb);
  opacity: 1;
}

html.crm-content-embedded #productColorsPanel #productColorsSearch[hidden] {
  display: none;
}

html.crm-content-embedded body #editorView #productColorsPanel button.product-color-exclude {
  border-color: transparent;
  background: transparent;
}

html.crm-content-embedded #editorView :is(#descriptionPanel, .channel-description-panel) {
  margin-inline: calc(-18px - var(--crm-card-inset-start)) calc(-18px - var(--crm-card-inset-end));
  margin-block-end: -18px;
}

html.crm-content-embedded #editorView .content-panel > .panel-title:has(~ :is(#descriptionPanel, .channel-description-panel):not(.is-hidden)) {
  margin-block-end: 0;
}

html.crm-content-embedded body #editorView :is(#descriptionPanel, .channel-description-panel) :is(#descriptionPreviewPanel, #description, .channel-description-editor) {
  box-sizing: border-box;
  display: block;
  inline-size: 100%;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
}

html.crm-content-embedded #editorView .content-panel > .panel-title {
  flex-wrap: wrap;
}

html.crm-content-embedded #editorView .content-panel > .panel-title .content-tabs-row {
  flex: 1 1 560px;
  justify-content: flex-end;
  margin: 0;
  border: 0;
}

html.crm-content-embedded #editorView .content-panel .content-tabs {
  border: 0;
  padding: 0;
  background: transparent;
}

html.crm-content-embedded #editorView .content-panel > .panel-title .content-left-controls {
  flex: 0 1 auto;
}

html.crm-content-embedded #editorView .crm-product-panel-heading {
  position: relative;
  cursor: pointer;
}

html.crm-content-embedded #editorView [data-product-editor-panel] .crm-product-panel-heading h3 > button.crm-product-panel-title-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

html.crm-content-embedded #editorView .crm-product-panel-collapsed > :not(.crm-product-panel-heading) {
  display: none;
}
html.crm-content-embedded #editorView [data-product-editor-panel].crm-card-block-hidden {
  display: none !important;
}

html.crm-content-embedded #editorView .editor-main-stack > [data-product-editor-panel]:not(.product-overview-panel),
html.crm-content-embedded #editorView .editor-main-stack > [data-product-editor-panel]:not(.product-overview-panel) :not(svg, svg *) {
  font-size: 15px;
}
@media (min-width: 901px) {

  html[data-crm-mac-palette].crm-content-embedded #catalogView {
    --content-footer-height: var(--crm-shell-bar-height, 55px);
  }

  html[data-crm-mac-palette].crm-content-embedded #catalogView:not(.crm-content-card-open) #catalogLayout:has(.catalog-subcategories:not([hidden])) > .catalog-sidebar {
    height: calc(100dvh - var(--content-footer-height));
  }

  html[data-crm-mac-palette].crm-content-embedded #catalogView.crm-content-card-open
    .crm-card-publish-footer::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 100%;
    width: var(--crm-shell-joint-radius, 12px);
    height: var(--crm-shell-joint-radius, 12px);
    pointer-events: none;
    background: radial-gradient(circle at top right,
      transparent calc(var(--crm-shell-joint-radius, 12px) - 0.5px),
      var(--crm-palette-header, #242528) calc(var(--crm-shell-joint-radius, 12px) + 0.5px));
  }

  html[data-crm-mac-palette].crm-content-embedded #catalogView .crm-content-footer {
    inset-inline-start: 0;
    padding-inline-start: calc(var(--content-footer-start, 0px) + var(--content-footer-padding, 16px));
    border-top: 0;
  }}
html.crm-content-embedded #editorView .spec-value-select + .crm-select-trigger {
  padding-inline-start: 0;
  border: 0;
  background: transparent;
}

html.crm-content-embedded #editorView .spec-value-select + .crm-select-trigger:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

html.crm-content-card-only body #catalogView #catalogLayout {
  display: block;
}

html.crm-content-card-only body #catalogView #catalogLayout > :is(.catalog-sidebar, .catalog-subcategories, .catalog-panel),
html.crm-content-card-only body #catalogView .crm-content-footer {
  display: none;
}

html.crm-content-embedded .crm-card-color-row:has(> :not([hidden])) {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  height: var(--crm-section-menu-row-height, 55px);
  min-width: 0;
  margin-inline: calc(-1 * var(--crm-card-inset-start)) calc(-1 * var(--crm-card-inset-end));
  padding-inline: calc(18px + var(--crm-card-inset-start)) calc(18px + var(--crm-card-inset-end));
  border-bottom: 1px solid var(--content-row-divider);
}

html.crm-content-embedded body #editorView .crm-photo-actions .upload-zone {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

html.crm-content-embedded .media-panel .panel-title .crm-photo-actions .optimize-all-button {
  width: 36px;
}

html.crm-content-embedded .media-panel .panel-title .crm-photo-actions button:is(:hover, :focus-visible),
html.crm-content-embedded body #editorView .crm-photo-actions .upload-zone.dragging{
  background: var(--crm-palette-hover, #383a3d);
}

html.crm-content-embedded #catalogView #editorView .media-panel[data-product-editor-panel] {
  padding-block-end: 0;
}

html.crm-content-embedded #editorView .media-panel[data-product-editor-panel]::after {
  content: none;
}

html.crm-content-embedded #editorView .media-panel > .panel-title {
  margin-block-end: 0;
}

html.crm-content-embedded #editorView .media-panel > .panel-title:has(.crm-photo-actions[hidden]) {
  display: none;
}

html.crm-content-embedded #editorView .media-panel > .photo-grid {
  margin-block-start: 0;
  margin-inline: calc(-18px - var(--crm-card-inset-start)) calc(-18px - var(--crm-card-inset-end));
}

@media (hover: hover) {
  html.crm-content-embedded .photo-card:not(:hover, :focus-within) .photo-actions .icon-button {
    opacity: 0;
    pointer-events: none;
  }}

html.crm-content-embedded .crm-card-header,
html.crm-content-embedded .crm-card-header-info {
  min-width: 0;
}

@media (min-width: 901px) {
  html.crm-content-embedded .crm-card-header {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  html.crm-content-embedded .crm-card-header-info {
    --crm-card-inset-end: 0px;
  }

  html.crm-content-embedded #editorView .crm-card-header > .media-panel {
    grid-column: 2;
    --crm-card-inset-start: 0px;
  }}
html.crm-content-embedded body #catalogView .crm-card-publish-footer #crmCardReadinessTrigger:is(:hover, :focus-visible) { background: transparent; color: #fff; }
html.crm-content-embedded body #catalogView .crm-card-publish-footer #crmCardReadinessTrigger:is(:hover, :focus-visible) #readinessPercent { color: inherit; }

html.crm-content-embedded body dialog.crm-card-info-dialog {
  --page-overlay-background: var(--crm-palette-workspace, #202124);
  --page-overlay-ink: var(--crm-palette-text, #f4f5f7);
  --ink: var(--page-overlay-ink);
  --muted: var(--crm-palette-muted, #b5b5b5);
  color-scheme: dark;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--crm-divider-color, #414246);
  border-radius: 12px;
  background: var(--crm-palette-workspace, #202124);
  color: var(--crm-palette-text, #fff);
}

html.crm-content-embedded body .crm-card-info-dialog > header > button {
  color: inherit;
  font-size: 24px;
}

html.crm-content-embedded #editorView .content-panel > .panel-title > h3,
html.crm-content-embedded #editorView .crm-content-tab-label {
  display: none;
}

html.crm-content-embedded #editorView .content-panel > .panel-title .content-left-controls {
  flex: 1 1 auto;
}

html.crm-content-embedded #editorView .content-tabs {
  width: 100%;
}

html.crm-content-embedded #editorView #seoBlockTab {
  margin-inline-start: auto;
}

html.crm-content-embedded #editorView .crm-content-tab-icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.crm-content-embedded #editorView .spec-row-site-visibility {
  grid-template-columns: minmax(120px, calc((100% - 12px) * 7 / 17)) minmax(0, 1fr) 37px;
  align-items: center;
}

html.crm-content-embedded .spec-site-visibility-switch {
  position: relative;
  display: inline-flex;
  width: 37px;
  height: 20px;
  cursor: pointer;
}

html.crm-content-embedded #editorView .spec-site-visibility-switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

html.crm-content-embedded .spec-site-visibility-track {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 1px solid var(--crm-palette-switch-off-border);
  border-radius: 999px;
  background: var(--crm-palette-switch-off-track);
}

html.crm-content-embedded .spec-site-visibility-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--crm-palette-switch-off-thumb);
  transition: transform 0.18s ease;
}

html.crm-content-embedded .spec-site-visibility-switch input:checked + .spec-site-visibility-track {
  border-color: var(--crm-palette-switch-on-border);
  background: var(--crm-palette-switch-on-track);
}

html.crm-content-embedded .spec-site-visibility-switch input:checked + .spec-site-visibility-track::after {
  transform: translateX(17px);
  background: var(--crm-palette-switch-on-thumb);
}

html.crm-content-embedded .spec-site-visibility-switch input:focus-visible + .spec-site-visibility-track {
  outline: 2px solid var(--crm-palette-secondary, #cdcdcd);
  outline-offset: 3px;
}

html.crm-content-embedded .spec-site-visibility-switch input:disabled + .spec-site-visibility-track {
  opacity: 0.52;
}

/* Category settings indicator in the embedded CRM product card. */
html.crm-content-embedded .spec-category-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
html.crm-content-embedded .spec-category-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--crm-secondary-text, #CDCDCD);
}
html.crm-content-embedded .spec-category-gear svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Edit a specification across its complete value cell. */
html.crm-content-embedded #editorView :is(#specSummaryPanel, #specDetailsPanel) .spec-row:has(> .spec-value-input) {
  padding-inline-end: 0;
}

html.crm-content-embedded body #editorView .spec-row > .spec-value-input {
  box-sizing: border-box;
  align-self: stretch;
  height: auto !important;
  width: 100%;
  min-width: 0;
  min-height: var(--crm-list-row-height, 55px);
  margin: 0;
  padding: 16px calc(18px + var(--crm-card-inset-end, 0px)) 16px 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  font: inherit;
  line-height: 1.35;
}

html.crm-content-embedded body #editorView .spec-row > .spec-value-input:focus {
  background: var(--crm-palette-selection, #383a3d);
  box-shadow: none;
  outline: none;
}

/* Main product details share the left header column with the product name. */
html.crm-content-embedded #editorView .crm-card-header-info > #specSummaryPanel {
  width: auto;
  max-width: none;
  margin-inline-end: 0;
}

/* One shared divider below both halves of the product header. */
html.crm-content-embedded #editorView .crm-card-header {
  position: relative;
}

html.crm-content-embedded #editorView .crm-card-header::after {
  content: "";
  position: absolute;
  inset-inline: calc(-1 * var(--crm-card-inset-start)) calc(-1 * var(--crm-card-inset-end));
  inset-block-end: 0;
  border-bottom: 1px solid var(--content-row-divider);
  pointer-events: none;
}

html.crm-content-embedded #crmCardColorSwatches .primary-color-dropdown {
  background: var(--crm-second-menu-background, #1b1c1f);
  border-color: var(--crm-divider-color, #414246);
  color: var(--crm-palette-text, #f4f5f7);
}

html.crm-content-embedded #crmCardColorSwatches :is(.primary-color-option, .primary-color-clear) {
  background: transparent;
  color: inherit;
  border-color: var(--crm-divider-color, #414246);
}

html.crm-content-embedded #crmCardColorSwatches .primary-color-option.is-selected {
  background: var(--crm-palette-workspace, #36383c);
  color: #d8ff55;
}

html.crm-content-embedded #catalogView table.catalog-columns-sized {
  table-layout: fixed;
  min-width: 0;
  max-width: none;
}

html.crm-content-embedded #catalogView .catalog-columns-sized :is(th, td) {
  width: auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
}

html.crm-content-embedded #catalogView .catalog-columns-sized th {
  overflow: visible;
}

/* Match the color row to the specification columns below it. */
html.crm-content-embedded .crm-card-color-row:has(> :not([hidden])) {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  font-size: 13px;
  font-weight: 400;
}
html.crm-content-embedded #crmCardColorLabel {
  font-size: inherit;
  font-weight: 400;
}

html.crm-content-embedded #editorView #specDetailsCategory.spec-category-gear {
  margin-inline-start: auto;
}

html.crm-content-embedded[data-crm-hidden-columns~="size"] .catalog-sizes-cell,
html.crm-content-embedded[data-crm-hidden-columns~="color"] .catalog-color-cell,
html.crm-content-embedded[data-crm-hidden-columns~="color-in-title"] .catalog-title-color {
  display: none;
}

html.crm-content-embedded .catalog-color-cell {
  min-width: 160px;
  max-width: 300px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Main specifications read as one uninterrupted block beside the photos. */
html.crm-content-embedded body #editorView #specSummaryPanel .spec-row {
  border-block: 0;
}

html.crm-content-embedded #editorView #specSummaryPanel[data-product-editor-panel]::after {
  content: none;
}

/* Keep detailed specifications within the left half of a wide product card. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView #specDetailsPanel {
    margin-inline-end: calc(50% + (var(--crm-card-inset-start) + var(--crm-card-inset-end)) / 2);
    min-inline-size: 0;
  }}

/* Product field labels match the CRM header search hint. */
html.crm-content-embedded body #editorView :is(#specSummaryPanel, #specDetailsPanel) .spec-row > span:first-child {
  color: var(--crm-palette-muted, #afafaf);
  font-size: 14px;
  font-weight: 400;
}


/* Color belongs to the same block as the other main specifications. */
html.crm-content-embedded #editorView #specSummaryPanel .crm-card-color-row {
  margin: 0;
  padding: 0;
  border: 0;
  min-height: var(--crm-list-row-height, 55px);
  height: auto;
}

html.crm-content-embedded #specSummaryPanel .crm-card-color-title {
  color: var(--crm-palette-muted, #bbb);
}

@media (min-width: 901px) {
  html.crm-content-embedded #editorView .crm-specs-content-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    align-items: start;
    min-width: 0;
  }

  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > :is(#specDetailsPanel, .content-panel) {
    margin-inline: 0;
    min-width: 0;
  }

  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > .content-panel {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
  }

  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > #specDetailsPanel {
    grid-column: 1;
    grid-row: 1;
  }}

/* Match the product content canvas to the active category background. */
html.crm-content-embedded body #editorView {
  background: var(--crm-palette-workspace, #18191c);
}

html.crm-content-embedded body #editorView .editor-area {
  --surface-solid: var(--crm-palette-workspace, #18191c);
  background: var(--crm-palette-workspace, #18191c);
}

/* Selected catalog categories use the same colors as purchase filters. */
html.crm-content-embedded body #catalogView .catalog-sidebar :is(
  .category-menu-group-toggle.is-open,
  .category-menu-group.has-active > .category-menu-group-toggle,
  .category-menu-item.active
),
html.crm-content-embedded body #editorView .product-sidebar-categories :is(.category-menu-group-toggle.is-open, .category-menu-item.active) {
  background: var(--crm-palette-selection, #383a3d);
  color: var(--crm-palette-text, #fff);
}

html.crm-content-embedded body #catalogView .catalog-sidebar :is(
  .category-menu-group-toggle.is-open,
  .category-menu-group.has-active > .category-menu-group-toggle,
  .category-menu-item.active
):hover,
html.crm-content-embedded body #editorView .product-sidebar-categories :is(.category-menu-group-toggle.is-open, .category-menu-item.active):hover {
  background: color-mix(in srgb, var(--crm-palette-selection, #383a3d), white 6%);
}

/* Give prices and stock the same header as the other card sections. */
html.crm-content-embedded body #editorView .product-overview-sizes[data-product-editor-panel] {
  padding: 0;
}

html.crm-content-embedded #editorView .product-overview-sizes > .panel-title {
  margin: 0;
}

/* Remove the extra card gutter from summary labels and size rows. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView #specSummaryPanel .spec-row {
    padding-inline: calc(16px + var(--crm-card-inset-start)) 48px;
  }}

@media (min-width: 901px) {
  html.crm-content-embedded #editorView #specSummaryPanel .crm-card-color-row {
    margin-inline: calc(-18px - var(--crm-card-inset-start)) calc(-18px - var(--crm-card-inset-end));
    padding-inline: calc(16px + var(--crm-card-inset-start)) 48px;
  }}

@media (min-width: 901px) {
  html.crm-content-embedded body #editorView.workspace:not(.is-hidden) .product-overview-sizes .variant-row {
    padding-inline-start: 0;
  }}
/* Remove the outer gutters beside the paired specifications and description. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView .crm-specs-content-columns {
    margin-inline: calc(-1 * var(--crm-card-inset-start)) calc(-1 * var(--crm-card-inset-end));
  }}

@media (min-width: 901px) {
  html.crm-content-embedded body #editorView.workspace:not(.is-hidden) .product-overview-sizes .variant-row {
    padding-inline-start: 16px;
  }}

@media (min-width: 901px) {
  html.crm-content-embedded #editorView #specDetailsPanel :is(.spec-row, .spec-subheading) {
    padding-inline-start: calc(16px + var(--crm-card-inset-start));
  }

  html.crm-content-embedded body #editorView :is(#descriptionPanel, .channel-description-panel) :is(#descriptionPreviewPanel, #description, .channel-description-editor) {
    padding-inline-start: calc(16px + var(--crm-card-inset-start));
  }}

/* Empty specification markers are presentation only, never stored values. */
html.crm-content-embedded #editorView .spec-value-editable.is-empty {
  background: transparent;
  box-shadow: none;
}

html.crm-content-embedded #editorView .spec-value-editable.is-empty::before {
  content: "—";
  color: var(--crm-palette-muted, #afafaf);
}

html.crm-content-embedded #editorView .spec-value-editable:hover,
html.crm-content-embedded body #editorView .spec-row > .spec-value-input:focus {
  background: transparent;
  box-shadow: none;
}

html.crm-content-embedded #editorView .spec-value-editable:focus-visible {
  background: transparent;
  outline: 1px solid var(--crm-palette-selection, #383a3d);
  outline-offset: 2px;
  box-shadow: none;
}

/* Prices and stock use a darker, distinct surface, edge to edge. */
html.crm-content-embedded body #editorView.workspace:not(.is-hidden) .product-overview-sizes[data-product-editor-panel] {
  background: var(--crm-palette-prices-stock, #202225);
  padding: 0;
}

html.crm-content-embedded #editorView .product-overview-sizes > .panel-title {
  position: relative;
  border-bottom: 0;
}

html.crm-content-embedded #editorView .product-overview-sizes > .panel-title::after {
  content: "";
  position: absolute;
  inset-inline: -18px;
  bottom: 0;
  height: 1px;
  background: var(--content-row-divider);
  pointer-events: none;
}

/* Display category sits above the product name, matching specification labels. */
html.crm-content-embedded #editorView .accounting-heading h2 .crm-card-title-category {
  display: block;
  margin-block-end: 12px;
  color: var(--crm-palette-muted, #afafaf);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

/* Draw the divider on the full section, outside title content insets. */
html.crm-content-embedded body #editorView.workspace:not(.is-hidden) .product-overview-sizes[data-product-editor-panel] {
  position: relative;
}
html.crm-content-embedded body #editorView .product-overview-sizes[data-product-editor-panel]::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(2 * var(--crm-list-row-height, 55px) - 1px);
  height: 1px;
  background: rgb(205 205 205 / 12%);
  pointer-events: none;
  z-index: 1;
}
html.crm-content-embedded body #editorView .product-overview-sizes > .panel-title {
  border-bottom: 0 !important;
}
html.crm-content-embedded body #editorView .product-overview-sizes > .panel-title::after {
  display: none;
}

/* Article numbers keep their normal appearance when pointed at. */
html.crm-content-embedded #editorView .product-overview-sizes .variant-sku-button,
html.crm-content-embedded #editorView .product-overview-sizes .variant-sku-button:is(:hover, :focus-visible) {
  color: inherit;
  text-decoration: none;
}

/* Give the first specification the same breathing room as the product title. */
html.crm-content-embedded #editorView .crm-card-header-info > #specSummaryPanel {
  padding-block-start: 16px;
}

/* Product card titles keep their plain appearance on pointer hover. */
html.crm-content-embedded #editorView .accounting-heading h2 .product-title-link:hover {
  text-decoration: none;
}

/* Photo captions blend into the preview while remaining editable. */
html.crm-content-embedded body #editorView .photo-details input[data-photo-alt] {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
html.crm-content-embedded body #editorView .photo-details input[data-photo-alt]:focus {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  outline: none;
}

/* The two-column details panel already starts at its own column edge. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > #specDetailsPanel > .panel-title,
  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > #specDetailsPanel :is(.spec-row, .spec-subheading) {
    margin-inline: -18px;
    padding-inline: 16px;
  }}

/* Paired content shares the specification edge without legacy card gutters. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > .content-panel > .panel-title,
  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > .content-panel > :is(#descriptionPanel, .channel-description-panel) {
    margin-inline: -18px;
  }

  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > .content-panel > .panel-title,
  html.crm-content-embedded body #editorView .crm-specs-content-columns :is(#descriptionPanel, .channel-description-panel) :is(#descriptionPreviewPanel, #description, .channel-description-editor) {
    padding-inline: 16px;
  }}

/* Give the complete content block a distinct neutral CRM surface. */
html.crm-content-embedded body #editorView.workspace:not(.is-hidden) :is(.crm-specs-content-columns, .crm-description-geometry-column) > :is(.content-panel, .manufacturer-photos-panel) {
  background: var(--crm-palette-header, #242528);
}

/* Paired panels already reach the card edges; keep their dividers inside. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > :is(#specDetailsPanel, .content-panel)::after {
    inset-inline: 0;
  }}

/* Product detail rows stay plain; the panel heading keeps its divider. */
html.crm-content-embedded #editorView #specDetailsPanel :is(.spec-row, .spec-subheading) {
  border-block: 0;
}

/* Align the prices heading and size column with the summary labels above. */
@media (min-width: 901px) {
  html.crm-content-embedded body #editorView .product-overview-sizes > .panel-title,
  html.crm-content-embedded body #editorView.workspace:not(.is-hidden) .product-overview-sizes .variant-row {
    padding-inline-start: calc(16px + var(--crm-card-inset-start) - 18px);
  }}

/* Product card headings share the active description accent. */
html.crm-content-embedded body #editorView #geometryPanel .panel-title h3,
html.crm-content-embedded body #editorView :is(#specDetailsPanel, .variant-summary-panel) > .panel-title > h3,
html.crm-content-embedded body #editorView #selectedName .product-title-main,
html.crm-content-embedded body #editorView #selectedName .product-title-main:is(:hover, :focus-visible),
html.crm-content-embedded body #editorView :is(.content-tab.active, .description-mode-tab.active) {
  color: var(--crm-palette-lime, #d6f56b);
}

/* Place each detailed specification value below its label in the CRM card. */
html.crm-content-embedded body #editorView #specDetailsPanel .spec-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  row-gap: 6px;
  padding-block: 12px;
}

/* Category settings opened from a product keep a single return action. */
html.crm-content-embedded .spec-category-settings-button {
  display: grid; place-items: center; padding: 0; border: 0; background: transparent;
  color: inherit; cursor: pointer; width: 36px; height: 36px;
}

/* Match both product header columns and keep the stock seam free of a line. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView .crm-card-header {
    align-items: stretch;
  }
  html.crm-content-embedded #editorView .crm-card-header-info {
    align-self: stretch;
    background: var(--crm-palette-workspace, #18191c);
  }
  html.crm-content-embedded #editorView .crm-card-header > .media-panel {
    align-self: stretch;
  }
  html.crm-content-embedded #editorView .crm-card-header::after {
    content: none;
  }}

/* Gray labels distinguish specification headings from their values. */
html.crm-content-embedded body #editorView #specDetailsPanel .spec-row > span:first-child,
html.crm-content-embedded body #editorView .product-overview-sizes .variant-row-head > * {
  color: var(--crm-palette-spec-label, #909090);
}

/* Layout dividers span the panel's horizontal padding at every viewport size. */
html.crm-content-embedded #editorView #specDetailsPanel .spec-layout-divider {
  width: auto;
  margin-inline: -18px;
}

/* Align the product publish icon and readiness with the header search inset. */
html.crm-content-embedded #catalogView .crm-card-publish-button {
  margin-inline-start: -16px;
}

/* Keep characteristic text in the same place while entering and leaving edit mode. */
html.crm-content-embedded body #editorView #specDetailsPanel .spec-row > :is(.spec-value-editable, .spec-value-input) {
  box-sizing: border-box;
  width: 100%;
  min-height: 1lh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  overflow-wrap: anywhere;
}
html.crm-content-embedded body #editorView #specDetailsPanel .spec-row:has(> .spec-value-input) {
  padding-inline-end: calc(18px + var(--crm-card-inset-end, 0px));
}

@media (min-width: 901px) {
  html.crm-content-embedded body #editorView #specDetailsPanel .spec-row:has(> .spec-value-input) {
    padding-inline-end: 16px;
  }}

/* Place product flags in the same value column as the main specifications. */
html.crm-content-embedded #editorView #specSummaryPanel .crm-card-info-flags .product-flag-switch {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  justify-content: normal;
}

/* A collapsed prices section contains its heading only, without a second seam. */
html.crm-content-embedded body #catalogView #editorView .product-overview-sizes.crm-product-panel-collapsed[data-product-editor-panel] {
  padding-block: 0;
}
html.crm-content-embedded body #editorView .product-overview-sizes.crm-product-panel-collapsed::before {
  content: none;
}

/* Fill the information column's height with cropped, proportional photo tiles. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView .crm-card-header > .media-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  html.crm-content-embedded #editorView .crm-card-header > .media-panel > .photo-grid {
    flex: 1 1 0;
    min-height: 0;
    contain: size;
    align-content: stretch;
    align-items: stretch;
  }
  html.crm-content-embedded #editorView .crm-card-header .photo-card {
    display: flex;
    min-height: 0;
    overflow: hidden;
  }
  html.crm-content-embedded #editorView .crm-card-header .photo-preview {
    flex: 1;
    min-width: 0;
    min-height: 0;
  }
  html.crm-content-embedded #editorView .crm-card-header .photo-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }}

/* Edit detailed values in their existing text node without swapping layout boxes. */
html.crm-content-embedded body #editorView #specDetailsPanel .spec-value-editable {
  white-space: pre-wrap;
}
html.crm-content-embedded body #editorView #specDetailsPanel .spec-value-editable.is-editing {
  background: transparent;
  box-shadow: none;
  outline: none;
}

/* Keep collapsed totals together below the photo half of the product card. */
html.crm-content-embedded #editorView .product-overview-sizes > .panel-title > .crm-variant-summary {
  display: none;
}
html.crm-content-embedded body #editorView .product-overview-sizes.crm-product-panel-collapsed > .panel-title {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  padding-inline: 0;
}
html.crm-content-embedded #editorView .product-overview-sizes.crm-product-panel-collapsed > .panel-title > h3 {
  min-width: 0;
  padding-inline-start: calc(16px + var(--crm-card-inset-start, 0px) - 18px);
}
html.crm-content-embedded #editorView .product-overview-sizes.crm-product-panel-collapsed > .panel-title > .crm-variant-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-width: 0;
  padding: 16px calc(18px + var(--crm-card-inset-end, 0px)) 16px 0;
}
html.crm-content-embedded #editorView .product-overview-sizes.crm-product-panel-collapsed .crm-variant-summary-cell {
  display: block;
  min-width: 0;
  color: var(--crm-palette-text, #cdcdcd);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
html.crm-content-embedded #editorView .product-overview-sizes.crm-product-panel-collapsed .crm-variant-summary-cell::before {
  content: attr(data-heading) "\00a0\00a0\00a0\00a0";
  display: inline;
  color: var(--crm-palette-muted, #afafaf);
  font-size: 14px;
  line-height: 1.35;
}
html.crm-content-embedded #editorView .product-overview-sizes.crm-product-panel-collapsed .crm-variant-summary-cell.is-stock-positive {
  color: var(--crm-palette-lime, #d6fa55);
}
html.crm-content-embedded #editorView .product-overview-sizes.crm-product-panel-collapsed .crm-variant-summary-cell.is-stock-negative {
  color: #ff7979;
}
@media (max-width: 900px) {
  html.crm-content-embedded body #editorView .product-overview-sizes.crm-product-panel-collapsed > .panel-title {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    padding: 16px 18px;
  }
  html.crm-content-embedded #editorView .product-overview-sizes.crm-product-panel-collapsed > .panel-title > h3 {
    padding-inline-start: 0;
  }
  html.crm-content-embedded #editorView .product-overview-sizes.crm-product-panel-collapsed > .panel-title > .crm-variant-summary {
    padding-inline: 0;
  }}

/* Preserve the first two complete images; crop the remaining gallery tiles. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView .crm-card-header > .media-panel > .photo-grid {
    align-content: flex-start;
  }
  html.crm-content-embedded #editorView .crm-card-header .photo-card:nth-child(-n + 2) .photo-thumb {
    object-fit: contain;
  }}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView {
  --content-category-width: 84px;
  --content-subcategory-width: 0px;
  --content-fourth-menu-width: 0px;
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView:has(#catalogLayout.crm-category-menu-expanded) {
  --content-category-width: clamp(180px, 19%, 280px);
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView #catalogLayout {
  grid-template-columns: var(--content-category-width) minmax(0, 1fr);
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView #catalogLayout > .catalog-subcategories,
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView #catalogLayout > .catalog-sidebar:first-child > .category-menu {
  display: none;
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView #catalogLayout > .catalog-sidebar:first-child {
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--crm-menu-row-height, 27.5px);
  height: calc(100dvh - var(--content-footer-height));
  min-height: 0;
  box-sizing: border-box;
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView .crm-category-menu-footer {
  display: block;
  grid-row: 2;
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView .crm-purchase-card-back {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: start;
  width: 100%;
  min-height: var(--crm-menu-row-height, 55px);
  margin: 0;
  padding: 8px 24px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--crm-palette-text, #cdcdcd);
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView .crm-purchase-card-back:is(:hover, :focus-visible) {
  background: var(--crm-palette-hover, #383a3d);
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView .crm-purchase-card-back:focus-visible {
  outline: 2px solid var(--crm-palette-secondary, #cdcdcd);
  outline-offset: -2px;
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView #catalogLayout:not(.crm-category-menu-expanded) .crm-purchase-card-back {
  justify-content: center;
  padding-inline: 0;
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView .crm-purchase-card-back svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView .crm-content-footer {
  --content-footer-start: var(--content-category-width);
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView #catalogLayout > #editorView {
  grid-column: 2;
  grid-row: 1;
}

/* Center a single complete photo and extend its edge colors into the free space. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView .crm-card-header .crm-single-photo .photo-preview::before,
  html.crm-content-embedded #editorView .crm-card-header .crm-single-photo .photo-preview::after {
    content: "";
    position: absolute;
    inset: 0 0 50%;
    background: var(--photo-edge-top, #fff);
    pointer-events: none;
  }
  html.crm-content-embedded #editorView .crm-card-header .crm-single-photo .photo-preview::after {
    inset: 50% 0 0;
    background: var(--photo-edge-bottom, #fff);
  }
  html.crm-content-embedded #editorView .crm-card-header .crm-single-photo .photo-thumb {
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
  }
  html.crm-content-embedded #editorView .crm-card-header .crm-single-photo .photo-actions,
  html.crm-content-embedded #editorView .crm-card-header .crm-single-photo .photo-details {
    z-index: 2;
  }}

/* Keep the return arrow beside its label in the expanded purchasing menu. */
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView #catalogLayout.crm-category-menu-expanded .crm-purchase-card-back {
  gap: 12px;
}
html:root.crm-content-embedded.crm-purchase-card-context body #catalogView #catalogLayout.crm-category-menu-expanded .crm-purchase-card-back > svg {
  display: block;
  flex: 0 0 21px;
}

/* Align detail text and headings with the product card content inset. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > #specDetailsPanel > .panel-title,
  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > #specDetailsPanel :is(.spec-row, .spec-subheading),
  html.crm-content-embedded #editorView :is(.crm-specs-content-columns, .crm-description-geometry-column) > .content-panel > .panel-title,
  html.crm-content-embedded body #editorView .crm-specs-content-columns :is(#descriptionPanel, .channel-description-panel) :is(#descriptionPreviewPanel, #description, .channel-description-editor) {
    padding-inline: 48px;
  }}

@media (min-width: 901px) {
  html.crm-content-embedded body #editorView .crm-specs-content-columns #descriptionTab {
    padding-inline-start: 0;
  }}

/* Start the collapsed totals exactly at the photo column's edge. */
@media (min-width: 901px) {
  html.crm-content-embedded body #editorView .product-overview-sizes.crm-product-panel-collapsed > .panel-title {
    grid-template-columns: calc(50% + (var(--crm-card-inset-start, 0px) - var(--crm-card-inset-end, 16px)) / 2) minmax(0, 1fr);
  }}

/* Collapsed product prices use the same accent as positive total stock. */
html.crm-content-embedded #editorView .product-overview-sizes.crm-product-panel-collapsed .crm-variant-summary-cell:is([data-label="Цена со скидкой"], [data-label="РРЦ"]) {
  color: var(--crm-palette-lime, #d6fa55);
}

/* Align the first total label with the description text below. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView .product-overview-sizes.crm-product-panel-collapsed > .panel-title > .crm-variant-summary {
    padding-inline-start: calc(48px + (var(--crm-card-inset-end, 16px) - var(--crm-card-inset-start, 0px)) / 2);
  }}
html.crm-content-embedded #editorView #specDetailsPanel:has(.spec-details-empty)::after {
  content: none;
}

/* Geometry shares the diagram background throughout the card. */
html.crm-content-embedded body #editorView #geometryPanel {
  background: #212121;
}
html.crm-content-embedded body #editorView #geometryPanel::before {
  background: #212121;
}
html.crm-content-embedded body #editorView #geometryPanel .crm-product-panel-toggle { display: none; }
html.crm-content-embedded body #editorView #geometryPanel :is(.panel-title, .geometry-content, .geometry-visual, .geometry-diagram, .geometry-table-wrap, .geometry-table, .geometry-table tr, .geometry-table td) {
  background: transparent;
  border: 0;
  box-shadow: none;
}
html.crm-content-embedded body #editorView #geometryPanel #searchGeometry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 6px;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-size-picker {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-size-picker:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

html.crm-content-embedded body #editorView #geometryPanel > .panel-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.geometry-heading-controls { flex: 1; min-width: 0; display: grid; gap: 8px; }
.geometry-heading-controls .geometry-head { justify-content: flex-start; }
html.crm-content-embedded body #editorView #geometryPanel .geometry-heading-controls .geometry-size-picker { width: auto; min-width: 160px; }
@media (max-width: 900px) {
  html.crm-content-embedded body #editorView #geometryPanel > .panel-title { flex-wrap: wrap; }
  .geometry-heading-controls { order: 3; flex-basis: 100%; }}
/* Price and stock columns belong to the expanded panel heading. */
html.crm-content-embedded #editorView .crm-prices-column-picker {
  display: block;
  margin-inline-start: auto;
  flex: 0 0 auto;
  position: relative;
}
html.crm-content-embedded #editorView .crm-prices-column-picker > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--crm-palette-secondary, #CDCDCD);
}
html.crm-content-embedded #editorView .crm-prices-column-picker > summary svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
html.crm-content-embedded .crm-prices-column-options {
  position: fixed;
  inset: auto;
  z-index: 30;
  max-height: min(420px, 60vh);
  border: 1px solid var(--crm-palette-divider);
}
html.crm-content-embedded #editorView .product-overview-sizes.crm-product-panel-collapsed .crm-prices-column-picker {
  display: none;

}
@media (max-width: 900px) {
  html.crm-content-embedded body #editorView #geometryPanel > .panel-title > .geometry-heading-controls {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
  }
  html.crm-content-embedded body #editorView #geometryPanel #searchGeometry { margin-inline-start: auto; }}
html.crm-content-embedded body #editorView #geometryPanel .geometry-size-picker + .crm-select-trigger {
  width: auto;
  min-width: 160px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-size-picker + .crm-select-trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Unified color search and refresh in the CRM palette. */
html.crm-content-embedded body dialog.crm-card-colors-dialog {
  width: min(744px, calc(100% - 32px));
  padding: 0;
  font-family: system-ui, sans-serif;
  box-shadow: none;
  background: var(--crm-palette-workspace);
  color: var(--crm-palette-text);
}
html.crm-content-embedded body .crm-card-colors-dialog > header > button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--crm-palette-secondary);
}
html.crm-content-embedded body #crmCardColorsDialog #productColorsPanel {
  margin: 0;
  padding: 20px;
  border: 0;
  background: transparent;
  color: inherit;
}
html.crm-content-embedded #crmCardColorsDialog #productColorsSearch {
  display: flex;
  gap: 0;
  align-items: stretch;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: 0;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--crm-palette-selection);
}
html.crm-content-embedded body #crmCardColorsDialog #productColorsSearch input {
  display: block;
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  max-height: 44px;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: 0;
  font: 400 16px system-ui, sans-serif;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  line-height: 44px;
}
html.crm-content-embedded #crmCardColorsDialog #productColorsSearch input:focus::placeholder { color: transparent; opacity: 0; }
html.crm-content-embedded body #crmCardColorsDialog button:not([aria-label="Закрыть"]) {
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: 400 14px system-ui, sans-serif;
  box-shadow: none;
}
html.crm-content-embedded body #crmCardColorsDialog #productColorsSearch button {
  margin: 0;
  width: 86px;
  min-width: 86px;
  flex: 0 0 86px;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 0 6px 6px 0;
  background: var(--crm-palette-lime);
  color: var(--crm-palette-lime-ink, #18191c);
}
html.crm-content-embedded body dialog.crm-card-colors-dialog {
  --page-overlay-border: var(--crm-palette-divider);
  --crm-divider-color: var(--crm-palette-divider);
  --line: var(--crm-palette-divider);
}
html.crm-content-embedded body #crmCardColorsDialog [data-colors-refresh] {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex: 0 0 44px;
}
@media (max-width: 900px) {
  html.crm-content-embedded body dialog.crm-card-colors-dialog {
    inset-block: 16px auto;
    margin-block: 0;
    max-height: min(520px, calc(100dvh - 32px), var(--crm-colors-available-height, 520px));
  }}

/* Align the total stock text with the right edge of the column settings icon. */
@media (min-width: 901px) {
  html.crm-content-embedded #editorView .product-overview-sizes .variant-row > b {
    box-sizing: border-box;
    padding-inline-end: 8px;
    text-align: right;
  }}
/* Geometry follows the same two columns and text insets as the content above. */
html.crm-content-embedded body #editorView #geometryPanel > .panel-title {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-heading-copy {
  display: grid;
  min-width: 0;
  gap: 16px;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-status {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font: 400 14px/1.45 system-ui, sans-serif;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-status:empty { display: none; }
html.crm-content-embedded body #editorView #geometryPanel > .panel-title > .geometry-heading-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  order: initial;
  width: auto;
  min-width: 0;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-table td:first-child { padding-inline-start: 0; }
html.crm-content-embedded body #editorView #geometryPanel :is(.geometry-size-picker, .geometry-size-picker + .crm-select-trigger) {
  color: var(--crm-palette-lime, #d6fa55);
  padding-inline-start: 0;
  text-align: start;
}
html.crm-content-embedded body #editorView :is(#generateDescriptionGpt, #geometryPanel #searchGeometry) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 32px;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  background: var(--crm-palette-lime);
  color: var(--crm-palette-workspace);
}
html.crm-content-embedded body #editorView :is(#generateDescriptionGpt, #geometryPanel #searchGeometry).has-generated-content {
  background: var(--crm-palette-selection);
  color: var(--crm-palette-text);
}
html.crm-content-embedded body #editorView :is(#generateDescriptionGpt, #geometryPanel #searchGeometry):focus-visible {
  outline: 2px solid var(--crm-palette-text);
  outline-offset: 3px;
}
html.crm-content-embedded body #editorView :is(#generateDescriptionGpt, #geometryPanel #searchGeometry):hover { filter: brightness(1.12); transform: none; }
@media (min-width: 901px) {
  html.crm-content-embedded body #editorView #geometryPanel { padding-inline: 0; }
  html.crm-content-embedded body #editorView #geometryPanel > .panel-title { padding-inline: 0; }
  html.crm-content-embedded body #editorView #geometryPanel :is(.geometry-heading-copy, .geometry-heading-controls, .geometry-visual, .geometry-table-wrap) {
    box-sizing: border-box;
    padding-inline: 48px;
  }}
@media (max-width: 900px) {
  html.crm-content-embedded body #editorView #geometryPanel > .panel-title { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html.crm-content-embedded body #editorView #geometryPanel .geometry-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }}
@media (min-width: 901px) {
  html.crm-content-embedded body #editorView #geometryPanel {
    margin-inline-end: calc(-1 * var(--crm-card-inset-end, 16px));
  }
  html.crm-content-embedded body #editorView #geometryPanel > .panel-title {
    box-sizing: border-box;
    width: 100%;
    margin-inline: 0;
  }}
html.crm-content-embedded body #editorView #geometryPanel .geometry-heading-controls #searchGeometry { margin-inline-start: auto; }
html.crm-content-embedded body #editorView #geometryPanel .geometry-size-picker {
  appearance: none;
  -webkit-appearance: none;
}

/* Inline prices follow the CRM table grid. */
html.crm-content-embedded body #editorView .product-overview-sizes .variant-price-edit,
html.crm-content-embedded body #editorView .product-overview-sizes .variant-price-input {
  width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent !important; color: inherit; font: inherit; text-align: inherit;
  font-variant-numeric: tabular-nums;
}
html.crm-content-embedded body #editorView .product-overview-sizes .variant-price-edit { cursor: text; }
html.crm-content-embedded body #editorView .product-overview-sizes .variant-price-edit:focus-visible { outline: 1px solid currentColor; }
.crm-content-embedded .variant-row:has(.variant-price-input:focus) { background: var(--crm-menu-active-background, var(--crm-palette-selection, #2c2e30)); }
html.crm-content-embedded body #editorView .product-overview-sizes .variant-price-input:focus { outline: none; box-shadow: none; }
@media (min-width: 901px) {
  /* Split the extended outer gutter between the two content columns. */
  html.crm-content-embedded body #editorView #geometryPanel :is(.geometry-heading-controls, .geometry-table-wrap) {
    padding-inline-start: calc(48px - (var(--crm-card-inset-end, 16px) - 16px) / 2);
  }}

/* Prices start at the description text; stock and settings end at its GPT action. */
html.crm-content-embedded #editorView .product-overview-sizes .variant-row .variant-barcode {
  display: block;
  font: inherit;
}

@media (min-width: 901px) {
  html.crm-content-embedded body #editorView.workspace:not(.is-hidden) .product-overview-sizes .variant-row {
    --crm-price-identity-width: calc(50% + 28px + (var(--crm-card-inset-end, 48px) - var(--crm-card-inset-start, 32px)) / 2);
    padding-inline-end: calc(var(--crm-card-inset-end, 48px) - 18px);
  }
  html.crm-content-embedded #editorView .product-overview-sizes .variant-row > b {
    padding-inline-end: 0;
  }
  html.crm-content-embedded #editorView .crm-prices-column-picker {
    margin-inline-end: -34px;
  }}

/* Match the Characteristics heading: centred 16px/1.08 type and a 48px visual inset. */
@media (min-width: 901px) {
  html.crm-content-embedded body #editorView #geometryPanel > .panel-title {
    padding-block-start: calc(var(--crm-list-row-height, 55px) - 16px * 1.08 / 2);
  }
  html.crm-content-embedded body #editorView #geometryPanel .geometry-heading-copy {
    padding-inline-start: 16px;
  }}
html.crm-content-embedded body #crmCardColorsDialog .primary-color-option { display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left; background: transparent !important; }
html.crm-content-embedded body #crmCardColorsDialog .primary-color-option.is-selected { background: transparent !important; box-shadow: inset 0 0 0 1px var(--crm-palette-selection) !important; color: inherit; }

html.crm-content-embedded body #crmCardColorsDialog .primary-color-option[hidden] { display: none; }

/* Geometry actions blend into their panel; keep the existing icon colour. */
html.crm-content-embedded body #editorView #geometryPanel #searchGeometry.has-generated-content {
  background: transparent;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-diagram {
  width: 100%;
  flex: 0 1 auto;
}
html.crm-content-embedded body #editorView #geometryPanel,
html.crm-content-embedded body #editorView #geometryPanel::before {
  border-block-start: 0;
}
html.crm-content-embedded body #editorView .crm-specs-content-columns:has(~ #geometryPanel:not([hidden], .is-hidden, .crm-card-block-hidden)):not(:has(~ .competitor-price-panel:not([hidden], .is-hidden, .crm-card-block-hidden))) > :is(#specDetailsPanel, .content-panel)::after,
html.crm-content-embedded body #editorView .competitor-price-panel:has(~ #geometryPanel:not([hidden], .is-hidden, .crm-card-block-hidden))::after {
  border-block-end: 0;
}
@media (min-width: 901px) {
  html.crm-content-embedded #editorView .crm-description-geometry-column {
    display: flex;
    flex-direction: column;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    container-type: inline-size;
  }
  html.crm-content-embedded body #editorView .crm-description-geometry-column > #geometryPanel {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
  }
  html.crm-content-embedded body #editorView .crm-description-geometry-column #geometryPanel .geometry-heading-copy {
    padding-inline-start: 48px;
  }}
@container (max-width: 560px) {
  html.crm-content-embedded body #editorView .crm-description-geometry-column #geometryPanel > .panel-title,
  html.crm-content-embedded body #editorView .crm-description-geometry-column #geometryPanel .geometry-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }}

html.crm-content-embedded body #editorView .crm-description-geometry-column > #geometryPanel::after {
  inset-inline: 0;
}
@media (max-width: 900px) {
  html.crm-content-embedded body #editorView .crm-description-geometry-column #geometryPanel > .panel-title {
    box-sizing: border-box;
    width: 100%;
    margin-inline: 0;
  }}

/* Frame diagram spans the panel, with its measurements below. */
html.crm-content-embedded body #editorView #geometryPanel .geometry-visual {
  min-height: 0;
  padding-inline: 0;
}
@media (min-width: 901px) {
  html.crm-content-embedded #editorView .crm-description-extension {
    display: block;
    flex: none;
    position: relative;
    background: var(--crm-palette-header, #242528);
  }
  html.crm-content-embedded #editorView .content-panel.has-description-extension::after {
    display: none;
  }
  html.crm-content-embedded #editorView .crm-description-extension.has-extension::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: var(--crm-palette-divider);
  }}

/* Geometry source uses the full panel width below the title and actions. */
html.crm-content-embedded body #editorView #geometryPanel > .panel-title {
  grid-template-columns: minmax(0, 1fr) auto 40px;
  gap: 16px;
  padding-inline: 48px;
}
html.crm-content-embedded body #editorView #geometryPanel > .panel-title .geometry-heading-copy,
html.crm-content-embedded body #editorView #geometryPanel > .panel-title .geometry-heading-controls {
  display: contents;
  padding: 0;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-heading-copy > h3 {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-status {
  grid-column: 1 / -1;
  grid-row: 2;
}
html.crm-content-embedded body #editorView #geometryPanel .geometry-heading-controls > .geometry-head {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
}
html.crm-content-embedded body #editorView #geometryPanel #searchGeometry {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
@container (max-width: 560px) {
  html.crm-content-embedded body #editorView #geometryPanel > .panel-title {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
  html.crm-content-embedded body #editorView #geometryPanel #searchGeometry { grid-column: 2; }
  html.crm-content-embedded body #editorView #geometryPanel .geometry-heading-controls > .geometry-head {
    grid-column: 1 / -1;
    grid-row: 3;
  }}
@media (max-width: 900px) {
  html.crm-content-embedded body #editorView #geometryPanel > .panel-title { padding-inline: 18px; }}
html.crm-content-embedded body #editorView #geometryPanel > .panel-title > .geometry-status {
  width: 100%;
  justify-self: stretch;
  box-sizing: border-box;
}
html.crm-content-embedded body #editorView #geometryPanel > .panel-title > .geometry-status { grid-column: 1 / span 3; }
@container (max-width: 560px) {
  html.crm-content-embedded body #editorView #geometryPanel > .panel-title > .geometry-status { grid-column: 1 / span 2; }}
html.crm-content-embedded body #editorView #geometryPanel #searchGeometry { align-self: center; }

/* Keep size selection below the frame, separated from the image. */
html.crm-content-embedded body #editorView .crm-description-geometry-column #geometryPanel .geometry-layout { row-gap: 48px; }
html.crm-content-embedded body #editorView #geometryPanel .geometry-table-wrap > .geometry-head {
  margin: 0 0 16px;
  padding: 0;
}

/* Use the description gutters for every geometry row. */
@media (min-width: 901px) {
  html.crm-content-embedded body #editorView #geometryPanel :is(.geometry-visual, .geometry-table-wrap) {
    box-sizing: border-box;
    padding-inline: 48px;
  }}
html.crm-content-embedded body #editorView #geometryPanel .geometry-table td:last-child { padding-inline-end: 0; }
html.crm-content-embedded body #editorView #geometryPanel .geometry-table-wrap > .geometry-head { justify-content: flex-start; }

/* Detailed specifications end without an extra bottom divider. */
html.crm-content-embedded #editorView #specDetailsPanel[data-product-editor-panel]::after {
  content: none;
}

/* Selection visibility follows the personal column filter. */
html.crm-content-embedded[data-crm-hidden-columns~="selection"] #catalogView :is(.catalog-select-head, .catalog-select-cell, .catalog-selection-toolbar) {
  display: none;
}
html.crm-content-embedded #catalogView .catalog-select-head input[type="checkbox"] {
  margin: 0;
}

/* Bulk catalog actions use the shared CRM header instead of a table row. */
html.crm-content-embedded #catalogView .catalog-selection-toolbar{
  display: none;
}

/* Centre selection controls inside the square menu-grid column. */
html.crm-content-embedded #catalogView .catalog-select-hitbox {
  width: 100%;
}
html.crm-content-embedded #catalogView .catalog-select-head {
  text-align: center;
}

/* The photo area has its own resize boundary inside the product column. */
html.crm-content-embedded #catalogView .catalog-thumbnail-heading {
  position: relative;
  align-self: stretch;
  flex-basis: var(--content-thumbnail-width, var(--content-thumb-size));
}
html.crm-content-embedded #catalogView .catalog-thumbnail-heading .catalog-column-grip {
  inset-inline-end: calc(-1 * var(--content-thumb-gap) / 2);
}
html.crm-content-embedded #catalogView .table-product {
  grid-template-columns: var(--content-thumbnail-width, var(--content-thumb-size)) minmax(0, 1fr);
}
html.crm-content-embedded #catalogView .table-thumb {
  justify-self: center;
  max-width: 100%;
  object-fit: contain;
}
html.crm-content-embedded[data-crm-hidden-columns~="thumbnails"] #catalogView .table-product {
  grid-template-columns: minmax(0, 1fr);
}

/* Product publication follows the lower edge of the first details block. */
html.crm-content-embedded #catalogView #crmCardPublishProgress {
  position: absolute;
  top: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

/* One card readiness window, opened from the footer. */
html.crm-content-embedded body #crmCardReadinessDialog {
  --page-overlay-background: var(--crm-palette-header, #242528);
  --page-overlay-ink: var(--crm-palette-text, #cdcdcd);
  --ink: var(--crm-palette-text, #cdcdcd);
  --muted: var(--crm-palette-muted, #afafaf);
  width: min(1120px, calc(100% - 48px));
  height: min(680px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border-color: var(--crm-palette-divider, var(--line));
  background: var(--crm-palette-header, #242528);
  color: var(--crm-palette-text, #cdcdcd);
  overflow: hidden;
}
/* Catalog summary uses the same typography and muted color as header search. */
html.crm-content-embedded body #catalogView .crm-content-footer:not(.crm-card-publish-footer) :is(.sync-filter-card, .metric-card) {
  color: var(--crm-palette-muted, #bbb);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}
html.crm-content-embedded body #catalogView .crm-content-footer:not(.crm-card-publish-footer) :is(strong, span, p) {
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}

/* Reviewer options use the same grey surface as the selected CRM menu row. */
html.crm-content-embedded #qualityReviewPicker {
  background: var(--crm-palette-selection, #383a3d);
  color: var(--crm-palette-text, #cdcdcd);
  border-color: var(--crm-palette-divider, #383a3d);
}
html.crm-content-embedded #qualityReviewPicker > strong,
html.crm-content-embedded #qualityReviewSearch {
  display: none;
}
html.crm-content-embedded #qualityReviewUsers {
  margin-top: 0;
}
html.crm-content-embedded #qualityReviewUsers .quality-review-user + .quality-review-user {
  margin-top: 6px;
}
html.crm-content-embedded #catalogView #qualityReviewPicker .quality-review-user,
html.crm-content-embedded #catalogView #qualityReviewPicker .quality-review-clear {
  color: var(--crm-palette-text, #cdcdcd);
}
html.crm-content-embedded #catalogView #qualityReviewPicker .quality-review-user:is(:hover, :focus-visible, [aria-pressed="true"]) {
  background: var(--crm-palette-workspace, #18191c);
}
html.crm-content-embedded #catalogView #qualityReviewPicker .quality-review-user[aria-pressed="true"] {
  color: var(--crm-palette-lime, #d6fa55);
}

/* Keep the total and archive summaries together at the trailing edge. */
html.crm-content-embedded body #catalogView .crm-content-footer .metric-card:has(#metricTotal) {
  margin-inline-start: auto;
}
/* Match the related-colors heading to the dialog heading. */
html.crm-content-embedded body #crmCardColorsDialog #productColorsPanel { padding: 0 20px 20px; }
html.crm-content-embedded body #crmCardColorsDialog .product-colors-heading-row [data-colors-refresh] {
  width: 36px;
  height: 36px;
  padding: 6px;
  flex: 0 0 36px;
}
/* Footer summaries fit their text so visible spacing matches adjacent filters. */
html.crm-content-embedded body #catalogView .crm-content-footer .metric-card {
  min-width: 0;
}
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .variant-price-edit { padding: 0; border: 0; border-radius: 0; font: inherit; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .variant-price-input { width: 100px; font: inherit; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .variant-price-edit, :is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .variant-price-input { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; font-variant-numeric: tabular-nums; cursor: text; }
/* Use the same markup, desktop rules and footer as the ordinary CRM card.
   Only the surrounding catalogue navigation is omitted in this mirror. */
html.crm-content-preview-document body #catalogView #catalogLayout { display: block; }
html.crm-content-preview-document body #catalogView #catalogLayout > :is(.catalog-sidebar, .catalog-subcategories, .catalog-panel) { display: none !important; }
html.crm-content-preview-document body #catalogView #editorView { width: 100%; min-width: 0; margin: 0; }
html.crm-content-preview-document #editorView .editor-area { min-width: 0; padding-top: 0; }
/* The full card moves this action into the outer CRM toolbar as well. */
html.crm-content-preview-document #editorView .media-panel > .panel-title { display: none; }

/* Eye mode can remove all category columns without changing their menu state. */
html:root.crm-content-embedded.crm-preview-categories-hidden:not(.crm-purchase-card-context) #catalogView #catalogLayout {
  grid-template-columns: minmax(0, 1fr) !important;
}
html:root.crm-content-embedded.crm-preview-categories-hidden:not(.crm-purchase-card-context) #catalogView #catalogLayout > .catalog-sidebar {
  display: none !important;
}
html.crm-content-embedded[data-crm-hidden-columns~="article"] .catalog-article-cell,
html.crm-content-embedded[data-crm-hidden-columns~="barcode"] .catalog-barcode-cell,
html.crm-content-embedded[data-crm-hidden-columns~="weight"] .catalog-weight-cell,
html.crm-content-embedded[data-crm-hidden-columns~="country"] .catalog-country-cell,
html.crm-content-embedded[data-crm-hidden-columns~="year"] .catalog-year-cell,
html.crm-content-embedded[data-crm-hidden-columns~="category"] .catalog-category-cell {
  display: none;
}
html.crm-content-embedded .catalog-table :is(.catalog-article-cell, .catalog-barcode-cell, .catalog-weight-cell, .catalog-country-cell, .catalog-year-cell, .catalog-category-cell) {
  min-width: 110px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
html.crm-content-embedded[data-crm-hidden-columns~="competitor-prices"] .catalog-competitor-prices-cell { display: none; }
html.crm-content-embedded .catalog-competitor-prices-cell { min-width: 150px; }
html.crm-content-embedded .catalog-table :is(.catalog-article-cell, .catalog-barcode-cell) {
  min-width: 165px;
  white-space: nowrap;
  overflow-wrap: normal;
}

html.crm-content-embedded.crm-catalog-extra-columns-visible #catalogView .catalog-table :is(.catalog-product-column-head, td:has(> .table-product)) {
  min-width: 450px;
}
html.crm-content-embedded #catalogView .catalog-table :is(.catalog-article-cell, .catalog-barcode-cell, .catalog-weight-cell, .catalog-country-cell, .catalog-year-cell, .catalog-category-cell, .catalog-competitor-prices-cell) {
  padding-inline: var(--content-menu-inset);
  text-align: left;
}
/* Catalog footer: shared purchase funnel before the filter counters. */
html.crm-content-embedded body #catalogView .crm-content-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--crm-palette-text-muted, #afafaf);
}
html.crm-content-embedded body #catalogView .crm-content-filter-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

html.crm-content-embedded body #catalogView button.crm-content-filter-icon {
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--crm-palette-muted, #bbb);
  cursor: pointer;
}
html.crm-content-embedded body #catalogView button.crm-content-filter-icon:is(:hover, [aria-expanded="true"]) { color: var(--crm-palette-text, #cdcdcd); }
html.crm-content-embedded body #catalogView button.crm-content-filter-icon:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
html.crm-content-embedded body #catalogView .crm-content-footer .sync-filter-card[hidden],
html.crm-content-embedded body #catalogView .crm-content-footer .metric-card[hidden],
html.crm-content-embedded body #catalogView .crm-content-filters-panel[hidden] { display: none; }
html.crm-content-embedded body #catalogView .crm-content-filters-panel {
  position: fixed;
  z-index: 30;
  inset: 0 0 var(--content-footer-height, 48px) auto;
  box-sizing: border-box;
  width: min(320px, 100%);
  overflow-y: auto;
  background: var(--crm-palette-panel, #1c1d20);
  border-left: 1px solid var(--crm-palette-divider, #383a3c);
  color: var(--crm-palette-text, #cdcdcd);
  font: 14px system-ui, sans-serif;
}
html.crm-content-embedded body #catalogView .crm-content-filters-panel header { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; border-bottom: 1px solid var(--crm-palette-divider, #383a3c); }
html.crm-content-embedded body #catalogView .crm-content-filters-panel h2 { margin: 0; font: inherit; }
html.crm-content-embedded body #catalogView .crm-content-filters-panel header button { display: grid; place-items: center; width: 32px; height: 32px; padding: 4px; border: 0; background: transparent; color: inherit; cursor: pointer; }
html.crm-content-embedded body #catalogView .crm-content-filters-panel header svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
html.crm-content-embedded body #catalogView .crm-content-filter-options label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; cursor: pointer; }
html.crm-content-embedded body #catalogView .crm-content-filter-options label:hover { background: var(--crm-palette-hover, #303236); }
html.crm-content-embedded body #catalogView .crm-content-filter-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--crm-palette-accent, #d6f56b); }

/* The first photo has matching actions in its upper corners. */
html.crm-content-embedded .photo-actions-right :is(.photo-optimize-button, .photo-color-history) {
  position: static;
}

/* Processing and undo stay beside the relocated brush, including after mouseout. */
html.crm-content-embedded .photo-card--color-history:not(:hover, :focus-within) .photo-actions-right .icon-button {
  opacity: .82;
}
html.crm-content-embedded .photo-card--color-history:not(:hover, :focus-within) .photo-actions-right button.icon-button {
  pointer-events: auto;
}

/* Product category and the empty photo surface share the card's existing controls. */
html.crm-content-embedded body #editorView #specSummaryPanel :is(.crm-card-category-row, .crm-card-brand-row) {
  position: relative;
  box-sizing: border-box;
  width: calc(100% + 36px + var(--crm-card-inset-start, 0px) + var(--crm-card-inset-end, 0px));
  text-align: start;
  font-family: inherit;
  font-weight: 400;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
html.crm-content-embedded #editorView :is(.crm-card-category-row, .crm-card-brand-row) strong { padding-inline-end: 40px; font-weight: 400; text-align: start; }
html.crm-content-embedded #editorView :is(.crm-card-category-row, .crm-card-brand-row) > svg {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
html.crm-content-embedded #editorView :is(.crm-card-category-row, .crm-card-brand-row):hover { color: var(--crm-palette-lime, #d6fa55); }
html.crm-content-embedded body #catalogView #editorView .crm-card-header > .media-panel[data-product-editor-panel] {
  background: var(--crm-palette-panel, #1c1d20);
  border: 0; box-shadow: none; background-image: none; isolation: isolate;
}
html.crm-content-embedded body #catalogView #editorView .crm-card-header > .media-panel::before {
  content: ""; position: absolute; inset-block: 0;
  inset-inline: 0 calc(-1 * var(--crm-card-inset-end, 0px));
  z-index: -1; background: var(--crm-palette-panel, #1c1d20); pointer-events: none;
}
html.crm-content-embedded #editorView .crm-card-header > .media-panel::after { content: none; }
html.crm-content-embedded #editorView .crm-card-empty-photo {
  display: grid; place-items: center; grid-column: 1 / -1;
  width: 100%; height: 100%; min-height: 260px; padding: 24px;
  border: 0; border-radius: 0; background: transparent; color: #55575b; cursor: pointer;
}
html.crm-content-embedded #editorView .crm-card-empty-photo svg {
  width: 80px; height: 80px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
html.crm-content-embedded #editorView .crm-card-empty-photo:hover { color: #77797d; }
html.crm-content-embedded #editorView :is(.crm-card-category-row, .crm-card-brand-row, .crm-card-empty-photo):focus-visible { outline: 1px solid var(--crm-palette-lime, #d6fa55); outline-offset: -2px; }

@media (max-width: 900px) { html.crm-content-embedded #editorView :is(.crm-card-category-row, .crm-card-brand-row) > svg { right: calc(22px + var(--crm-card-inset-end, 0px)); }}
html.crm-content-embedded body :is(#crmProductCategoryPicker, #crmProductBrandPicker) {
  --page-overlay-background: var(--crm-palette-workspace, #18191c);
  --page-overlay-ink: var(--crm-palette-text-primary, #cdcdcd);
  --page-overlay-border: var(--crm-palette-divider, #383a3d);
  --page-overlay-hover: var(--crm-palette-selection, #383a3d);
  --ink: var(--page-overlay-ink);
  color-scheme: dark;
  background: var(--page-overlay-background); color: var(--page-overlay-ink);
  border: 1px solid var(--page-overlay-border); box-shadow: none;
}
html.crm-content-embedded body #crmProductCategoryPicker input {
  border: 1px solid var(--page-overlay-border); box-shadow: none;
  background: var(--crm-palette-panel, #1c1d20); color: inherit;
}

/* Availability is independent of the catalog quality filters. */
html.crm-content-embedded #catalogView .catalog-stock-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--crm-palette-muted, #bbb);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
html.crm-content-embedded #catalogView .catalog-stock-filter[hidden] { display: none; }
html.crm-content-embedded #catalogView .catalog-stock-filter input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--crm-palette-accent, #d6f56b);
}

/* Keep availability beside the trailing catalog totals. */
html.crm-content-embedded #catalogView .catalog-stock-filter {
  margin-inline-start: auto;
}
html.crm-content-embedded body #catalogView .crm-content-footer:has(.catalog-stock-filter:not([hidden])) .metric-card:has(#metricTotal) {
  margin-inline-start: 0;
}

/* Keep price column labels aligned with the detailed specification text role. */
html.crm-content-embedded body #editorView .product-overview-sizes .variant-row-head > * {
  font-family: system-ui, sans-serif;
  font-size: 14px !important;
  font-weight: 400;
}
/* Keep description controls together and the filter at the far right on narrow CRM windows. */
html.crm-content-embedded #editorView .content-panel .content-tabs-row {
  flex-direction: row;
  align-items: center;
}
html.crm-content-embedded #editorView .content-panel .content-left-controls { width: auto; }
html.crm-content-embedded #editorView .content-panel .content-description-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
}
html.crm-content-embedded #editorView .content-panel .description-format-toolbar { width: auto; }

/* Channel descriptions share the main description's unframed text surface. */
html.crm-content-embedded body #editorView .channel-description-editor {
  border-radius: 0;
  resize: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
}
html.crm-content-embedded body #editorView .channel-description-editor::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* Independent manufacturer gallery follows geometry in its half-width column. */
html.crm-content-embedded body #editorView .manufacturer-photos-panel {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
/* Separate packaging images from the preceding manufacturer gallery. */
html.crm-content-embedded body #editorView #packagingPhotosPanel {
  border-top: 1px solid var(--crm-palette-divider, rgb(56 58 61 / 40%));
}
html.crm-content-embedded body #editorView .manufacturer-photos-panel > .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--manufacturer-heading-height, auto);
  padding: 0 48px;
  margin: 0;
  border-bottom: 1px solid var(--crm-palette-divider, rgb(56 58 61 / 40%));
}
html.crm-content-embedded body #editorView .manufacturer-photos-panel > .panel-title h3 {
  margin: 0;
  color: var(--crm-palette-lime, #d6f56b);
  font: inherit;
}

/* Reuse the main gallery overlay and let manufacturer images keep their ratio. */
html.crm-content-embedded #editorView .manufacturer-photo-grid .photo-thumb {
  aspect-ratio: auto;
}

/* Paint the gallery content too, including rows beyond the panel viewport. */
html.crm-content-embedded #editorView .media-panel > .photo-grid,
html.crm-content-embedded body #editorView .manufacturer-photos-panel > .manufacturer-photo-grid {
  background: inherit;
}
html.crm-content-embedded body #editorView .crm-description-geometry-column > #productPresentationPanel {
  box-sizing:border-box; width:100%; min-width:0; margin:0; padding:0;
  border:0; border-radius:0;
  border-top:1px solid var(--crm-palette-divider, rgb(56 58 61 / 40%));
  background:var(--crm-palette-header, #242528);
}
html.crm-content-embedded body #editorView #productPresentationPanel > .panel-title { margin:0; padding:16px 48px; }