/* v0.17.35 — size-safe footer branding, no distortion, all standard viewports.
 * Additive refinements only; no change to approved 4 / 2x2 / phone layout.
 */
body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
  margin-bottom:8px!important;
}
body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img,
body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img.custom-logo {
  box-sizing:border-box!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  max-width:min(100%,260px)!important;
  max-height:96px!important;
}
/* Compact device: a substantial but not screen-filling logo. */
@media(max-width:359px){
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img,
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img.custom-logo {
   max-width:min(73vw,205px)!important;max-height:65px!important;margin-inline:auto!important;
 }
}
@media(min-width:360px) and (max-width:479px){
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img,
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img.custom-logo {
   max-width:min(68vw,245px)!important;max-height:73px!important;margin-inline:auto!important;
 }
}
@media(min-width:480px) and (max-width:679px){
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img,
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img.custom-logo {
   max-width:min(55vw,270px)!important;max-height:80px!important;margin-inline:auto!important;
 }
}
@media(min-width:680px) and (max-width:779px){
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img,
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img.custom-logo {
   max-width:min(100%,235px)!important;max-height:76px!important;margin-inline:auto!important;
 }
}
@media(min-width:780px) and (max-width:1000px){
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img,
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img.custom-logo {
   max-width:min(100%,184px)!important;max-height:61px!important;margin:0!important;
 }
}
@media(min-width:1001px) and (max-width:1100px){
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img,
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img.custom-logo {
   max-width:min(100%,225px)!important;max-height:77px!important;margin:0!important;
 }
}
@media(min-width:1101px){
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img,
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-logo img.custom-logo {
   max-width:min(100%,260px)!important;max-height:88px!important;
 }
}
/* Preserve the compact approved footer and stop brand social icons wrapping
 * into an unbalanced orphan icon at intermediate grid widths. */
@media(min-width:780px) and (max-width:1100px){
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-socials{
   display:flex!important;flex-flow:row wrap!important;justify-content:flex-start!important;
   gap:4px!important;margin-top:9px!important;
 }
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-socials a{
   box-sizing:border-box!important;width:clamp(27px,3.2vw,34px)!important;
   height:clamp(27px,3.2vw,34px)!important;min-width:0!important;
   padding:5px!important;
 }
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-socials img{
   max-width:100%!important;max-height:100%!important;object-fit:contain!important;
 }
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-payment-slot{
   margin-top:7px!important;
 }
}
@media(max-width:679px){
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-socials{
   gap:6px!important;margin:9px auto 6px!important;justify-content:center!important;
 }
 body #tg-global-footer.tg-brand-footer .tg-footer-main > .tg-footer-brand .tg-footer-payment-slot{
   margin-top:3px!important;
 }
}
/* Prevent stray large whitespace in bottom section on middling widths. */
@media(min-width:780px) and (max-width:1100px){
 body #tg-global-footer.tg-brand-footer .tg-container.tg-footer-main{
   padding-top:23px!important;padding-bottom:23px!important;
 }
}
