/**
 * Bellume Club — checkboxes globais (rosa + cantos arredondados).
 */

:root {
  --bc-checkbox-accent: #e91e63;
  --bc-checkbox-accent-dark: #c2185b;
  --bc-checkbox-border: #cbd5e1;
  --bc-checkbox-radius: 5px;
  --bc-checkbox-size: 18px;
}

/* Nativas visíveis — accent-color cobre a maioria dos navegadores */
input[type="checkbox"] {
  accent-color: var(--bc-checkbox-accent);
  border-radius: var(--bc-checkbox-radius);
  cursor: pointer;
}

/* Padrão customizado (mais consistente que o azul do sistema) */
input[type="checkbox"]:not(.bc-checkbox--native-ui) {
  -webkit-appearance: none;
  appearance: none;
  width: var(--bc-checkbox-size);
  height: var(--bc-checkbox-size);
  min-width: var(--bc-checkbox-size);
  min-height: var(--bc-checkbox-size);
  margin: 0;
  border: 2px solid var(--bc-checkbox-border);
  border-radius: var(--bc-checkbox-radius);
  background: #fff;
  vertical-align: middle;
  flex-shrink: 0;
  position: relative;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input[type="checkbox"]:not(.bc-checkbox--native-ui):checked {
  background: var(--bc-checkbox-accent);
  border-color: var(--bc-checkbox-accent);
}

input[type="checkbox"]:not(.bc-checkbox--native-ui):checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

input[type="checkbox"]:not(.bc-checkbox--native-ui):focus-visible {
  outline: 2px solid rgba(233, 30, 99, 0.45);
  outline-offset: 2px;
}

input[type="checkbox"]:not(.bc-checkbox--native-ui):disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Inputs ocultos com UI própria (.checkmark, chips de filtro, etc.) */
.checkbox-label input[type="checkbox"],
.filter-tag input[type="checkbox"],
input[type="checkbox"].bc-checkbox--native-ui {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.checkbox-label input[type="checkbox"]::after,
.filter-tag input[type="checkbox"]::after,
input[type="checkbox"].bc-checkbox--native-ui::after {
  content: none;
}

/* Admin — grupo com .checkmark */
.checkbox-label .checkmark {
  border-radius: var(--bc-checkbox-radius);
}

.checkbox-label:hover {
  border-color: rgba(233, 30, 99, 0.45);
  background: rgba(233, 30, 99, 0.06);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--bc-checkbox-accent);
  border-color: var(--bc-checkbox-accent);
}

.checkbox-label:focus-within {
  outline: 2px solid rgba(233, 30, 99, 0.35);
  outline-offset: 2px;
}

/* Classes do plugin */
.bc-checkbox,
.bc-payment-checkbox,
.bc-attendance-checkbox,
.bc-service-checkbox,
.bc-service-item-expandable .bc-service-checkbox {
  accent-color: var(--bc-checkbox-accent);
  border-radius: var(--bc-checkbox-radius);
}

.bc-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bc-checkbox-label input[type="checkbox"]:not(.bc-checkbox--native-ui) {
  margin: 0;
  flex-shrink: 0;
}

.bc-identity-page .bc-identity-checkbox-group .bc-checkbox {
  margin-top: 3px;
}
