/* STELLA staff: Townhouse-inspired MOBILE footer only.
   Reuses the untouched authentic Stella PNG, masks the subtitle 'PARRUCCHIERI'.
   Keeps desktop >= 1024px, original form and legal links unchanged. */
.stella-store .store-footer .stella-mobile-footer-directory,
.stella-store .store-footer .stella-mobile-footer-social {
  display: none;
}
@media (max-width: 1023px) {
  .stella-store .store-footer {
    background: #171719 !important;
    border-color: #343437;
    padding: 0 !important;
  }
  .stella-store .store-footer .footer-layout {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    max-width: none;
    padding: 0 clamp(22px, 5.5vw, 56px) !important;
    background: transparent;
    overflow: visible;
  }
  .stella-store .store-footer .footer-layout::before {
    display: none !important;
    content: none !important;
  }
  .stella-store .store-footer .footer-layout > .footer-main {
    position: static !important;
    display: block !important;
    order: 1 !important;
    width: 100%;
    max-width: none;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
  /* Brand wordmark sits above the newsletter, at the upper left like the reference. */
  .stella-store .store-footer .footer-main > .footer-wordmark {
    position: absolute !important;
    top: clamp(34px, 5.4vw, 54px) !important;
    left: clamp(22px, 5.5vw, 56px) !important;
    right: auto !important;
    display: block !important;
    width: clamp(174px, 38vw, 260px) !important;
    height: auto !important;
    aspect-ratio: 1663 / 380 !important;
    max-width: calc(100% - 45px) !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2;
    transform: none !important;
    border: 0 !important;
  }
  .stella-store .store-footer .footer-main > .footer-wordmark > img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: initial !important;
    transform: none !important;
  }
  .stella-store .store-footer .footer-main > .footer-wordmark::after {
    display: none !important;
    content: none !important;
  }
  /* Main content order: logo -> newsletter -> accordion -> social -> legal. */
  .stella-store .store-footer .footer-layout > .stay-in-touch {
    order: 0 !important;
    position: static !important;
    width: 100%;
    min-width: 0;
    padding: clamp(124px, 18vw, 157px) 0 27px !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
  }
  .stella-store .store-footer .stay-in-touch-inner {
    position: static !important;
    display: block !important;
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
  }
  .stella-store .store-footer .stay-in-touch-copy .eyebrow,
  .stella-store .store-footer .stay-in-touch-copy > p:last-child {
    display: none !important;
  }
  .stella-store .store-footer .stay-in-touch-copy h2 {
    font-family: inherit !important;
    font-size: 0 !important;
    line-height: 1 !important;
    margin: 0 0 23px !important;
    font-weight: 750 !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: normal;
  }
  .stella-store .store-footer .stay-in-touch-copy h2::after {
    content: "Join the list" !important;
    display: inline-block !important;
    font-family: inherit;
    font-size: clamp(18px, 2.75vw, 22px) !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
    color: #fff;
    letter-spacing: .065em !important;
    white-space: nowrap;
    text-transform: none !important;
  }
  .stella-store .store-footer .stay-in-touch-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 56px !important;
    grid-template-rows: repeat(3, 56px) !important;
    column-gap: 8px !important;
    row-gap: 10px !important;
    align-items: stretch !important;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0 !important;
    margin: 0 !important;
  }
  .stella-store .store-footer .stay-in-touch-form > label {
    position: relative;
    display: block !important;
    min-width: 0;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }
  .stella-store .store-footer .stay-in-touch-form > label > span {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }
  .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:nth-child(2) {grid-column: 1 / -1 !important; grid-row: 2 !important;}
  .stella-store .store-footer .stay-in-touch-form > label:nth-child(3) {grid-column: 1 !important; grid-row: 3 !important;}
  .stella-store .store-footer .stay-in-touch-form input {
    display: block !important;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    border: 1px solid #68676a !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    background: #171719 !important;
    color: #f5f2f0 !important;
    font-size: 16px !important;
    line-height: normal !important;
  }
  .stella-store .store-footer .stay-in-touch-form input::placeholder {color: #b6b2b1;opacity: 1;}
  .stella-store .store-footer .stay-in-touch-form input:focus-visible {
    border-color: #f0c1ab !important;
    outline: 2px solid #f0c1ab;
    outline-offset: 2px;
  }
  .stella-store .store-footer .stay-in-touch-form > button {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    grid-column: 2 !important;
    grid-row: 3 !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #e9b8a6 !important;
    color: #171719 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    transform: none !important;
  }
  .stella-store .store-footer .stay-in-touch-form > button > svg {
    display: block !important;
    position: static !important;
    width: 23px !important;
    height: 23px !important;
    margin: 0 !important;
    transform: none !important;
    stroke-width: 2 !important;
  }
  .stella-store .store-footer .stay-in-touch-form > button:hover {background:#f4cabb !important;}
  .stella-store .store-footer .stay-social {display:none !important;}
  .stella-store .store-footer .footer-main > .footer-menu {
    display:none !important;
  }
  .stella-store .store-footer .stella-mobile-footer-directory {
    display: block !important;
    margin: 16px 0 0;
    border-top: 1px solid #47474a;
  }
  .stella-store .store-footer .stella-mobile-footer-directory details {
    width: 100%;
    border-bottom: 1px solid #47474a;
  }
  .stella-store .store-footer .stella-mobile-footer-directory summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 23px 2px 23px 0;
    margin: 0;
    color: #f4f2f1;
    font-size: clamp(16px, 3.1vw, 19px);
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: none;
    list-style: none;
    cursor: pointer;
  }
  .stella-store .store-footer .stella-mobile-footer-directory summary::-webkit-details-marker {display:none;}
  .stella-store .store-footer .stella-mobile-footer-directory summary::after {
    content: "+";
    color: #bbb9b9;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
  }
  .stella-store .store-footer .stella-mobile-footer-directory details[open] > summary::after {content: "−";}
  .stella-store .store-footer .stella-mobile-footer-directory summary:focus-visible,
  .stella-store .store-footer .stella-mobile-footer-directory a:focus-visible,
  .stella-store .store-footer .stella-mobile-footer-social a:focus-visible {
    outline: 2px solid #efc5b4;
    outline-offset: 3px;
  }
  .stella-store .store-footer .stella-mobile-footer-directory .stella-mobile-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 0 0 23px;
    margin: 0;
  }
  .stella-store .store-footer .stella-mobile-footer-directory .stella-mobile-footer-links > a {
    color: #d2cfcf;
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
  }
  .stella-store .store-footer .stella-mobile-footer-directory .stella-mobile-footer-links > a:hover {color:#fff;text-decoration:underline;}
  .stella-store .store-footer .stella-mobile-footer-social {
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    margin: 38px 0 36px;
  }
  .stella-store .store-footer .stella-mobile-footer-social a {
    display: grid !important;
    place-items: center;
    flex: 0 0 auto;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border: 1px solid #65656a;
    border-radius: 50%;
    background: transparent;
    color: #d7d6d6;
    text-decoration: none;
  }
  .stella-store .store-footer .stella-mobile-footer-social svg {width: 23px !important;height: 23px !important;}
  .stella-store .store-footer .footer-layout > .footer-bottom {
    order: 2 !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 11px 17px;
    padding: 24px 0 32px !important;
    margin: 0 !important;
    border-top: 1px solid #47474a !important;
    color: #d5d1d0;
    background: transparent;
    font-size: 12px !important;
    line-height: 1.5;
    text-align: left;
  }
  .stella-store .store-footer .footer-bottom > span:last-child {
    width: 100%;
    margin-left: 0 !important;
  }
  .stella-store .store-footer .footer-bottom > * {max-width: 100%;}
  .stella-store .store-footer .footer-bottom a,
  .stella-store .store-footer .footer-bottom button {color: #d9d3d0;}
}
@media (max-width: 350px) {
  .stella-store .store-footer .footer-layout {padding-inline: 16px !important;}
  .stella-store .store-footer .footer-main > .footer-wordmark {left: 16px !important;}
  .stella-store .store-footer .stay-in-touch-form {grid-template-columns: minmax(0, 1fr) 48px !important;}
  .stella-store .store-footer .stay-in-touch-form > button {width:48px !important;min-width:48px !important;}
}
