/* FIX REAL – footer bottom este GRID, nu FLEX */
.footer__bottom-wrapper {
  justify-content: start;
}

/* badge-urile stau în stânga grid-ului */
.footer__bottom-wrapper .footer__badges {
  justify-self: start;
}

/* linkurile rămân în dreapta (nativ) */
.footer__bottom-wrapper .footer__links {
  justify-self: end;
}


/* ROTUNJIRE UNIFORMĂ – badge-uri plăți + ANPC */
.footer__bottom-wrapper .footer__badges img {
  border-radius: 8px;
}



@media (min-width: 1024px) {
  .footer__bottom-wrapper {
    grid-template-rows: auto;
  }

  .footer__bottom-wrapper .footer__badges {
    grid-row: 1;
  }

  .footer__bottom-wrapper .footer__links {
    grid-row: 1;
    align-self: center;
  }
}




/* === GXG FOOTER BADGES HOVER (SAFE) === */
.footer__badges img,
.footer__badges a img {
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.footer__badges a:hover img,
.footer__badges img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  filter: brightness(1.03);
}




/* GXG PATCH: footer badges one-row (pay + ANPC) */
#footer .footer__badges{
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 12px !important;
}

/* nu mai fortam grid pe badge (ca sa nu umfle randul) */
#footer .footer__badge{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  grid-template-columns: none !important;
}

/* dimensiuni controlate pentru badge-uri */
#footer .footer__badge img{
  height: 44px !important;
  width: auto !important;
  max-width: 280px !important;
  display: block !important;
}




/* GXG FIX: footer bottom wrapper - stop grid overlap */
#footer .footer__bottom-wrapper{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

/* stanga: badges */
#footer .footer__bottom-wrapper .footer__badges{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin-bottom: 0 !important; /* ca sa nu impinga randuri aiurea */
}

/* mijloc (daca exista) il ascundem, e 0px in JSON dar ocupa grid logic */
#footer .footer__bottom-wrapper .footer__bottom-center{
  display: none !important;
}

/* dreapta: text + link MerchantPro */
#footer .footer__bottom-wrapper nav.footer__links{
  flex: 0 0 auto !important;
  margin-left: auto !important;
  text-align: right !important;
  white-space: nowrap !important;
  align-items: flex-end !important;
}
#footer .footer__bottom-wrapper nav.footer__links a{
  white-space: nowrap !important;
}



/* GXG MOBILE: footer bottom responsive (no overflow) */
@media (max-width: 768px){
  #footer .footer__bottom-wrapper{
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  /* badges pe primul rand, cu wrap */
  #footer .footer__bottom-wrapper .footer__badges{
    flex: 1 1 100% !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* badge-uri mai mici ca sa incapa */
  #footer .footer__bottom-wrapper .footer__badge img{
    height: 34px !important;
    max-width: 48vw !important; /* doua pe rand */
  }

  /* textul trece dedesubt, aliniat la stanga (sau dreapta daca vrei) */
  #footer .footer__bottom-wrapper nav.footer__links{
    flex: 1 1 100% !important;
    margin-left: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    align-items: flex-start !important;
  }
  #footer .footer__bottom-wrapper nav.footer__links a{
    white-space: normal !important;
  }
}