

















.pb-cb {
  position: relative;
  flex: none;
  align-self: center;
  display: inline-grid;
  width: 1.375rem;
  height: 1.375rem;
}
.pb-cb > input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pb-cb-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 0.375rem;
  border: 0.09375rem solid rgb(var(--tint) / 0.28);
  background: transparent;
  color: var(--primary-text);
  font-size: 0.9375rem;
  transform: scale(1) rotate(0.001deg);
  transition: background-color 0.15s ease, border-color 0.1s ease, box-shadow var(--dur) var(--ease);
}
label:hover .pb-cb-box,
.pb-cb:hover .pb-cb-box { border-color: rgb(var(--tint) / 0.45); }
.pb-cb > input:focus-visible + .pb-cb-box { box-shadow: 0 0 0 0.1875rem var(--focus-ring); }
.pb-cb > input:checked + .pb-cb-box {
  background: var(--primary);
  border-color: transparent;
  animation: pb-cb-jump 0.4s cubic-bezier(0.35, 1.5, 0.6, 1);
}
.pb-cb > input:disabled { cursor: default; }
.pb-cb > input:disabled + .pb-cb-box { opacity: 0.45; }
@keyframes pb-cb-jump { 50% { transform: scale(1.25) rotate(0.001deg); } }


.pb-cb-check {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 0.4375em;
  transform: translateY(-12.5%) rotate(45deg);
}
.pb-cb-check::before,
.pb-cb-check::after {
  content: "";
  position: absolute;
  width: 0.125em;
  height: 0.125em;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease 0.15s;
}
.pb-cb-check::before { width: 100%; bottom: 0; transform-origin: left center; transform: scaleX(0); }
.pb-cb-check::after { height: 100%; right: 0; transform-origin: bottom center; transform: scaleY(0); }
.pb-cb > input:checked + .pb-cb-box .pb-cb-check::before {
  opacity: 1;
  transform: scaleX(1);
  transition: transform 0.2s cubic-bezier(0.76, 0, 0.24, 1);
}
.pb-cb > input:checked + .pb-cb-box .pb-cb-check::after {
  opacity: 1;
  transform: scaleY(1);
  transition: transform 0.4s cubic-bezier(0.35, 1.5, 0.6, 1) 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .pb-cb-box { animation: none !important; }
}
