.third-fav-nav {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 9998;
  background: #111;
  color: #fff !important;
  border: 1px solid #777;
  border-radius: 30px;
  padding: 11px 16px;
  font: 600 12px/1.4 sans-serif;
  text-decoration: none !important;
  box-shadow: 0 3px 15px #0004;
}
.third-fav-nav span {
  display: inline-block;
  background: #fff;
  color: #111;
  border-radius: 20px;
  min-width: 19px;
  text-align: center;
  margin-left: 4px;
}
.third-fav-button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #aaa;
  border-radius: 24px;
  background: #fff;
  color: #222;
  padding: 7px 12px;
  font: 600 12px/1.3 sans-serif;
  max-width: 100%;
}
.third-fav-button.is-saved {
  color: #b22245;
  border-color: #b22245;
  background: #fff6f8;
}
.third-fav-detail {
  margin: 12px 0 22px;
}
.third-fav-card {
  display: inline-block;
  margin: 6px 5px;
}
.third-fav-heading h2 {
  font-size: clamp(23px, 4vw, 36px);
  letter-spacing: 0.08em;
}
.third-fav-heading p,
.third-fav-note {
  color: #777;
  font-size: 13px;
}
.third-fav-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.third-fav-filters button {
  border: 1px solid #bbb;
  background: #fff;
  border-radius: 20px;
  padding: 9px 15px;
  cursor: pointer;
}
.third-fav-filters button.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.third-fav-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
}
.third-fav-entry a {
  color: inherit;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.third-fav-remove {
  background: transparent;
  border: 1px solid #aaa;
  border-radius: 16px;
  padding: 5px 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.third-fav-empty {
  padding: 25px 0;
  color: #777;
}
.third-fav-note {
  margin-top: 30px;
}
@media (max-width: 600px) {
  .third-fav-nav {
    right: 10px;
    bottom: 12px;
    padding: 10px 12px;
  }
}

.third-fav-button,
.third-fav-remove,
.third-fav-filters button {
  min-height: 44px;
  touch-action: manipulation;
}
.third-fav-button {
  margin: 4px 0;
  font-size: clamp(10px, 2.4vw, 13px);
  justify-content: center;
}
.third-fav-overlay {
  position: absolute !important;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  max-width: none;
  z-index: 3;
  font-size: 20px;
  box-shadow: 0 1px 5px #0004;
}
.third-fav-overlay[hidden] {
  display: none !important;
}
.third-fav-button:focus-visible,
.third-fav-nav:focus-visible,
#third-my-page-root :focus-visible {
  outline: 3px solid #437bc1;
  outline-offset: 2px;
}
#third-my-page-root {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 24px auto;
  padding: 0 clamp(12px, 4vw, 32px) 48px;
}
.third-fav-state {
  display: block;
  margin-top: 4px;
  color: #565656;
  font-size: 12px;
}
.third-fav-entry > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.third-fav-nav {
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}
.third-fav-filters button,
.third-fav-remove {
  color: #222;
}

/* The directory row includes both the photo link and its save button. */
.ts-directory .ts-card-grid > li > a.ts-store-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  overflow-wrap: anywhere;
}
.ts-directory .ts-card-grid > li > .third-fav-button {
  position: static;
  box-sizing: border-box;
  margin: 6px 0 0;
  white-space: normal;
}
