/* Clasico Next 1.1.26 HOTFIX1 — original layout grid isolation.
   Root cause: legacy .cn-footer-main > .container uses 240px + 1fr;
   the 1.1.26 footer has only one child so it was restricted to 240px. */

/* Main footer is full-width in its existing Bootstrap container. */
#footer .cn126-footer-main {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 24px 0 34px !important;
  box-sizing: border-box;
}
#footer .cn126-footer-main > .container {
  display: block !important;
  grid-template-columns: none !important;
  grid-auto-columns: auto !important;
  gap: 0 !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
}
#footer .cn126-footer-shell {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-column: 1 / -1 !important;
  box-sizing: border-box;
}
#footer .cn126-footer-shell *,
#footer .cn126-footer-shell *::before,
#footer .cn126-footer-shell *::after { box-sizing: border-box; }

/* Reclaim every available pixel, while retaining 1.1.26 Soft Premium UI. */
#footer .cn126-footer-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 24px !important;
}
#footer .cn126-footer-branding,
#footer .cn126-footer-help,
#footer .cn126-help-copy { min-width: 0 !important; }
#footer .cn126-footer-layout {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 20px 0 0 !important;
  margin: 0 !important;
}
#footer .cn126-footer-links {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 0 20px !important;
}
#footer .cn126-footer-links > .cn-footer-column,
#footer .cn126-footer-links > .cn-footer-column:first-child,
#footer .cn126-footer-links > .cn-footer-column:last-child {
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 20px 20px 18px !important;
  border: 1px solid #d7e3f4 !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%) !important;
  box-shadow: 0 14px 32px rgba(28,56,106,.045) !important;
}
#footer .cn126-footer-links .cn-footer-column ul {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
}
#footer .cn126-footer-links .cn-footer-column li a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
}
#footer .cn126-footer-links .cn-footer-column .cn126-footer-card-head { width: 100%; min-width: 0; }
#footer .cn126-footer-links .cn126-footer-card-titlebox { min-width: 0; }
#footer .cn126-footer-bottom,
#footer .cn126-footer-bottom > .container { width: 100% !important; min-width: 0 !important; }
#footer .cn126-footer-bottom > .container {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

@media (max-width: 1199px) {
  #footer .cn126-footer-hero { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  #footer .cn126-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
  #footer .cn126-footer-main { padding: 16px 0 26px !important; }
  #footer .cn126-footer-shell { border-radius: 22px !important; }
  #footer .cn126-footer-hero { grid-template-columns: minmax(0,1fr) !important; gap: 14px !important; }
  #footer .cn126-footer-links { grid-template-columns: minmax(0,1fr) !important; gap: 14px !important; padding-bottom: 14px !important; }
  #footer .cn126-footer-links > .cn-footer-column,
  #footer .cn126-footer-links > .cn-footer-column:first-child,
  #footer .cn126-footer-links > .cn-footer-column:last-child { padding: 16px 16px 14px !important; border-radius: 20px !important; }
  #footer .cn126-footer-bottom > .container { flex-direction: column !important; align-items: flex-start !important; }
}
