/* Terra Search Widget shell styles. Loaded by Magento and staging injection. */

body.catalogsearch-result-index .breadcrumbs,
body.catalogsearch-result-index .page-title-wrapper,
body.catalogsearch-result-index .sidebar,
body.catalogsearch-result-index .search.results,
body.catalogsearch-result-index .search.found,
body.search-index-index .breadcrumbs,
body.search-index-index .page-title-wrapper,
body.search-index-index .sidebar,
body.search-index-index .search.results,
body.search-index-index .search.found,
body.catalogsearch-result-index .product.data.items,
body.search-index-index .product.data.items {
  display: none !important;
}

body.catalogsearch-result-index .column.main,
body.search-index-index .column.main {
  float: none !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.catalogsearch-result-index .catalog-topnav,
body.search-index-index .catalog-topnav {
  display: none !important;
}

#terra-search-results-root {
  display: block !important;
}

#terra-search-root {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  overflow: visible;
  transition: width 0.2s ease, right 0.2s ease, opacity 0.15s ease;
}

#terra-search-root.ts-floating {
  position: fixed !important;
  top: 96px !important;
  left: 50% !important;
  right: auto !important;
  margin-left: -280px !important;
  width: 560px !important;
  max-width: calc(100vw - 32px) !important;
  z-index: 10001 !important;
  isolation: isolate;
  border-radius: 10px;
  background: #fff;
  transform-origin: top right;
  animation:
    ts-float-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) both,
    ts-float-glow 1.8s ease-out 0.15s both;
}

#terra-search-root.ts-floating:hover,
#terra-search-root.ts-floating:focus-within {
  box-shadow:
    0 0 24px 4px rgba(0, 87, 125, 0.25),
    0 24px 48px -16px rgba(0, 61, 92, 0.45) !important;
  transition: box-shadow 0.18s ease;
}

@keyframes ts-float-in {
  0% { transform: translate(120px, -60px) scale(0.55); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes ts-float-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 87, 125, 0), 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  30% {
    box-shadow:
      0 0 44px 6px rgba(0, 87, 125, 0.42),
      0 28px 60px -20px rgba(0, 61, 92, 0.50);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(0, 87, 125, 0),
      0 20px 48px -16px rgba(0, 61, 92, 0.28);
  }
}

.ts-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.22);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 10000;
  animation: ts-backdrop-in 0.32s ease-out both;
}

.ts-search-backdrop.ts-search-backdrop--leaving {
  animation: ts-backdrop-out 0.22s ease-in both;
}

@keyframes ts-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ts-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

#terra-search-collapsed-icon {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 175px;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1.5px solid #003d5c;
  border-radius: 6px;
  background: #fff;
  color: #003d5c;
  padding: 0 !important;
  box-sizing: border-box;
  line-height: 1;
  font-size: 0;
  transition: box-shadow 0.15s ease;
}

#terra-search-collapsed-icon:hover {
  box-shadow: 0 2px 8px rgba(0, 61, 92, 0.2);
}
.headroom--not-top.headroom--pinned div#terra-search-root {
  z-index: 2;
}
@media (max-width: 768px) {
  #terra-search-root {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    padding: 8px 15px;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #terra-search-root.ts-floating {
    top: 56px !important;
    left: 12px !important;
    right: 12px !important;
    margin-left: 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  #terra-search-collapsed-icon {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #terra-search-root,
  #terra-search-root.ts-floating,
  .ts-search-backdrop,
  .ts-search-backdrop.ts-search-backdrop--leaving {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}
