.buttons > form.switch-toggle {
  margin-right: 8px;
  position: relative;   /* ⬅️ THIS fixes the tooltip */
  display: inline-block;     /* inline formatting context */
  vertical-align: middle;    /* center relative to buttons */
}

.buttons > form.switch-toggle label {
  display: block;            /* removes inline baseline quirks */
}


/* hide checkbox */
.switch-toggle input[type="checkbox"] {
  vertical-align: middle; /* overrides baseline */
  position: absolute;
  opacity: 0;
  z-index: -2;
}

/* the "box" / track */
.switch-toggle input[type="checkbox"] + label {
  position: relative;
  display: inline-block;

  /* size: adjust to match Bulma .button.is-small */
  width: 64px;
  height: 28px;

  margin: 0;
  cursor: pointer;

  /* BOX look */
  background: #fff;               /* looks like it's inside a box */
  border: 1px solid #dbdbdb;      /* Bulma-like border */
  border-radius: 4px;

  /* remove the deep groove */
  box-shadow: none;
  transform: translateY(-1.5px); /* or 1.5px depending on your font */

}

/* the slider / "thing inside the box" */
.switch-toggle input[type="checkbox"] + label::before {
  position: absolute;
  content: "OFF";

  top: 3px;
  left: 3px;

  width: 30px;
  height: 22px;

  font-size: 11px;
  text-align: center;
  line-height: 22px;

  /* knob look */
  color: #fff;
  background: rgb(255, 56, 96);
  border: 1px solid #dbdbdb;
  border-radius: 3px;

  /* subtle lift (optional) */
  box-shadow: 0 1px 1px rgba(0,0,0,.12);

  transition: .25s ease-in-out;
}

/* ON state */
.switch-toggle input[type="checkbox"]:checked + label::before {
  left: calc(100% - 3px - 30px);
  content: "ON";
  color: #fff;

  background: #00b33c;
  border-color: #00b33c;
}


.switch-status {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #363636;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    display: none;
    z-index: 10;
}


.switch-toggle.is-locked {
  opacity: 0.6;
}

.switch-toggle.is-locked label {
  cursor: not-allowed;
}
.switch-toggle.is-locked:hover .switch-status {
  display: inline-block;

}

/* LOCKED STATE — switch box */
.switch-toggle.is-locked input[type="checkbox"] + label {
  opacity: 0.6;
  cursor: wait;

  border-color: #ff9f1a;           /* orange border */
  background: #fff7ec;             /* very soft orange tint */
}

/* LOCKED STATE — inner knob */
.switch-toggle.is-locked input[type="checkbox"] + label::before {
  background: #ff9f1a;             /* orange knob */
  border-color: #ff9f1a;
  color: #fff;                     /* readable text */
}

/* Optional: prevent green ON color from overriding lock */
.switch-toggle.is-locked
input[type="checkbox"]:checked + label::before {
  background: #ff9f1a;
  border-color: #ff9f1a;
  color: #fff;
}
