/* AMSoft mobile search v5: no horizontal clipping, one full-width search row. */
@media (max-width:767px) {
  body.k594-site-shell .k4-global-header,
  body.k4-app-body .k4-global-header {position:relative;z-index:110;overflow:visible!important;}

  body.k594-site-shell .k4-global-header .k4-header-inner,
  body.k4-app-body .k4-global-header .k4-header-inner {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:'brand burger' 'search search';
    gap:12px!important;
    width:calc(100% - 28px)!important;
    max-width:none!important;
    min-height:0!important;
    margin:0 auto!important;
    padding:10px 0 13px!important;
    align-items:center;
    position:relative;
    overflow:visible!important;
  }
  body.k594-site-shell .k4-header-inner > .k4-brand,
  body.k4-app-body .k4-header-inner > .k4-brand {grid-area:brand;min-width:0;justify-self:start;align-self:center;}
  body.k594-site-shell .k4-header-inner > .k43-burger,
  body.k4-app-body .k4-header-inner > .k43-burger {
    grid-area:burger;display:flex!important;justify-self:end;align-self:center;
    margin:0!important;min-width:46px;max-width:46px;
  }
  body.k594-site-shell .k4-header-inner > nav,
  body.k4-app-body .k4-header-inner > nav,
  body.k594-site-shell .k4-header-inner > .k4-header-catalog,
  body.k4-app-body .k4-header-inner > .k4-header-catalog {display:none!important;}

  body.k594-site-shell .k4-header-inner > form.k4-header-search,
  body.k4-app-body .k4-header-inner > form.k4-header-search {
    grid-area:search;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 46px;
    align-items:center!important;
    justify-content:stretch!important;
    gap:3px!important;
    position:relative!important;
    height:50px!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:none!important;
    padding:4px 5px 4px 13px!important;
    margin:0!important;
    border:1px solid #dce5f2!important;
    border-radius:14px!important;
    background:#f7f9fd!important;
    box-shadow:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  body.k594-site-shell .k4-header-inner > form.k4-header-search input[type="search"],
  body.k4-app-body .k4-header-inner > form.k4-header-search input[type="search"],
  body.k594-site-shell .k4-header-inner > form.k4-header-search:is(:focus-within,.k594-search-open) input[type="search"] {
    display:block!important;
    position:static!important;
    right:auto!important;left:auto!important;top:auto!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:39px!important;
    opacity:1!important;
    pointer-events:auto!important;
    flex:none!important;
    padding:6px 5px!important;
    margin:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:8px!important;
    box-shadow:none!important;
    font-size:15px!important;
    line-height:1.3!important;
    color:#1c2e4b!important;
    box-sizing:border-box!important;
  }
  body.k594-site-shell .k4-header-inner > form.k4-header-search button,
  body.k4-app-body .k4-header-inner > form.k4-header-search button {
    display:grid!important;place-items:center!important;
    position:static!important;
    width:43px!important;min-width:43px!important;max-width:43px!important;
    height:40px!important;min-height:40px!important;
    flex:none!important;padding:0!important;margin:0!important;
    color:#536a89!important;
    background:#eaf0f8!important;border:0!important;border-radius:10px!important;
    cursor:pointer;
  }
  body.k594-site-shell .k4-header-inner > form.k4-header-search:focus-within,
  body.k4-app-body .k4-header-inner > form.k4-header-search:focus-within {
    border-color:#80b3ff!important;
    box-shadow:0 0 0 3px rgba(30,112,255,.14)!important;
  }

  body.k594-site-shell .k4-header-search.k596-search-form .k596-suggestions,
  body.k4-app-body .k4-header-search.k596-search-form .k596-suggestions,
  .search-large.k596-search-form .k596-suggestions {
    position:absolute!important;
    left:0!important;right:0!important;
    top:calc(100% + 8px)!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    box-sizing:border-box!important;
    padding:7px!important;
    max-height:min(420px,55dvh)!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    border-radius:14px!important;
    z-index:2000!important;
  }
  .k596-suggestions .k596-suggest-head,
  .k596-suggestions .k596-suggest-more {white-space:normal!important;overflow-wrap:anywhere!important;}
  .k596-suggestions .k596-suggest-item {
    display:flex!important;
    align-items:center!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    padding:8px!important;gap:10px!important;
    box-sizing:border-box!important;
    overflow:hidden;
  }
  .k596-suggestions .k596-suggest-icon,
  .k596-suggestions .k596-suggest-icon img,
  .k596-suggestions .k596-suggest-fallback {width:43px!important;height:43px!important;flex:0 0 43px!important;}
  .k596-suggestions .k596-suggest-info {min-width:0!important;flex:1 1 0!important;max-width:100%!important;}
  .k596-suggestions .k596-suggest-info strong {max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important;}
  .k596-suggestions .k596-suggest-arrow {flex:0 0 18px!important;margin:0 3px 0 0!important;}

  /* Large search form and result cards on /search/, including a full-width empty state. */
  .page-lead {min-width:0;max-width:100%;}
  form.search-large {display:flex!important;position:relative!important;overflow:visible!important;width:100%!important;max-width:100%!important;min-width:0!important;gap:0!important;min-height:52px;height:52px!important;}
  form.search-large input[type="search"] {min-width:0!important;width:0!important;max-width:100%!important;flex:1 1 auto!important;padding:10px 12px!important;font-size:15px!important;box-sizing:border-box!important;}
  form.search-large button {flex:0 0 90px!important;min-width:84px!important;padding:0 10px!important;white-space:nowrap!important;font-size:14px!important;}
  .app-grid.k598-search-results {display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;min-width:0!important;gap:10px!important;}
  .app-grid.k598-search-results .app-card {display:grid!important;grid-template-columns:56px minmax(0,1fr) 16px!important;align-items:center!important;gap:11px!important;min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:12px!important;overflow:hidden!important;}
  .app-grid.k598-search-results .app-icon {width:56px!important;height:56px!important;max-width:56px!important;border-radius:13px!important;}
  .app-grid.k598-search-results .app-content {min-width:0!important;width:100%!important;overflow:hidden!important;}
  .app-grid.k598-search-results .app-content strong {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;}
  .app-grid.k598-search-results .app-content small,
  .app-grid.k598-search-results .card-facts {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .app-grid.k598-search-results .card-arrow {margin-left:0!important;justify-self:end;}
  .app-grid.k598-search-results .empty {grid-column:1/-1;width:100%;margin:0;box-sizing:border-box;padding:24px 20px;line-height:1.65;}
  .k4-global-header .k43-mobile-menu:not([hidden]) {z-index:2500!important;top:100%!important;}
}
@media (max-width:390px) {
  .k4-global-header .k4-header-inner {width:calc(100% - 24px)!important;}
  .k596-suggestions .k596-suggest-info strong {font-size:12px!important;}
}
