/* CP-002B-COMMERCIAL-PUBLISHING-CENTER */

.cp-publishing-launcher {
  cursor: pointer;
}

.cp-publishing-modal[hidden] {
  display: none !important;
}

.cp-publishing-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cp-publishing-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

.cp-publishing-dialog {
  position: relative;
  width: min(1180px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 24px;
  background: var(--surface, #ffffff);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.34);
  color: var(--text-primary, #172033);
}

.cp-publishing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.cp-publishing-kicker {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #64748b;
}

.cp-publishing-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.cp-publishing-subtitle {
  max-width: 760px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
}

.cp-publishing-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cp-publishing-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 26px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.cp-publishing-tab {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 10px 15px;
  background: #f8fafc;
  color: #475569;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.cp-publishing-tab[aria-selected="true"] {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.cp-publishing-content {
  max-height: calc(100vh - 230px);
  overflow: auto;
  padding: 22px 26px 28px;
}

.cp-publishing-panel[hidden] {
  display: none !important;
}

.cp-preview-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.cp-field-label {
  display: block;
  margin-bottom: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.cp-source-box {
  min-height: 45px;
  display: flex;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  overflow-wrap: anywhere;
}

.cp-primary-button,
.cp-secondary-button {
  min-height: 45px;
  border-radius: 12px;
  padding: 10px 17px;
  font-weight: 800;
  cursor: pointer;
}

.cp-primary-button {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.cp-secondary-button {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: #ffffff;
  color: #334155;
}

.cp-primary-button:disabled,
.cp-secondary-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.cp-preview-status {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
}

.cp-preview-status[data-state="error"] {
  background: #fef2f2;
  color: #b91c1c;
}

.cp-preview-status[data-state="success"] {
  background: #ecfdf5;
  color: #047857;
}

.cp-preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.cp-preview-metric {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  background: #ffffff;
}

.cp-preview-metric strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.cp-preview-metric span {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.cp-preview-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
}

.cp-preview-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.cp-preview-table th,
.cp-preview-table td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
  font-size: 13px;
}

.cp-preview-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.cp-mapping-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
}

.cp-placeholder-panel {
  display: grid;
  place-items: center;
  min-height: 310px;
  padding: 32px;
  border: 1px dashed rgba(148, 163, 184, 0.48);
  border-radius: 18px;
  text-align: center;
  background: #f8fafc;
}

.cp-placeholder-panel h3 {
  margin: 0 0 8px;
}

.cp-placeholder-panel p {
  max-width: 600px;
  margin: 0;
  color: #64748b;
}

.cp-security-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
}

@media (max-width: 760px) {
  .cp-publishing-modal {
    padding: 10px;
  }

  .cp-publishing-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .cp-publishing-header {
    padding: 19px;
  }

  .cp-publishing-tabs {
    padding-inline: 19px;
  }

  .cp-publishing-content {
    padding: 18px 19px 22px;
  }

  .cp-preview-toolbar {
    grid-template-columns: 1fr;
  }

  .cp-preview-metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

/* CP-003A-PUBLISHING-CENTER-INLINE-WORKSPACE */

#commercial-composer-workspace.cp-inline-workspace-active {
  display: block;
}

#commercial-composer-workspace
  > .cp-publishing-modal.cp-publishing-inline-workspace {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  width: 100%;
  min-height: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
}

#commercial-composer-workspace
  > .cp-publishing-modal.cp-publishing-inline-workspace[hidden] {
  display: none !important;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-publishing-backdrop {
  display: none !important;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-publishing-dialog {
  position: static;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  overflow: visible;
  border-radius: 20px;
  box-shadow: none;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-publishing-content {
  overflow: visible;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-publishing-close.cp-publishing-back-button {
  width: auto;
  min-width: 190px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 760px) {
  #commercial-composer-workspace
    > .cp-publishing-inline-workspace
    .cp-publishing-dialog {
    width: 100%;
    max-height: none;
    border-radius: 16px;
  }

  #commercial-composer-workspace
    > .cp-publishing-inline-workspace
    .cp-publishing-close.cp-publishing-back-button {
    min-width: 0;
    width: 100%;
  }
}

/* CP-003A1-PUBLISHING-CENTER-CONTRAST-FIX */

/*
 * Contrasto dedicato esclusivamente al Publishing Center
 * integrato nel Commercial Composer.
 */

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-publishing-header {
  color: #f8fafc;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-publishing-kicker {
  color: #94a3b8;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-publishing-title {
  color: #ffffff;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-publishing-subtitle {
  color: #cbd5e1;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-field-label {
  color: #cbd5e1;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-preview-table tbody td {
  color: #e2e8f0;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-preview-table tbody td strong {
  color: #f8fafc;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-preview-table tbody tr {
  background: rgba(15, 23, 42, 0.22);
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-preview-table tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.24);
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-preview-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.14);
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-preview-table tbody td {
  border-bottom-color: rgba(148, 163, 184, 0.20);
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-preview-table th {
  color: #334155;
  background: #f8fafc;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-source-box {
  color: #334155;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-preview-metric strong {
  color: #0f172a;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-preview-metric span {
  color: #64748b;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-security-note {
  color: #475569;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-placeholder-panel h3 {
  color: #0f172a;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-placeholder-panel p {
  color: #64748b;
}

/* CP-004A-CATALOG-FAMILY-BROWSER */

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-catalog-browser {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(620px, 1.7fr);
  gap: 18px;
  align-items: start;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-family-browser-panel,
#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-browser-panel {
  min-width: 0;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-browser-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-browser-panel-header h3 {
  margin: 3px 0 0;
  color: #f8fafc;
  font-size: 17px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-browser-panel-header p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-browser-eyebrow {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-browser-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-family-table {
  min-width: 520px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-products-table {
  min-width: 980px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-family-row {
  cursor: pointer;
  transition:
    background-color 140ms ease,
    box-shadow 140ms ease;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-family-row:hover {
  background: rgba(59, 130, 246, 0.18);
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-family-row.is-selected {
  background: rgba(37, 99, 235, 0.28);
  box-shadow: inset 4px 0 0 #3b82f6;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-family-row:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: -2px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-family-row td:nth-child(2) strong,
#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-family-row td:nth-child(2) small {
  display: block;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-family-row td:nth-child(2) small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 10px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-products-table-wrap {
  max-height: 660px;
  overflow: auto;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-products-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-item-separator-row td {
  background: #334155;
  color: #f8fafc;
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-item-separator-row td strong {
  color: #ffffff;
  letter-spacing: 0.02em;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-item-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-row td:nth-child(4),
#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-row td:nth-child(5),
#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-row td:nth-child(6),
#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-row td:nth-child(7) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1180px) {
  #commercial-composer-workspace
    > .cp-publishing-inline-workspace
    .cp-catalog-browser {
    grid-template-columns: 1fr;
  }

  #commercial-composer-workspace
    > .cp-publishing-inline-workspace
    .cp-products-table-wrap {
    max-height: 560px;
  }
}

/* CP-004B-CATALOG-PRODUCT-SEARCH */

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-search-tools {
  display: grid;
  grid-template-columns: minmax(230px, 320px) 38px;
  gap: 8px;
  align-items: end;
  justify-items: stretch;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-search-field {
  display: grid;
  gap: 5px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-search-field > span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-search-field input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 10px;
  outline: none;
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
  font-size: 12px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-search-field input::placeholder {
  color: #64748b;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-search-field input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-search-clear {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.72);
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-search-clear:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.94);
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-search-clear:disabled {
  opacity: 0.38;
  cursor: default;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-product-result-count {
  grid-column: 1 / -1;
  justify-self: end;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-no-search-results td {
  padding: 32px 16px;
  color: #cbd5e1;
  text-align: center;
  font-style: italic;
}

@media (max-width: 760px) {
  #commercial-composer-workspace
    > .cp-publishing-inline-workspace
    .cp-browser-panel-header {
    display: grid;
  }

  #commercial-composer-workspace
    > .cp-publishing-inline-workspace
    .cp-product-search-tools {
    grid-template-columns: minmax(0, 1fr) 38px;
    width: 100%;
  }
}

/* CP-004C-CATALOG-ROW-DETAIL-READONLY */
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-panel{margin-top:16px;padding:16px;border:1px solid rgba(148,163,184,.24);border-radius:16px;background:rgba(15,23,42,.38)}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-header{display:flex;justify-content:space-between;gap:14px;margin-bottom:14px}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-header h3{margin:4px 0 0;color:#f8fafc;font-size:16px}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-close{width:34px;height:34px;border:1px solid rgba(148,163,184,.34);border-radius:10px;background:rgba(30,41,59,.76);color:#e2e8f0;font-size:19px;cursor:pointer}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-close:disabled{opacity:.38;cursor:default}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-grid>div{padding:11px 12px;border:1px solid rgba(148,163,184,.18);border-radius:11px;background:rgba(30,41,59,.42)}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-grid span{display:block;margin-bottom:5px;color:#94a3b8;font-size:10px;font-weight:800;text-transform:uppercase}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-grid strong{display:block;overflow-wrap:anywhere;color:#f8fafc;font-size:12px;line-height:1.45}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-wide{grid-column:span 2}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-status{display:grid;gap:4px;margin-top:12px;padding:12px 13px;border-radius:11px;background:rgba(51,65,85,.54)}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-status span{color:#94a3b8;font-size:10px;font-weight:800;text-transform:uppercase}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-status strong{color:#fbbf24;font-size:12px}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-status small{color:#cbd5e1;font-size:11px}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-product-row,#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-item-separator-row{cursor:pointer}
#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-product-row.is-selected td,#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-item-separator-row.is-selected td{box-shadow:inset 0 2px 0 #60a5fa,inset 0 -2px 0 #60a5fa}
@media(max-width:900px){#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-grid{grid-template-columns:1fr}#commercial-composer-workspace > .cp-publishing-inline-workspace .cp-row-detail-wide{grid-column:auto}}

/* CP-004D3R1-COMPARISON-STATUS-UI */

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-badge[data-status="UNCHANGED"] {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-badge[data-status="UPDATABLE"] {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(250, 204, 21, 0.38);
  color: #fde68a;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-badge[data-status="NEW"] {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.38);
  color: #bfdbfe;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-badge[data-status="CONFLICT"] {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(248, 113, 113, 0.40);
  color: #fecaca;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-badge[data-status="SEPARATOR"] {
  background: rgba(71, 85, 105, 0.55);
  border-color: rgba(203, 213, 225, 0.30);
  color: #f8fafc;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-detail {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.28);
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-detail-header > div {
  display: grid;
  gap: 3px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-detail-header strong {
  color: #f8fafc;
  font-size: 12px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-detail-header span {
  color: #94a3b8;
  font-size: 10px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-differences {
  display: grid;
  gap: 8px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-differences article {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.65fr)
    minmax(160px, 1fr)
    minmax(160px, 1fr);
  gap: 9px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-differences article > span,
#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-differences article > div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(30, 41, 59, 0.55);
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-differences article > span {
  display: flex;
  align-items: center;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-differences article > div {
  display: grid;
  gap: 4px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-differences small {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-differences strong {
  color: #f8fafc;
  font-size: 11px;
  overflow-wrap: anywhere;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-empty {
  margin: 0;
  padding: 13px;
  border-radius: 9px;
  background: rgba(30, 41, 59, 0.42);
  color: #cbd5e1;
  font-size: 11px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-products-table th:last-child,
#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-products-table td:last-child {
  text-align: center;
}

@media (max-width: 760px) {
  #commercial-composer-workspace
    > .cp-publishing-inline-workspace
    .cp-comparison-differences article {
    grid-template-columns: 1fr;
  }
}

/* CP-004D4-COMPARISON-STATUS-FILTERS */

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-filter-bar {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.34);
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-filter-buttons button {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.62);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-filter-buttons button.is-active {
  border-color: rgba(96, 165, 250, 0.82);
  background: rgba(37, 99, 235, 0.28);
  color: #dbeafe;
}

/* CP-004D4R1-STATUS-FILTER-SINGLE-SOURCE */

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-filter-buttons button {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

#commercial-composer-workspace
  > .cp-publishing-inline-workspace
  .cp-comparison-filter-buttons button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
