
.wc {
  background: #ececef;
  padding-block: var(--sect);
}
.wc-h {
  font-size: clamp(30px, 3.4vw, 46px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.03em; line-height: 1; color: var(--slate-900);
  margin-bottom: 36px;
}
.wc-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 44px;
  align-items: start;
}

.wc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.wc-set { grid-column: 1 / -1; border: 0; }
.wc-wide { grid-column: 1 / -1; }
.wc-legend {
  padding: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--slate-600);
}

.wc-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.wc-chips label { width: 100%; }
.wc-chips input {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wc-chips label {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 11px;
  background: var(--white); border: 1px solid var(--slate-300);
  font-size: 14px; font-weight: 600; color: var(--slate-900);
  cursor: pointer; transition: background-color .3s, border-color .3s, color .3s;
}
.wc-chips label svg { flex-shrink: 0; color: var(--slate-400); transition: color .3s; }
.wc-chips label:hover { border-color: var(--slate-900); }
.wc-chips input:checked + label {
  background: var(--slate-900); border-color: var(--slate-900); color: var(--white);
}
.wc-chips input:checked + label svg { color: var(--red); }
.wc-chips input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; }

.wc-field { display: flex; flex-direction: column; gap: 8px; }
.wc-field label { font-size: 13px; font-weight: 600; color: var(--slate-600); }
.wc-field input, .wc-field select {
  width: 100%; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--slate-300); border-radius: 0;
  font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--slate-900);
  font-variant-numeric: tabular-nums;
  transition: border-color .3s;
}
.wc-field input:hover, .wc-field select:hover { border-color: var(--slate-400); }
.wc-field input:focus, .wc-field select:focus { border-color: var(--slate-900); outline: 0; }
.wc-field input:focus-visible, .wc-field select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wc-field select { appearance: none; -webkit-appearance: none; padding-right: 42px; }
.wc-sel { position: relative; }
.wc-sel::after {
  content: ""; position: absolute; right: 17px; top: 50%;
  width: 8px; height: 8px; margin-top: -7px; pointer-events: none;
  border-right: 1.5px solid var(--slate-600); border-bottom: 1.5px solid var(--slate-600);
  transform: rotate(45deg);
}

.wc-dims { display: none; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wc-form:has(#wc-sh-round:checked) .wc-dims[data-shape="round"],
.wc-form:has(#wc-sh-square:checked) .wc-dims[data-shape="square"],
.wc-form:has(#wc-sh-hex:checked) .wc-dims[data-shape="hex"],
.wc-form:has(#wc-sh-flat:checked) .wc-dims[data-shape="flat"],
.wc-form:has(#wc-sh-angle:checked) .wc-dims[data-shape="angle"],
.wc-form:has(#wc-sh-uangle:checked) .wc-dims[data-shape="uangle"],
.wc-form:has(#wc-sh-channel:checked) .wc-dims[data-shape="channel"],
.wc-form:has(#wc-sh-tee:checked) .wc-dims[data-shape="tee"],
.wc-form:has(#wc-sh-pipe:checked) .wc-dims[data-shape="pipe"] { display: grid; }
@supports not (selector(:has(*))) {
  .wc-dims { display: grid; }
}

.wc-out {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200); border-top: 2px solid var(--red);
}
.wc-out-head {
  padding: 13px 18px; background: var(--slate-900); color: var(--white);
  font-size: 13.5px; font-weight: 700;
}
.wc-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-top: 1px solid var(--slate-200);
}
.wc-row:first-child { border-top: 0; }
.wc-row:nth-child(even) { background: #f4f4f5; }
.wc-row dt { font-size: 14px; font-weight: 700; color: var(--slate-900); }
.wc-row dd {
  font-size: 15px; font-weight: 600; color: var(--slate-600);
  font-variant-numeric: tabular-nums; text-align: right;
}
.wc-row dd span { font-size: 22px; font-weight: 800; color: var(--slate-900); }
.wc-row:nth-child(4) dd { font-size: 22px; font-weight: 800; color: var(--slate-900); }
.wc-note {
  display: none;
  padding: 14px 18px; border-top: 1px solid var(--slate-200);
  font-size: 13px; line-height: 1.5; color: var(--slate-600);
}
.wc-inner:has(#wc-sh-angle:checked) .wc-note,
.wc-inner:has(#wc-sh-uangle:checked) .wc-note,
.wc-inner:has(#wc-sh-channel:checked) .wc-note,
.wc-inner:has(#wc-sh-tee:checked) .wc-note { display: block; }
@supports not (selector(:has(*))) {
  .wc-note { display: block; }
}

.wc-gauge {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--red); opacity: 0; pointer-events: none;
}
.wc-gauge.is-run { animation: wc-sweep .62s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes wc-sweep {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(var(--gh, 320px)); opacity: 0; }
}

@media (max-width: 1023px) {
  .wc-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 767px) {
  .wc { padding-block: 72px; }
  .wc-form { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wc-dims { grid-template-columns: minmax(0, 1fr); }
  .wc-chips label { flex: 1 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .wc-gauge.is-run { animation: none; }
  .wc-chips label, .wc-field input, .wc-field select { transition: none; }
}
