html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sweetday-anchor-offset, 96px);
}

[id] {
  scroll-margin-top: var(--sweetday-anchor-offset, 96px);
}

.sweetday-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0;
  row-gap: 8px;
  margin: 24px 0 32px;
}

.sweetday-anchor-nav--center {
  justify-content: center;
}

.sweetday-anchor-nav--left {
  justify-content: flex-start;
}

.sweetday-anchor-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 4px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #333333;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.sweetday-anchor-nav__link + .sweetday-anchor-nav__link {
  border-left: 1px solid #d7d7d7;
}

.sweetday-anchor-nav__link:hover,
.sweetday-anchor-nav__link:focus {
  color: #008f8a;
  text-decoration: none;
}

.sweetday-anchor-nav__link:focus-visible {
  outline: 2px solid #7ed9d3;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .sweetday-anchor-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 20px 0 28px;
  }

  .sweetday-anchor-nav::-webkit-scrollbar {
    display: none;
  }

  .sweetday-anchor-nav__link {
    width: auto;
    padding: 4px 14px;
    font-size: 15px;
  }

  .sweetday-anchor-nav__link:first-child {
    padding-left: 0;
  }

  .sweetday-anchor-nav__link:last-child {
    padding-right: 0;
  }
}
