/* Desktop-only browsers never display the trigger, its automatic wrapper, or
   the drawer. JS enables them on phones/tablets, including iPadOS devices that
   advertise a desktop-class user agent. This intentionally uses device detection,
   not a width breakpoint, so resized desktop windows remain desktop. */
html:not(.ls-cat-mobile-tablet) .ls-cat-trigger,
html:not(.ls-cat-mobile-tablet) .ls-cat-auto-wrap,
html:not(.ls-cat-mobile-tablet) .ls-cat-root {display:none !important;}

/* Scoped to this plugin. No sticky/fixed positioning is applied to the trigger. */
.ls-cat-trigger {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; border: 1.5px solid #16852a; background: #f3faf1; color: #155d20;
  font-family: inherit; font-size: 15px; line-height: 1.2; font-weight: 700;
  border-radius: 8px; padding: 11px 16px; cursor: pointer; min-height: 44px;
  box-shadow: none; transition: background-color .15s ease;
}
.ls-cat-trigger:hover, .ls-cat-trigger:focus-visible {background: #e4f4df;color: #12551e;}
.ls-cat-trigger--solid {background: #087e09; color: white; border-color: #087e09;}
.ls-cat-trigger--solid:hover, .ls-cat-trigger--solid:focus-visible {background:#096b0b;color:white;}
.ls-cat-trigger:focus-visible,.ls-cat-expand:focus-visible,.ls-cat-close:focus-visible,.ls-cat-link:focus-visible,.ls-cat-leaf-arrow:focus-visible {
  outline: 3px solid #ff9a00; outline-offset: 3px;
}
.ls-cat-auto-wrap {margin: 12px 0 14px; clear: both;}
.ls-cat-root[hidden], .ls-cat-subtree[hidden], .ls-cat-item[hidden] {display: none !important;}
.ls-cat-root {position: fixed; inset: 0; z-index: 2147483000;}
.ls-cat-backdrop {position: absolute; inset: 0; border:0; margin:0; border-radius:0; width:100%; height:100%; background:rgba(0,0,0,.55);cursor:pointer;}
.ls-cat-panel {position:absolute; right:0; top:0; bottom:0; width: min(420px, 89vw); box-sizing:border-box;
  display:flex; flex-direction:column; background:#fff; color:#161a19;
  box-shadow:-8px 0 28px rgba(0,0,0,.18); overflow:hidden;
  font-family:inherit; overscroll-behavior:contain;
}
.ls-cat-panel *, .ls-cat-panel *:before, .ls-cat-panel *:after {box-sizing:border-box;}
.ls-cat-panel-header {display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:22px 18px 12px; border-bottom:1px solid #eee; min-height:74px; flex:0 0 auto;}
.ls-cat-panel-header h2 {font-size:21px; line-height:1.3; font-weight:750; letter-spacing:-.02em; margin:0; color:#151515; padding:0;}
.ls-cat-close {display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;
  color:#161616;background:transparent;border:0;border-radius:7px;font-size:30px;line-height:1;cursor:pointer;padding:0;}
.ls-cat-close:hover {background:#f3f3f3;}
.ls-cat-scroll {min-height:0; flex:1;overflow-y:auto;overscroll-behavior:contain;padding:10px 12px 24px;}
.ls-cat-list {list-style:none!important;margin:0!important;padding:0!important;}
.ls-cat-item {padding:0;margin:0!important; list-style:none!important;border-bottom:1px solid #ececec;}
.ls-cat-row {display:flex;align-items:center;min-height:75px;gap:5px;}
.ls-cat-link {display:flex; align-items:center;gap:12px;flex:1;min-width:0;padding:10px 6px; color:#161616!important;text-decoration:none!important;border-radius:6px;}
.ls-cat-link:hover {color:#096c1d!important;background:#f6fbf6;}
.ls-cat-image,.ls-cat-placeholder {width:50px;height:50px;flex:0 0 50px;object-fit:contain;border-radius:7px;background:#f8faf8;display:flex;align-items:center;justify-content:center;}
.ls-cat-placeholder {color:#2c8c30;}
.ls-cat-copy {display:flex;flex-direction:column;gap:3px;min-width:0;}
.ls-cat-name {font-size:15px;font-weight:700;line-height:1.3;color:inherit;overflow-wrap:anywhere;}
.ls-cat-count {font-size:12px;line-height:1.2;color:#606565;}
.ls-cat-expand {flex:0 0 36px;display:flex;align-items:center;justify-content:center;width:36px;height:40px;background:transparent;border:0;color:#333;cursor:pointer;border-radius:6px;}
.ls-cat-expand svg {transition:transform .2s ease;}
.ls-cat-expand[aria-expanded="true"] svg {transform:rotate(180deg);}
.ls-cat-leaf-arrow {flex:0 0 44px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:transparent;border:0;border-radius:6px;color:#333!important;text-decoration:none!important;cursor:pointer;}
.ls-cat-leaf-arrow:hover {background:#e4f4df;color:#12551e!important;}
.ls-cat-subtree {margin:0 0 8px 18px;background:#f2faf1;border-radius:8px;padding:0 9px;}
.ls-cat-children .ls-cat-row {min-height:54px;}
.ls-cat-children .ls-cat-link {padding:9px 6px;}
.ls-cat-children .ls-cat-image,.ls-cat-children .ls-cat-placeholder {width:36px;height:36px;flex-basis:36px;}
.ls-cat-children .ls-cat-name {font-size:14px;font-weight:600;}
.ls-cat-children .ls-cat-count {font-size:11px;}
.ls-cat-empty {margin:20px 8px;color:#565656;font-size:14px;}
body.ls-cat-no-scroll {overflow:hidden!important;}
@media (max-width:480px) {
 .ls-cat-panel-header {padding:17px 15px 9px;min-height:68px;}
 .ls-cat-panel-header h2 {font-size:19px;}
 .ls-cat-scroll {padding:9px 9px 20px;}
 .ls-cat-image,.ls-cat-placeholder {width:45px;height:45px;flex-basis:45px;}
 .ls-cat-row {min-height:69px;}
}
@media (prefers-reduced-motion: reduce) { .ls-cat-expand svg {transition:none;} }
