/* Shared site footer: top-left brand + authentic Trustpilot 4.8, left-aligned columns, compact payment marks, no language clutter. */
footer:has(> .container) {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
footer:has(> .container) > .container {
  display: flex !important;
  flex-direction: column !important;
  max-width: 1440px !important;
  padding-top: 36px !important;
  padding-bottom: 0 !important;
}

/* Row 1: Top-left Brand + Trustpilot 4.8 on left, 4 Columns on right */
footer:has(> .container) > .container > div:nth-child(2) {
  order: 1 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 32px 56px !important;
  padding-bottom: 30px !important;
  width: 100% !important;
}
footer:has(> .container) > .container > div:nth-child(2) > div:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: start !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
  width: auto !important;
}
footer:has(> .container) > .container > div:nth-child(2) > div:first-child > a:first-child {
  direction: ltr;
  unicode-bidi: isolate;
}
footer:has(> .container) > .container > div:nth-child(2) > div:first-child > a:first-child > div {
  width: 40px !important;
  height: 40px !important;
}
footer:has(> .container) > .container > div:nth-child(2) > div:first-child > a:first-child > span {
  font-size: 24px !important;
  line-height: 1.15 !important;
}

/* Authentic Trustpilot 4.8 widget beneath top-left logo */
footer:has(> .container) a.footer-tp-widget {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 14px !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  text-decoration: none !important;
  direction: ltr !important;
  unicode-bidi: isolate;
  transition: border-color .2s, background-color .2s, box-shadow .2s !important;
}
footer:has(> .container) a.footer-tp-widget:hover {
  border-color: rgba(0, 182, 122, 0.45) !important;
  background: rgba(0, 182, 122, 0.06) !important;
  box-shadow: 0 0 18px rgba(0, 182, 122, 0.14) !important;
}
footer:has(> .container) .footer-tp-logo-star {
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0 !important;
}
footer:has(> .container) .footer-tp-wordmark {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: #f8fafc !important;
  line-height: 1 !important;
}
html:not(.dark) footer:has(> .container) .footer-tp-wordmark,
html:not(.dark) footer:has(> .container) .footer-tp-score {
  color: #0f172a !important;
}
footer:has(> .container) .footer-tp-stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  margin-left: 2px !important;
}
footer:has(> .container) .footer-tp-box {
  width: 17px !important;
  height: 17px !important;
  border-radius: 2px !important;
  background: #00B67A !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
footer:has(> .container) .footer-tp-box--partial {
  background: linear-gradient(90deg, #00B67A 80%, rgba(148, 163, 184, 0.35) 80%) !important;
}
footer:has(> .container) .footer-tp-box svg {
  width: 11px !important;
  height: 11px !important;
}
footer:has(> .container) .footer-tp-score {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  line-height: 1 !important;
  margin-left: 1px !important;
}

/* Navigation Columns on the right: clean left/start alignment */
footer:has(> .container) > .container > div:nth-child(2) > .grid:not([data-ru-payment-details] .grid) {
  flex: 1 1 auto !important;
  max-width: 980px !important;
  margin-inline: 0 !important;
  justify-items: start !important;
  gap: 28px 36px !important;
}
footer:has(> .container) > .container > div:nth-child(2) > .grid > div {
  align-items: flex-start !important;
  text-align: start !important;
  min-width: 0;
}
footer:has(> .container) > .container > div:nth-child(2) > .grid h3,
footer:has(> .container) > .container > div:nth-child(2) > .grid ul {
  text-align: start !important;
}
footer:has(> .container) .grid h3 {
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: .06em !important;
  margin-bottom: 12px !important;
}
footer:has(> .container) .grid ul {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}
footer:has(> .container) .grid li + li {
  margin-top: 6px !important;
}

/* Row 2: Optional RU entrepreneur details */
footer:has(> .container) [data-ru-payment-details] {
  order: 2 !important;
}

/* Row 0 (Desktop/Tablet >= 768px): Balanced Payment Icons at the top of footer (replaces PC ad) */
@media (min-width: 768px) {
  footer > [data-lmpp-footer-display] {
    display: none !important;
  }
}
footer:has(> .container) > .container > div:first-child {
  order: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
  padding-top: 0 !important;
  padding-bottom: 26px !important;
  margin-bottom: 34px !important;
  gap: 14px 28px !important;
  opacity: .65 !important;
  width: 100% !important;
}
footer:has(> .container) > .container > div:first-child:hover {
  opacity: 1 !important;
}
footer:has(> .container) > .container > div:first-child svg,
footer:has(> .container) > .container > div:first-child img {
  height: 30px !important;
  width: auto !important;
}
footer:has(> .container) > .container > div:first-child svg:nth-last-child(2) {
  margin-right: -44px !important;
}
footer:has(> .container) > .container > div:first-child svg:last-child {
  height: 24px !important;
}

/* Row 4: Clean Copyright without duplicate Trustpilot pill or Language details clutter */
footer:has(> .container) > .container > div:last-child {
  order: 4 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  letter-spacing: .04em !important;
  padding: 18px 0 22px !important;
  gap: 8px !important;
}
footer:has(> .container) a.footer-trustpilot,
footer:has(> .container) details[data-lmpp-market-nav],
footer:has(> .container) nav[aria-labelledby="english-region-guides-heading"] {
  display: none !important;
}

@media (max-width: 767px) {
  footer:has(> .container) > .container > div:first-child {
    order: 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
    padding-top: 0 !important;
    padding-bottom: 20px !important;
    margin-bottom: 24px !important;
    gap: 12px 18px !important;
    opacity: .65 !important;
    justify-content: center !important;
    direction: ltr !important;
    unicode-bidi: isolate;
  }
  footer:has(> .container) > .container > div:first-child svg,
  footer:has(> .container) > .container > div:first-child img {
    height: 24px !important;
    direction: ltr !important;
  }
  footer:has(> .container) > .container > div:first-child svg:nth-last-child(2) {
    margin-right: -35px !important;
  }
  footer:has(> .container) > .container > div:first-child svg:last-child {
    height: 19px !important;
  }
  footer:has(> .container) > .container > div:nth-child(2) {
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    padding-bottom: 24px !important;
  }
  footer:has(> .container) > .container > div:nth-child(2) > div:first-child {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  footer:has(> .container) > .container > div:nth-child(2) > .grid:not([data-ru-payment-details] .grid) {
    justify-items: center !important;
    max-width: 100% !important;
  }
  footer:has(> .container) > .container > div:nth-child(2) > .grid > div {
    align-items: center !important;
    text-align: center !important;
  }
  footer:has(> .container) > .container > div:nth-child(2) > .grid h3,
  footer:has(> .container) > .container > div:nth-child(2) > .grid ul {
    text-align: center !important;
  }
  footer:has(> .container) > .container > div:last-child {
    border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
    letter-spacing: .02em !important;
    padding: 14px 0 18px !important;
    text-align: center !important;
    align-items: center !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  footer:has(> .container) > .container > div:nth-child(2) {
    flex-direction: column !important;
    gap: 28px !important;
  }
  footer:has(> .container) > .container > div:nth-child(2) > .grid:not([data-ru-payment-details] .grid) {
    max-width: 100% !important;
  }
}

@media (max-width: 639px) {
  footer:has(> .container) > .container {
    padding-top: 22px !important;
    padding-inline: 20px !important;
  }
  footer:has(> .container) > .container > div:nth-child(2) {
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    padding-bottom: 22px !important;
  }
  footer:has(> .container) > .container > div:nth-child(2) > div:first-child > a:first-child > div {
    width: 36px !important;
    height: 36px !important;
  }
  footer:has(> .container) > .container > div:nth-child(2) > div:first-child > a:first-child > span {
    font-size: 22px !important;
  }
  footer:has(> .container) a.footer-tp-widget {
    margin-top: 12px !important;
    padding: 6px 11px !important;
  }
  footer:has(> .container) > .container > div:nth-child(2) > .grid:not([data-ru-payment-details] .grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-items: center !important;
    gap: 22px 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  footer:has(> .container) .grid h3 {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    letter-spacing: .045em !important;
    margin-bottom: 9px !important;
  }
  footer:has(> .container) .grid ul {
    width: 100%;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
  }
  footer:has(> .container) .grid li + li {
    margin-top: 3px !important;
  }
  footer:has(> .container) .grid li > a,
  footer:has(> .container) .grid li > span > a {
    display: inline-block;
    padding-block: 3px;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  footer:has(> .container) [data-ru-payment-details] {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
  footer:has(> .container) [data-ru-payment-details] h3 {
    text-align: start !important;
    letter-spacing: 0 !important;
  }
  footer:has(> .container) [data-ru-payment-details] dl {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 16px !important;
  }
  footer:has(> .container) [data-ru-payment-details] dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
  }
}

@media (max-width: 359px) {
  footer:has(> .container) > .container {
    padding-inline: 16px !important;
  }
  footer:has(> .container) .grid ul {
    font-size: 13.5px !important;
  }
  footer:has(> .container) .grid:not([data-ru-payment-details] .grid) {
    column-gap: 14px !important;
  }
  footer:has(> .container) [data-ru-payment-details] dl {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
