.wgas {
  position: fixed;
  z-index: 2100;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0s linear .28s, opacity .28s ease;
}

.wgas.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.wgas__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, .36);
  opacity: 0;
  transition: opacity .28s ease;
}

.wgas.is-open .wgas__backdrop {
  opacity: 1;
}

.wgas__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--webglobe-ink, #1b1b1b);
  background: #fff;
  transform: translateY(-1rem);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}

.wgas.is-open .wgas__dialog {
  transform: translateY(0);
}

.wgas__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
  padding: .75rem;
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
}

.wgas__form {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.wgas__input {
  width: 100%;
  height: 3rem;
  -webkit-appearance: none;
  appearance: none;
  padding: 0 3rem 0 2.75rem;
  color: var(--webglobe-ink, #1b1b1b);
  -webkit-text-fill-color: var(--webglobe-ink, #1b1b1b);
  caret-color: var(--webglobe-ink, #1b1b1b);
  opacity: 1;
  text-shadow: none;
  font-size: 1rem;
  background: #f3f3f3;
  border: 1px solid transparent;
  border-radius: 0;
  transition: border-color .2s ease, background-color .2s ease;
}

.wgas__input:focus {
  background: #fff;
  border-color: var(--webglobe-ink, #1b1b1b);
  box-shadow: none;
  outline: 0;
}

.wgas__search-icon {
  position: absolute;
  z-index: 1;
  left: .85rem;
  font-size: 1.35rem;
  pointer-events: none;
}

.wgas__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  transition: color .2s ease, transform .2s ease;
}

.wgas__close:hover,
.wgas__close:focus-visible {
  color: var(--webglobe-accent, #f04b4b);
  transform: rotate(90deg);
}

.wgas__loader {
  position: absolute;
  right: 1rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid #d5d5d5;
  border-top-color: var(--webglobe-accent, #f04b4b);
  border-radius: 50%;
  opacity: 0;
  animation: wgas-spin .7s linear infinite;
}

.wgas.is-loading .wgas__loader {
  opacity: 1;
}

.wgas__content {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem .75rem 2rem;
}

.wgas__terms,
.wgas__section {
  margin-bottom: 1.5rem;
}

.wgas__heading {
  margin: 0 0 .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wgas__heading--line {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.wgas__heading--line::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #e9e9e9;
}

.wgas__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.wgas__chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: .45rem .8rem;
  color: inherit;
  font-size: .82rem;
  line-height: 1.2;
  text-decoration: none;
  background: #f3f3f3;
  border: 1px solid transparent;
  border-radius: 0;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.wgas__chip:hover,
.wgas__chip:focus-visible {
  color: var(--webglobe-accent, #f04b4b);
  background: #fff;
  border-color: currentColor;
}

.wgas__layout,
.wgas__aside,
.wgas__products-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wgas__category-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.wgas__category {
  --wgas-category-accent: #f04b4b;
  --wgas-category-surface: #fff2f2;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  width: 100%;
  padding: .75rem;
  margin-inline-start: 0;
  color: inherit;
  font-size: .9rem;
  text-decoration: none;
  background: #f6f6f6;
  border-left: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, margin-inline-start .25s cubic-bezier(.22, 1, .36, 1), width .25s cubic-bezier(.22, 1, .36, 1);
}

.wgas__category:hover,
.wgas__category:focus-visible {
  color: inherit;
  width: calc(100% - .75rem);
  margin-inline-start: .75rem;
  background: var(--wgas-category-surface);
  border-left-color: var(--wgas-category-accent);
}

.wgas__category:nth-child(6n + 1) {
  --wgas-category-accent: #f04b4b;
  --wgas-category-surface: #fff2f2;
}

.wgas__category:nth-child(6n + 2) {
  --wgas-category-accent: #f28c28;
  --wgas-category-surface: #fff7ed;
}

.wgas__category:nth-child(6n + 3) {
  --wgas-category-accent: #d6a800;
  --wgas-category-surface: #fffbea;
}

.wgas__category:nth-child(6n + 4) {
  --wgas-category-accent: #39a96b;
  --wgas-category-surface: #effbf4;
}

.wgas__category:nth-child(6n + 5) {
  --wgas-category-accent: #3288d1;
  --wgas-category-surface: #eff7ff;
}

.wgas__category:nth-child(6n + 6) {
  --wgas-category-accent: #8a63d2;
  --wgas-category-surface: #f6f1ff;
}

.wgas__category-path {
  overflow: hidden;
  color: var(--webglobe-muted, #8a8a8a);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wgas__products {
  display: flex;
  gap: .75rem;
  padding-bottom: .5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.wgas__product {
  display: flex;
  flex: 0 0 min(72vw, 15rem);
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}

.wgas__product-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  margin-bottom: .75rem;
  overflow: hidden;
}

.wgas__product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.wgas__product:hover .wgas__product-image,
.wgas__product:focus-visible .wgas__product-image {
  transform: scale(1.04);
}

.wgas__product-price {
  margin-bottom: .25rem;
  font-size: .92rem;
  font-weight: 600;
}

.wgas__product-reference {
  margin-bottom: .375rem;
  color: #414141;
  font-size: .6875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wgas__product-reference strong {
  white-space: nowrap;
}

.wgas__product-brand {
  margin-bottom: .2rem;
  color: var(--webglobe-muted, #8a8a8a);
  font-size: .72rem;
}

.wgas__product-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wgas__dynamic[hidden],
.wgas__popular[hidden] {
  display: none;
}

.wgas__result-title {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}

.wgas__message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  margin: 0;
  color: var(--webglobe-muted, #8a8a8a);
  text-align: center;
}

.wgas__all-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--webglobe-ink, #1b1b1b);
  transition: background-color .2s ease;
}

.wgas__all-results:hover,
.wgas__all-results:focus-visible {
  color: #fff;
  background: var(--webglobe-accent, #f04b4b);
}

.wgas__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wgas-lock {
  overflow: hidden;
}

@keyframes wgas-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 576px) {
  .wgas__header,
  .wgas__content {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .wgas__products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .wgas__product {
    flex-basis: auto;
  }
}

@media (min-width: 768px) {
  .wgas {
    padding: .5rem;
  }

  .wgas__dialog {
    width: min(92rem, 100%);
    height: auto;
    max-height: min(60rem, calc(100vh - 1rem));
    max-height: min(60rem, calc(100dvh - 1rem));
  }

  .wgas__header {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .wgas__form {
    max-width: 52rem;
    margin-left: auto;
  }

  .wgas__close {
    margin-right: auto;
  }

  .wgas__input {
    height: 3.5rem;
    font-size: 1.1rem;
  }

  .wgas__content {
    flex: 0 1 auto;
    min-height: 0;
    padding-top: 1.5rem;
    padding-bottom: .75rem;
  }

  .wgas__layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .wgas__aside {
    flex: 0 0 15rem;
  }

  .wgas__aside .wgas__section {
    margin-bottom: 1rem;
  }

  .wgas__aside .wgas__category-list {
    gap: .35rem;
  }

  .wgas__aside .wgas__category {
    padding: .6rem .75rem;
  }

  .wgas__products-section {
    flex: 1 1 auto;
  }
}

@media (min-width: 992px) {
  .wgas__content {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }

  .wgas__products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1280px) {
  .wgas__dialog {
    width: min(110rem, 100%);
  }

  .wgas__products {
    grid-template-columns: repeat(var(--wgas-desktop-columns, 4), minmax(0, 1fr));
    gap: .75rem;
  }

  .wgas__product-image-wrap {
    height: clamp(8rem, 11vw, 12rem);
    aspect-ratio: auto;
  }

  .wgas__product-name {
    font-size: .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wgas,
  .wgas__backdrop,
  .wgas__dialog,
  .wgas__close,
  .wgas__chip,
  .wgas__category,
  .wgas__product-image,
  .wgas__all-results {
    transition: none;
  }

  .wgas__loader {
    animation-duration: 1.4s;
  }
}
