/* Stella Staff footer: four balanced columns; social icons below email; no footer logo.
   Desktop and mobile, without touching header branding or site-public assets. */
.stella-store .store-footer .footer-main > .footer-wordmark {
  display: none !important;
}
.stella-store .store-footer .footer-main > .footer-wordmark::after {
  content: none !important;
  display: none !important;
}
/* Hide surname immediately; JS disables its validation/submission without mutating React's child tree. */
.stella-store .store-footer .stay-in-touch-form > label:has(input[name="lastName"]),
.stella-store .store-footer .stay-in-touch-form > label.stella-footer-surname-hidden {
  display: none !important;
}
.stella-store .store-footer .stay-in-touch-copy > p:last-child {
  display: none !important;
}
@media (min-width: 1024px) {
  .stella-store .store-footer .footer-layout {
    grid-template-columns: minmax(130px, .9fr) minmax(130px, .9fr)
      minmax(180px, 1.15fr) minmax(225px, 1.5fr) !important;
    grid-template-rows: minmax(220px, auto) auto !important;
    column-gap: clamp(15px, 2.25vw, 48px) !important;
  }
  .stella-store .store-footer .footer-main > .footer-menu:nth-child(2) {
    grid-column: 1 !important;
  }
  .stella-store .store-footer .footer-main > .footer-menu:nth-child(3) {
    grid-column: 2 !important;
  }
  .stella-store .store-footer .footer-main > .staff-footer-listino-menu {
    grid-column: 3 !important;
  }
  .stella-store .store-footer .footer-layout > .stay-in-touch {
    grid-column: 4 !important;
  }
  .stella-store .store-footer .stay-in-touch-form {
    grid-template-rows: repeat(2, 46px) !important;
  }
  .stella-store .store-footer .stay-in-touch-form > label:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }
  .stella-store .store-footer .stay-in-touch-form > label:has(input[name="email"]) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .stella-store .store-footer .stay-in-touch-form > button {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  /* Release the icons from the old absolute logo-column position. */
  .stella-store .store-footer .stay-in-touch-inner > .stay-social {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    margin: 21px 0 0 !important;
    padding: 0 !important;
    transform: none !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
}
@media (max-width: 1023px) {
  /* The logo's former reserved space is no longer needed. */
  .stella-store .store-footer .stay-in-touch-copy h2 {
    padding-right: 0 !important;
  }
  .stella-store .store-footer .stay-in-touch-form {
    grid-template-columns: minmax(0, 1fr) 45px !important;
    grid-template-rows: 46px 46px !important;
    column-gap: 10px !important;
    row-gap: 11px !important;
  }
  .stella-store .store-footer .stay-in-touch-form > label:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }
  .stella-store .store-footer .stay-in-touch-form > label:has(input[name="email"]) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
  }
  .stella-store .store-footer .stay-in-touch-form > button {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 45px !important;
    min-width: 45px !important;
  }
  .stella-store .store-footer .stay-in-touch-inner > .stay-social {
    display: flex !important;
    position: static !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 23px 0 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
    border: 0 !important;
  }
  .stella-store .store-footer .stay-in-touch-inner > .stay-social > span {
    display: none !important;
  }
  .stella-store .store-footer .stay-in-touch-inner > .stay-social .social-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  .stella-store .store-footer .stay-in-touch-inner > .stay-social .social-links > a {
    display: grid !important;
    place-items: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border: 1px solid #65656a !important;
    border-radius: 50% !important;
    color: #d7d6d6 !important;
    background: transparent !important;
  }
  .stella-store .store-footer .stay-in-touch-inner > .stay-social .social-links svg {
    width: 23px !important;
    height: 23px !important;
  }
  /* Neutralize the previous mobile monogram rail and five-cell social grid. */
  .stella-store .store-footer .stay-in-touch-inner > .stay-social {
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
  .stella-store .store-footer .stay-in-touch-inner > .stay-social .social-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .stella-store .store-footer .stay-in-touch-inner > .stay-social .social-links::before {
    display: none !important;
    content: none !important;
  }
  .stella-store .store-footer .stay-in-touch-inner > .stay-social .social-links > a {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  /* The old duplicated social row is hidden, without losing the original links. */
  .stella-store .store-footer .stella-mobile-footer-social {
    display: none !important;
  }
  .stella-store .store-footer .footer-layout > .stay-in-touch {
    padding-bottom: 27px !important;
  }
}
@media (max-width: 350px) {
  .stella-store .store-footer .stay-in-touch-form {
    grid-template-columns: minmax(0, 1fr) 45px !important;
  }
}
