/* Logo tiles adapted from panasonicshavers.ru .about-buy.
 * Scoped to #shops: typography, section frame and colors remain Oral Care.
 */
#shops .oral-shops-copy {
  max-width: 1144px;
  margin-top: 24px !important;
}

#shops .oral-shops-note {
  margin-top: 8px !important;
}

#shops .oral-shops-note:empty,
#shops .oral-shops-copy:empty {
  display: none;
}

#shops .oral-shop-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

#shops .oral-shop-logo {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 136px;
  padding: 16px;
  border: 1px solid var(--color-border, #e2e8ed);
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#shops .oral-shop-logo img {
  display: block;
  width: 100%;
  height: 72px;
  max-width: 280px;
  object-fit: contain;
}

#shops .oral-shop-logo--ozon img {
  max-width: 240px;
}

#shops .oral-shop-logo:hover {
  border-color: var(--color-primary, #173750);
  box-shadow: 0 3px 12px rgba(22, 45, 62, .07);
}

#shops .oral-shop-logo:focus-visible {
  outline: 3px solid var(--color-primary, #173750);
  outline-offset: 4px;
}

#shops .oral-shop-logo[hidden] {
  display: none;
}

@media (max-width: 767px) {
  #shops .oral-shop-logos {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  #shops .oral-shop-logo {
    min-height: 120px;
  }

  #shops .oral-shop-logo img {
    max-width: 260px;
    height: 64px;
  }

  #shops .oral-shop-logo--ozon img {
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #shops .oral-shop-logo {
    transition: none;
  }
}
