/* Bookseller buttons echo the established H favicon. */
.bookseller-links {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .75rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.bookseller-links > li { display: flex; margin: 0; padding: 0; }
.bookseller-links .bookseller-button,
.button.sampler-button,
.sampler-form .sampler-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 68px;
  max-width: 100%;
  padding: 12px 18px 14px;
  border: 1px solid #3b2418;
  border-radius: 10px;
  background: #3b2418;
  color: #fbf6ea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.bookseller-links .bookseller-button::before,
.button.sampler-button::before,
.sampler-form .sampler-button::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #a48242;
  border-radius: 7px;
  pointer-events: none;
}
.bookseller-links .bookseller-button::after,
.button.sampler-button::after,
.sampler-form .sampler-button::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: calc(50% - 15px);
  width: 30px;
  border-bottom: 1px solid #a48242;
  pointer-events: none;
}
.bookseller-links .bookseller-button:hover,
.button.sampler-button:hover,
.sampler-form .sampler-button:hover {
  background: #4d3121;
  color: #fbf6ea;
  box-shadow: 0 2px 5px rgb(59 36 24 / 18%);
}
.bookseller-links .bookseller-button:focus-visible,
.button.sampler-button:focus-visible,
.sampler-form .sampler-button:focus-visible {
  outline: 3px solid #a48242;
  outline-offset: 3px;
}
.bookseller-logo {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 2px;
  border-radius: 5px;
  background: #fff;
}
.bookseller-logo img { display: block; width: 36px; height: 36px; object-fit: contain; }
.bookseller-name { overflow-wrap: anywhere; }
.bookseller-links[data-display="name"] .bookseller-logo { display: none; }
.bookseller-links[data-display="name"] .bookseller-button { min-height: 56px; }
.bookseller-links[data-display="logo"] .bookseller-button { width: 72px; min-height: 72px; padding: 12px 14px 16px; }
.bookseller-links[data-display="logo"] .bookseller-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bookseller-links .logo-unavailable .bookseller-logo { display: none; }
.bookseller-links[data-display="logo"] .logo-unavailable { width: auto; min-width: 72px; }
.bookseller-links[data-display="logo"] .logo-unavailable .bookseller-name {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
@media (prefers-reduced-motion: reduce) {
  .bookseller-links .bookseller-button,
.button.sampler-button,
.sampler-form .sampler-button { transition: none; }
}

/* Sampler calls to action use the same motif as name-only bookseller buttons. */
.button.sampler-button,
.sampler-form .sampler-button {
  min-height: 56px;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
}
