.tfbr {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  scroll-margin-top: 5rem;
  background: #f8f7f4;
  color: #161616;
}

.tfbr:has(.tfbr-disclosure:not([open])) {
  padding-block: clamp(1.25rem, 3vw, 2.5rem);
}

.tfbr[hidden] {
  display: none;
}

.tfbr h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.tfbr p.tfbr-scope {
  margin: .5rem 0 0;
  color: #686259;
}

.tfbr-aggregate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .5rem;
  margin: .75rem 0 0;
  color: #686259;
  font-size: .95rem;
}

.tfbr-aggregate > span[aria-hidden] {
  color: #9b5200;
}

.tfbr-aggregate > strong {
  color: #161616;
  font-size: 1.125rem;
}

.tfbr ul.tfbr-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: start;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0 0 .625rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #82735e #e8e4da;
  list-style: none;
}

.tfbr ul.tfbr-list--controlled {
  scrollbar-width: none;
}

.tfbr ul.tfbr-list--controlled::-webkit-scrollbar {
  display: none;
}

.tfbr ul.tfbr-list:focus-visible {
  outline: 2px solid #9b5200;
  outline-offset: 4px;
}

.tfbr ul.tfbr-list:focus-visible:not(.tfbr-list--controlled) {
  scroll-snap-type: none;
}

.tfbr p.tfbr-scroll {
  margin: .5rem 0 0;
  color: #686259;
  font-size: .875rem;
}

.tfbr-toolbar:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .5rem;
}

.tfbr-toolbar p.tfbr-scroll {
  margin: 0;
}

.tfbr-controls {
  display: flex;
  flex-shrink: 0;
  gap: .5rem;
}

.tfbr-controls button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #878178;
  border-radius: 50%;
  background: #fff;
  color: #161616;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
}

.tfbr-controls button:hover:not([aria-disabled="true"]) {
  background: #f9b442;
}

.tfbr-controls button[aria-disabled="true"] {
  opacity: .45;
  cursor: default;
}

.tfbr-controls button:focus-visible {
  outline: 2px solid #9b5200;
  outline-offset: 2px;
}

.tfbr li.tfbr-card {
  min-width: 0;
  padding: clamp(.875rem, 2vw, 1.25rem);
  border: 1px solid #e8e4da;
  border-radius: 1rem;
  background: #fff;
  scroll-snap-align: start;
}

@media (pointer: coarse), (max-width: 48rem) {
  .tfbr-toolbar {
    /* Keep the controls clear of the floating help button. */
    padding-inline-end: calc(4.25rem + env(safe-area-inset-right, 0px));
  }

  .tfbr-toolbar p.tfbr-scroll {
    overflow-wrap: anywhere;
  }
}

@media (min-width: 40rem) {
  .tfbr ul.tfbr-list:has(> :nth-child(2)) {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }

  .tfbr .tfbr-list:not(:has(> :nth-child(3))) + .tfbr-scroll {
    display: none;
  }
}

@media (min-width: 64rem) {
  .tfbr ul.tfbr-list:has(> :nth-child(3)) {
    grid-auto-columns: calc((100% - 2rem) / 3);
  }

  .tfbr .tfbr-list:not(:has(> :nth-child(4))) + .tfbr-scroll {
    display: none;
  }
}

@media (min-width: 80rem) {
  .tfbr ul.tfbr-list:has(> :nth-child(4)) {
    grid-auto-columns: calc((100% - 3rem) / 4);
  }

  .tfbr .tfbr-list:not(:has(> :nth-child(5))) + .tfbr-scroll {
    display: none;
  }
}

.tfbr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-bottom: .75rem;
  font-size: .875rem;
}

.tfbr-meta time, .tfbr-translation {
  color: #686259;
}

.tfbr-rating {
  font-weight: 700;
}

.tfbr-rating span:first-child {
  color: #9b5200;
}

.tfbr p.tfbr-author {
  margin: 0 0 .375rem;
  overflow-wrap: anywhere;
  font-size: .875rem;
  font-weight: 600;
}

.tfbr blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: #39352f;
  font-size: .95rem;
  font-style: normal;
  line-height: 1.65;
}

.tfbr blockquote p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.tfbr p.tfbr-translation {
  margin: .625rem 0 0;
  font-size: .8125rem;
}

.tfbr summary {
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.35;
}

.tfbr summary:focus-visible {
  outline: 2px solid #9b5200;
  outline-offset: 4px;
}

.tfbr details > summary > .tfbr-open,
.tfbr details[open] > summary > .tfbr-closed {
  display: none;
}

.tfbr details[open] > summary > .tfbr-open {
  display: inline;
}

.tfbr-disclosure {
  margin-top: .5rem;
}

.tfbr--with-trustpilot :is(.tfbr-disclosure, .tfbr-disclosed) {
  margin-top: 0;
}

.tfbr-disclosure > summary[hidden] {
  display: none;
}

.tfbr-disclosure > summary:not([hidden]),
.tfbr-external-toggle:not([hidden]) {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  max-width: 100%;
  min-height: 2rem;
  padding: .25rem 0;
  border: 0;
  background: transparent;
  color: var(--b-sec, #514b43);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.tfbr-disclosure > summary::-webkit-details-marker {
  display: none;
}

.tfbr-disclosure > summary:hover,
.tfbr-external-toggle:hover {
  color: var(--b-text, #161616);
}

.tfbr-external-toggle:focus-visible {
  outline: 2px solid #9b5200;
  outline-offset: 4px;
}

.tfbr-disclosure > summary::after,
.tfbr-external-toggle::after {
  width: .5rem;
  height: .5rem;
  flex: none;
  align-self: center;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  transform: translateY(-.1rem) rotate(45deg);
}

.tfbr-disclosure[open] > summary::after,
.tfbr-external-toggle[aria-expanded="true"]::after {
  transform: translateY(.1rem) rotate(225deg);
}

@media (pointer: coarse) {
  .tfbr-disclosure > summary:not([hidden]),
  .tfbr-external-toggle:not([hidden]) {
    min-height: 2.75rem;
  }
}

.tfbr-disclosed {
  margin-top: 1.25rem;
}

.tfbr-original > summary {
  margin-top: .375rem;
  padding-block: .375rem;
  color: #6e400b;
  font-size: .875rem;
}

.tfbr li.tfbr-card:has(> .tfbr-original[open]) > :is(.tfbr-quote, .tfbr-translation) {
  display: none;
}

.tfbr-original[open] {
  display: flex;
  flex-direction: column-reverse;
}

.tfbr p.tfbr-quote-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.tfbr-read-more {
  margin-top: .375rem;
  color: #6e400b;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.tfbr-read-more:focus-visible {
  outline: 2px solid #9b5200;
  outline-offset: 3px;
}
