/*
 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
  }

  .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;
    }
  }
}

.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: 768px) {
  .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;
    }

    .member-header {
      min-height: 100vh;
    }

    & > footer {
      display: none;
    }
  }
}

.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: 767px) {
  .past-purchases {
    padding: 2rem;
    grid-template-columns: 1fr;
  }
}

.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 - 92px);
  left: 60px;
}

.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;
  }
}