.client-product-status-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,32,48,.96), rgba(12,24,38,.96));
  box-shadow: 0 8px 24px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.035);
}

.client-product-status-box legend {
  display: none;
}

.client-product-status-box label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: #f8fafc;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
  user-select: none;
}

.client-product-status-box label:hover {
  border-color: rgba(148,197,255,.58);
  background: rgba(88,153,230,.10);
  transform: translateY(-1px);
}

.client-product-status-box input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  border: 2px solid rgba(255,255,255,.58);
  border-radius: 6px;
  background: rgba(3,10,18,.45);
  display: grid;
  place-content: center;
  cursor: pointer;
}

.client-product-status-box input[type="checkbox"]::before {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease;
}

.client-product-status-box input[type="checkbox"]:checked {
  border-color: #68aef6;
  background: #2563a8;
  box-shadow: 0 0 0 3px rgba(60,142,230,.15);
}

.client-product-status-box input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

.client-product-status-box label:has(input:checked) {
  border-color: rgba(104,174,246,.72);
  background: linear-gradient(180deg, rgba(37,99,168,.28), rgba(29,78,138,.22));
  box-shadow: inset 0 0 0 1px rgba(104,174,246,.12);
}

.client-product-status-box .client-deceased-choice {
  margin: 0;
  padding: 10px 12px;
  border-left: 1px solid rgba(244,114,114,.35);
  border-color: rgba(244,114,114,.32);
  background: rgba(127,29,29,.12);
}

.client-product-status-box .client-deceased-choice:hover {
  border-color: rgba(248,113,113,.65);
  background: rgba(153,27,27,.20);
}

.client-product-status-box .client-deceased-choice:has(input:checked) {
  border-color: rgba(248,113,113,.75);
  background: rgba(153,27,27,.30);
  box-shadow: inset 0 0 0 1px rgba(248,113,113,.10);
}

.client-product-status-box .client-deceased-choice input:checked {
  border-color: #ef7777;
  background: #a93232;
  box-shadow: 0 0 0 3px rgba(239,119,119,.14);
}

@media (max-width: 760px) {
  .client-product-status-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .client-product-status-box label,
  .client-product-status-box .client-deceased-choice {
    min-height: 46px;
    padding: 9px 8px;
  }
}

@media (max-width: 430px) {
  .client-product-status-box {
    grid-template-columns: 1fr 1fr;
  }

  .client-product-status-box label {
    font-size: 13px;
  }
}
