/*
 * Spec groups (heading rows) and row tooltips. Both come from the table
 * data; the free plugin sends a single unnamed group and no tooltips.
 */
.pcfw-table tr.pcfw-table__group > th {
  position: sticky;
  inset-inline-start: 0;
  padding-top: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--_line);
  background: var(--_surface);
  color: var(--_text);
  text-align: start;
}

.pcfw-table__group-label {
  font-size: 1.05em;
  font-weight: 600;
}

.pcfw-table__group-count {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-inline-start: 10px;
  padding: 0 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--_text) 6%, transparent);
  color: var(--_muted);
  font-size: 12px;
  font-weight: 500;
  vertical-align: 1px;
}

.pcfw-cards__group {
  padding: 18px var(--_inset, 16px) 8px;
  border-bottom: 1px solid var(--_line);
  font-weight: 600;
}

/* "?" with its bubble. */
.pcfw-tip {
  position: relative;
  display: inline-block;
  margin-inline-start: 6px;
  vertical-align: 1px;
}

.pcfw-table-mount .pcfw-tip__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--_text) 25%, transparent);
  border-radius: 50%;
  background: transparent;
  color: var(--_muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: help;
}

.pcfw-table-mount .pcfw-tip__button:focus-visible {
  outline: 2px solid var(--_cart-bg);
  outline-offset: 2px;
}

.pcfw-tip__bubble {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 8px);
  inset-inline-start: -8px;
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--_ink);
  color: var(--_surface);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: start;
  text-transform: none;
  white-space: normal;
  box-shadow: 0 6px 20px rgb(16 24 40 / 20%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.pcfw-tip:hover .pcfw-tip__bubble,
.pcfw-tip:focus-within .pcfw-tip__bubble {
  visibility: visible;
  opacity: 1;
}

.pcfw-tip.is-dismissed .pcfw-tip__bubble {
  visibility: hidden;
  opacity: 0;
}

@media print {
  .pcfw-tip {
    display: none;
  }
}
