.footer__custom-text-title {
  padding-block-end: 15px;
  font-weight: bold;
}

@media (max-width: 959px) {
  .footer__custom-text-title {
    padding-block-start: 15px;
  }
}
.footer__email-subscribe-title {
  font-weight: bold;
}
.footer__email-subscribe .field {
  margin-block-end: 0;
}
.footer__email-subscribe form {
  width: 100%;
}
.footer .tips-card {
  margin-block: 10px;
}
.footer__image img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  vertical-align: bottom;
}
.footer__localization-form form {
  display: contents;
}
.footer__localization-form form select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 959px) {
  .footer__localization-form .localization__selector {
    width: 100%;
  }
}
.footer__navigation {
  position: relative;
}
.footer__navigation-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
}
.footer__navigation-title .icon__arrow,
.footer__navigation-title .icon__minus {
  display: none;
}
@media (max-width: 959px) {
  .footer__navigation-title {
    padding-block-start: 15px;
  }

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

  .footer__navigation-title .icon__minus {
    display: none;
  }
}
.footer__navigation-item {
  padding-block-start: 15px;
}
.footer__navigation-item a {
  display: block;
}
.footer__navigation-item--active a {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.footer__navigation-item--active a:hover {
  text-decoration: underline;
}
@media (max-width: 959px) {
  .footer__navigation-content {
    height: 0;
    padding-block-end: 15px;
    overflow: hidden;
    opacity: 0;
  }
}
.footer__navigation::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__navigation::after {
    display: block;
  }
}
@media (max-width: 959px) {
  .footer__navigation[open] .footer__navigation-title .icon__arrow {
    display: none;
  }

  .footer__navigation[open] .footer__navigation-title .icon__minus {
    display: inline;
  }
}
.footer__navigation[open] .footer__navigation-content {
  height: auto;
  opacity: 1;
}
.footer__payment-icons > svg {
  width: auto;
  height: 22px;
}
.footer__social-media-title {
  font-weight: bold;
}
.footer__social-media-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__social-media-content img {
  border-radius: 100%;
}
.footer {
  background-color: rgb(var(--color-background));
}

/* FERALHOOK demo footer */
.footer {
  color: #9a979f;
  background: #101012;
}

.footer > .page-width {
  max-width: 1500px;
  padding-inline: 32px;
}

.footer__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0 !important;
  align-items: center !important;
  width: 100%;
  padding: 0 !important;
}

.footer__group--primary {
  display: grid !important;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(150px, 1fr));
  grid-template-rows: auto 1fr;
  gap: 16px 64px !important;
  align-items: start !important;
  width: 100% !important;
  padding: 60px 0 34px !important;
  border-bottom: 1px solid #262529;
}

.footer__group--primary > .footer__custom-text {
  grid-column: 1;
  grid-row: 1;
  width: 100% !important;
  max-width: 260px;
}

.footer__brand-logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-bottom: 22px;
}

.footer__custom-text-content {
  max-width: 250px;
  color: #96939a;
  font-size: 14px;
  line-height: 1.7;
}

.footer__group--primary > .footer__social-media {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  width: 100% !important;
  padding-top: 2px;
}

.footer__social-media-title:empty {
  display: none;
}

.footer__social-media-content {
  gap: 16px;
  align-items: center;
}

.footer__social-media-content li:has(a[href*="instagram"]) {
  order: 1;
}

.footer__social-media-content li:has(a[href*="tiktok"]) {
  order: 2;
}

.footer__social-media-content li:has(a[href*="youtube"]) {
  order: 3;
}

.footer__social-media-content li:has(a[href*="facebook"]) {
  order: 4;
}

.footer__social-media-content a {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
}

.footer__social-media-content svg,
.footer__social-media-content img {
  width: 22px;
  height: 22px;
}

.footer__group--primary > theme-footer-navigation {
  grid-row: 1 / span 2;
  width: 100% !important;
}

.footer__group--primary > theme-footer-navigation:nth-of-type(1) {
  grid-column: 2;
}

.footer__group--primary > theme-footer-navigation:nth-of-type(2) {
  grid-column: 3;
}

.footer__group--primary > theme-footer-navigation:nth-of-type(3) {
  grid-column: 4;
}

.footer__navigation-title {
  color: #77747c;
  font-family: var(--font-body-family);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.footer__navigation-item {
  padding-top: 11px;
}

.footer__navigation-item a {
  color: #aaa7ad;
  font-size: 14px;
  line-height: 1.35;
  transition: color 160ms ease;
}

.footer__navigation-item a:hover,
.footer__navigation-item a:focus-visible {
  color: #fff;
}

.footer__group--additional {
  z-index: 2;
  display: flex !important;
  grid-column: 2;
  grid-row: 2;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  padding: 24px 28px 30px !important;
}

.footer__group--additional .footer__payment-icons {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: auto !important;
}

.footer__payment-icons > svg {
  width: auto;
  height: 31px;
}

.footer__group--legal {
  display: grid !important;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center !important;
  width: 100% !important;
  min-height: 86px;
  padding: 24px 0 30px !important;
}

.footer__group--legal .footer__copyright {
  grid-column: 1;
  width: auto !important;
  color: #68656d;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-align: left;
}

.footer__group--legal .footer__custom-text {
  grid-column: 3;
  justify-self: end;
  width: auto !important;
}

.footer__group--legal .footer__custom-text-content {
  max-width: none;
  color: #68656d;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.footer__group--legal .footer__custom-text-content a {
  color: inherit;
}

.footer__group--legal .footer__custom-text-content a:hover,
.footer__group--legal .footer__custom-text-content a:focus-visible {
  color: #fff;
}

/* Footer page-link blocks can be added up to four times in the legal group. */
.footer__custom-text-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer__custom-text-link:hover,
.footer__custom-text-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 960px) {
  .footer__group--legal {
    display: flex !important;
    flex-wrap: wrap;
    gap: 18px !important;
  }

  .footer__group--legal .footer__copyright {
    margin-right: auto;
  }

  .footer__group--legal .footer__custom-text {
    width: auto !important;
  }
}

@media (max-width: 959px) {
  .footer > .page-width {
    padding-inline: 20px;
  }

  .footer__inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .footer__group--primary {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 42px 0 24px !important;
  }

  .footer__group--primary > .footer__custom-text {
    margin-bottom: 20px;
  }

  .footer__brand-logo {
    width: 210px;
    margin-bottom: 16px;
  }

  .footer__group--primary > .footer__social-media {
    margin-bottom: 24px;
  }

  .footer__group--primary > theme-footer-navigation {
    width: 100% !important;
  }

  .footer__navigation-title {
    padding-block: 15px;
  }

  .footer__navigation-content {
    padding-bottom: 15px;
  }

  .footer__group--additional {
    order: 2;
    width: 100% !important;
    padding: 24px 0 16px !important;
  }

  .footer__group--additional .footer__payment-icons {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .footer__payment-icons > svg {
    height: 27px;
  }

  .footer__group--legal {
    order: 3;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    min-height: 0;
    padding: 16px 0 32px !important;
  }

  .footer__group--legal .footer__copyright,
  .footer__group--legal .footer__custom-text {
    width: auto !important;
    text-align: center;
  }
}
