/* FOOTER STYLES */
body.rp-light-theme .site-footer,
body.rp-light-theme .site-below-footer-wrap,
body.rp-light-theme .site-footer-above-section-1,
body.rp-light-theme .site-footer-above-section-2,
body.rp-light-theme .site-footer-below-section-1,
body.rp-light-theme .site-footer-below-section-2 {
  background: transparent !important;
}

body.rp-light-theme .site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 12px;
  margin-top: 32px;
}

body.rp-light-theme .site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.18) 0 12px,
    transparent 12px 24px
  );
  opacity: 0.55;
  pointer-events: none;
}

body.rp-light-theme .site-below-footer-wrap {
  padding-bottom: 12px;
}

body.rp-light-theme .site-above-footer-inner-wrap,
body.rp-light-theme .site-below-footer-inner-wrap {
  gap: 10px;
}

body.rp-light-theme #astra-footer-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 24px;
  width: 100%;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.rp-light-theme #astra-footer-menu .menu-link {
  color: #0a0a0a !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.88;
  text-decoration: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.rp-light-theme .ast-builder-social-element,
body.rp-light-theme .ast-builder-social-element a {
  color: #0a0a0a !important;
  text-decoration: none;
}

body.rp-light-theme .ast-builder-social-element svg {
  fill: currentColor !important;
}

body.rp-light-theme .ast-footer-copyright {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.rp-light-theme .ast-footer-copyright p {
  margin: 0;
}

body.rp-light-theme .ast-footer-copyright p:first-child {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.rp-light-theme .ast-footer-copyright p:nth-child(2),
body.rp-light-theme .ast-footer-copyright p:nth-child(3) {
  flex: 0 0 auto;
  display: block;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}

body.rp-light-theme .ast-footer-copyright p:nth-child(3) {
  margin-top: 0;
}

/* MOBILE FOOTER CLEANUP */
@media (max-width: 767px) {
  body.rp-light-theme .site-footer {
    margin-top: 24px;
    padding-top: 10px;
  }

  body.rp-light-theme .site-footer::before {
    height: 8px;
    background: repeating-linear-gradient(
      90deg,
      rgba(10, 10, 10, 0.16) 0 10px,
      transparent 10px 20px
    );
  }

  body.rp-light-theme .site-above-footer-inner-wrap,
  body.rp-light-theme .site-below-footer-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  body.rp-light-theme .site-footer-above-section-1,
  body.rp-light-theme .site-footer-above-section-2 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.rp-light-theme .footer-social-inner-wrap {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    max-width: 100% !important;
  }

  body.rp-light-theme .ast-builder-social-element {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }

  body.rp-light-theme .ast-builder-social-element a {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.rp-light-theme .ast-builder-social-element svg {
    width: 18px !important;
    height: 18px !important;
  }

  body.rp-light-theme #astra-footer-menu,
  body.rp-light-theme .footer-widget-area[data-section="section-footer-menu"] .astra-footer-mobile-horizontal-menu,
  body.rp-light-theme .footer-widget-area[data-section="section-footer-menu"] .astra-footer-mobile-vertical-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px 12px !important;
    width: 100% !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.rp-light-theme #astra-footer-menu li,
  body.rp-light-theme .footer-widget-area[data-section="section-footer-menu"] .astra-footer-mobile-horizontal-menu li,
  body.rp-light-theme .footer-widget-area[data-section="section-footer-menu"] .astra-footer-mobile-horizontal-menu .menu-item,
  body.rp-light-theme .footer-widget-area[data-section="section-footer-menu"] .astra-footer-mobile-vertical-menu .menu-item {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.rp-light-theme #astra-footer-menu .menu-link,
  body.rp-light-theme .footer-widget-area[data-section="section-footer-menu"] .astra-footer-mobile-horizontal-menu .menu-item > a,
  body.rp-light-theme .footer-widget-area[data-section="section-footer-menu"] .astra-footer-mobile-vertical-menu .menu-item > a {
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }

  body.rp-light-theme .ast-footer-copyright {
    gap: 4px;
    width: 100%;
    overflow: hidden;
    justify-content: center;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
  }

  body.rp-light-theme .ast-footer-copyright p:first-child {
    display: none !important;
  }

  body.rp-light-theme .ast-footer-copyright p:nth-child(2),
  body.rp-light-theme .ast-footer-copyright p:nth-child(3) {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    width: 100%;
  }
}
