/* Accesos del inicio: cinco elementos completos y medio siguiente. */
[data-home-pets-root] .patyta-home-access {
  --access-gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  color: #052f5e;
}
.patyta-home-access__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}
.patyta-home-access__heading > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .015em;
}
.patyta-home-access__controls { display: flex; gap: 6px; }
.patyta-home-access__controls button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #dce9e2;
  border-radius: 50%;
  background: #fff;
  color: #008b4f;
  font-family: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.patyta-home-access__controls button:disabled { opacity: .3; cursor: default; }
.patyta-home-access__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * var(--access-gap)) / 5.5);
  gap: var(--access-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 3px 0 6px;
  -webkit-overflow-scrolling: touch;
}
.patyta-home-access__track::-webkit-scrollbar { display: none; }
.patyta-home-access__track > li { min-width: 0; scroll-snap-align: start; margin: 0; padding: 0; }
.patyta-home-access .patyta-home-access__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 86px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #052f5e;
  text-decoration: none;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.patyta-home-access__item img {
  display: block;
  width: min(100%, 68px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  flex: 0 0 auto;
  pointer-events: none;
  transition: transform .18s ease;
}
.patyta-home-access__item span {
  display: block;
  min-height: 28px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: normal;
}
.patyta-home-access__item:active img { transform: scale(.94); }
.patyta-home-access__item:focus-visible,
.patyta-home-access__controls button:focus-visible { outline: 2px solid #008b4f; outline-offset: -2px; }
.patyta-home-access__item[aria-busy="true"] { opacity: .55; }
.patyta-home-access__message { margin: 6px 0 0; color: #526578; font-size: 12px; line-height: 1.4; }
@media (max-width: 600px) {
  [data-home-pets-root] .patyta-home-access { --access-gap: 8px; margin-bottom: 16px; }
  .patyta-home-access__heading { margin-bottom: 4px; }
  .patyta-home-access__heading > span { font-size: 11px; }
  .patyta-home-access__controls { display: none; }
  .patyta-home-access .patyta-home-access__item { min-height: 78px; gap: 4px; }
  .patyta-home-access__item img { width: min(100%, 56px); }
  .patyta-home-access__item span { font-size: 10px; line-height: 1.2; min-height: 24px; }
}
@media (hover: hover) {
  .patyta-home-access__item:hover img { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .patyta-home-access__item img { transition: none; }
}

/* Mobile: integrate the access rail with the green menu. */
html body [data-home-pets-root] .patyta-home-access {
  display: none;
}
html body .patyta-home-access__heading {
  display: none !important;
}
@media (max-width: 820px), ((max-width: 1024px) and (pointer: coarse)) {
  html body [data-page="inicio"] [data-home-pets-root][data-server-verified="1"]:has(> [data-home-access]) {
    margin-top: 0 !important;
  }
  html body [data-home-pets-root] .patyta-home-access {
    display: block;
    position: relative;
    isolation: isolate;
    --access-gap: 8px;
    margin: 0 0 12px;
    padding: 8px 0 0;
  }
  html body [data-home-pets-root] .patyta-home-access::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    background: linear-gradient(180deg, #008B4F 0px, #008B4F 5px, #F1F6F4 90%);
    pointer-events: none;
  }
  html body .patyta-home-access .patyta-home-access__item {
    min-height: 74px;
    gap: 3px;
  }
  html body .patyta-home-access__item span {
    font-size: 9px;
    line-height: 1.2;
    min-height: 22px;
  }
}

/* Suppress only the vertical boundary bounce while mobile Home is active. */
html.patyta-home-no-bounce,
html.patyta-home-no-bounce body {
  overscroll-behavior-y: none;
}
.patyta-home-access .patyta-home-coverage-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  width: 100%;
  min-height: 32px;
  margin: 0 0 8px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #052F5E;
  color: #ACDCF2;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.patyta-home-coverage-banner img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}
.patyta-home-coverage-banner svg {
  width: 17px;
  height: 17px;
  margin-left: 5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  flex: 0 0 auto;
}
.patyta-home-coverage-banner:focus-visible {
  outline: 2px solid #008B4F;
  outline-offset: 2px;
}
@media (max-width: 360px) {
  .patyta-home-access .patyta-home-coverage-banner { font-size: 11px; padding-inline: 8px; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html.patyta-home-no-bounce { scroll-behavior: auto !important; }
}

/* Compact mobile spacing: the shipping button starts at the menu edge. */
@media (max-width: 820px), ((max-width: 1024px) and (pointer: coarse)) {
  html body [data-home-pets-root] .patyta-home-access {
    margin-bottom: 6px;
    padding-top: 0;
  }
  html body .patyta-home-access .patyta-home-coverage-banner {
    min-height: 30px;
    margin-bottom: 4px;
    padding-block: 4px;
  }
  html body .patyta-home-coverage-banner img { width: 20px; height: 20px; }
  html body .patyta-home-access__track { padding-block: 2px; }
  html body .patyta-home-access .patyta-home-access__item { min-height: 68px; gap: 2px; }
  html body .patyta-home-access__item span { min-height: 16px; }
}
