#tabs {
  --tabs-sticky-top: 141px;
  --tabs-bg: #ebe1c3;
}

@media (max-width: 991.98px) {
  #tabs {
    --tabs-sticky-top: 84px;
  }
}

.tabs {
  position: relative;
}

.tabs--empty {
  padding: 24px;
  text-align: center;
  color: var(--wp--preset--color--greytxt);
  background: #ebe1c3;
}

.tabs__header {
  position: -webkit-sticky;
  position: sticky;
  top: var(--tabs-sticky-top);
  z-index: 9;
  background: rgba(235, 225, 195, 0.58);
  -webkit-backdrop-filter: blur(8.8950004578px);
  backdrop-filter: blur(8.8950004578px);
  padding: 18px 0;
}

.wp-block-group:has(#tabs),
#tabs,
#tabs .tabs__panels {
  overflow: visible !important;
}

.tabs__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.tabs__arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #262626;
  border-radius: 4px;
  background: transparent;
  color: #262626;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.tabs__arrow svg {
  width: 22px;
  height: 22px;
  stroke-width: 2px;
}

.tabs__arrow:hover,
.tabs__arrow:focus-visible {
  border-color: var(--wp--preset--color--greytxt);
  color: var(--wp--preset--color--greytxt);
  outline: none;
}

.tabs__titles-column {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0 16px;
}

.tabs__viewport {
  width: 100%;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.tabs__viewport::-webkit-scrollbar {
  display: none;
}

.tabs__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.tabs__track {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  width: max-content;
  min-width: 100%;
  justify-content: center;
  padding: 0 12px;
}

.tabs__tab {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: var(--wp--preset--color--greytxt);
  font-family: gotham, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.45;
  transition: color 0.25s ease, opacity 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.tabs__tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(100% + 16px);
  height: 0;
  transform: translateX(-50%);
  background-color: #edd086;
  transition: height 0.25s ease;
}

.tabs__tab.is-active {
  color: #262626;
  opacity: 1;
}

.tabs__tab.is-active::after {
  height: 8px;
}

.tabs__tab:focus-visible {
  outline: 2px solid #edd086;
  outline-offset: 4px;
}

.tabs__rule {
  flex: 0 0 auto;
  width: var(--tabs-rule-width, 100%);
  height: 1px;
  margin: 0;
  background-color: rgba(38, 38, 38, 0.35);
}

.tabs__panels {
  position: relative;
}

.tabs__panel[hidden] {
  display: none !important;
}

@media (max-width: 991.98px) {
  #tabs {
    --tabs-sticky-top: 84px;
  }

  .tabs__header.is-stuck {
    position: fixed;
    z-index: 9;
    padding-top: 12px;
    padding-bottom: 0;
  }

  .tabs__header-placeholder {
    display: block;
    width: 100%;
  }

  .tabs__nav {
    padding: 0;
  }

  .tabs__titles-column {
    margin: 0 8px;
  }

  .tabs__arrow {
    width: 36px;
    height: 36px;
  }

  .tabs__arrow svg {
    width: 18px;
    height: 18px;
  }

  .tabs__viewport {
    mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  }

  .tabs__track {
    gap: 24px;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .tabs__tab {
    font-size: 24px;
    padding-bottom: 10px;
  }

  .tabs__tab::after {
    width: calc(100% + 12px);
  }

  .tabs__tab.is-active::after {
    height: 6px;
  }
}
