/* One footer for Next.js and Elementor. Next imports this into components;
   WordPress loads the same published file. Keep geometry out of templates. */
.bby-footer {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: #012775;
  color: #FFFFFF;
  font-family: var(--font-poppins, 'Poppins'), sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.bby-footer *,
.bby-footer *::before,
.bby-footer *::after {
  box-sizing: border-box;
}

.bby-footer a {
  color: #FFFFFF !important; /* Protect dark-surface links from WooCommerce. */
  text-decoration: none;
}

.bby-footer p,
.bby-footer ul,
.bby-footer li {
  margin: 0;
  padding: 0;
}

.bby-footer ul {
  list-style: none;
}

.bby-footer__wrap,
.bby-footer__bar-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.bby-footer__wrap { padding-top: 3.5rem; }

.bby-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.bby-footer__grid > * { min-width: 0; }

.bby-footer__logo { display: inline-flex; }

.bby-footer__logo img {
  display: block;
  width: 13rem;
  height: auto;
  max-width: 100%;
  border: 0;
}

.bby-footer .bby-footer__tag {
  margin-top: 1.25rem;
  margin-inline: auto;
  max-width: 24rem;
  color: #FFFFFF;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bby-footer .bby-footer__heading {
  margin: 0;
  padding: 0;
  font-family: var(--font-fredoka-one, 'Fredoka'), sans-serif !important;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.bby-footer .bby-footer__links { margin-top: 1rem; }
.bby-footer__links > li:not(:last-child) { margin-bottom: 0.5rem; }

.bby-footer__link,
.bby-footer__legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.bby-footer__link,
.bby-footer__social-link {
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.bby-footer__link:hover,
.bby-footer__social-link:hover { opacity: 0.9; }
.bby-footer .bby-footer__link:hover,
.bby-footer .bby-footer__legal-link:hover { text-decoration: underline; }

.bby-footer .bby-footer__divider {
  height: 0;
  margin: 3rem 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
}

.bby-footer .bby-footer__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.bby-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.bby-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid #FFFFFF;
  border-radius: 1rem;
}

.bby-footer__social-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.bby-footer__social-label { font-size: 1rem; }
.bby-footer__bar { background: #3FA9F5; }

.bby-footer__bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
}

.bby-footer .bby-footer__copy,
.bby-footer .bby-footer__legal-link {
  color: #012775 !important;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bby-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}

@media (min-width: 640px) {
  .bby-footer__wrap,
  .bby-footer__bar-wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  .bby-footer .bby-footer__social { flex-direction: row; gap: 4rem; }
}

@media (min-width: 768px) {
  .bby-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bby-footer__bar-wrap { flex-direction: row; text-align: left; }
}

@media (min-width: 1024px) {
  .bby-footer { text-align: left; }
  .bby-footer__wrap,
  .bby-footer__bar-wrap { padding-left: 2rem; padding-right: 2rem; }
  .bby-footer__wrap { padding-top: 4rem; }
  .bby-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem; }
  .bby-footer__logo img { width: 15rem; }
  .bby-footer .bby-footer__tag { margin-inline: 0; }
  .bby-footer .bby-footer__heading { font-size: 1.6rem; }
}
