[id*="tabtrigger"] {
  /* padding-inline: 1rem; */
  /* .field--name-field-all {
    padding: 1rem;
  }
  .field--name-field-taxonomy,
  .field--name-field-all {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    isolation: isolate;
    gap: 1rem;
    > .field__item,
    &.field__item {
      position: relative;
      padding: 1rem;
      &::before,
      &::after {
        content: "";
        position: absolute;
        display: block;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary);
        z-index: 1;

        transition: width 0.3s var(--ease);
      }
      &::after {
        width: 100%;
        background-color: $solaire-gray4;
        z-index: -1;
      }
      &:hover::before {
        width: 100%;
      }
      &.active::before {
        width: 100%;
        background-color: var(--foreground);
      }
      &.active a {
        font-weight: 700;
      }
    }
  } */
  .content {
    display: none;
  }
}

[id*="tabtrigger"] .field,
.tab-headers {
  margin: 0 auto 2rem;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.tab-content:has(table) {
  overflow: visible;
}

[id*="tabtrigger"] .field__item,
.tab-headers a {
  position: relative;
  padding: 1rem;
  opacity: 0.5;

  &:hover {
    opacity: 0.75;
    color: var(--primary);
    &:before {
      width: 100%;
    }
  }

  &.active {
    opacity: 1;
    font-weight: 500;
    color: var(--primary);
    &:before {
      width: 100%;
    }
  }

  &:before,
  &:after {
    content: "";
    position: absolute;
    display: block;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    z-index: 1;
    transition: width 0.3s var(--ease);
  }

  &:after {
    width: 100%;
    background-color: var(--foreground);
    z-index: 0;
    opacity: 0.5;
  }
}

#block-offerstab {
  gap: 1rem;
}

#block-rewardsoffers {
  justify-content: center;
}

body[data-node-id="dining"] .paganation-2 {
  display: none;
}

/* // system tabs */
body:not([data-node-id="sn_2024"]) .tabs {
  display: flex;
  gap: 1rem;
  padding: 0.5rem;
  background-color: cornflowerblue;
  ul,
  li {
    padding: 0;
    margin: 0 !important;
  }
}
/* inner pages custom tabs */
.nav-tabs {
  position: relative;
  top: 0;
  /* transform: translateX(calc(50% - (var(--container-size) / 2))); */
  /* left: calc(50% - ((var(--container-size) / 2)) + 2rem); */
  left: calc(50% - 50svw);
  padding: 0 !important;
  margin: 2rem 0 !important;
  display: flex;
  justify-content: center;
  width: 100svw;
  background-color: var(--background-accent);
  box-shadow: 0 0 0.5rem rgb(0, 0, 0, 0.3);
  li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    overflow: hidden;
    a {
      position: relative;
      isolation: isolate;
      display: block;
      padding: 1rem 2rem;
      font-weight: 700;
      border-right: solid 2px var(--accent);
    }
    &:hover {
      a::after {
        content: "";
        position: absolute;
        display: block;
        left: 30%;
        bottom: -4rem;
        width: 40%;
        height: 5rem;
        transform: scaleX(2);
        z-index: -1;
        background: radial-gradient(
          circle,
          #df6a2e,
          #df692e79,
          #df692e00,
          #df692e00
        );
        opacity: 0.5;
      }
    }
    &:last-child {
      a {
        border: none;
      }
    }
  }
}

@media (max-width: 900px) {
  .nav-tabs {
    display: block;
    border-top: solid 2px var(--primary);
    li {
      padding: 0;
      a {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        border-right: none;
        border-bottom: solid 2px #333;
        &::after,
        &:hover::after {
          display: none;
        }

        &::before,
        &:hover::before {
          content: "";
          display: block;
          width: 1rem;
          height: 1rem;
          background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOSAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuMDUyNzMgOUgxNC41NTI3IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik05LjMwMjczIDMuNzVMMTQuNTUyNyA5TDkuMzAyNzMgMTQuMjUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==);
          background-size: 100%;
          background-repeat: no-repeat;
          background-position: center;
        }
      }
    }
  }
}
