.allergy-toggle {
  background: #f8faf7;
  border: 1px solid #dfe7dc;
  border-radius: 13px;
}
.allergy-toggle:is([aria-pressed="true"], :has(input:checked)) {
  background: #edf7e8;
  border-color: #328361;
}
.allergy-toggle .toggle {
  position: relative;
  block-size: 21px;
  border-radius: 20px;
  background: #b9bfba;
}
.allergy-toggle .toggle::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  inline-size: 15px;
  block-size: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0002;
}
.allergy-toggle:is([aria-pressed="true"], :has(input:checked)) .toggle {
  background: #237b55;
}
.allergy-toggle:is([aria-pressed="true"], :has(input:checked)) .toggle::after {
  left: auto;
  inset-inline-start: auto;
  inset-inline-end: 3px;
}

.allergy-heading button.aa-count-link { appearance:none; background:#f1f7ef; color:inherit; border:1px solid #c5d9c7; border-radius:999px; padding:8px clamp(10px,2.8vw,16px); margin:0; flex:none; width:max-content; min-width:max-content; white-space:nowrap; box-shadow:none; cursor:pointer; }
.aa-count-link #allergy-dish-count { flex-flow:row nowrap; width:max-content; white-space:nowrap; }
.aa-count-link #allergy-dish-count > * { flex:none; white-space:nowrap; word-break:normal; overflow-wrap:normal; }
.aa-count-link:has(output[hidden]) { display:none; }

.aa-demo-highlight { outline:3px solid #25734f; outline-offset:3px; }
.aa-demo-tip { position:fixed; z-index:900; box-sizing:border-box; width:min(280px,calc(100vw - 16px)); padding:14px; background:white; color:#193c30; border:1px solid #97bba6; border-radius:12px; box-shadow:0 5px 22px #16352430; }
.aa-demo-tip::before { content:''; position:absolute; left:var(--pointer); top:-6px; width:10px; height:10px; background:white; border:solid #97bba6; border-width:1px 0 0 1px; transform:translateX(-50%) rotate(45deg); }
.aa-demo-tip.above::before { top:auto; bottom:-6px; transform:translateX(-50%) rotate(225deg); }
.aa-demo-tip button { font:inherit; border-radius:7px; padding:5px 10px; cursor:pointer; }
.aa-demo-tip button:first-child { float:right; }
.aa-demo-tip p { margin:8px 0; }
.aa-field-error { color:#922c24; font-weight:600; }
.aa-demo-tip.beside::before { left:-6px; top:var(--side-pointer); bottom:auto; transform:translateY(-50%) rotate(-45deg); }
.selecting-allergies .allergy-heading #screen-title {
  font-size:clamp(17px,5.5vw,24px);
  line-height:1.2;
  min-width:0;
}
@media (max-width:480px) {
  .selecting-allergies .allergy-heading { gap:8px; }
}
body.demo-compact .customer-app .food-header { position:relative; top:auto; }
body.demo-compact.selecting-allergies .allergy-heading {
  position:sticky;
  top:var(--aa-navigation-height,0px);
  z-index:90;
  padding-block:6px;
  background:white;
}
