.footer {
  border-top: var(--border-hairline) solid var(--color-border);
}

.footer:not(.color-scheme-1) {
  border-top: none;
}

.footer__content-top {
  padding-bottom: var(--space-12);
  display: block;
}

@media screen and (max-width: 749px) {
  .footer .grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  .footer-block.grid__item {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .footer-block.grid__item:first-child {
    margin-top: 0;
  }

  .footer__content-top {
    padding-bottom: var(--space-7);
  }
}

@media screen and (min-width: 750px) {
  .footer__content-top .grid {
    row-gap: calc(var(--space-14) + var(--space-1));
    margin-bottom: 0;
  }
}

.footer__content-bottom {
  border-top: solid var(--border-hairline) rgba(var(--color-foreground), 0.08);
  padding-top: var(--space-7);
}

.footer__content-bottom:only-child {
  border-top: 0;
}

.footer__content-bottom-wrapper {
  display: flex;
  width: 100%;
}

@media screen and (max-width: 749px) {
  .footer__content-bottom {
    flex-wrap: wrap;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    row-gap: var(--space-4);
  }

  .footer__content-bottom-wrapper {
    flex-wrap: wrap;
    row-gap: var(--space-4);
    justify-content: center;
  }

  .footer__content-bottom.scroll-trigger.animate--slide-in {
    animation: none;
    opacity: 1;
    transform: inherit;
  }
}

.footer__localization:empty + .footer__column--info {
  align-items: center;
}

@media screen and (max-width: 749px) {
  .footer__localization:empty + .footer__column {
    padding-top: var(--space-4);
  }
}

.footer__column {
  width: 100%;
  align-items: flex-end;
}

.footer__column--info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

@media screen and (min-width: 750px) {
  .footer__column--info {
    padding-left: 0;
    padding-right: 0;
    align-items: flex-end;
  }
}

.footer-block:only-child:last-child {
  text-align: center;
  max-width: 47.5rem;
  margin: 0 auto;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media screen and (min-width: 750px) {
  .footer-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: 0;
  }
}

.footer-block:empty {
  display: none;
}

.footer-block--newsletter {
  display: flex;
  align-items: flex-end;
  margin-top: var(--space-7);
  gap: var(--space-2-5);
}

.footer-block--newsletter:only-child {
  margin-top: 0;
}

@media screen and (max-width: 749px) {
  .footer-block.footer-block--menu:only-child {
    text-align: left;
  }
}

@media screen and (min-width: 750px) {
  .footer-block--newsletter {
    flex-wrap: nowrap;
    justify-content: center;
  }
}

.footer-block__heading {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-heading-weight, 600);
  line-height: var(--line-height-tight, 1.25);
}

.footer-block__details-content.list-unstyled {
  display: flex;
  flex-direction: column;
  gap: var(--space-2-5);
  margin: 0;
}

@media screen and (min-width: 990px) {
  .footer-block__heading {
    font-size: var(--font-size-md);
  }
}

.footer__list-social:empty,
.footer-block--newsletter:empty {
  display: none;
}

.footer__follow-on-shop {
  display: flex;
  text-align: center;
}

.footer__list-social.list-social:only-child {
  justify-content: center;
}

.footer-block__newsletter {
  text-align: center;
  flex-grow: 1;
}

.newsletter-form__field-wrapper {
  max-width: 22.5rem;
}

@media screen and (min-width: 750px) {
  /* Pushes other components to the right of the flexbox */
  .footer-block__newsletter:not(:only-child) {
    text-align: left;
    margin-right: auto;
  }

  .footer-block__newsletter:not(:only-child) .footer__newsletter {
    justify-content: flex-start;
    margin: 0;
  }

  .footer-block__newsletter:not(:only-child) .newsletter-form__message--success {
    left: auto;
  }

  .footer__follow-on-shop {
    margin-bottom: var(--space-1);
  }
  /* Follow on shop is the first button but it has siblings*/
  .footer__follow-on-shop:first-child:not(:last-child) {
    justify-content: flex-start;
    margin-right: auto;
    text-align: left;
  }

  /*
    All three components are present, email, Follow on Shop, and social icons.
    Moves the FoS button next to the social icons so they appear grouped together
  */
  .footer__follow-on-shop:not(:first-child):not(:last-child) {
    justify-content: flex-end;
    text-align: right;
  }
}

@media screen and (max-width: 749px) {
  /*
    On a small screen we want all the items to be centered
    because they will be stacked.
   */
  .footer-block--newsletter {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
    align-items: center;
    gap: var(--space-7);
  }

  .footer__list-social.list-social,
  .footer__follow-on-shop,
  .footer-block__newsletter {
    display: flex;
    justify-content: center;
  }

  .footer-block__newsletter {
    flex-direction: column;
  }
}

@media screen and (min-width: 750px) {
  .footer-block__newsletter + .footer__list-social {
    margin-top: 0;
  }
}

.footer__localization {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  padding: var(--space-2-5) var(--space-2-5) 0;
}

.footer__localization:empty {
  display: none;
}

.footer__localization h2 {
  margin: var(--space-2-5) var(--space-2-5) var(--space-1);
  color: rgba(var(--color-foreground), 0.75);
}

@media screen and (min-width: 750px) {
  .footer__localization {
    padding: var(--space-1) 0;
    justify-content: flex-start;
  }

  .footer__localization h2 {
    margin: var(--space-2-5) 0 0;
  }
}

@media screen and (min-width: 750px) {
  .footer__payment {
    margin-top: var(--space-4);
  }
}

.footer__content-bottom-wrapper--center {
  justify-content: center;
}

.footer__copyright {
  text-align: center;
  margin-top: var(--space-4);
}

@media screen and (min-width: 750px) {
  .footer__content-bottom-wrapper:not(.footer__content-bottom-wrapper--center) .footer__copyright {
    text-align: right;
  }
}

@keyframes appear-down {
  0% {
    opacity: 0;
    transform: translateY(calc(var(--space-2-5) * -1));
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-block__details-content {
  margin-bottom: 0;
}

@media screen and (min-width: 750px) {
  .footer-block__details-content > p,
  .footer-block__details-content > li {
    padding: 0;
  }

  .footer-block:only-child .footer-block__details-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .footer-block:only-child li {
    display: inline-flex;
  }
}

.footer-block__details-content .list-menu__item--link,
.copyright__content a {
  color: rgba(var(--color-foreground), 0.75);
}

.footer-block__details-content .list-menu__item--active {
  transition: text-decoration-thickness var(--duration-fast) var(--ease-default);
  color: rgb(var(--color-foreground));
}

@media screen and (min-width: 750px) {
  .footer-block__details-content .list-menu__item--link:hover,
  .copyright__content a:hover {
    color: rgb(var(--color-foreground));
    text-decoration: underline;
    text-underline-offset: 0.1875rem;
  }

  .footer-block__details-content .list-menu__item--active:hover {
    text-decoration-thickness: 0.125rem;
  }
}

@media screen and (min-width: 750px) {
  .footer-block__details-content .list-menu__item--link {
    display: inline-block;
    font-size: var(--font-size-sm);
  }

  .footer-block__details-content > :first-child .list-menu__item--link {
    padding-top: 0;
  }
}

.footer-block-image {
  display: flex;
}

.footer-block-image.left {
  justify-content: flex-start;
}

.footer-block-image.center {
  justify-content: center;
}

.footer-block-image.right {
  justify-content: flex-end;
}

@media screen and (max-width: 749px) {
  .footer-block-image,
  .footer-block-image.left,
  .footer-block-image.center,
  .footer-block-image.right {
    justify-content: center;
  }
}

.footer-block__image-wrapper {
  max-width: var(--footer-image-max-width, 100%);
  margin-bottom: 0;
  overflow: hidden !important;
}

.footer-block__image-wrapper img {
  display: block;
  height: auto;
  max-width: 100%;
}

.footer-block__brand-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  text-align: left;
}

.footer-block:only-child .footer-block__brand-info {
  text-align: center;
  align-items: center;
}

.footer-block__brand-info .rte {
  color: rgba(var(--color-foreground), 0.75);
  line-height: var(--line-height-relaxed);
}

.footer-block:only-child > .footer-block__brand-info > .footer-block__image-wrapper {
  margin-left: auto;
  margin-right: auto;
}

.footer-block-image > img,
.footer-block__brand-info > img {
  height: auto;
}

.footer-block:only-child .footer-block__brand-info .footer__list-social.list-social {
  justify-content: center;
}

.footer-block__brand-info .footer__list-social.list-social {
  justify-content: flex-start;
}

.footer-block__details-content .placeholder-svg {
  max-width: 12.5rem;
}

.copyright__content {
  font-size: var(--font-size-2xs);
}

.copyright__content a {
  color: currentColor;
  text-decoration: none;
}

.copyright__content button {
  color: currentColor;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: var(--space-0-5);
  display: inline;
}

.copyright__content button:hover {
  opacity: var(--opacity-secondary);
}

.policies {
  display: inline;
}

.policies li {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.policies li::before {
  content: '\00B7';
  padding: 0 var(--space-2);
}

.policies li a {
  padding: var(--space-1-5) 0;
  display: block;
}

@media screen and (min-width: 750px) {
  .policies li a {
    padding: 0;
  }
}
@keyframes animateLocalization {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(calc(-1 * var(--space-2-5)));
  }
}

/* Footer contact list & brand logo */
.footer-contact-list {
  margin-top: var(--space-2-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.footer-contact__item {
  word-break: break-word;
}

.footer-block__brand-logo {
  max-width: 100%;
  height: auto;
  display: block;
}
