/* Tabs layout */
.hs-tabs,
.hs-tabs__scroll {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.hs-tabs__scroll {
  overflow-x: auto;
}

.hs-tabs__tab-wrapper {
  display: flex;
  gap: 0.25rem;
  max-width: fit-content;
}

/* Nudges */
.hs-tabs__nudge {
  position: absolute;
  top: 0;
  bottom: 0;
  display: none;
  height: 80%;
  width: 16px;
  align-items: center;
  margin: auto 0;
  padding: 0;
  background: #fff;
  border: none;
}

.hs-tabs__nudge--show { display: flex; }

.hs-tabs__nudge--right {
  right: 0;
  border: 1px solid #ccc;
  border-right: none;
  justify-content: flex-end;
}
.hs-tabs__nudge--left {
  left: 0;
  border: 1px solid #ccc;
  border-left: none;
  justify-content: flex-start;
}

.hs-tabs-nudge-icon {
  display: flex;
  height: 100%;
  width: 8px;
  align-items: center;
}
.hs-tabs-nudge-icon svg { width: 8px; }

/* Tabs */
.hs-tabs__tab {
  position: relative;
  box-sizing: border-box;
  padding: 0.7rem 1.4rem;
  border: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  background: #eee;
  white-space: nowrap;
  cursor: pointer;
}

.hs-tabs__tab:hover,
.hs-tabs__tab:focus { background: #fff; }

.hs-tabs__tab[aria-selected='true'] {
  border-bottom-color: #fff;
  background: #fff;
  font-weight: 600;
}

/* Anti-jitter outline */
.hs-tabs__tab:after {
  position: absolute; content: ''; inset: 0;
}
.hs-tabs__tab[aria-selected='false']:hover:after,
.hs-tabs__tab[aria-selected='false']:focus:after,
.hs-tabs__tab[aria-selected='true']:after {
  border-bottom: 2px solid;
}

/* Panels */
.hs-tabs__content {
  display: flex;
  border: 0px;
}

.hs-tabs__content__panel {
  box-sizing: border-box;
  width: 100%;
  padding: 2.8rem;
  display: none;
}

.hs-tabs__content__panel--visible {
  display: block;
}

/* Mobile */
@media (max-width: 767px) {
  .hs-tabs__scroll {
    width: calc(100% - 112px);
    margin-left: 56px;
  }
  .hs-tabs__nudge {
    display: flex;
    width: 48px;
    justify-content: center;
  }
  .hs-tabs__nudge--right,
  .hs-tabs__nudge--left {
    justify-content: center;
  }
