/*
 Theme Name: Improvise For Real
 Author: Web Orchard
 Template: jupiterx
 Version: 0.0.0
*/

body:not(.admin-bar) {
  --wp-admin--admin-bar--height: 0px;
}

p:first-child:last-child {
  margin: 0;
}

.jupiterx-site {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height));

  > footer {
    margin-top: auto;
  }
}

.home-slider {
  .swiper-slide {
    /*height: auto !important;*/
    aspect-ratio: 3.3;
    height: 33vw !important;
  }

  .swiper-slide-contents {
    max-width: 1300px !important;
    margin: auto;
    flex: 1;
  }
  .elementor-button {
    padding: 0;

    &::after {
      font-family: 'FontAwesome', sans-serif;
      transform: translateY(-2px);
      display: inline-block;
      content: '\f054';
      margin-left: 1ch;
      font-size: 15px;
    }
  }

  .raven-slide-heading {
    font-size: clamp(16px, 2.7vw, 35px) !important;
    line-height: 1.4 !important;
  }
}

.text-slider {
  .swiper {
    width: 100% !important;
  }

  .elementor-swiper-button-prev {
    left: -1.5rem !important;
  }

  .elementor-swiper-button-next {
    right: -1.5rem !important;
  }
}

.product-carousel {
  --n: 3;
  --space: 2rem;
  scroll-snap-type: x mandatory;
  overflow-x: scroll !important;
  gap: var(--space) !important;

  > div {
    scroll-snap-align: start;
    flex: 0 0 calc(100% / var(--n) - (var(--n) - 1) * var(--space) / var(--n)) !important;
  }
}

.elementor-widget-raven-post-meta {
  ul {
    margin: 0 !important;
    gap: 1rem;
  }
  li {
    margin: 0 !important;
  }
  li + li::before {
    content: '/';
    margin-right: 1rem;
  }
}


@media (min-width: 1025px) {
  .jupiterx-site:has(.member-header) {
    --sidebar-width: 240px;

    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    position: relative;

    & > header {
      position: sticky;
      top: 0;
      align-self: start;
    }

    & > main {
      max-width: calc(100vw - var(--sidebar-width));
    }

    .member-header {
      height: 100vh;
    }

    & > footer {
      display: none;
    }
  }

  ._home-slider .swiper-slide-contents {
    max-width: calc(100vw - var(--sidebar-width)) !important;
  }

  .home-slider .swiper-slide {
    height: calc((100vw - var(--sidebar-width))*0.33) !important;
  }
}

.past-purchases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;

  img {
    aspect-ratio: 1.66875;
    height: auto;
    display: block;
    object-fit: cover;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .past-purchases {
    padding: 2rem;
    grid-template-columns: 1fr;
  }

  .jupiterx-site:has(.member-header) main {
    margin-top: 120px;
  }
}

@media (max-width: 767px) {
  .jupiterx-site:has(.member-header) main {
    margin-top: 83px;
  }
}

.woocommerce.woocommerce .woocommerce-MyAccount-navigation ul li.is-active {
  background-color: #497B55;
}

.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background-color: #497B55 !important;
}

.home-slider {
  .raven-slider .swiper-slide-inner {
    top: 40%;
    bottom: auto;
    transform: translateY(-50%);
  }
}


.member-header-mobile.member-header-mobile {
  z-index: 100;
  position: fixed;
  top: 0;
}

.member-footer-mobile.member-footer-mobile {
  position: fixed;
  bottom: 0;
}


#burger-popover {
  position: fixed;
  top: 72px;
  min-height: calc(100vh - 72px);
  right: 0;
  width: min(100vw, 300px);
}

.legacy-popover {
  min-height: calc(100vh - 72px) !important;
}

#burger-for-real {
  cursor: pointer;
}

#burger-popover:not(.hot) {
  transform: translateX(100%);
}

.hide-me-bro {
  display: none;
}

.woocommerce {
  display: grid;

  nav {
    width: auto !important;
    border-radius: 0 !important;

    ul {
      display: flex;

      li {
        flex: 1;
        text-align: center;
      }
    }

    br {
      display: none;
    }
  }

  .woocommerce-MyAccount-content {
    width: auto !important;
    background-color: #F7F6EC;
    padding: 2rem;
  }
}

.woocommerce-MyAccount-navigation li a {
  color: #074C00 !important;
}

.woocommerce-MyAccount-navigation li.is-active a {
  color: white !important;
}

.woocommerce-EditAccountForm {
  br {
    display: none;
  }

  #account_display_name_description {
    display: none;
  }

  legend {
    font-size: 1.25rem;
    margin-top: 4rem;
  }

  .woocommerce-Button {
    margin-top: 2rem !important;
  }
}

.woocommerce-info {
  border-top-color: #497B55;
}
.woocommerce-info::before {
  color: #497B55;
}

.woocommerce-error, .woocommerce-info, .woocommerce-message {
  background-color: #f1eedb;
}

#ifr-login .raven-field-type-password {
  position: relative;
  
  .toggler {
    font-family: 'FontAwesome';
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    cursor: pointer;
  }
}

#update_all_subscriptions_billing_contact_field {
  display: none;
}

#_fkwcs_stripe_smart_button_wrapper button.fkwcs_smart_checkout_button {
  background-color: #E7E6C7 !important;
  border-radius: 28px !important;
  border: 1px solid #497B55 !important;
}

#fkwcs_stripe_smart_button_wrapper button.fkwcs_smart_checkout_button, #gpay-button-online-api-id {
  background-color: #497B55 !important;
  border-radius: 28px !important;
}


.woocommerce-ResetPassword {
  button {
    padding: 16px 28px;
    border-radius: 80px;
  }

  #user_login {
    width: 100%;
  }
}

.woocommerce-form-row:has([name="account_display_name"]) {
  display: none !important;
}

.subscription_details td:has(.button) {
  display: flex;
  gap: 1rem;

  br {
    display: none;
  }
}

.wcs-switch-link {
  margin-left: 1rem !important;
}

.woocommerce-MyAccount-content h2 {
  font-size: 22px !important;
}

.woocommerce-MyAccount-content .woocommerce-customer-details {
  display: none;
}

main:has(#mepr-account-nav) {
  background-color: #F6F5E9;
}

.mp_wrapper + .mp_wrapper {
  padding: 3rem;
}

#mepr-account-nav {
  background-color: #426F4B;

  li > a {
    color: white !important;
    padding: 1rem 0.5rem !important;
    display: block;
  }

  li:first-child > a {
    padding-left: 1rem !important;
  }

  li:last-child > a {
    padding-right: 1rem !important;
  }
}

main:has(#mepr-account-nav) .mp_wrapper {
  max-width: 900px;
  margin: auto;
}

#mepr-account-nav {
  position: relative;

  &::after {
    position: absolute;
    top: 0;
    bottom: 0;
    content: '';
    width: 100vw;
    background-color: #426F4B;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
  }
}

#custom-forgot-password-form {
  input {
    width: 100%;
    margin-bottom: 2rem;
  }

  button {
    padding: 0.5rem 1rem;
  }
}

#mepr-account-welcome-message, #forgot-password-message {
  text-align: center;
  margin: 1rem;
  font-size: 16px;
}

#mepr-account-subscriptions-table tr {
  background-color: white;
}

#mepr-account-subscriptions-table tr {
  background-color: white;
}

.mepr-account-update::after {
  content:' Payment';
}

.mepr-account-cancel::after {
  content:' auto-renewal';
}

.mepr-account-update, .mepr-account-cancel {
  white-space: nowrap;
}

.mepr-submit  {
  padding: 16px 28px !important;
}


.page-id-50895 .mp_login_form {
  display: none;
}

.mepr-white-popup .mepr-btn {
  &, &:hover {
    background-color: #497B55;
  }
  border-radius: 5rem;
}

.mp-wrapper.mp-no-subs, .mepr-no-active-subscriptions {
  text-align: center;
  padding-top: 4rem;
}

.mp_wrapper .mepr-account-form .mepr-submit {
  cursor: pointer;

  &:hover {
    background-color: #074C00;
  }
}


.sub-content {
  font-size: 16px;
  line-height: 1.4;
  padding: 3rem;
  max-width: 900px;
  margin: auto;
}

#mepr-account-nav ul {
  justify-content: center;
}

.mepr-account-subscr-id {
  display: none;
}