/* Mobile TOP store picker and fixed-control clearance. */
.home-impact #stores .stores-ui {
  max-width: 560px;
  margin-inline: auto;
}

.home-impact #stores .stores-ui .home-store__body {
  min-width: 0;
  padding: 14px;
}

.home-impact #stores .stores-ui .home-store__body h3,
.home-impact #stores .stores-ui .stores-ui__store-name {
  color: var(--omoio-charcoal);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.home-impact #stores .stores-ui .home-store__body dl { margin: 12px 0; }
.home-impact #stores .stores-ui .home-store__body dl div { padding: 6px 0; }
.home-impact #stores .stores-ui .home-store__cta { min-height: 48px; margin-top: auto; }
.home-impact #stores .stores-ui .home-store__badge { margin: 5px 0 0; line-height: 1.45; }
.stores-ui__area { display: block; color: var(--omoio-charcoal); font-size: 14px; line-height: 1.5; }

.stores-ui__photos,
.stores-ui__panels {
  display: grid;
  grid-template: auto / minmax(0, 1fr);
}

.stores-ui__photos > *,
.stores-ui__panels > * { grid-area: 1 / 1; }

.home-impact #stores .stores-ui__photos .home-store__photo { aspect-ratio: 3 / 2; }
.stores-ui__photos > :not([data-active]),
.stores-ui__panels > :not([data-active]) { visibility: hidden; pointer-events: none; }

.stores-ui__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 8px;
  background: var(--omoio-ivory);
}

.stores-ui__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 64px;
  padding: 5px 1px;
  border: 1px solid var(--omoio-beige);
  border-radius: 6px;
  background: #fdfcf9;
  color: var(--omoio-charcoal);
  font: inherit;
  cursor: pointer;
}

.home-impact #stores .stores-ui .stores-ui__tab .stores-ui__store-name { font-size: 14px; }
.stores-ui__tab > .stores-ui__store-name {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

.home-impact #stores .stores-ui .stores-ui__tab .home-store__badge {
  align-self: center;
  margin-top: 3px;
  padding: 2px 4px;
  font-size: 14px;
  max-inline-size: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
}

.stores-ui__tab[aria-selected="true"] {
  background: var(--omoio-green);
  border-color: var(--omoio-green);
}

.home-impact #stores .stores-ui .stores-ui__tab[aria-selected="true"] .stores-ui__store-name {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stores-ui :is(button, [role="tabpanel"]):focus-visible {
  outline: 2px solid var(--omoio-green);
  outline-offset: -2px;
}

@media (max-width: 767px) {
  .home-page [data-back-top] { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .stores-ui__photos > [data-active] { animation: stores-ui-fade 220ms ease-out; }
}

@keyframes stores-ui-fade {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
