.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));
}

/* HRONA S13: Gymshark-inspired footer calibration (DEV theme only) */
#shopline-section-sections--footer-group__footer .footer {
  background: #ffffff;
  color: #0d1012;
  border-top: 1px solid #d9dcdf;
}
#shopline-section-sections--footer-group__footer .page-width {
  max-width: 1440px;
  padding-inline: 40px;
}
#shopline-section-sections--footer-group__footer .footer__inner {
  padding-block: 56px 28px;
}
#shopline-section-sections--footer-group__footer .footer__inner > .footer__group {
  width: 100%;
  margin: 0;
}
#shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(1) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 40px;
  padding: 0 0 48px !important;
  border-bottom: 1px solid #d9dcdf;
}
#shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(1) .footer__menu {
  width: 100% !important;
  min-width: 0;
}
#shopline-section-sections--footer-group__footer .footer__menu-title {
  width: 100%;
  padding: 0;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
#shopline-section-sections--footer-group__footer .footer__menu-content {
  margin-top: 17px;
  font-size: 12.5px;
  line-height: 1.35;
}
#shopline-section-sections--footer-group__footer .footer__menu-item {
  padding-block-start: 0;
  margin-top: 12px;
}
#shopline-section-sections--footer-group__footer .footer__menu-item a {
  text-decoration: none;
  transition: opacity .18s ease;
}
#shopline-section-sections--footer-group__footer .footer__menu-item a:hover {
  opacity: .58;
}
#shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(2) {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr);
  align-items: end;
  gap: 64px;
  padding: 48px 0 !important;
  border-bottom: 1px solid #d9dcdf;
}
#shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(2) > * {
  width: 100% !important;
  min-width: 0;
}
#shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(2) strong {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
#shopline-section-sections--footer-group__footer .block-subscription,
#shopline-section-sections--footer-group__footer .block-subscription__inline-form {
  width: 100%;
}
#shopline-section-sections--footer-group__footer .block-subscription__inline-form {
  min-height: 52px;
  margin-top: 20px;
}
#shopline-section-sections--footer-group__footer .block-subscription__inline-form input,
#shopline-section-sections--footer-group__footer .block-subscription__inline-form button {
  min-height: 52px;
  border-radius: 0;
}
#shopline-section-sections--footer-group__footer .block-subscription__inline-form button {
  min-width: 124px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
}
#shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(3) {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 0 !important;
  border-bottom: 1px solid #d9dcdf;
}
#shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(3) > * {
  width: auto !important;
}
#shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(4) {
  padding: 24px 0 0 !important;
}
#shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(4),
#shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(4) .footer__copyright {
  width: 100%;
}
#shopline-section-sections--footer-group__footer .footer__copyright {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  line-height: 1.4;
}
#shopline-section-sections--footer-group__footer .footer__social-media-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
@media (max-width: 959px) {
  #shopline-section-sections--footer-group__footer .page-width {
    padding-inline: 16px;
  }
  #shopline-section-sections--footer-group__footer .footer__inner {
    padding-block: 0 24px;
  }
  #shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(1) {
    display: block !important;
    padding: 0 !important;
  }
  #shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(1) .footer__menu {
    border-bottom: 1px solid #d9dcdf;
  }
  #shopline-section-sections--footer-group__footer .footer__menu-title {
    min-height: 56px;
    padding-block: 0;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
  }
  #shopline-section-sections--footer-group__footer .footer__menu-content {
    margin-top: 0;
    padding-bottom: 18px;
  }
  #shopline-section-sections--footer-group__footer .footer__menu-item a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
  #shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(2) {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 !important;
  }
  #shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(2) strong {
    font-size: 20px;
  }
  #shopline-section-sections--footer-group__footer .block-subscription__inline-form {
    min-height: 50px;
    margin-top: 18px;
  }
  #shopline-section-sections--footer-group__footer .block-subscription__inline-form input,
  #shopline-section-sections--footer-group__footer .block-subscription__inline-form button {
    min-height: 50px;
  }
  #shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(3) {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0 !important;
  }
  #shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(4) {
    padding-top: 20px !important;
  }
  #shopline-section-sections--footer-group__footer .footer__copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* HRONA S15: content-dependency-safe footer empty states */
#shopline-section-sections--footer-group__footer .footer__social-media:not(:has(.footer__social-media-content li)) {
  display: none;
}
@media (min-width: 960px) {
  #shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(1):not(:has(.footer__menu-item)) {
    padding-bottom: 32px !important;
  }
  #shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(2):not(:has(.footer__social-media-content li)) {
    grid-template-columns: minmax(0, 820px);
  }
}
@media (max-width: 959px) {
  #shopline-section-sections--footer-group__footer theme-footer-menu:not(:has(.footer__menu-item)) .icon__arrow,
  #shopline-section-sections--footer-group__footer theme-footer-menu:not(:has(.footer__menu-item)) .icon__minus {
    display: none;
  }
  #shopline-section-sections--footer-group__footer theme-footer-menu:not(:has(.footer__menu-item)) .footer__menu-title {
    cursor: default;
  }
  #shopline-section-sections--footer-group__footer .footer__inner > .footer__group:nth-child(2):not(:has(.footer__social-media-content li)) {
    gap: 0;
  }
}
