/* The heading uses the storefront face like every other heading: since 15.11.2026 'NatGard Lato'
   has Latin and Cyrillic itself (styles.css), so the block no longer needs its own face. */

.recently-viewed[hidden],
.recently-viewed-arrow[hidden],
.recently-viewed-message[hidden],
.personalization-prompt[hidden] {
  display: none !important;
}

.recently-viewed {
  margin-top: -2px; /* 22px from the banners above to the heading, as in the original */
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ng-border,#dedede);
  background: var(--ng-surface-white,#fff);
  color: var(--ng-text-body,#333);
  font-family: var(--locale-font, 'NatGard Lato'), Arial, Helvetica, sans-serif;
}

.recently-viewed-shell {
  width: min(var(--shell), calc(100% - 64px));
  margin-inline: auto;
}

.recently-viewed h2 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.recently-viewed-carousel {
  position: relative;
}

.recently-viewed-viewport {
  /* Room for the hover / focus frame of the cards (outline outside the card): the scroller clips everything
     outside its own box, so the frame used to show cut off. The negative margin keeps the cards in place. */
  padding: 3px;
  margin: -3px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.recently-viewed-viewport::-webkit-scrollbar {
  display: none;
}

.recently-viewed-viewport:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--ng-focus,#458500);
  outline-offset: 3px;
}

.recently-viewed-list {
  width: max-content;
  min-width: 100%;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recently-viewed-item {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  padding: 4px;
  border-radius: 8px;
  outline: 1px solid transparent;
  transition: outline-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .recently-viewed-item:hover {
    outline-color: var(--ng-muted-hub,#6b6b6b);
  }
}

.recently-viewed-item:focus-within {
  outline: 2px solid var(--ng-focus,#458500);
}

.recently-viewed-item a,
.recently-viewed-item img,
.recently-viewed-fallback {
  width: 92px;
  height: 92px;
  display: block;
}

.recently-viewed-item a {
  background: var(--ng-surface,#f7f8f7);
  border-radius: 4px;
}

.recently-viewed-item a:focus-visible {
  outline: none;
}

.recently-viewed-item img {
  mix-blend-mode: multiply;
  object-fit: contain;
}

.recently-viewed-fallback {
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--ng-surface,#f3f5f1);
  color: var(--ng-primary-deep,#4a653d);
  font-size: 18px;
  font-weight: 700;
}

.recently-viewed-arrow {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ng-border-soft,#e0e0e0);
  border-radius: 50%;
  background: var(--ng-surface-white,#fff);
  color: var(--ng-text-body,#333);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.recently-viewed-arrow--previous { left: -20px; }
.recently-viewed-arrow--next { right: -20px; }

.recently-viewed-arrow:hover {
  background: var(--ng-surface,#f7f8f7);
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.recently-viewed-arrow:focus-visible {
  outline: 2px solid var(--ng-focus,#458500);
  outline-offset: 2px;
}

.recently-viewed-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.recently-viewed-message {
  margin: 0;
  color: var(--ng-text,#454545);
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 767px) {
  .recently-viewed-shell {
    width: min(100% - 28px, 560px);
  }

  .recently-viewed-arrow--previous { left: -12px; }
  .recently-viewed-arrow--next { right: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .recently-viewed-viewport { scroll-behavior: auto; }
  .recently-viewed-item,
  .recently-viewed-arrow { transition: none; }
}

/* Layout survey #3 (01.12.2026): the (i) next to "NatGard Choice" on the home page stays 18 px to the eye, a finger gets 40 px around it. */
.trending-now-info { position: relative; }
.trending-now-info::after { content: ""; position: absolute; inset: -11px; }
