@layer theme-custom {

/* Footer V2｜Homepage V3 visual system */
footer,
footer > div,
footer .container,
footer .container-fluid,
footer .row,
footer .footer,
footer .footer-wrap,
footer .footer-wrapper,
footer .footer-content,
footer [class*="footer-"],
footer [class*="footer_"] {
  background-color: #F7F2E9 !important;
  background-image: none !important;
}

footer {
  margin-top: 0 !important;
  padding: 0 !important;
  border-top: 1px solid #DED6CA !important;
  color: #4F5F6D !important;
  box-shadow: none !important;
}

footer > .container,
footer > .container-fluid,
footer .footer-wrap,
footer .footer-wrapper,
footer .footer-content {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 30px 24px 16px !important;
  min-height: 0 !important;
}

footer .row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 14px 28px !important;
  min-height: 0 !important;
  margin: 0 !important;
}

footer .row > [class*="col-"],
footer .row > div {
  flex: 0 1 680px !important;
  width: 100% !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center !important;
}

footer h1,
footer h2,
footer h3,
footer h4 {
  margin: 0 0 10px !important;
  color: #17324A !important;
  font-size: 1.02rem !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
}

footer strong,
footer b {
  color: #17324A !important;
}

footer p,
footer li,
footer span,
footer address,
footer label {
  color: #596875 !important;
  line-height: 1.72 !important;
}

footer p,
footer address {
  margin-top: 0 !important;
  margin-bottom: 7px !important;
}

footer a {
  color: #315A7C !important;
  text-decoration: none !important;
}

footer a:hover,
footer a:focus {
  color: #17324A !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Social icons: quiet, editorial, not bright template buttons */
footer a[href*="facebook.com"],
footer a[href*="instagram.com"],
footer a[href*="lin.ee"],
footer a[href*="youtube.com"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  margin: 8px 4px 2px !important;
  border: 1px solid #CFC5B8 !important;
  border-radius: 50% !important;
  background: #FFFDF9 !important;
  color: #315A7C !important;
  box-shadow: none !important;
  vertical-align: middle !important;
}

footer a[href*="facebook.com"] i,
footer a[href*="instagram.com"] i,
footer a[href*="lin.ee"] i,
footer a[href*="youtube.com"] i,
footer a[href*="facebook.com"] svg,
footer a[href*="instagram.com"] svg,
footer a[href*="lin.ee"] svg,
footer a[href*="youtube.com"] svg {
  color: #315A7C !important;
  fill: currentColor !important;
}

/* Legal links move visually to the background */
footer a[href*="privacy"],
footer a[href*="refund"],
footer a[href*="anti-fraud"] {
  color: #74808A !important;
  font-size: .88rem !important;
}

/* Copyright becomes a quiet final line */
footer [class*="copyright"],
footer .copyright,
footer .copyright-footer {
  margin-top: 18px !important;
  padding-top: 14px !important;
  padding-bottom: 4px !important;
  border-top: 1px solid #DED6CA !important;
  color: #7B858D !important;
  opacity: 1 !important;
  text-align: center !important;
  font-size: .88rem !important;
}

footer [class*="copyright"] *,
footer .copyright *,
footer .copyright-footer * {
  color: #7B858D !important;
  opacity: 1 !important;
}

/* Homepage: remove the awkward white moat before footer */
section.index-editor:last-of-type {
  margin-bottom: 0 !important;
}

section.index-editor:last-of-type > .container {
  padding-bottom: 0 !important;
}

@media (max-width: 767.98px) {
  footer > .container,
  footer > .container-fluid,
  footer .footer-wrap,
  footer .footer-wrapper,
  footer .footer-content {
    padding: 24px 18px 12px !important;
  }

  footer .row > [class*="col-"],
  footer .row > div {
    max-width: 100% !important;
  }

  footer h1,
  footer h2,
  footer h3,
  footer h4 {
    font-size: .98rem !important;
  }

  footer p,
  footer li,
  footer span,
  footer address {
    font-size: .93rem !important;
    line-height: 1.65 !important;
  }

  footer a[href*="facebook.com"],
  footer a[href*="instagram.com"],
  footer a[href*="lin.ee"],
  footer a[href*="youtube.com"] {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }
}

/* Hide refund policy entry */
a[href="/refund-policy"],
a[href="https://uncle-glasses.net/refund-policy"],
a[href="https://www.uncle-glasses.net/refund-policy"] {
  display: none !important;
}

}
