html {
  scroll-padding-top: 100px;
}

#main-content {
  scroll-margin-top: 100px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1001;
  padding: 12px 16px;
  background: #fff;
  color: #000;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:not([tabindex="-1"]):focus {
  outline: 3px solid #000 !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}

header .nav-toggle {
  border: 0;
  background: transparent;
  color: inherit;
}

#primary-navigation a {
  min-height: 24px;
}

#primary-navigation .sub-menu > li {
  height: auto;
  min-height: 25px;
}

.book-slider-controls {
  display: none;
}

@media screen and (max-width: 766px) {
  .book-slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 0 16px;
  }
}

.book-slider-controls button,
.item-sorting button,
.book-text .back-link button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.book-slider-controls button {
  background: #fff;
  color: #000;
}

.item-sorting button[aria-pressed="true"] {
  font-weight: bold;
}

.excerpt-slider-wrapper .excerpt-slider__arrows {
  position: static;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
}

.excerpt-slider-wrapper .excerpt-slider__arrows > button {
  position: static;
  margin: 0;
  opacity: 1;
  min-width: 44px;
  min-height: 44px;
}

.excerpt-navigation .nav-item {
  border: 0;
}

.manage-cookies button {
  min-height: 44px;
}

cookie-banner::part(button):focus {
  outline: 3px solid #000;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}

[hidden] {
  display: none !important;
}

.no-js #primary-navigation {
  position: static;
  visibility: visible;
  opacity: 1;
}

.no-js .nav-toggle {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #primary-navigation,
  .store-links-container,
  .block-image-magnify__item {
    transition: none !important;
  }
}
