pds-tab {
  --background-color-tab: var(--supreme-waffle-color-neutral-grey-300);
  --background-color-tab-active: var(--supreme-waffle-color-neutral-charcoal-400);
  --background-color-tab-hover: var(--supreme-waffle-color-neutral-grey-400);
  --border-radius: var(--supreme-waffle-border-radius-xs);
  --color: var(--supreme-waffle-color-neutral-charcoal-200);
  --color-active: var(--supreme-waffle-color-neutral-charcoal-400);
  --color-focus: var(--supreme-waffle-color-neutral-charcoal-300);
  --color-white: var(--supreme-waffle-color-base-white);
  --font-size-body: var(--supreme-waffle-font-size-body);
  --font-size-sm: var(--supreme-waffle-font-size-body-sm);
  --font-size-xs: var(--supreme-waffle-font-size-body-xs);
  --font-weight: var(--supreme-waffle-font-weight-medium);
  --line-height-md: var(--supreme-waffle-line-height-md);
  --line-height-sm: var(--supreme-waffle-line-height-sm);
  --line-height-xs: var(--supreme-waffle-line-height-xs);
  --outline: 4px solid var(--supreme-waffle-color-primary-200);
  display: inline-block;
  position: relative;
}

*:focus-visible {
  border-radius: var(--border-radius);
  outline: var(--outline);
}

.pds-tab {
  appearance: none;
  background-color: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  align-items: center;
  color: var(--color);
  display: inline-flex;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}
.pds-tab.is-active, .pds-tab[aria-selected=true] {
  color: var(--color-active);
}
.pds-tab.is-active .pds-tab__content::after, .pds-tab[aria-selected=true] .pds-tab__content::after {
  opacity: 1;
}
.pds-tab:hover {
  color: var(--color-active);
}
.pds-tab:focus-visible {
  color: var(--color-focus);
}
.pds-tab .pds-tab__content {
  font-family: inherit;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight);
  line-height: var(--line-height-md);
  padding-block-end: 11px;
  position: relative;
}
.pds-tab .pds-tab__content::after {
  background-color: currentColor;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
}
.pds-tab .pds-tab-edge {
  display: none;
}

.pds-tabs--availability {
  --tab-background-color: transparent;
}
.pds-tabs--availability .pds-tab {
  background-color: var(--tab-background-color);
  border-radius: 8px 8px 0 0;
  padding: 8px 16px 13px;
}
.pds-tabs--availability .pds-tab.is-active, .pds-tabs--availability .pds-tab[aria-selected=true] {
  --tab-background-color: var(--color-white);
}
.pds-tabs--availability .pds-tab.is-active .pds-tab__content::after, .pds-tabs--availability .pds-tab[aria-selected=true] .pds-tab__content::after {
  opacity: 1;
}
.pds-tabs--availability .pds-tab.is-active .pds-tab-edge, .pds-tabs--availability .pds-tab[aria-selected=true] .pds-tab-edge {
  z-index: 1;
}
.pds-tabs--availability .pds-tab:hover:not(.is-active, [aria-selected=true]) {
  --tab-background-color: var(--background-color-tab);
}
.pds-tabs--availability .pds-tab:focus-visible {
  color: var(--color);
}
.pds-tabs--availability .pds-tab__content {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-xs);
  padding-bottom: 7px;
}
.pds-tabs--availability .pds-tab-edge {
  bottom: 0;
  display: block;
  height: 8px;
  inset-inline-end: 100%;
  overflow: hidden;
  position: absolute;
  width: 8px;
}
.pds-tabs--availability .pds-tab-edge::before {
  border-radius: 50%;
  bottom: 0;
  box-shadow: 4px 4px 0 0 var(--tab-background-color);
  content: "";
  display: block;
  height: 200%;
  inset-inline-end: 0;
  position: absolute;
  width: 200%;
}
.pds-tabs--availability .pds-tab-edge--end {
  inset-inline-end: unset;
  inset-inline-start: 100%;
}
.pds-tabs--availability .pds-tab-edge--end::before {
  box-shadow: -4px 4px 0 0 var(--tab-background-color);
  inset-inline-end: unset;
  inset-inline-start: 0;
}

.pds-tabs--filter {
  --tab-background-color: var(--background-color-tab);
}
.pds-tabs--filter .pds-tab {
  background-color: var(--tab-background-color);
  border-radius: 50px;
  color: var(--color-active);
  padding: 6px 15px;
}
.pds-tabs--filter .pds-tab.is-active, .pds-tabs--filter .pds-tab[aria-selected=true] {
  --tab-background-color: var(--background-color-tab-active);
  color: var(--color-white);
}
.pds-tabs--filter .pds-tab:hover:not(.is-active, [aria-selected=true]) {
  --tab-background-color: var(--background-color-tab-hover);
}
.pds-tabs--filter .pds-tab__content {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  padding-block-end: 0;
}
.pds-tabs--filter .pds-tab__content::after {
  content: unset;
}