/*
 * Site footer: UX Block "footer" (11479, Theme Options > Footer > Footer block).
 * By Tiago (2026-10), moved here from the block's inline <style> (openspec: footer-theme-assets).
 * The HTML stays in the UX Block so the links and texts are edited in UX Builder.
 * Flatsome's own bottom bar (copyright, payment icons) is collapsed while this footer is present.
 */

/* Payment logos: white cards preserve contrast on the dark footer. */
.gf-bb-footer .gf-bb-payment-logos{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;width:100%;max-width:210px;margin:0 auto;padding:0}
.gf-bb-footer .gf-bb-payment-logos__badge{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 calc((100% - 18px)/4);width:calc((100% - 18px)/4);max-width:48px;height:28px;min-width:0;min-height:28px;margin:0;padding:3px;border:1px solid #e3e7ea;border-radius:4px;background:#fff}
.gf-bb-footer .gf-bb-payment-logos__badge img{display:block;flex-shrink:0;width:100%;height:20px;max-width:40px;max-height:20px;margin:0;object-fit:contain;object-position:center;filter:none}

/* BuyBack Footer v1 — current buyback.pt structure — gf-buyback-footer-v1 */
.gf-bb-footer {
  --gf-bb-footer-bg: #232324;
  --gf-bb-footer-surface: #2d2d2f;
  --gf-bb-footer-text: #f7f7f8;
  --gf-bb-footer-muted: #c7c9cc;
  --gf-bb-footer-line: rgba(255, 255, 255, .18);
  --gf-bb-footer-accent: #028543;
  background: var(--gf-bb-footer-bg);
  color: var(--gf-bb-footer-text);
  font-family: "Lato", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.gf-bb-footer,
.gf-bb-footer * {
  box-sizing: border-box;
}

.footer-wrapper:has(.gf-bb-footer) > .absolute-footer {
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.footer-wrapper:has(.gf-bb-footer) > .absolute-footer .footer-secondary,
.footer-wrapper:has(.gf-bb-footer) > .absolute-footer .copyright-footer {
  display: none !important;
}

.gf-bb-footer__inner {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 48px 32px 28px;
}

.gf-bb-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(170px, 1.05fr) minmax(180px, 1.12fr) minmax(170px, .95fr) minmax(210px, 1.15fr);
  gap: 40px;
  align-items: start;
}

.gf-bb-footer__brand,
.gf-bb-footer__group,
.gf-bb-footer__stack {
  min-width: 0;
}

.gf-bb-footer__stack {
  display: grid;
  gap: 30px;
}

.gf-bb-footer__logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -6px 0 22px;
}

.gf-bb-footer__logo {
  display: block;
  width: 205px;
  height: auto;
}

.gf-bb-footer__heading {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 9px;
  color: var(--gf-bb-footer-text);
  font: 700 13px/1.25 "Lato", Arial, sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.gf-bb-footer__heading::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, .72);
  content: "";
}

.gf-bb-footer__address,
.gf-bb-footer__contact {
  margin: 0 0 14px;
  color: var(--gf-bb-footer-muted);
  font-style: normal;
}

.gf-bb-footer__address strong,
.gf-bb-footer__contact strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gf-bb-footer-text);
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.gf-bb-footer__contact a,
.gf-bb-footer__link,
.gf-bb-footer__social-link {
  color: var(--gf-bb-footer-text);
  text-decoration: none;
  text-underline-offset: 3px;
}

.gf-bb-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.gf-bb-footer__contact a:hover,
.gf-bb-footer__link:hover,
.gf-bb-footer__social-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.gf-bb-footer__link:focus-visible,
.gf-bb-footer__contact a:focus-visible,
.gf-bb-footer__social-link:focus-visible,
.gf-bb-footer__asset-link:focus-visible,
.gf-bb-footer__logo-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid #31b874;
  outline-offset: 3px;
}

.gf-bb-footer__list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gf-bb-footer__disclosure {
  margin: 0;
  border: 0;
}

.gf-bb-footer__disclosure > summary {
  list-style: none;
  cursor: default;
}

.gf-bb-footer__disclosure > summary::-webkit-details-marker {
  display: none;
}

.gf-bb-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.gf-bb-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.gf-bb-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--gf-bb-footer-line);
  border-radius: 999px;
  background: var(--gf-bb-footer-surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.gf-bb-footer__asset-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.gf-bb-footer__compliments {
  display: block;
  width: min(204px, 100%);
  height: auto;
  margin-top: 10px;
}

.gf-bb-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gf-bb-footer__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #ffffff;
}

.gf-bb-footer__badge img {
  display: block;
  width: auto;
  max-width: 92px;
  height: 24px;
  object-fit: contain;
}

.gf-bb-footer__membership {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 3px;
  padding: 7px 10px;
  border: 1px solid var(--gf-bb-footer-line);
  border-radius: 6px;
  background: #1b1b1c;
}

.gf-bb-footer__membership img {
  display: block;
  width: min(190px, 100%);
  height: auto;
}

.gf-bb-footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--gf-bb-footer-line);
  color: var(--gf-bb-footer-muted);
  font-size: 13px;
}

.gf-bb-footer__meta p {
  margin: 0;
}

.gf-bb-footer__meta a {
  color: var(--gf-bb-footer-text);
}

@media (max-width: 1199px) {
  .gf-bb-footer__grid {
    grid-template-columns: minmax(230px, 1.3fr) repeat(2, minmax(190px, 1fr));
    gap: 36px 30px;
  }

  .gf-bb-footer__brand {
    grid-row: span 2;
  }
}

@media (max-width: 799px) {
  .gf-bb-footer__inner {
    padding: 40px 24px 28px;
  }

  .gf-bb-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .gf-bb-footer__brand {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gf-bb-footer__brand-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(210px, 1fr);
    gap: 26px;
    align-items: start;
  }
}

@media (max-width: 549px) {
  .gf-bb-footer__inner {
    padding: 36px 20px calc(80px + env(safe-area-inset-bottom));
  }

  .gf-bb-footer__grid,
  .gf-bb-footer__brand-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gf-bb-footer__logo {
    width: 188px;
  }

  .gf-bb-footer__link,
  .gf-bb-footer__contact a {
    min-height: 44px;
  }

  .gf-bb-footer__disclosure > summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin-bottom: 0;
    padding: 0 36px 0 0;
    cursor: pointer;
  }

  .gf-bb-footer__disclosure > summary::before {
    width: 44px;
  }

  .gf-bb-footer__disclosure > summary::after {
    position: absolute;
    top: 50%;
    right: 0;
    bottom: auto;
    left: auto;
    width: 28px;
    height: 28px;
    border: 1px solid var(--gf-bb-footer-line);
    border-radius: 999px;
    background: transparent;
    color: var(--gf-bb-footer-text);
    content: "+";
    font-size: 20px;
    font-weight: 400;
    line-height: 25px;
    text-align: center;
    transform: translateY(-50%);
  }

  .gf-bb-footer__disclosure[open] > summary::after {
    content: "−";
  }

  .gf-bb-footer__disclosure[open] > summary {
    margin-bottom: 10px;
  }

  .gf-bb-footer__meta {
    display: grid;
    gap: 8px;
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gf-bb-footer *,
  .gf-bb-footer *::before,
  .gf-bb-footer *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Native Flatsome social icons — footer only. */
.gf-bb-footer .gf-bb-footer__social-link i {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

/* Trustpilot Mini TrustBox (dark) in the last column. */
.gf-bb-footer .gf-bb-footer__trustpilot-mini {
  width: min(190px, calc(100% - 22px));
  max-width: 190px;
  min-height: 130px;
  margin: 12px 0 0 11px;
}
