.footer__menu {
  position: relative;
}

.footer__menu-title {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.footer__menu-title .icon__arrow,
.footer__menu-title .icon__minus {
  display: none;
}

@media (max-width: 959px) {
  .footer__menu-title {
    padding-block-start: 15px;
  }

  .footer__menu-title .icon__arrow {
    display: inline;
  }

  .footer__menu-title .icon__minus {
    display: none;
  }
}

.footer__menu-item {
  padding-block-start: 15px;
}

.footer__menu-item a {
  display: block;
}

.footer__menu-item--active a {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.footer__menu-item--active a:hover {
  text-decoration: underline;
}

@media (max-width: 959px) {
  .footer__menu-content {
    height: 0;
    padding-block-end: 15px;
    overflow: hidden;
    opacity: 0;
  }
}

.footer__menu::after {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  display: none;
  width: 100%;
  height: 1px;
  content: "";
  background-color: rgba(var(--color-text), 0.1);
}

@media (max-width: 959px) {
  .footer__menu::after {
    display: block;
  }
}

@media (max-width: 959px) {
  .footer__menu[open] .footer__menu-title .icon__arrow {
    display: none;
  }

  .footer__menu[open] .footer__menu-title .icon__minus {
    display: inline;
  }
}

.footer__menu[open] .footer__menu-content {
  height: auto;
  opacity: 1;
}
.footer__custom-text-title {
  padding-block-end: 15px;
}
@media (max-width: 959px) {
  .footer__custom-text-title {
    padding-block-start: 15px;
  }
}
.footer__email-subscribe-title {
  margin-block-end: 15px;
  font-weight: bold;
}
@media (min-width: 960px) {
  .footer__email-subscribe--small .field__input {
    padding-block-start: 16px;
  }
  .footer__email-subscribe--middle .field__input {
    padding-block: 20px 2px;
  }
  .footer__email-subscribe--large .field__input {
    padding-block: 30px 19px;
  }

  .footer__email-subscribe--large .field__input:focus ~ .field__label,
  .footer__email-subscribe--large
    .field__input:not(:placeholder-shown)
    ~ .field__label,
  .footer__email-subscribe--large
    .field__input:-webkit-autofill
    ~ .field__label {
    transform: scale(0.7) translate(0, -150%);
  }
}
.footer__image img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  vertical-align: bottom;
}
.footer__localization-form .localization__selector:nth-last-of-type(2) {
  margin-block-end: 10px;
  margin-inline-end: 15px;
}
.footer__localization-form form {
  display: contents;
}
@media (max-width: 959px) {
  .footer__localization-form .localization__selector {
    width: 100%;
  }

  .footer__localization-form .localization__selector:nth-last-of-type(2) {
    margin-block-end: 6px;
    margin-inline-end: 0;
  }
}
.footer__payment-icons > svg {
  width: auto;
  height: 22px;
}
.footer__social-media-title {
  padding-block-end: 20px;
  font-weight: bold;
}
.footer__social-media-content {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__social-media-content svg,
.footer__social-media-content img,
.footer__social-media-content .social-media-icon {
  width: 24px;
  height: 24px;
}
.footer__social-media-content img {
  border-radius: 100%;
}
@media (min-width: 960px) {
  .footer__social-media--small .footer__social-media-content {
    gap: 8px;
  }

  .footer__social-media--small .footer__social-media-content svg,
  .footer__social-media--small .footer__social-media-content img,
  .footer__social-media--small
    .footer__social-media-content
    .social-media-icon {
    width: 28px;
    height: 28px;
  }
  .footer__social-media--middle .footer__social-media-content {
    gap: 16px;
  }

  .footer__social-media--middle .footer__social-media-content svg,
  .footer__social-media--middle .footer__social-media-content img,
  .footer__social-media--middle
    .footer__social-media-content
    .social-media-icon {
    width: 32px;
    height: 32px;
  }
  .footer__social-media--large .footer__social-media-content {
    gap: 16px;
  }

  .footer__social-media--large .footer__social-media-content svg,
  .footer__social-media--large .footer__social-media-content img,
  .footer__social-media--large
    .footer__social-media-content
    .social-media-icon {
    width: 64px;
    height: 64px;
  }
}
.footer__copyright-menu a {
  word-break: break-all;
}
.footer__copyright-menu span {
  padding: 0 10px;
}
.footer__copyright-menu span:last-child {
  display: none;
}
.footer {
  background-color: rgb(var(--color-background));
}


.footer {
  position: relative;
  overflow: hidden;
}

.footer__background-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.footer__background-image img,
.footer__background-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer > .page-width {
  position: relative;
  z-index: 1;
}

/* LeanJoy footer enhancements v1.3 base */
.footer__content-layer {
  position: relative;
  z-index: 1;
}

.footer__background-image--mobile {
  display: none;
}

/* Location stays independent from the large brand logo so it never consumes
   the horizontal space used by the native footer navigation columns. */
.footer__location-area {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-top: 20px;
}

.footer__location-info {
  width: min(100%, 560px);
  text-align: right;
}

.footer__location-heading {
  margin-bottom: 6px;
  font-weight: 600;
}

.footer__location-text,
.footer__location-text p {
  margin: 0;
}

/* Full-width visual stage: the logo is below all footer text/navigation and
   therefore does not change or squeeze the column widths above it. */
.footer__logo-stage {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 28px;
  overflow: hidden;
}

.footer__brand-logo {
  width: min(var(--footer-logo-width, 1400px), 100%);
  max-width: 100%;
}

.footer__brand-logo img,
.footer__brand-logo svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
}

.footer__bottom-payment-area {
  width: 100%;
  margin-top: 24px;
}

.footer__bottom-divider {
  width: 100%;
  height: 1px;
  background: rgba(var(--color-text), 0.18);
}

.footer__bottom-payment-content {
  width: 100%;
  padding-top: 18px;
}

.footer__bottom-payment-content .footer__group {
  width: 100% !important;
  padding: 0 !important;
}

.footer__bottom-payment-content .footer__payment-icons {
  width: 100% !important;
  text-align: right;
}

@media (max-width: 959px) {
  .footer__background-image--desktop {
    display: none;
  }

  .footer__background-image--mobile {
    display: block;
  }

  /* If only the desktop image is provided, keep it as a mobile fallback. */
  .footer--has-background:not(.footer--has-mobile-background) .footer__background-image--desktop {
    display: block;
  }

  .footer__location-area {
    justify-content: flex-start;
    padding-top: 18px;
  }

  .footer__location-info {
    width: 100%;
    text-align: left;
  }

  .footer__logo-stage {
    justify-content: flex-start;
    padding-top: 20px;
  }

  .footer__brand-logo {
    width: min(var(--footer-logo-width-mobile, 320px), 100%);
  }

  .footer__brand-logo img,
  .footer__brand-logo svg {
    object-position: left bottom;
  }

  .footer__bottom-payment-area {
    margin-top: 20px;
  }

  .footer__bottom-payment-content {
    padding-top: 16px;
  }

  .footer__bottom-payment-content .footer__group {
    align-items: flex-start !important;
  }

  .footer__bottom-payment-content .footer__payment-icons {
    width: 100% !important;
    text-align: left;
  }
}


/* LeanJoy footer enhancements v1.4
   Desktop content layout: keep the brand/subscribe column and navigation
   columns in one compact row without the native space-between dead zone. */
@media (min-width: 960px) {
  .footer__inner {
    display: grid !important;
    grid-template-columns: minmax(280px, 0.9fr) minmax(560px, 2.1fr);
    align-items: start !important;
    justify-content: stretch !important;
    column-gap: clamp(48px, 6vw, 120px) !important;
    row-gap: 24px !important;
    width: 100%;
  }

  /* Brand / newsletter / social column. */
  .footer__inner > .footer__group--contact {
    grid-column: 1;
    width: 100% !important;
    max-width: 380px;
    min-width: 0;
    justify-self: start;
  }

  /* The menu group uses all remaining horizontal space. */
  .footer__inner > .footer__group--information:has(.footer__menu) {
    grid-column: 2;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start !important;
    justify-content: stretch !important;
    gap: clamp(24px, 3vw, 56px) !important;
    width: 100% !important;
    min-width: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .footer__inner > .footer__group--information:has(.footer__menu) > * {
    width: 100% !important;
    min-width: 0;
  }

  /* Any non-navigation information group (for example disclaimer/copyright)
     sits on a clean second row and never creates an empty column between
     brand content and navigation. */
  .footer__inner > .footer__group--information:not(:has(.footer__menu)) {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .footer__inner {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2.2fr);
    column-gap: 40px !important;
  }

  .footer__inner > .footer__group--information:has(.footer__menu) {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 20px !important;
  }
}
