/* ===== Tooltip design tokens (visual language) ===== */
:root{
    --tt-bg: #fff;
    --tt-border: rgba(15, 23, 42, 0.12);
    --tt-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --tt-radius: 20px;
  
    --tt-pad-x: 18px;
    --tt-pad-y: 16px;
    --tt-width: 296px;
  
    --tt-title: 20px;
    --tt-text: 16px;
    --tt-row: 18px;
  
    --tt-k: #9ca3af;
    --tt-v: #6b7280;
    --tt-ink: #0b1220;
    --tt-accent: #2563eb;
  }
  
  /* Tooltip container created by JS */
  .mf_tooltip{
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10050;
    pointer-events: none;
  
    opacity: 0;
    transform: scale(.98);
    transform-origin: top left;
    transition: opacity .12s ease, transform .12s ease;
  }
  
  .mf_tooltip.is-visible{
    opacity: 1;
    transform: scale(1);
  }
  
  /* Base “card” language shared by all templates */
  .mf_tt.mf_tt--card{
    width: var(--tt-width);
    max-width: min(var(--tt-width), calc(100vw - 24px));
    background: var(--tt-bg);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
    padding: var(--tt-pad-y) var(--tt-pad-x) calc(var(--tt-pad-y) - 2px);
    font-family: var(--font);
    color: var(--tt-ink);
  }
  
  /* Don’t let your global .mf_tag_span font-size mess tooltip internals */
  .mf_tt .mf_tag_span{
    font-size: inherit;
  }
  
  .mf_tt__head{
    display:flex;
    align-items:center;
    gap: 8px;
    margin-bottom: 6px;
  }
  
  .mf_tt__badge{
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--tt-accent);
    display:grid;
    place-items:center;
    flex: 0 0 auto;
  }
  
  .mf_tt__badge .mf_material_symbols_outlined{
    color: #fff;
    font-size: 18px;
    font-variation-settings: 'FILL' 0,'wght' 600,'GRAD' 0,'opsz' 24;
  }
  
  .mf_tt__badge--soft{
    background: var(--blue);
  }
  
  /* (typo kept from original for compatibility) */
  .mt_tt__badge--soft .mf_material_symbols_outlined{
    color: white;
  }
  
  .mf_tt__title{
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--tt-ink);
    line-height: 1.05;
  }
  
  .mf_tt__body{
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tt-v);
    line-height: 1.35;
  }
  
  /* Optional row system (profit-style, reusable) */
  .mf_tt__rows{
    display:grid;
    gap: 4px;
    margin: 10px 0 12px;
  }
  
  .mf_tt__row{
    display:flex;
    align-items:baseline;
    justify-content: space-between;
    gap: 18px;
  }
  
  .mf_tt__k{
    color: var(--tt-k);
    font-size: 0.8rem;
    font-weight: 450;
  }
  
  .mf_tt__v{
    color: var(--tt-v);
    font-size: 0.85rem;
    font-weight: 600;
  }
  
  .mf_tt__row--hi .mf_tt__v{
    color: var(--tt-accent);
    font-weight: 600;
  }
  
  .mf_tt__dots{
    border-bottom: 4px dotted rgba(148, 163, 184, 0.1);
    margin-bottom: 10px;
  }
  
  .mf_tt__note{
    margin-top: 10px;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
  }
  
  /* Tooltip trigger reset (icon/button etc.) */
  .mf_tt_trigger{
    background-color:transparent;
    padding: 0;
    border:0;
    outline:0;
  }
  
  /* Generic helper */
  .mf_hidden{
    pointer-events: none;
    opacity: 0;
  }
  
 /* === Unified rectangular checkbox styling === */

.mf_tag_input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;

  /* geometry – rectangular with slightly rounded corners */
  width: 22px;
  height: 22px;
  border-radius: 6px;

  border: 2px solid #cbd5e1;
  background: #ffffff;

  display: inline-block;
  position: relative;
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
  flex-shrink: 0;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Unchecked hover */
.mf_tag_input[type="checkbox"]:hover {
  border-color: var(--blue);
}

/* Checked state */
.mf_tag_input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}

/* Checkmark */
.mf_tag_input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

/* Keyboard focus ring */
.mf_tag_input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

/* Align the "I accept the rules" row nicely */
.mf_check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.mf_tag_label_agree {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Optional: align insurance row nicely too */
.mf_toggle_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Force same size/shape for the two queue checkboxes */
#mf_insurance_checkbox,
#mf_agree {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  padding: 0;
  box-sizing: border-box;

  /* keep them from stretching in flex rows */
  flex: 0 0 22px;

  /* kill any older transforms */
  transform: none;
}