/* Styled Checkbox Component */
.styled-checkbox-wrapper {
  display: inline-block;
}

.styled-checkbox-label {
  color: rgb(148 163 184); /* slate-400 */
  cursor: pointer;
  display: block;
}

.styled-checkbox-input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.styled-checkbox-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 7rem; /* 112px */
  min-height: 7rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  border: 3px solid rgb(203 213 225); /* slate-300 */
  background-color: white;
}

.styled-checkbox-card::before {
  content: '✓';
  position: absolute;
  display: flex;
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid;
  border-radius: 9999px;
  top: 0.25rem;
  left: 0.25rem;
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
  transform: scale(0);
  color: white;
  font-size: 0.75rem;
  align-items: center;
  justify-content: center;
}

.styled-checkbox-card:hover {
  border-color: rgb(59 130 246); /* blue-500 */
}

.styled-checkbox-card:hover::before {
  transform: scale(1);
  opacity: 1;
}

.styled-checkbox-input:checked ~ .styled-checkbox-card {
  border-color: rgb(59 130 246); /* blue-500 */
  box-shadow: 0 10px 15px -3px rgb(59 130 246 / 0.1), 0 4px 6px -4px rgb(59 130 246 / 0.1);
  color: rgb(59 130 246); /* blue-500 */
}

.styled-checkbox-input:checked ~ .styled-checkbox-card::before {
  border-color: rgb(59 130 246); /* blue-500 */
  background-color: rgb(59 130 246); /* blue-500 */
  opacity: 1;
  transform: scale(1);
}

.styled-checkbox-text {
  transition: all 0.3s;
  text-align: center;
  font-size: 0.875rem;
}
