/* Patch 754: compact product metrics; inherit the selected site's font/palette.
   Content-sized flex items wrap inside the photo column, not at viewport sizes.
   Keep this stylesheet after catalog/review_layout so old mobile sizes cannot win. */
.cfp-highlights.cfp-highlights-compact {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  gap: 12px 8px;
  margin-top: 12px;
  padding: 12px 10px;
  border: 1px solid var(--color-border, #e6d9c7);
  border-radius: 10px;
  font-family: inherit;
}

.cfp-highlights-compact .cfp-highlight {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  min-width: 86px;
  max-width: 100%;
  gap: 6px;
  padding: 0 3px;
  text-align: center;
}

.cfp-highlights-compact .cfp-score-circle {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  min-width: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border, #d9c6ad);
  border-radius: 50%;
  background: var(--color-card, #fffdf9);
  color: var(--color-primary, #6a4934);
  font-family: inherit;
  text-align: center;
}

.cfp-highlights-compact .cfp-score-circle strong {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

/* Percentage values include an extra unit; leave breathing room at 100%. */
.cfp-highlights-compact .cfp-score-circle .cfp-score-percentage {
  font-size: 14px;
  letter-spacing: -.02em;
}

.cfp-highlights-compact .cfp-score-circle .cfp-score-percentage-full {
  font-size: 12px;
}

.cfp-highlights-compact .cfp-highlight h3 {
  margin: 0;
  max-width: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--color-primary, #6a4934);
}

/* Native disclosure works with mouse, keyboard and touch, without extra JS.
   Notes are positioned against the full strip so they never widen a metric. */
.cfp-highlights-compact .cfp-metric-explanation {
  width: 38px;
  margin: 0;
  padding: 0;
}

.cfp-highlights-compact summary.cfp-score-circle {
  list-style: none;
  cursor: pointer;
}

.cfp-highlights-compact summary.cfp-score-circle::-webkit-details-marker {
  display: none;
}

.cfp-highlights-compact summary.cfp-score-circle::marker {
  content: "";
}

.cfp-highlights-compact summary.cfp-score-circle:hover,
.cfp-highlights-compact .cfp-metric-explanation[open] summary.cfp-score-circle {
  border-color: #b89d78;
  background: var(--color-bg-soft, #f8f1e7);
}

.cfp-highlights-compact summary.cfp-score-circle:focus-visible {
  outline: 2px solid var(--color-primary, #6a4934);
  outline-offset: 3px;
}

.cfp-highlights-compact .cfp-highlight-note {
  position: absolute;
  z-index: 5;
  inset-inline: 6px;
  top: calc(100% + 6px);
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border, #e6d9c7);
  border-radius: 8px;
  background: var(--color-card, #fffdf9);
  box-shadow: 0 4px 14px rgba(65, 44, 26, .1);
  color: var(--color-text, #2b2118);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
