/*
 * Cross-component invariants. This final layer deliberately contains only
 * state contracts that must out-rank the normal component presentation.
 */

/* Native hidden is shared by all six tool templates. */
.zt-toolbox #tool-form [hidden][hidden]{display:none;}

/* One form-control type scale for static and dynamically inserted fields. */
.zt-toolbox{
  --zt-tool-form-control-font-size:14px;
}
body.zt-toolbox-page .zt-toolbox .page.app-shell #tool-form input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.zt-toolbox-page .zt-toolbox .page.app-shell #tool-form textarea,
body.zt-toolbox-page .zt-toolbox .page.app-shell #tool-form select{
  font-size:var(--zt-tool-form-control-font-size);
}
body.zt-toolbox-page .zt-toolbox .page.app-shell #tool-form input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"])::placeholder,
body.zt-toolbox-page .zt-toolbox .page.app-shell #tool-form textarea::placeholder{
  font-size:var(--zt-tool-form-control-font-size);
}
@media(max-width:767px){
  .zt-toolbox{
    --zt-tool-form-control-font-size:16px;
  }
}

/*
 * Price controls are a composite component: the outer button provides the
 * two-part frame while its inner surface carries the blue sweep. Scope the
 * component to the choice row so older generic button rules cannot flatten
 * the split frame.
 */
.zt-toolbox #tool-form #choice-row .price-pill{appearance:none;
  position:relative;display:inline-flex;align-items:stretch;justify-content:center;
  min-width:0;min-height:0;height:auto;padding:8px;margin:0;border:0;border-radius:0;
  background:none;color:#fff;box-shadow:none;overflow:visible;}

.zt-toolbox #tool-form #choice-row .price-pill::before,
.zt-toolbox #tool-form #choice-row .price-pill::after{content:"";display:block;
  position:absolute;right:0;left:0;height:calc(50% - 5px);border:1px solid #7d8082;
  pointer-events:none;}

.zt-toolbox #tool-form #choice-row .price-pill::before{top:0;border-bottom-width:0;}
.zt-toolbox #tool-form #choice-row .price-pill::after{bottom:0;border-top-width:0;}

.zt-toolbox #tool-form #choice-row .price-pill.selected::before,
.zt-toolbox #tool-form #choice-row .price-pill.selected::after,
.zt-toolbox #tool-form #choice-row .price-pill[aria-pressed="true"]::before,
.zt-toolbox #tool-form #choice-row .price-pill[aria-pressed="true"]::after{border-color:#2c68f6;}

.zt-toolbox #tool-form #choice-row .price-pill.selected .price-pill__sl,
.zt-toolbox #tool-form #choice-row .price-pill[aria-pressed="true"] .price-pill__sl{width:calc(100% + 15px);}

.zt-toolbox #tool-form #choice-row .price-pill.selected .price-pill__lg,
.zt-toolbox #tool-form #choice-row .price-pill[aria-pressed="true"] .price-pill__lg{background-color:#0f1923;box-shadow:inset 0 0 0 2px #c6defc;}

/* Qualification-level buttons: keep the requested 62px control width and a real 2px gap.
   Use an inset border instead of the historical oversized outline, which visually merged
   adjacent controls even when the flex gap was non-zero. */
.zt-toolbox .common-basic-panel .levels{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:2px;
  width:100%;
  min-width:0;
  max-width:none;
}
.zt-toolbox .common-basic-panel .levels .level,
.zt-toolbox .common-basic-panel .levels .level:hover,
.zt-toolbox .common-basic-panel .levels .level.selected,
.zt-toolbox .common-basic-panel .levels .level[aria-pressed="true"]{
  box-sizing:border-box;
  flex:1 1 0;
  width:auto;
  min-width:0;
  max-width:none;
  height:32px;
  min-height:32px;
  max-height:32px;
  margin:0;
  padding:0;
  border:4px solid #C6DEFC;
  outline:0;
}
.zt-toolbox .common-basic-panel .levels .level:focus-visible{
  outline:2px solid #8fc5ff;
  outline-offset:2px;
}
@media(max-width:620px){
  .zt-toolbox .common-basic-panel .levels{
    justify-content:center;
    margin-left:auto;
    margin-right:auto;
  }
}
