/*---------------------------------------------
  General Overrides (commented out example)
----------------------------------------------*/
@media (max-width: 767.98px) {
  #dashboard_length {
    display: none !important;
  }
}

/*---------------------------------------------
  Confirmation Popup - Tablets and Below
----------------------------------------------*/
@media (max-width: 767px) {
  .jconfirm-box.jconfirm-hilight-shake.jconfirm-type-confirmation.jconfirm-type-animated {
    width: 400px !important;
    padding: 15px !important;
    border-radius: 15px !important;
  }

  .jconfirm-type-confirmation .jconfirm-content>div>div:first-child {
    font-size: 18px !important;
    text-align: center;
    word-break: break-word;
  }

  .jconfirm-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 50px !important;
    flex-wrap: wrap;
  }

  .jconfirm-type-confirmation .jconfirm-content div>div button {
    padding: 10px 15px !important;
    font-size: 14px !important;
    border-radius: 30px !important;
    min-width: 90px !important;
  }
}

/*---------------------------------------------
  Confirmation Popup - Small Mobile
----------------------------------------------*/
@media (max-width: 480px) {
  .jconfirm-box.jconfirm-hilight-shake.jconfirm-type-confirmation.jconfirm-type-animated {
    width: 90% !important;
  }

  .jconfirm-type-confirmation .jconfirm-content>div>div:first-child {
    font-size: 18px !important;
  }

  .jconfirm-type-confirmation .jconfirm-content div>div button {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
}

/*---------------------------------------------
  Sticky Bottom Button - Mobile Only
----------------------------------------------*/
@media screen and (max-width: 767px) {
  .sticky-btn {
    position: fixed;
    bottom: 0;
    background-color: #061525;
    width: 100%;
    left: 0;
    justify-content: center;
	  z-index: 0;
  }

  .sticky-btn .elementor-element.elementor-element-1799fc3,
  .sticky-btn a {
    width: 100%;
  }

  .core-value>.elementor-element {
    position: relative;
    height: 600px;
    justify-content: end;
  }

  div.content-area {
    padding: 40px 20px !important;
  }

  form#new-loan-application {
    width: 90vw;
    margin: 0 auto;
  }
}

/*---------------------------------------------
  Adjustments up to 1100px
----------------------------------------------*/
@media screen and (max-width: 1100px) {
  .interest-box {
    position: static !important;
  }

  .core-value>.elementor-element {
    position: relative !important;
    height: 600px !important;
    justify-content: end !important;
  }

  div.content-area {
    padding: 60px 20px;
  }

  form#new-loan-application {
    width: 80vw;
    margin: 0 auto;
  }
}

/*---------------------------------------------
  Eligibility Form - Tablet and Up
----------------------------------------------*/
@media screen and (min-width: 600px) {
  .acf-field-group-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 0px;
    padding: 16px;
    border-top: 1px solid #eaecf0;
  }

  .acf-field-group-row .acf-field {
    display: flex;
    column-gap: 20px;
    align-items: center;
  }

  #acf-post-wrapper>div.acf-field.acf-field-group.acf-field-6825c2e7bb6f3>div.acf-input>div>div:nth-child(1) {
    flex-direction: column;
    align-items: flex-start;
  }

  .acf-field.acf-field-select.acf-field-6825c46abb6f4,
  .acf-field.acf-field-number.acf-field-6825c55be80cd {
    display: block;
    width: 100%;
  }
}

/*---------------------------------------------
  Loan Table Text Styling - Medium Screens
----------------------------------------------*/
@media (min-width: 1024px) and (max-width: 1299px) {

  .loan-details-table td,
  .loan_calc td {
    padding: 7px 7px !important;
    color: black !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    line-height: 28px !important;
  }

  .layout-page h3,
  .layout-page h4,
  h5.card-title {
    font-family: 'Wix Madefor Display' !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    color: #061525 !important;
    line-height: 30px !important;
  }
}

/*---------------------------------------------
  Interest Box Adjustment - Desktop Narrow
----------------------------------------------*/
@media (min-width: 1101px) and (max-width: 1290px) {
  .interest-box {
    position: static !important;
  }
}

/*---------------------------------------------
  Mobile Sidebar
----------------------------------------------*/
@media (max-width: 991px) {
  .mobile-sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: #061525;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
  }

  .mobile-sidebar-wrapper.open {
    transform: translateX(0);
  }

  .mobile-menu-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 24px;
    background: none;
    color: #fff;
    border: none;
    z-index: 10000;
  }

  .mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
  }

  .mobile-sidebar-wrapper.open+.mobile-sidebar-overlay {
    display: block;
  }

  #layout-menu {
    width: 100%;
    padding: 0 10px;
  }

  .menu-inner {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .menu-item {
    border-bottom: 1px solid #1f2d3d;
  }

  .menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
  }

  .menu-link img {
    width: 20px;
    height: auto;
  }

  .menu-link i {
    font-size: 18px;
    color: #fff;
  }

  .menu-link span {
    flex: 1;
  }
}

/*---------------------------------------------
  Hide Mobile Sidebar Button - Desktop
----------------------------------------------*/
@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }

  .mobile-sidebar-wrapper {
    position: static;
    transform: none !important;
    height: auto;
    width: auto;
    overflow: visible;
  }

  .mobile-sidebar-overlay {
    display: none !important;
  }
}

@media screen and (min-width:1280px) {
  .elementor-sticky--effects .elementor-element.elementor-element-0161863.e-con-full.elementor-hidden-tablet_extra.elementor-hidden-tablet.elementor-hidden-mobile.e-flex.e-con.e-child {
    padding: 10px 50px;
    transition: 0.5s all ease;
    justify-content: center;
  }

  .elementor-sticky--effects .elementor-element.elementor-element-adedb31.e-con-full.e-flex.e-con.e-child {
    padding: 10px 30px;
    transition: 0.5s all ease;
  }


  .elementor-sticky--effects .elementor-element.elementor-element-d3f31fb.e-con-full.elementor-hidden-tablet.elementor-hidden-mobile.e-flex.e-con.e-child {
    padding: 10px 30px;
  }

  .elementor-sticky--effects button#profileBtn {
    font-size: 16px;
    padding: 5px 20px;
  }
}

@media (max-width: 991.98px) {
  .header_login {
    color: #fff !important;
  }
}

@media (max-width: 991.98px) {
  .custom-loan-form-wrapper {
    background: #F2F4F8 !important;
    width: 100% !important;
    margin: 0 auto;
  }

  .eligibility_dashboard_btn {
    /* margin: 20px; */
    text-align: end;
    width: 96vw;
  }
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }

  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
  .eligibility_dashboard_btn {
    width: 90vw;
  }
}

/* SIDEBAR */

@media (max-width: 1025px) {
  .hamburger-menu {
    display: block;
  }

  #layout-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background-color: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9998;
  }

  #layout-menu.active {
    transform: translateX(0);
  }
}

@media (min-width: 1025px) {
  #layout-menu {
    transform: translateX(0) !important;
    position: relative;
  }

  .hamburger-menu {
    display: none;
  }
}


@media (max-width: 767.98px) {
  .login-container>.row.w-100 {
    flex-direction: column !important;
  }

  .login-left {
    width: 100% !important;
  }

  .right-login {
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  #profileMenu {
    bottom: 100%;
    top: auto;
    margin-bottom: 10px;
    position: absolute;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 44px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border: unset;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    padding: 10px;

  }

  .profile-button-wrapper {
    position: relative;
  }

  button#profileBtn {
    width: 100%;
  }

  .profile_button,
  .profile-button-wrapper,
  button#profileBtn {
    width: 100%;
  }

  div#profileMenu {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .page-id-48 .jconfirm-buttons {
    margin-bottom: 10px !important;
  }
}

@media only screen and (max-width: 767px) {
  .eligible_reason {
    font-size: 13px !important;
  }
}
@media (max-width: 1024px) {
  .top-bar-btn {
    display: flex;
    justify-content: center;
  }
}