/* Override these custom properties to theme the plugin. */
.pc {
  --pc-accent: #0b6bcb;
  --pc-line: #dfe3ea;
  --pc-muted: #5d6675;
  --pc-bg: #fff;
  --pc-label-width: clamp(8rem, 28vw, 14rem);
}
.pc [hidden] { display: none !important; }
.pc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc-notice { padding: .75rem 1rem; border-left: 4px solid #d98b00; background: #fff6e5; }
.pc-link { color: var(--pc-accent); font-weight: 600; }

.pc-btn {
  min-height: 44px;
  padding: .5rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--pc-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.pc-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Picker */
.pc-search {
  width: min(100%, 22rem);
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid var(--pc-line);
  border-radius: 11px;
  font: inherit;
}
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.pc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  height: 100%;
  padding: .35rem;
  border: 1px solid var(--pc-line);
  border-radius: 10px;
  cursor: pointer;
  background-color: var(--pc-bg);
  transition: all .2s ease-in-out;
}
.pc-card:hover {
  transform: translateY(-5px);
  transition: all .3s ease-in-out;
}
.pc-card:has(:checked) { border-color: var(--pc-accent); }
.pc-card:has(:disabled) { opacity: .5; cursor: not-allowed; }
.pc-card small { color: var(--pc-muted); }
.pc-card__check { position: absolute; top: .6rem; right: .6rem; width: 1.2rem; height: 1.2rem; accent-color: var(--pc-accent); }
.pc-card__img { width: 100%; height: auto; border-radius: 6px; }
.pc-bar {
  position: sticky;
  bottom: 1rem;
  display: block;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--pc-line);
  border-radius: 48px;
  background: var(--pc-bg);
  width: max-content;
  margin: 0 0 0 auto;
}

/* Matrix: scrolls sideways on small screens, the label column stays pinned. */
.pc-toolbar { margin-bottom: .75rem; }
.pc-toolbar input { accent-color: var(--pc-accent); }
.pc-scroll { overflow-x: auto; border: 1px solid var(--pc-line); border-radius: 10px; margin-bottom: 2em;}
.pc-table {
  width: 100%;
  min-width: calc(var(--pc-label-width) + (var(--pc-columns, 3) - 1) * 9rem);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--pc-bg);
}
.pc-table th, .pc-table td {
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--pc-line);
  text-align: left;
  vertical-align: top;
}
.pc-table thead th { vertical-align: bottom; }
.pc-table small { display: block; color: var(--pc-muted); font-weight: 400; }
.pc-table__img { display: block; max-width: 9rem; height: auto; margin-bottom: .4rem; border-radius: 6px; }
.pc-table th[scope="row"], .pc-table thead th:first-child {
  position: sticky;
  left: 0;
  width: var(--pc-label-width);
  background: var(--pc-bg);
  box-shadow: 1px 0 0 var(--pc-line);
}
.pc-best {
  background: color-mix(in srgb, var(--pc-accent) 12%, transparent);
  font-weight: 700;
}
