/* firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--ef-theme-color);
  scrollbar-color: var(--ef-theme-color) #f9f9f9;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f9f9f9;
  border-radius: 5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--ef-theme-color);
  border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--ef-theme-color);
}

/* Custom Modal Backdrop */
body.no-scroll {
  overflow: hidden;
}

strong a {
  color: var(--ef-theme-secondary) !important;
  text-decoration: underline;
}

section.bg-\[--ef-theme-dark\] strong a {
  color: var(--ef-link-color) !important;
  text-decoration: underline;
}

.custom-modal-close-button span::before,
.custom-modal-close-button span::after {
  content: "";
  position: absolute;
  display: block;
  width: 0.9375rem;
  height: 0.125rem;
  background-color: var(--ef-theme-secondary);
  transition: transform 0.25s var(--ease), width 0.25s var(--ease);
}

.custom-modal-close-button span:before {
  transform: rotate(45deg);
}

.custom-modal-close-button span:after {
  transform: rotate(-45deg);
}

@media (max-width: 36rem) {
  #customModal {
    overflow-y: auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #customModal .jade-calc {
    padding: 5px;
  }

  #customModal h2 {
    margin-top: 1.8rem;
  }

  #customModal #loanTrigger button[role="switch"] {
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* How it works */
@keyframes bg-step-animation {

  0%,
  100% {
    background: transparent;
  }

  50% {
    background: var(--ef-theme-color);
  }
}

.hw-sec svg {
  font-family: inherit;
}

.hw__tl {
  padding: 0;
  list-style: none;
  display: none;
}

.hw__tl .hw-tl__item {
  padding-left: 50px;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.hw__tl .hw-tl__item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ef-theme-color);
  border-radius: 50%;
  box-sizing: border-box;
  opacity: 1;
  animation: bg-step-animation 8s infinite ease-in-out;
}

.hw__tl .hw-tl__item:nth-child(1)::before {
  animation-delay: 0s;
}

.hw__tl .hw-tl__item:nth-child(2)::before {
  animation-delay: 2s;
}

.hw__tl .hw-tl__item:nth-child(3)::before {
  animation-delay: 4s;
}

.hw__tl .hw-tl__item:nth-child(4)::before {
  animation-delay: 6s;
}

.hw__tl .hw-tl__item:after {
  content: "";
  position: absolute;
  left: 9px;
  top: 20px;
  height: 100%;
  width: 2px;
  background-color: var(--ef-theme-color);
  opacity: 1;
}

.hw__tl .hw-tl__item .hw-item__title {
  margin-bottom: 10px;
  display: block;
  font-size: 25px;
  color: #0f273d;
}

.hw__tl .hw-tl__item .hw-item__text {
  line-height: 1.5em;
  max-width: 100%;
  color: #0f273d;
}

@media screen and (max-width: 36rem) {
  section.hw-sec svg {
    display: none;
  }

  section.hw-sec .hw__tl {
    display: block;
  }
}

body.privacy-policy .priv-content h1,
body.privacy-policy .priv-content h2 {
  margin-top: 10px;
  margin-bottom: 20px;
  font-weight: 700;
}

body.privacy-policy .priv-content h1 {
  font-size: 2rem;
}

body.privacy-policy .priv-content h2 {
  font-size: 1.5rem;
}

body.privacy-policy .priv-content ul {
  margin: 1rem auto;
}

body.privacy-policy .priv-content ul li {
  list-style-type: disc;
  list-style-position: inside;
}

.react-flow__panel.react-flow__attribution.bottom.right {
  display: none;
}

.col-content ul li {
  list-style-type: disc;
  list-style-position: inside;
}

body:not(.page-loaded) .mega-menu-wrap .mega-sub-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

/* Force UL & OL list styling and spacing, H3 bold and size, and margins around p tags JM */

body.privacy-policy .priv-content ul li,
body.privacy-policy .priv-content ol li {
  list-style-type: disc;
  list-style-position: outside;
  margin-inline-start: 2em;
}

body.privacy-policy p {
  margin-block-start: 1em !important;
  margin-block-end: 1em !important;
}

body.privacy-policy .priv-content.priv-content h3 {
  font-weight: bold !important;
  font-size: 1.17em !important;
}

/* End fixing Tailwind interference*/
/* Lenders */
.lender-marquee .marquee-track {
  animation: lender-marquee-scroll var(--marquee-duration, 30s) linear infinite;
  will-change: transform;
}

/* Two identical groups, so -50% is exactly one group width */
@keyframes lender-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.lender-marquee[data-pause="true"]:hover .marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .lender-marquee .marquee-track {
    animation: none;
  }
}

/* End of Lenders */