/* Lightweight header quick-search overlay. Uses Kadence's existing drawer and close controls. */
body.showing-popup-drawer-from-full { overflow:hidden; }
body.showing-popup-drawer-from-full #search-drawer.popup-drawer {
  position:fixed !important;
  inset:0 !important;
  z-index:100000 !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100vw !important;
  height:100vh !important;
  height:100dvh !important;
  padding:24px;
  background:transparent !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  pointer-events:auto !important;
}
body.showing-popup-drawer-from-full #search-drawer .drawer-overlay {
  position:fixed !important;
  inset:0 !important;
  z-index:0 !important;
  display:block !important;
  background:rgba(10,25,19,.62) !important;
  opacity:1 !important;
}
body.showing-popup-drawer-from-full #search-drawer .drawer-inner {
  position:relative !important;
  z-index:1 !important;
  width:min(860px, calc(100vw - 48px)) !important;
  max-width:860px !important;
  height:auto !important;
  max-height:min(90vh, 850px) !important;
  margin:0 !important;
  overflow:hidden !important;
  border:1px solid rgba(20,54,39,.1);
  border-radius:18px !important;
  background:#f7f6ef !important;
  color:#203329;
  box-shadow:0 24px 80px rgba(0,0,0,.28) !important;
  transform:none !important;
}
body.showing-popup-drawer-from-full #search-drawer .drawer-header {
  position:absolute !important;
  top:18px;
  right:20px;
  z-index:5;
  width:auto !important;
  height:auto !important;
  padding:0 !important;
  background:transparent !important;
}
body.showing-popup-drawer-from-full #search-drawer .search-toggle-close {
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid #dfe3da;
  border-radius:50%;
  background:#fff;
  color:#173d2c;
}
body.showing-popup-drawer-from-full #search-drawer .search-toggle-close:hover { background:#edf0e8; }
body.showing-popup-drawer-from-full #search-drawer .drawer-content {
  position:relative !important;
  inset:auto !important;
  flex:1 1 auto;
  width:100% !important;
  max-height:min(90vh, 850px) !important;
  margin:0 !important;
  padding:38px 42px 28px !important;
  overflow-y:auto !important;
  background:transparent !important;
}
.ugo-quick-search-heading { max-width:690px; margin:0 58px 22px 0; }
.ugo-quick-search-heading h2 { margin:0 0 8px; color:#123b2b; font:500 clamp(28px,3.2vw,38px)/1.12 Georgia,serif; letter-spacing:-.025em; }
.ugo-quick-search-heading p { margin:0; color:#5b695f; font:400 14px/1.55 var(--global-body-font-family,Arial,sans-serif); }
.ugo-quick-search-form { margin:0 0 10px; }
.ugo-quick-search-field { display:flex; align-items:center; gap:13px; min-height:62px; padding:7px 13px 7px 19px; border:1px solid #dce2d9; border-radius:999px; background:#fff; box-shadow:0 4px 16px rgba(17,44,30,.06); }
.ugo-quick-search-leading { display:flex; flex:0 0 21px; color:#53675a; }
.ugo-quick-search-leading svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.ugo-quick-search-field input[type="search"] { width:100%; min-width:0; height:44px; margin:0; padding:0; border:0 !important; outline:0; background:transparent !important; box-shadow:none !important; color:#203329; font:500 16px/1.4 var(--global-body-font-family,Arial,sans-serif); }
.ugo-quick-search-field input[type="search"]::-webkit-search-cancel-button { display:none; }
.ugo-quick-search-clear { display:flex; flex:0 0 36px; align-items:center; justify-content:center; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:#eef0e9; color:#315440; font-size:24px; line-height:1; }
.ugo-quick-search-clear[hidden] { display:none; }
.ugo-quick-search-status { min-height:18px; margin:0 4px 5px; color:#657269; font:400 12px/1.4 var(--global-body-font-family,Arial,sans-serif); }
.ugo-quick-search-live { margin:0 0 8px; border-top:1px solid #e1e5dd; }
.ugo-quick-search-live[hidden] { display:none; }
.ugo-quick-result { display:grid; grid-template-columns:68px minmax(0,1fr) 18px; align-items:center; gap:14px; min-height:78px; padding:10px 3px; border-bottom:1px solid #e1e5dd; color:inherit; text-decoration:none !important; }
.ugo-quick-result-no-thumb { grid-template-columns:minmax(0,1fr) 18px; }
.ugo-quick-result:hover .ugo-quick-result-title { color:#456a50; }
.ugo-quick-result-thumb { display:block; width:68px; height:52px; overflow:hidden; border-radius:5px; background:#e6e9e1; }
.ugo-quick-result-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.ugo-quick-result-copy { display:flex; min-width:0; flex-direction:column; gap:3px; }
.ugo-quick-result-type { color:#52735a; font:700 9px/1.3 var(--global-body-font-family,Arial,sans-serif); letter-spacing:.14em; text-transform:uppercase; }
.ugo-quick-result-title { overflow:hidden; color:#153d2c; font:500 18px/1.2 Georgia,serif; text-overflow:ellipsis; white-space:nowrap; }
.ugo-quick-result-excerpt { overflow:hidden; color:#657168; font:400 12px/1.4 var(--global-body-font-family,Arial,sans-serif); text-overflow:ellipsis; white-space:nowrap; }
.ugo-quick-result-arrow { justify-self:end; color:#7d887f; font:400 25px/1 Georgia,serif; }
.ugo-quick-search-section { margin-top:18px; }
.ugo-quick-search-section h3 { margin:0 0 9px; color:#30453a; font:700 10px/1.4 var(--global-body-font-family,Arial,sans-serif); letter-spacing:.13em; text-transform:uppercase; }
.ugo-quick-search-pills,.ugo-quick-search-chips { display:flex; gap:8px; overflow-x:auto; padding:0 0 3px; scrollbar-width:thin; }
.ugo-quick-search-pills a,.ugo-quick-search-chips button { display:inline-flex; flex:0 0 auto; align-items:center; gap:7px; min-height:35px; padding:7px 12px; border:1px solid #dfe4db; border-radius:999px; background:#fff; color:#31523e; text-decoration:none; font:600 11px/1.25 var(--global-body-font-family,Arial,sans-serif); }
.ugo-quick-search-pills a:hover,.ugo-quick-search-chips button:hover { border-color:#a9b9aa; background:#eef1e9; color:#143b2b; }
.ugo-quick-search-pills a span { font-size:14px; line-height:1; }
.ugo-quick-search-chips button { cursor:pointer; }
.ugo-quick-search-footer { margin-top:20px; }
.ugo-quick-search-all { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; padding:11px 18px; border-radius:7px; background:#123d2b; color:#fff !important; text-align:center; text-decoration:none !important; font:600 14px/1.3 var(--global-body-font-family,Arial,sans-serif); }
.ugo-quick-search-all:hover { background:#1b513b; }
body.showing-popup-drawer-from-full #search-drawer :is(a,button,input):focus-visible { outline:2px solid #578261; outline-offset:3px; }
@media (max-width:700px) {
  body.showing-popup-drawer-from-full #search-drawer.popup-drawer { padding:0; }
  body.showing-popup-drawer-from-full #search-drawer .drawer-inner {
    display:flex !important;
    flex-direction:column;
    width:100vw !important;
    max-width:none !important;
    height:100vh !important;
    height:100dvh !important;
    max-height:none !important;
    border:0;
    border-radius:0 !important;
  }
  body.showing-popup-drawer-from-full #search-drawer .drawer-header { top:14px; right:16px; }
  body.showing-popup-drawer-from-full #search-drawer .drawer-content {
    flex:1 1 auto;
    max-height:none !important;
    padding:70px 20px 12px !important;
  }
  .ugo-quick-search-heading { margin:0 52px 20px 0; }
  .ugo-quick-search-heading h2 { font-size:29px; }
  .ugo-quick-search-heading p { max-width:360px; font-size:13px; }
  .ugo-quick-search-field { min-height:58px; }
  .ugo-quick-result { grid-template-columns:58px minmax(0,1fr) 14px; gap:11px; min-height:72px; padding:9px 0; }
  .ugo-quick-result-no-thumb { grid-template-columns:minmax(0,1fr) 14px; }
  .ugo-quick-result-thumb { width:58px; height:48px; }
  .ugo-quick-result-title { font-size:16px; }
  .ugo-quick-result-excerpt { font-size:11px; }
  .ugo-quick-search-section { margin-top:16px; }
  .ugo-quick-search-footer {
    position:sticky;
    bottom:-12px;
    z-index:4;
    margin:16px -20px -12px;
    padding:14px 20px 12px;
    background:linear-gradient(to bottom,rgba(247,246,239,.88),#f7f6ef 24%);
  }
  .ugo-quick-search-all { min-height:52px; }
}
@media (prefers-reduced-motion:reduce) {
  .ugo-quick-search-all,.ugo-quick-result { transition:none; }
}
