/* TG Footer Manager v1.1.7 — Six small payment marks per desktop row, reduced vertical gaps.
   This stylesheet only affects TG Travel footer. Never changes the payment-method option.
   Maximum six items per desktop row; at narrow widths rows wrap naturally; mobile centered.
   Custom uploaded logo URLs take precedence through existing PHP code. */
#tg-global-footer .tg-footer-main > .tg-footer-brand .tg-footer-payment-slot,
#tg-global-footer .tg-dsl1640-company .tg-dsl1640-payment-slot {
  display:block!important;
  position:static!important;float:none!important;clear:none!important;
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-width:0!important;height:auto!important;
  padding:0!important;margin:5px 0 0!important;
  inset:auto!important;transform:none!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
#tg-global-footer .tgfm-payment-strip {
  display:block!important;box-sizing:border-box!important;
  position:static!important;float:none!important;clear:none!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;margin:0!important;padding:0!important;
  inset:auto!important;transform:none!important;
  border:0!important;background:none!important;box-shadow:none!important;
  text-align:left!important;
}
#tg-global-footer .tgfm-payment-inner {
  --tgfm-badge-w:48px;
  --tgfm-badge-h:28px;
  --tgfm-badge-gap:6px;
  position:static!important;inset:auto!important;transform:none!important;
  box-sizing:border-box!important;
  display:flex!important;flex-flow:row wrap!important;
  gap:var(--tgfm-badge-gap)!important;
  justify-content:flex-start!important;align-content:flex-start!important;
  align-items:center!important;
  width:100%!important;
  max-width:calc(6 * var(--tgfm-badge-w) + 5 * var(--tgfm-badge-gap))!important;
  min-width:0!important;height:auto!important;
  padding:0!important;margin:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  list-style:none!important;
}
#tg-global-footer .tgfm-payment-inner .tgfm-payment-badge {
  display:block!important;position:static!important;
  box-sizing:border-box!important;flex:0 0 var(--tgfm-badge-w)!important;
  min-width:0!important;min-height:0!important;
  width:var(--tgfm-badge-w)!important;max-width:var(--tgfm-badge-w)!important;
  height:var(--tgfm-badge-h)!important;max-height:var(--tgfm-badge-h)!important;
  padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:transparent!important;line-height:1!important;
  vertical-align:middle!important;pointer-events:none!important;cursor:default!important;
}
#tg-global-footer .tgfm-payment-inner .tgfm-payment-badge img {
  display:block!important;box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  height:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
  padding:0!important;margin:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;
  filter:none!important;box-shadow:none!important;
}
/* Match the company column's title/description/socials and eliminate the two marked gaps.
   These rules are narrower than the existing theme rules and don't change other footer columns. */
@media (min-width:721px) {
  body #tg-global-footer.tg-brand-footer .tg-footer-main>.tg-footer-brand.tg-footer-brand h3 {
    margin-bottom:8px!important;
  }
  body #tg-global-footer.tg-brand-footer .tg-footer-main>.tg-footer-brand.tg-footer-brand>p {
    margin-top:0!important;margin-bottom:5px!important;
  }
  body #tg-global-footer.tg-brand-footer .tg-footer-main>.tg-footer-brand.tg-footer-brand .tg-footer-socials {
    margin-top:5px!important;
  }
}
/* Compact 'Desktop site' version of footer still centers payment row in its company block. */
#tg-global-footer .tg-dsl1640-company .tgfm-payment-inner {
  justify-content:center!important;margin-inline:auto!important;
}
@media (min-width:721px) and (max-width:1199px) {
  #tg-global-footer .tgfm-payment-inner {
    --tgfm-badge-w:45px;
    --tgfm-badge-h:28px;
    --tgfm-badge-gap:5px;
  }
}
@media (max-width:720px) {
  #tg-global-footer .tg-footer-main > .tg-footer-brand .tg-footer-payment-slot {
    margin-top:6px!important;
  }
  #tg-global-footer .tgfm-payment-inner {
    --tgfm-badge-w:41px;
    --tgfm-badge-h:28px;
    --tgfm-badge-gap:5px;
    max-width:calc(5 * var(--tgfm-badge-w) + 4 * var(--tgfm-badge-gap))!important;
    justify-content:center!important;
    margin-left:auto!important;margin-right:auto!important;
  }
  #tg-global-footer .tgfm-payment-strip {text-align:center!important;}
}
@media (max-width:360px) {
  #tg-global-footer .tgfm-payment-inner {
    --tgfm-badge-w:38px;
    --tgfm-badge-h:26px;
    --tgfm-badge-gap:4px;
  }
}


/* TG Footer Manager v1.1.8 — requested desktop footer brand alignment.
 * Keep the existing payment slot and badge rows EXACTLY where they are.
 * Lift only the four brand-intro elements to align the logo's top edge with
 * the neighbouring Explore heading and introduce space below social links.
 * No layout, link, image, payment-selection or option data is changed.
 * On tablet/mobile below 851px we retain the previously approved positions.
 */
@media screen and (min-width:851px) {
  body #tg-global-footer.tg-brand-footer
  .tg-footer-main > .tg-footer-brand > .tg-footer-logo,
  body #tg-global-footer.tg-brand-footer
  .tg-footer-main > .tg-footer-brand > h3,
  body #tg-global-footer.tg-brand-footer
  .tg-footer-main > .tg-footer-brand > p,
  body #tg-global-footer.tg-brand-footer
  .tg-footer-main > .tg-footer-brand > .tg-footer-socials {
    transform:translateY(-18px)!important;
  }
  /* The payment slot is deliberately NOT moved: extra space opens above it. */
}
