/* =========================================================
   API YAMU — FOOTER FIX
   Keep native Shoptet footer layout, only unify typography.
   ========================================================= */

/* Remove the broken custom grid and preserve Tango's native columns */
#footer .custom-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
}

/* Let Shoptet keep reasonable column widths */
#footer .custom-footer > div {
  width: auto !important;
  max-width: none !important;
  flex: 1 1 260px !important;
  margin: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* Same section heading style everywhere */
#footer .custom-footer h4,
#footer .custom-footer .h4,
#footer .custom-footer .footer-title,
#footer .custom-footer .menu-title {
  margin: 0 0 14px !important;
  padding: 0 0 10px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  color: #111 !important;
  white-space: normal !important;
  word-break: normal !important;
}

/* Same link typography in all footer menus */
#footer .custom-footer ul {
  margin: 0 !important;
  padding: 0 !important;
}

#footer .custom-footer li {
  margin: 0 0 9px !important;
  padding: 0 !important;
  list-style: none !important;
}

#footer .custom-footer li a,
#footer .custom-footer .menu a {
  display: inline !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  color: #666 !important;
  text-decoration: none !important;
  white-space: normal !important;
  word-break: normal !important;
}

/* Contact box: prevent phone/email from breaking character-by-character */
#footer .custom-footer .contact-box,
#footer .custom-footer .contact-box a,
#footer .custom-footer .contact-box span,
#footer .custom-footer .contact-box p {
  font-family: inherit !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

#footer .custom-footer .contact-box a,
#footer .custom-footer .contact-box span,
#footer .custom-footer .contact-box p {
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #666 !important;
}

/* Desktop spacing */
@media (min-width: 992px) {
  #footer .custom-footer {
    gap: 40px !important;
  }

  #footer .custom-footer > div {
    flex: 1 1 0 !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  #footer .custom-footer {
    display: block !important;
  }

  #footer .custom-footer > div {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 30px !important;
  }
}
