/* ========================================
           Checkbox Styling
           ======================================== */

.form-checkbox,
input[type='checkbox'].form-checkbox,
input[type='checkbox'] {
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem !important;
  max-width: 1rem !important;
  border: 2px solid #d1d5db !important;
  border-radius: 0.25rem !important;
  background-color: white !important;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
}

.form-checkbox:hover,
input[type='checkbox']:hover {
  border-color: #9ca3af !important;
  background-color: #f9fafb !important;
}

.form-checkbox:checked,
input[type='checkbox']:checked {
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

.form-checkbox:checked::after,
input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.05rem;
  width: 0.35rem;
  height: 0.6rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox:focus,
input[type='checkbox']:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.form-checkbox:disabled,
input[type='checkbox']:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   Custom Yellow Checkbox (ReserBee Brand)
   ======================================== */

.holded-checkbox,
input[type='checkbox'].holded-checkbox {
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem !important;
  max-width: 1rem !important;
  border: 2px solid var(--honey, #fff947) !important;
  border-radius: 0.25rem !important;
  background-color: white !important;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
}

.holded-checkbox:hover,
input[type='checkbox'].holded-checkbox:hover {
  border-color: var(--primary-hover, #ffe947) !important;
  background-color: var(--primary-light, #fffbdf) !important;
}

.holded-checkbox:checked,
input[type='checkbox'].holded-checkbox:checked {
  background-color: var(--honey, #fff947) !important;
  border-color: var(--honey, #fff947) !important;
}

.holded-checkbox:checked::after,
input[type='checkbox'].holded-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.05rem;
  width: 0.35rem;
  height: 0.6rem;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.holded-checkbox:focus,
input[type='checkbox'].holded-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 249, 71, 0.5);
}

.holded-checkbox:disabled,
input[type='checkbox'].holded-checkbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
