.cpm-wrap .cpm-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  padding: 16px 20px;
  margin: 16px 0;
  max-width: 960px;
}
.cpm-wrap .cpm-card h2 {
  margin-top: 0;
}
.cpm-wrap .cpm-map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 920px;
  margin: 0 0 12px;
}
.cpm-wrap .cpm-map-field {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cpm-wrap .cpm-map-field label {
  font-weight: 600;
  color: #1d2327;
}
.cpm-wrap .cpm-map-grid input {
  width: 100%;
  max-width: none;
}
.cpm-wrap .cpm-map-grid select,
.cpm-wrap .cpm-map-grid .select2-container {
  width: 100% !important;
  max-width: none;
}
.cpm-wrap .select2-container .select2-selection--single {
  min-height: 30px;
  border-color: #8c8f94;
}
.cpm-wrap .cpm-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cpm-wrap .cpm-pending-actions form {
  margin: 0;
}
.cpm-wrap .cpm-pending-actions .button {
  margin: 0 !important;
}

.cpm-refresh-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  max-width: 36rem;
}
.cpm-refresh-status__label {
  font-weight: 600;
  color: #1d2327;
  font-size: 14px;
}
.cpm-refresh-status__detail {
  color: #50575e;
  font-size: 13px;
  line-height: 1.45;
}
.cpm-refresh-status.is-busy {
  background: #fff8e5;
  border-color: #f0c33c;
}
.cpm-refresh-status.is-busy .cpm-refresh-status__label {
  color: #996800;
}
.cpm-refresh-status.is-error {
  background: #fcf0f1;
  border-color: #d63638;
}
.cpm-refresh-status.is-error .cpm-refresh-status__label {
  color: #b32d2e;
}
.cpm-refresh-status.is-ready .cpm-refresh-status__label {
  color: #007017;
}

/* Product edit — quiet native panel */
#cpm_monitor_box {
  border-color: #c3c4c7;
  box-shadow: none;
}
#cpm_monitor_box > .postbox-header,
#cpm_monitor_box .hndle {
  border-bottom: 1px solid #dcdcde;
}
.cpm-product-panel {
  padding: 2px 0 6px;
}
.cpm-product-panel__lede {
  color: #50575e;
  max-width: 52rem;
  margin: 0 0 12px;
}
.cpm-product-panel__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.cpm-product-panel__stat {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  padding: 10px 12px;
}
.cpm-product-panel__stat.is-above {
  border-color: #dba617;
  background: #fcf9e8;
}
.cpm-product-panel__stat.is-below {
  border-color: #68de7c;
  background: #edfaef;
}
.cpm-product-panel__stat.is-match {
  border-color: #72aee6;
  background: #f0f6fc;
}
.cpm-product-panel__stat--suggest {
  border-color: #c3c4c7;
  background: #fff;
}
.cpm-product-panel__stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #646970;
  margin-bottom: 4px;
}
.cpm-product-panel__stat-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1d2327;
  line-height: 1.35;
}
.cpm-product-panel__stat-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #646970;
  font-weight: 400;
}
.cpm-product-panel__prices {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.cpm-product-panel__prices-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin: 0 0 10px;
}
.cpm-product-panel__prices h4 {
  margin: 0;
}
.cpm-product-panel__asof {
  font-weight: 400;
  font-size: 12px;
  color: #646970;
}
.cpm-product-panel__table .cpm-best {
  font-weight: 700;
}
.cpm-product-panel__table .cpm-row-best td {
  background: #f0f6fc;
}
.cpm-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  background: #dcdcde;
  color: #1d2327;
  vertical-align: middle;
}
.cpm-product-panel__helpers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  max-width: 520px;
  padding: 8px 0 4px;
}
.cpm-product-panel__floor {
  grid-column: 1 / -1;
  margin: 4px 0 0;
}
.cpm-product-panel__details {
  border: 1px solid #dcdcde;
  border-radius: 4px;
  padding: 0 12px 8px;
  margin: 0 0 10px;
  background: #fff;
}
.cpm-product-panel__details > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
  color: #1d2327;
}
.cpm-product-panel__rules label {
  display: inline-block;
  min-width: 7rem;
}
.cpm-product-panel__rules select,
.cpm-product-panel__rules input[type="text"] {
  max-width: 28rem;
}
.cpm-product-panel__actions {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cpm-product-panel__actions .button {
  margin: 0;
}
.cpm-demo-inert-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  color: #646970;
  background: #f0f0f1;
  border: 1px dashed #c3c4c7;
  border-radius: 3px;
}
/* Server-rendered demo inert (before/without MU JS) */
button.cpm-demo-inert,
.button.cpm-demo-inert {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.4);
  box-shadow: none;
}
.button-primary.cpm-demo-inert {
  background: #8c8f94;
  border-color: #8c8f94;
  color: #fff;
}

/* Demo: do not permanently blur locked menus here — MU plugin owns hover-only blur */
body.cpm-demo-admin .cpm-tour-allow-click,
body.cpm-demo-admin .cpm-tour__btn {
  opacity: 1 !important;
  pointer-events: auto !important;
}
