/* =========================================================
   ONEPA FOOTER
   APPLE-STYLE / WHITE / BLACK TEXT
   ========================================================= */

/* =========================================================
   SOCIAL ICON SETTINGS (EDIT THESE)
   ========================================================= */

#footer.reference-footer {
  --social-btn-size: 28px;                  /* REDUCED SOCIAL LOGO SIZE */
  --social-img-size: 100%;                  /* LOGO FILLS THE SMALLER CIRCLE */
  --social-btn-bg: rgba(0, 0, 0, 0.07);     /* CIRCLE COLOR (transparent = NO CIRCLE) */
  --social-btn-bg-hover: rgba(0, 0, 0, 0.14);
  --social-btn-radius: 50%;                 /* 50% = CIRCLE / 10px = ROUNDED SQUARE */
}

/* FORCE THE FOOTER BACKGROUND TO WHITE */
html body #site-footer,
html body footer#footer.reference-footer,
html body #footer.reference-footer,
html body footer.reference-footer {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* FOOTER BASE */
html body footer#footer.reference-footer {
  position: relative !important;
  z-index: 1;
  display: block !important;
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
  margin: 0;
  padding: 64px 0 28px;
  overflow: visible !important;
  box-sizing: border-box;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif !important;

  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;

  /* LINE THAT SEPARATES THE FOOTER FROM THE OTHER SECTIONS */
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}

/* BOX SIZING */
#footer.reference-footer *,
#footer.reference-footer *::before,
#footer.reference-footer *::after {
  box-sizing: border-box;
}

/* ENSURE ALL FOOTER CONTENT IS VISIBLE */
html body #footer.reference-footer .reference-footer-inner {
  display: block !important;
  width: 100%;
  max-width: 1210px;
  height: auto !important;
  margin: 0 auto;
  padding: 0 32px;
}

html body #footer.reference-footer .footer-content-grid {
  display: grid !important;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 0.85fr 1.15fr;
  gap: 40px;
  width: 100%;
  height: auto !important;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

html body #footer.reference-footer .footer-brand-title {
  display: block;
  margin-bottom: 12px;
  color: #000000 !important;
  font-family: inherit !important;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

html body #footer.reference-footer .footer-column h5,
html body #footer.reference-footer .footer-social-heading,
html body #footer.reference-footer .footer-accordion-trigger {
  color: #000000 !important;
  font-family: inherit !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

html body #footer.reference-footer .footer-column h5 {
  margin: 0 0 16px;
}

html body #footer.reference-footer .footer-social-heading {
  margin-top: 22px;
  margin-bottom: 16px;
}

html body #footer.reference-footer .footer-column p,
html body #footer.reference-footer .footer-column a,
html body #footer.reference-footer .footer-contact-item,
html body #footer.reference-footer .footer-contact-item span {
  color: #000000 !important;
  font-family: inherit !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

html body #footer.reference-footer .footer-column p {
  max-width: 310px;
  margin: 0 0 12px;
}

/* =========================================================
   FOOTER LINKS
   ========================================================= */

html body #footer.reference-footer .footer-links {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
}

html body #footer.reference-footer .footer-links a {
  display: inline-block;
  width: fit-content;
  color: #000000 !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

html body #footer.reference-footer .footer-links a:hover {
  color: #000000 !important;
  opacity: 0.60;
}

/* =========================================================
   CONTACT DETAILS
   ========================================================= */

html body #footer.reference-footer .footer-contact-item {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

html body #footer.reference-footer .footer-contact-item svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 3px;
  color: #000000 !important;
  stroke: currentColor;
}

html body #footer.reference-footer .footer-contact-item a {
  color: #000000 !important;
  text-decoration: none;
}

html body #footer.reference-footer .footer-contact-item a:hover {
  opacity: 0.60;
}

/* =========================================================
   EXTRA CONTENT
   ========================================================= */

html body #footer.reference-footer .footer-extra {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

html body #footer.reference-footer .footer-extra strong {
  display: block;
  margin-bottom: 5px;
  color: #000000 !important;
  font-family: inherit !important;
  font-size: 13px;
  font-weight: 500;
}

/* =========================================================
   ACCORDION
   DESKTOP: OPEN
   MOBILE: COLLAPSIBLE
   ========================================================= */

html body #footer.reference-footer .footer-accordion-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;

  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  text-align: left;
  cursor: default;
}

html body #footer.reference-footer .footer-accordion-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
}

html body #footer.reference-footer .footer-accordion-arrow::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #000000;
  border-bottom: 1.5px solid #000000;
  transform: rotate(45deg);
}

html body #footer.reference-footer .footer-accordion-panel {
  display: block !important;
}

/* =========================================================
   SOCIAL MEDIA (YOUR OWN LOGO IMAGES)
   OVERRIDES ANY DEFAULT ICONS / IMAGES ALREADY ON THE SITE
   ========================================================= */

html body #footer.reference-footer .social-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

html body #footer.reference-footer .social-row a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative !important;
  width: var(--social-btn-size) !important;
  height: var(--social-btn-size) !important;
  padding: 0 !important;
  overflow: hidden;

  border: 0;
  border-radius: var(--social-btn-radius);
  background-color: var(--social-btn-bg) !important;

  /* REMOVE ANY DEFAULT BACKGROUND IMAGE ON THE LINK */
  background-image: none !important;

  text-decoration: none;
  font-size: 0 !important;

  transition: background-color 0.2s ease, transform 0.2s ease;
}

html body #footer.reference-footer .social-row a:hover {
  background-color: var(--social-btn-bg-hover) !important;
  transform: translateY(-2px);
}

/* REMOVE ANY DEFAULT ICON ADDED WITH ::before / ::after */
html body #footer.reference-footer .social-row a::before,
html body #footer.reference-footer .social-row a::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* HIDE ANY DEFAULT ICON (SVG, FONT ICON, SPAN) INSIDE THE LINK */
html body #footer.reference-footer .social-row a svg,
html body #footer.reference-footer .social-row a i,
html body #footer.reference-footer .social-row a span,
html body #footer.reference-footer .social-row a picture source {
  display: none !important;
}

/* YOUR OWN LOGO IMAGE: FORCE IT TO SHOW */
html body #footer.reference-footer .social-row a img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: var(--social-img-size) !important;
  height: var(--social-img-size) !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;

  /* COVER = THE LOGO FILLS THE ENTIRE CIRCLE (NO GAPS) */
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
  transform: none !important;
  content: normal !important;
  background: none !important;
  pointer-events: none;
}

/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

html body #footer.reference-footer .footer-bottom {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;

  color: #000000 !important;
  font-family: inherit !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

html body #footer.reference-footer .footer-bottom .links {
  display: flex;
  gap: 24px;
  margin-right: 68px;
}

html body #footer.reference-footer .footer-bottom a {
  color: #000000 !important;
  font-family: inherit !important;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

html body #footer.reference-footer .footer-bottom a:hover {
  color: #000000 !important;
  opacity: 0.60;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 960px) {
  html body #footer.reference-footer .footer-content-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }

  html body #footer.reference-footer .footer-bottom .links {
    margin-right: 0;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  html body footer#footer.reference-footer {
    padding: 48px 0 24px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
  }

  html body #footer.reference-footer .reference-footer-inner {
    padding: 0 20px;
  }

  html body #footer.reference-footer .footer-content-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }

  html body #footer.reference-footer .footer-column {
    padding: 18px 0;
  }

  html body #footer.reference-footer .footer-column:first-child {
    padding-top: 0;
  }

  html body #footer.reference-footer .footer-column + .footer-column {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }

  html body #footer.reference-footer .footer-extra {
    display: none;
  }

  html body #footer.reference-footer .footer-accordion-trigger {
    margin-bottom: 0;
    padding: 2px 0;
    cursor: pointer;
  }

  html body #footer.reference-footer .footer-accordion-arrow {
    display: inline-flex;
  }

  html body #footer.reference-footer .footer-accordion-panel {
    display: none !important;
    padding-top: 16px;
  }

  html body #footer.reference-footer .footer-accordion-panel.is-open {
    display: block !important;
  }

  html body #footer.reference-footer .footer-links {
    gap: 14px;
  }

  html body #footer.reference-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  html body #footer.reference-footer .footer-bottom .links {
    gap: 16px;
    flex-wrap: wrap;
    margin-right: 0;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  #footer.reference-footer *,
  #footer.reference-footer *::before,
  #footer.reference-footer *::after {
    transition: none !important;
  }
}