/*
 * STH Footer - scoped styles from Figma frames 11713:4908 (desktop 1600) and
 * 11713:4961 (mobile 414). Mobile is the base; desktop overrides start at 768px.
 * Frame values are used directly because the shared Kik aliases differ from this
 * design (bg/inverse, page-default, section spacing).
 * Element selectors are qualified by .sth-footer to outrank host resets such as
 * the theme's global `a`, `button`, `ul` and `input` rules.
 */
.sth-footer {
  --sth-footer-bg: #1e1e1e;
  --sth-footer-text: #ffffff;
  --sth-footer-muted: #afafaf;
  --sth-footer-accent: #cad66a;
  --sth-footer-divider: #e8e8e8;
  --sth-footer-field: rgba(255, 255, 255, 0.04);
  --sth-footer-font: "Inter", var(--kik-font-family-sans, sans-serif), sans-serif;

  display: flex;
  flex-direction: column;
  gap: 48px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 32px 16px;
  overflow: hidden;
  background: var(--sth-footer-bg);
  color: var(--sth-footer-text);
  font-family: var(--sth-footer-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.sth-footer *,
.sth-footer *::before,
.sth-footer *::after {
  box-sizing: border-box;
}

.sth-footer p,
.sth-footer h2,
.sth-footer ul,
.sth-footer li,
.sth-footer form {
  margin: 0;
  padding: 0;
}

.sth-footer ul {
  list-style: none;
}

.sth-footer img {
  display: block;
  max-width: none;
  opacity: 1;
}

.sth-footer a {
  color: inherit;
  text-decoration: none;
}

.sth-footer .sth-footer__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Pillars */
.sth-footer .sth-footer__pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
  width: 100%;
}

.sth-footer .sth-footer__app {
  grid-column: 1 / -1;
  min-width: 0;
}

.sth-footer .sth-footer__pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  color: var(--sth-footer-text);
}

.sth-footer .sth-footer__pillar-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sth-footer .sth-footer__pillar-icon img {
  width: 24px;
  height: 24px;
}

.sth-footer .sth-footer__pillar-icon-hover {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.sth-footer .sth-footer__pillar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sth-footer .sth-footer__pillar-title {
  color: var(--sth-footer-text);
  font-family: var(--sth-footer-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.sth-footer .sth-footer__pillar-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.sth-footer .sth-footer__pillar-arrow {
  display: none;
  width: 16px;
  height: 16px;
  padding: 3.33px 1.33px 3.44px 2px;
}

.sth-footer .sth-footer__pillar-text {
  color: var(--sth-footer-text);
  font-family: var(--sth-footer-font);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
}

.sth-footer .sth-footer__pillar--linked:hover .sth-footer__pillar-title,
.sth-footer .sth-footer__pillar--linked:hover .sth-footer__pillar-text,
.sth-footer .sth-footer__pillar--linked:focus-within .sth-footer__pillar-title,
.sth-footer .sth-footer__pillar--linked:focus-within .sth-footer__pillar-text {
  color: var(--sth-footer-accent);
}

.sth-footer .sth-footer__pillar--linked:hover .sth-footer__pillar-arrow,
.sth-footer .sth-footer__pillar--linked:focus-within .sth-footer__pillar-arrow {
  display: block;
}

.sth-footer .sth-footer__pillar--linked:hover .sth-footer__pillar-icon-hover,
.sth-footer .sth-footer__pillar--linked:focus-within .sth-footer__pillar-icon-hover {
  visibility: visible;
}

.sth-footer .sth-footer__pillar--linked:hover .sth-footer__pillar-icon-default:has(+ .sth-footer__pillar-icon-hover),
.sth-footer .sth-footer__pillar--linked:focus-within .sth-footer__pillar-icon-default:has(+ .sth-footer__pillar-icon-hover) {
  visibility: hidden;
}

.sth-footer .sth-footer__pillar-link:focus-visible {
  outline: 2px solid var(--sth-footer-accent);
  outline-offset: 2px;
}

/* Main column */
.sth-footer .sth-footer__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.sth-footer .sth-footer__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.sth-footer .sth-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  order: 1;
}

.sth-footer .sth-footer__logo-link {
  display: block;
}

.sth-footer .sth-footer__logo {
  width: 171.922px;
  height: auto;
  aspect-ratio: 400 / 47;
  object-fit: cover;
}

.sth-footer .sth-footer__brand-text {
  color: var(--sth-footer-muted);
  font-family: var(--sth-footer-font);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

/* Newsletter */
.sth-footer .sth-footer__newsletter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  order: 2;
}

.sth-footer .sth-footer__newsletter-heading {
  color: var(--sth-footer-text);
  font-family: var(--sth-footer-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.sth-footer .sth-footer__newsletter-text {
  color: var(--sth-footer-muted);
  font-family: var(--sth-footer-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.sth-footer .sth-footer__form {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.sth-footer .sth-footer__input {
  flex: 1 0 0;
  min-width: 1px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: var(--sth-footer-field);
  color: var(--sth-footer-text);
  font-family: var(--sth-footer-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  appearance: none;
}

.sth-footer .sth-footer__input::placeholder {
  color: var(--sth-footer-text);
  opacity: 1;
}

.sth-footer .sth-footer__input:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sth-footer .sth-footer__input:focus-visible {
  outline: 2px solid var(--sth-footer-accent);
  outline-offset: -2px;
}

.sth-footer .sth-footer__submit {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 0;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #1e1e1e;
  cursor: pointer;
  box-shadow: none;
}

.sth-footer .sth-footer__submit img {
  width: 20px;
  height: 20px;
}

.sth-footer .sth-footer__submit:hover,
.sth-footer .sth-footer__submit:focus-visible {
  background: var(--sth-footer-accent);
}

.sth-footer .sth-footer__submit:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.sth-footer .sth-footer__social {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.sth-footer .sth-footer__social-link {
  display: block;
  width: 24px;
  height: 24px;
  transition: opacity 0.15s ease;
}

.sth-footer .sth-footer__social-link img {
  width: 24px;
  height: 24px;
}

.sth-footer a.sth-footer__social-link:hover,
.sth-footer a.sth-footer__social-link:focus-visible {
  opacity: 0.7;
}

.sth-footer a.sth-footer__social-link:focus-visible {
  outline: 2px solid var(--sth-footer-accent);
  outline-offset: 2px;
}

/* Menu columns: accordion on mobile */
.sth-footer .sth-footer__menus {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  order: 3;
}

.sth-footer .sth-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.sth-footer .sth-footer__col-heading {
  margin: 0;
  color: var(--sth-footer-text);
  font-family: var(--sth-footer-font);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}

.sth-footer .sth-footer__col-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sth-footer-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.sth-footer .sth-footer__col-title {
  white-space: nowrap;
}

.sth-footer .sth-footer__col-toggle:hover .sth-footer__col-title,
.sth-footer .sth-footer__col-toggle:focus-visible .sth-footer__col-title {
  color: var(--sth-footer-accent);
}

.sth-footer .sth-footer__col-toggle:focus-visible {
  outline: 2px solid var(--sth-footer-accent);
  outline-offset: 2px;
}

.sth-footer .sth-footer__col-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sth-footer .sth-footer__col-chevron--up,
.sth-footer .sth-footer__col.is-open .sth-footer__col-chevron--down {
  display: none;
}

.sth-footer .sth-footer__col.is-open .sth-footer__col-chevron--up {
  display: block;
}

.sth-footer .sth-footer__col-list {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.sth-footer .sth-footer__col.is-open .sth-footer__col-list {
  display: flex;
}

.sth-footer .sth-footer__col-item {
  width: 100%;
}

.sth-footer .sth-footer__col-link {
  display: inline-block;
  color: var(--sth-footer-muted);
  font-family: var(--sth-footer-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
}

.sth-footer .sth-footer__col-link:hover,
.sth-footer .sth-footer__col-link:focus-visible,
.sth-footer .sth-footer__col-link.is-active {
  color: var(--sth-footer-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

.sth-footer .sth-footer__col-link:focus-visible {
  outline: 2px solid var(--sth-footer-accent);
  outline-offset: 2px;
}

/* Divider (mobile only) */
.sth-footer .sth-footer__divider {
  width: 100%;
  height: 1px;
  background: var(--sth-footer-divider);
}

/* Bottom */
.sth-footer .sth-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.sth-footer .sth-footer__region-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sth-footer .sth-footer__localization {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sth-footer .sth-footer__region {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sth-footer .sth-footer__region-current {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sth-footer .sth-footer__flag {
  width: 16px;
  height: 16px;
  object-fit: cover;
}

.sth-footer .sth-footer__region-label {
  color: var(--sth-footer-text);
  font-family: var(--sth-footer-font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
}

.sth-footer .sth-footer__region-label--language {
  text-transform: uppercase;
}

.sth-footer .sth-footer__region-chevron {
  width: 16px;
  height: 16px;
}

.sth-footer .sth-footer__region-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
}

.sth-footer .sth-footer__region:hover .sth-footer__region-label {
  color: var(--sth-footer-accent);
}

.sth-footer .sth-footer__region:has(.sth-footer__region-select:focus-visible) {
  outline: 2px solid var(--sth-footer-accent);
  outline-offset: 2px;
}

.sth-footer .sth-footer__top-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 4px;
  background: #ffffff;
}

.sth-footer .sth-footer__top-icon {
  width: 11.2px;
  height: 8.27px;
  transform: rotate(-90deg);
}

.sth-footer .sth-footer__top-button:hover,
.sth-footer .sth-footer__top-button:focus-visible {
  background: var(--sth-footer-accent);
}

.sth-footer .sth-footer__top-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.sth-footer .sth-footer__legal-row {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.sth-footer .sth-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: var(--sth-footer-muted);
  font-family: var(--sth-footer-font);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

.sth-footer .sth-footer__copyright {
  color: var(--sth-footer-muted);
  font-size: inherit;
  white-space: nowrap;
}

.sth-footer .sth-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.sth-footer .sth-footer__legal-link {
  color: var(--sth-footer-muted);
  font-family: var(--sth-footer-font);
  font-size: inherit;
  line-height: 1.6;
  white-space: nowrap;
}

.sth-footer .sth-footer__legal-link:hover,
.sth-footer .sth-footer__legal-link:focus-visible {
  color: var(--sth-footer-accent);
  text-decoration: underline;
}

.sth-footer .sth-footer__legal-link:focus-visible {
  outline: 2px solid var(--sth-footer-accent);
  outline-offset: 2px;
}

.sth-footer .sth-footer__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.sth-footer .sth-footer__payment img {
  width: 38px;
  height: 24px;
}

/* Desktop */
@media (min-width: 768px) {
  .sth-footer {
    gap: 72px;
    padding: 48px 24px;
    font-size: 14px;
  }

  .sth-footer .sth-footer__pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .sth-footer .sth-footer__pillar {
    gap: 8px;
  }

  .sth-footer .sth-footer__pillar-title {
    font-size: 18px;
  }

  .sth-footer .sth-footer__pillar-text {
    font-size: 12px;
  }

  .sth-footer .sth-footer__main {
    gap: 48px;
  }

  .sth-footer .sth-footer__divider {
    display: none;
  }

  .sth-footer .sth-footer__top {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .sth-footer .sth-footer__brand {
    grid-column: 1 / span 2;
    gap: 16px;
    order: 0;
  }

  .sth-footer .sth-footer__logo {
    width: 152px;
  }

  .sth-footer .sth-footer__brand-text {
    max-width: 152px;
    font-size: 12px;
  }

  .sth-footer .sth-footer__newsletter {
    grid-column: 3 / -1;
    grid-row: 1;
    gap: 16px;
    order: 0;
  }

  .sth-footer .sth-footer__newsletter-heading,
  .sth-footer .sth-footer__newsletter-text,
  .sth-footer .sth-footer__input {
    font-size: 14px;
  }

  .sth-footer .sth-footer__newsletter-text {
    max-width: 280px;
  }

  .sth-footer .sth-footer__menus {
    display: contents;
  }

  .sth-footer .sth-footer__col {
    gap: 16px;
  }

  .sth-footer .sth-footer__col-heading {
    font-size: 14px;
  }

  /* The heading stays visible; only the mobile toggle affordance is disabled. */
  .sth-footer .sth-footer__col-toggle {
    cursor: default;
    pointer-events: none;
  }

  .sth-footer .sth-footer__col-chevron,
  .sth-footer .sth-footer__col.is-open .sth-footer__col-chevron--up {
    display: none;
  }

  .sth-footer .sth-footer__col-list,
  .sth-footer .sth-footer__col.is-open .sth-footer__col-list {
    display: flex;
    gap: 8px;
  }

  .sth-footer .sth-footer__col-link {
    font-size: 14px;
  }

  .sth-footer .sth-footer__bottom {
    align-items: stretch;
    gap: 16px;
  }

  .sth-footer .sth-footer__localization {
    gap: 16px;
  }

  .sth-footer .sth-footer__region-current {
    gap: 8px;
  }

  .sth-footer .sth-footer__region-label {
    font-size: 14px;
  }

  .sth-footer .sth-footer__top-button {
    width: 32px;
    height: 32px;
    padding: 4px 8px;
  }

  .sth-footer .sth-footer__legal-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
  }

  .sth-footer .sth-footer__legal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    width: auto;
    font-size: 14px;
  }

  .sth-footer .sth-footer__legal-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 24px;
    width: auto;
  }

  .sth-footer .sth-footer__payments {
    flex-wrap: nowrap;
    width: auto;
  }
}

@media (min-width: 1024px) {
  .sth-footer .sth-footer__pillars {
    gap: 48px;
  }
}

@media (min-width: 1200px) {
  .sth-footer .sth-footer__top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(24px, 3vw, 48px);
  }

  .sth-footer .sth-footer__brand,
  .sth-footer .sth-footer__col {
    flex: 0 1 152px;
    width: 152px;
    min-width: 0;
  }

  .sth-footer .sth-footer__newsletter {
    flex: 1 0 0;
    min-width: 280px;
  }
}
