/* Sitewide header — menu list, helpline pill, search plugin (TH-APS) skin, back-to-top. */

/* Menu is a <ul> inside the nav; reference lays the links out as bare pills. */
.log-nav ul{ display:flex; gap:2px; flex-wrap:wrap; }
.log-nav li{ margin:0; }
.log-nav .current-menu-item > a,
.log-nav .current_page_item > a{ background:rgba(221,239,230,.8); color:var(--log-ink); }
@media (max-width:1120px){
  .log-nav ul{ flex-direction:column; width:100%; }
}

/* Helpline pill (number comes from the Contact Number plugin). */
.log-call-pill{ display:inline-flex; align-items:center; gap:10px; height:48px; padding:0 18px 0 6px; border-radius:999px; background:rgba(255,255,255,.66); box-shadow:inset 0 0 0 1px rgba(18,36,30,.08); transition:box-shadow .2s, background .2s; }
.log-call-pill[hidden]{ display:none; }
.log-call-pill:hover{ background:var(--log-surface); box-shadow:inset 0 0 0 1.5px var(--log-green); }
.log-call-ic{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:var(--log-green); color:#fff; flex:none; }
.log-call-ic .log-i{ width:18px; height:18px; }
.log-call-text{ display:flex; flex-direction:column; line-height:1.15; white-space:nowrap; }
.log-call-text small{ font-size:11.5px; font-weight:600; color:var(--log-muted); }
.log-call-text b{ font-size:14.5px; font-weight:700; color:var(--log-ink); }
@media (max-width:1500px){
  .log-call-pill{ width:48px; padding:0; justify-content:center; }
  .log-call-text{ display:none; }
}
@media (max-width:720px){
  .log-call-pill{ width:44px; height:44px; }
}

/* TH Advance Product Search inside the header search pill. */
.log-search.log-header-search-wrap{ padding-right:12px; }
.log-search .thaps-search-box,
.log-search .th-aps-search-form,
.log-search form,
.log-search .thaps-search-form,
.log-search .thaps-from-wrap{ flex:1; display:flex; align-items:center; margin:0; padding:0; background:none!important; border:0!important; box-shadow:none!important; width:100%; min-width:0; }
.log-search .thaps-search-autocomplete,
.log-search .thaps-form-control,
.log-search form input[type="text"],
.log-search form input[type="search"]{ flex:1; min-width:0; height:100%; padding:0; border:0!important; background:none!important; box-shadow:none!important; font-size:15px; color:var(--log-ink); outline:0; }
.log-search .th-icon-vector-search,
.log-search .th-aps-icon{ display:none; }

/* Back to top. */
.log-to-top{ position:fixed; right:20px; bottom:20px; z-index:90; width:48px; height:48px; display:grid; place-items:center; border:0; border-radius:50%; background:var(--log-green); color:#fff; cursor:pointer; box-shadow:0 14px 28px -12px rgba(14,107,82,.7); opacity:0; visibility:hidden; transform:translateY(12px); transition:opacity .3s, transform .5s var(--log-spring), visibility 0s .3s, background .2s; }
.log-to-top.show{ opacity:1; visibility:visible; transform:none; transition-delay:0s; }
.log-to-top:hover{ background:var(--log-green-deep); }
.log-to-top svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Custom logo image + parent-theme list resets. */
.log-logo .custom-logo-link{ display:inline-flex; align-items:center; }
.log-logo img.custom-logo{ height:44px; width:auto; max-width:200px; object-fit:contain; }
.log-hdr .log-nav ul{ list-style:none; margin:0; padding:0; }
.log-hdr .log-nav li{ list-style:none; }
.log-hdr .log-nav li::marker{ content:""; }
.log-hdr .log-nav a{ white-space:nowrap; }

/* Search never collapses and nothing spills out of the bar: up to 1500px the menu tightens (the helpline pill is
   already icon-only there), so the field keeps room to type. */
.log-hdr .log-search{ min-width:190px; }
@media (min-width:1121px) and (max-width:1500px){
  .log-hdr__row{ gap:14px; }
  .log-nav a{ padding:8px 9px; font-size:14px; }
}
@media (min-width:1121px) and (max-width:1200px){
  .log-hdr__row{ gap:10px; }
  .log-nav a{ padding:8px 6px; font-size:13.5px; }
}
/* Wide screens: the header gets a little more width so the labelled helpline pill never squeezes the search. */
@media (min-width:1501px){
  .log-hdr > .log-cwrap{ max-width:calc(var(--log-max) + 220px); }
}
