/* Independent Free Tools entry. The main frontend remains untouched. */
html body .yf-detail-page .yf-detail-header-free-tools{white-space:nowrap!important}
@media(max-width:767px){html body .yf-detail-page .yf-detail-header-free-tools{min-width:0!important}}

/* free tools use a small picker under the clicked navigation button. */
.zlmft-picker-mask{position:fixed;inset:0;z-index:100090;background:transparent;}
.zlmft-picker-panel{position:fixed;display:flex;flex-direction:column;min-width:230px;background:#fff;border:1px solid #e5e7eb;border-radius:0 0 12px 12px;box-shadow:0 10px 28px rgba(15,23,42,.16);overflow:hidden;}
.zlmft-picker-panel button{min-height:48px;padding:0 18px;border:0;border-bottom:1px solid #f0f1f3;background:#fff;color:#1f2937;text-align:left;font-size:15px;font-weight:800;cursor:pointer;}
.zlmft-picker-panel button:last-child{border-bottom:0}.zlmft-picker-panel button:hover,.zlmft-picker-panel button:active{background:#fff7ed;color:#f47d35;}

/* one concise privacy note in the picker; no repeated warning pages. */
.zlmft-picker-note{padding:9px 14px;border-bottom:1px solid #f0f1f3;background:#fff7ed;color:#5b6470;font-size:12px;line-height:1.45;font-weight:700;}
html[dir="rtl"] .zlmft-picker-panel button,html.yf-lang-ar .zlmft-picker-panel button,body.yf-lang-ar .zlmft-picker-panel button{text-align:right;}


/* dropdown behaves like freight reference and never opens as a centered modal. */
.zft-entry-panel{position:absolute!important;left:var(--zft-entry-left,0)!important;right:auto!important;top:100%!important;transform:none!important;max-width:min(420px,calc(100vw - 16px))!important;}
.zft-entry-note + .zft-entry-note{display:none!important;}

/* menu is a lightweight drop-down only; entries do not need arrows. */
.zlmft-picker-panel button::before,.zlmft-picker-panel button::after{content:none!important;display:none!important;}
.zlmft-picker-panel{border-top:0!important;}


/* keep the tool picker attached to the clicked button during scroll/resize and match menu style. */
.zlmft-picker-panel{z-index:100091!important;will-change:left,top!important;}
.zlmft-picker-mask[dir="rtl"] .zlmft-picker-panel button{text-align:right!important;}
.zlmft-picker-mask[dir="rtl"] .zlmft-picker-note{text-align:right!important;}

/* keep Free Tools picker lightweight and instant like freight/category menus. */
.zlmft-picker-panel{min-width:220px!important;width:max-content!important;border-top:0!important;}
.zlmft-picker-panel button{white-space:nowrap!important;min-height:46px!important;}
.zlmft-picker-panel button::before,.zlmft-picker-panel button::after{content:none!important;display:none!important;}
.zlmft-picker-note{max-width:320px!important;}


/* make the lightweight menu feel immediate and stable after repeated language switches. */
.zlmft-picker-panel{contain:layout paint!important;backface-visibility:hidden!important;}
.zlmft-picker-mask{touch-action:manipulation!important;}


/* Tools-18-user-fix: use the same lightweight dropdown feel as freight reference, not a centered modal. */
.zlmft-picker-mask{background:transparent!important;}
.zlmft-picker-panel{border-top:0!important;border-radius:0 0 10px 10px!important;box-shadow:0 5px 20px rgba(0,0,0,.16)!important;min-width:220px!important;max-width:calc(100vw - 12px)!important;}
.zlmft-picker-note{display:none!important;}
.zlmft-picker-panel button{min-height:44px!important;font-size:14px!important;font-weight:800!important;}


/* Tools-18-continue: strict lightweight drop-down, visually matching freight reference. */
.zlmft-picker-mask{background:transparent!important;}
.zlmft-picker-panel{border-top:0!important;border-radius:0 0 10px 10px!important;box-shadow:0 5px 20px rgba(0,0,0,.16)!important;overflow:hidden!important;transition:none!important;transform:none!important;}
.zlmft-picker-note{display:none!important;}
.zlmft-picker-panel button{min-height:44px!important;padding:0 13px!important;font-size:14px!important;font-weight:800!important;border-bottom:1px solid #eee!important;}
.zlmft-picker-panel button:last-child{border-bottom:0!important;}


/* Tools-18-continue-2: entry menu behaves as a small anchored slide/drop panel, not a centered modal. */
.zlmft-picker-mask{background:transparent!important;align-items:flex-start!important;justify-content:flex-start!important;}
.zlmft-picker-panel{position:fixed!important;border-top:0!important;border-radius:0 0 10px 10px!important;box-shadow:0 5px 20px rgba(0,0,0,.16)!important;}
.zlmft-picker-panel button::after{content:none!important;}


/* Tools-18.5: the home and detail entries open one identical compact picker. */
.zlmft-picker-panel{
  width:320px!important;
  min-width:0!important;
  max-width:calc(100vw - 12px)!important;
}
.zlmft-picker-panel button{
  width:100%!important;
  min-height:44px!important;
  padding:0 14px!important;
  white-space:normal!important;
  text-align:left!important;
}
.zlmft-picker-mask[dir="rtl"] .zlmft-picker-panel button{
  text-align:right!important;
}
@media(max-width:360px){
  .zlmft-picker-panel{width:calc(100vw - 12px)!important;}
}
