/* Four visual adjustments only. No layout changes at 768px or above. */
@media (max-width:767px) {
  /* 1. Five equal cells: protect whole words, allow only the booster label to wrap. */
  body:is(#index,#category) #ea-v8-mobile-shell .ea-v8-mobile-five {
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
  body:is(#index,#category) #ea-v8-mobile-shell .ea-v8-mobile-five > a,
  body:is(#index,#category) #ea-v8-mobile-shell #ea-v8-more:not([open]) > summary {
    padding-left:0;padding-right:0;gap:5px;min-width:0;
  }
  body:is(#index,#category) #ea-v8-mobile-shell .ea-v8-mobile-five > a > span,
  body:is(#index,#category) #ea-v8-mobile-shell .ea-v8-more-open > span {
    font-family:Arial,sans-serif;font-weight:700;
    font-size:clamp(8.5px,2.6vw,11px);line-height:1.2;
    letter-spacing:-.15px;white-space:nowrap;overflow-wrap:normal;word-break:normal;
  }
  body:is(#index,#category) #ea-v8-mobile-shell .ea-v8-mobile-five > a:nth-child(4) > span {
    white-space:normal;overflow-wrap:normal;word-break:normal;max-width:100%;
  }

  /* 2. Equal CTAs. Preserve the existing anchors, destinations and SVG drawings. */
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions {
    grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;
  }
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions > a {
    min-height:88px;padding:12px 7px;gap:7px;border-radius:15px;
    border:1px solid #ffc18f;
    box-shadow:inset 0 2px 1px #ffffffb3,inset 0 -2px 1px #bf47004d,0 4px 0 #a83d00,0 7px 11px #0005;
    background:linear-gradient(165deg,#ffa053 0%,#ff7c20 36%,#ff690c 75%);
  }
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions > a > span {min-width:0;}
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions .ea-v8-icon,
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions .ea-v8-call .ea-v8-icon {
    width:clamp(34px,9.3vw,40px);height:clamp(34px,9.3vw,40px);stroke-width:1.9;flex-shrink:0;
  }
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions .ea-v8-map {
    background:linear-gradient(165deg,#fff 0%,#fff 35%,#e8edf3 100%);
    border-color:#f7fbff!important;
    box-shadow:inset 0 2px 1px #fff,inset 0 -2px 1px #aab6c44d,0 4px 0 #9eaab7,0 7px 11px #0005!important;
  }
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions .ea-v8-map .ea-v8-icon {stroke:#ff690c;}
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions strong {
    font-size:clamp(18px,5.2vw,22.5px);line-height:1.15;font-weight:800;white-space:nowrap;
  }
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions small {
    font-size:15px;line-height:1.25;margin-top:4px;
  }

  /* 3. About +2px on regular phones, with compact sizes at 320px. */
  body:is(#index,#category) #ea-v8-mobile-shell .ea-v8-mobile-brand {gap:5px;min-width:0;}
  body:is(#index,#category) #ea-v8-mobile-shell .ea-v8-mobile-brand a {
    font-size:clamp(17px,4.75vw,20px);line-height:1.2;flex:none;
  }
  body:is(#index,#category) #ea-v8-mobile-shell .ea-v8-mobile-brand > span {
    font-size:clamp(12px,3.75vw,15px);line-height:1.2;white-space:nowrap;
  }
  body:is(#index,#category) #ea-v8-mobile-shell .ea-v8-mobile-hours {
    font-size:clamp(12.5px,3.5vw,14px);line-height:1.3;margin:5px 0 9px;
    white-space:nowrap;
  }

  /* 4. Classic footer only on mobile HOME: newsletter + old footer sections.
     Keep #footer itself: consent or other independent elements are not globally hidden. */
  html body#index #footer > .container .block_newsletter,
  html body#index #footer > .container [id^="blockEmailSubscription_"],
  html body#index #footer > .footer-container {display:none!important;}
  html body#index #footer {padding-top:0!important;margin-top:0!important;}
}
@media (max-width:359px) {
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions > a {
    flex-direction:column;min-height:108px;gap:4px;padding:8px 5px;text-align:center;
  }
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions strong {font-size:19px;}
  body#index #ea-v8-mobile-shell .ea-v8-mobile-actions small {font-size:14px;margin-top:2px;}
}
