.sticky-fixed {
  position: fixed;
  left: 0;
  top: -100%;
  width: 100%;
  /*  min-height: 64px; */
  z-index: 9999;
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
  padding: 0;

  @media (max-width: 767px) {
    padding: 8px 0px;
  }

  div#stickynavbarNav {
    min-height: 64px;
  }

  ul.navbar-nav {
    align-self: stretch;
    padding-right: 70px;

    li.nav-item {
      @media (min-width: 991px) {
        display: flex;
        align-items: center;
      }
    }

    li.list-group-item {
      padding: 5px;
      border-radius: 5px !important;
      max-width: 60%;

      span.add,
      span.minus {
        right: 6px;
      }
    }
  }

  @media (max-width: 991px) {
    ul.navbar-nav {
      align-self: stretch;
      padding-right: 0;

      li.nav-item {
        @media (min-width: 991px) {
          display: flex;
          align-items: center;
        }
      }

      li.list-group-item {
        .accordion-header {
          padding: 3px;
          border-radius: 5px;

          &:hover {

            /*  background-color: #681e77;
             color: #fff; */
            & a {
              color: #fff !important;
            }
          }
        }

        border-radius: 5px !important;
        max-width: 60%;
        padding: 0px;

        span.add,
        span.minus {
          right: 6px;
        }
      }
    }
  }

  .cartbuttons {
    min-height: 64px;

    @media (min-width: 991px) {
      order: 3;
    }

    @media (max-width: 768px) {
      min-height: 45px;
    }
  }
}

.custom_mega_dropdown {
  padding: 0;
  background-color: #681e77 !important;
  /* Custom styling for the megamenu */


  @media (max-width: 991px) {
    padding: 8px 0px;
  }

  ul {
    li {
      .customToggleIcon {
        color: white;
        top: 8px;
        width: 100px;
        display: flex;
        justify-content: flex-end;
      }
    }
  }

  #navbarNav {
    @media (max-width:768px) {
      margin-top: 4px;
    }

    ul {
      &.navbar-nav {
        li.nav-item {
          a.custom-main-link {
            padding-right: 8px;
            @media (min-width:992px) {
              padding-left: 4px;
              padding-right: 4px;
              &.nav-link:before {
                content: "";
                position: absolute;
                bottom: 0;
                width: 100%;
                left: 0;
                height: 3px;
                background-color: white;
                border-radius: 5px;
                transform: translateX(-120%);
                transition: transform 0.2s ease-in-out;
              }
  
              &.nav-link:hover:before {
                transform: translateX(0px);
              }
            }
          }
        }
      }

      li {
        .customToggleIcon {
          color: white;
          top: 8px;
          width: 100px;
          display: flex;
          justify-content: flex-end;
        }

        a {
          overflow: hidden;
          position: relative;
          text-transform: capitalize;
          color: white;
          height: 100%;
          display: flex;
          gap: 5px;
          align-items: center;

          @media (max-width: 991px) {
            padding-top: 1px;
            padding-bottom: 1px;
          }
        }
      }
    }

    ul.dropdown-menu {
      padding-top: 25px;
      padding-bottom: 25px;

      @media (max-width: 991px) {
        border-radius: 4px !important;
      }

      &[data-bs-popper] {
        margin-top: 0;
      }
    }

    ul.navbar-nav {
      align-self: stretch;

      li.nav-item {
        display: flex;
        align-items: center;

        @media (max-width: 991px) {
          flex-direction: column;
          align-items: flex-start;
        }
      }

      li.list-group-item {
        padding: 5px;
        border-radius: 5px;
        max-width: 60%;

        @media (max-width: 991px) {
          padding: 0px;

          .accordion-header {
            padding: 5px;
            border-radius: 5px;

            &:hover {
              background-color: #681e77;
              color: #fff;
            }
          }
        }

        span.add,
        span.minus {
          right: 6px;
          top: 7px;
        }
      }
    }
  }

  .call_action {
    padding: 8px 0;
  }

  @media (max-width: 991px) {
    li.list-group-item {
      padding: 0px;
      border-radius: 5px !important;
      max-width: 100% !important;
    }

    li.nav-item {
      .dropdown-menu {
        padding-bottom: 0px !important;

        &.show {
          padding-bottom: 10px !important;
        }
      }

      .dropdown-menu.show,
      .dropdown-menu {
        border-radius: 4px !important;

        .row {

          *,
          ::after,
          ::before {
            box-sizing: unset !important;
          }
        }
      }
    }
  }
}

.sub-dropdown-link {
  font-weight: 500 !important;
  font-size: medium !important;
}

.sub-dropdown-link:hover {
  color: white !important;
}

#testMenuItems,
#stickyTestMenuItems,
#locationItems {
  li {
    list-style-type: none !important;

    a {
      color: var(--bs-list-group-color) !important;
    }

    @media (max-width: 991px) {
      .accordion-header {
        &:hover {
          & a {
            color: #fff !important;
          }
        }
      }
    }
  }

  li:hover a {
    @media (min-width: 990px) {
      color: white !important;
    }
  }

  li:hover a:hover {
    @media (max-width: 989px) {
      color: white !important;
    }
  }

  /*  li.accordion-item {
     @media (max-width:991px) {
       &:hover {
         a {
           color: var(--bs-list-group-color) !important;
         }
       }
     }
   } */
}

.mobile-service-link:hover {
  background-color: #681e77 !important;
}

.mobile-service-link a:hover {
  background-color: transparent;
  color: red !important;
}

.custom_mega_dropdown .dropdown-menu {
  width: 100%;
  left: 0;
  right: 0;
  top: 100%;
}

.custom_mega_dropdown .menu-content,
.custom_mega_dropdown .sticky-menu-content {
  display: none;

  @media (max-width: 991px) {
    padding: 5px;
  }
}

.sticky-acc-menu-content,
.menu-acc-content {
  @media (max-width: 991px) {
    padding: 5px;
  }
}

.custom_mega_dropdown .menu-content.active,
.custom_mega_dropdown .sticky-menu-content.active {
  display: block;
}

.menu-wrapper,
.sticky-menu-wrapper {
  img {
    border-radius: 10px;
  }

  p {
    font-size: 12px;
    font-weight: 300;
  }
}

@media (max-width: 991px) {

  .menu-wrapper,
  .sticky-menu-wrapper {
    padding-top: 0px;

    .row {
      overflow-x: hidden;
    }
  }
}

.mobile-service-link {
  @media (max-width:991px) {
    a.dropdown-item.sub-dropdown-link {
      padding-left: 5px;
      padding-right: 5px;
    }
  }
}

.custom_mega_dropdown .dropdown .dropdown-menu {
  max-height: 0;
  overflow: hidden;
  display: block;
  visibility: hidden;
  margin-top: 0px;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  transition: all 0.6s ease;
}

.custom_mega_dropdown .dropdown .dropdown-menu.show {
  max-height: 500px;
  padding-bottom: 10px !important;
  padding-top: 10px !important;
  visibility: visible;
  transition: all 0.6s ease;
  @media (max-width:991px) {
    padding-top: 8px !important;
  }
}

@media (min-width: 991px) {
  .custom_mega_dropdown .dropdown:hover .dropdown-menu {
    max-height: 1000px;
    visibility: visible;
    padding-bottom: 20px !important;
    padding-top: 20px !important;
    transition: all 0.6s ease;
  }
}

.custom_mega_dropdown .list-group-item:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

.custom_mega_dropdown .menu-wrapper,
.custom_mega_dropdown .sticky-menu-wrapper {
  border-left: 1px solid #ddd;
  padding-left: 20px;

  @media (max-width: 991px) {
    border: none;
  }
}

#testMenuItems,
#stickyTestMenuItems,
#locationItems {
  li {
    font-size: medium;
    font-weight: 500;
    border-radius: 0;
  }

  li {
    a.submit-button.view-all-static {
      color: #fff !important;

      &:hover {
        color: #681e77 !important;
      }
    }
  }

  li:hover {
    @media (min-width: 990px) {
      background-color: #681e77;
      color: #fff;
    }
  }

  li.accordion-item {
    @media (max-width: 991px) {
      &:hover {
        background-color: #fff;
        /*  color: initial; */
      }
    }
  }
}

/*  .call_button {
   width: 42px;
   height: 42px;
   background-color: #fe5e00;
   display: flex;
   justify-content: center;
   align-items: center;

   a {
     color: #fff;
   }
 } */

.cartbuttons {
  button {
    padding: 0;
  }

  a,
  .user-link {
    cursor: pointer;
    background-color: white;
    display: flex;
    justify-content: center;
    padding: 6px 6px;
    border-radius: 50%;

    i {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 10px;
    }
  }
}

.cartbuttons {
  .cart_button {
    position: relative !important;
  }
}

.cart_button {
  .cart_number {
    position: absolute;
    top: -10px;
    right: -12px;
    width: 20px;
    height: 20px;
    background-color: #fe5e00;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.navbar-toggler {
  border-color: transparent;
}

.navbar-toggler:focus {
  border-color: transparent;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  display: block;
}

.navbar-toggler-icon {
  background-image: none;
  color: white;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#cross-icon,
#sticky-cross-icon {
  display: none;
}

.toggle-active #bars-icon,
.toggle-active #sticky-bars-icon {
  display: none;
}

.toggle-active #cross-icon,
.toggle-active #sticky-cross-icon {
  display: inline-block;
}

button.navbar-toggler.collapsed i#sticky-cross-icon {
  display: none !important;
}

button.navbar-toggler i#sticky-bars-icon {
  display: none;
}

button.navbar-toggler.toggle-active i#sticky-bars-icon {
  display: none;
}

button.navbar-toggler i#sticky-bars-icon {
  display: inline-block;
}
.toggle-active.collapsed #cross-icon, .toggle-active.collapsed #sticky-cross-icon {
  display: none;
}
.toggle-active.collapsed #bars-icon, .toggle-active.collapsed #sticky-bars-icon{
  display: inline-block;
}
/*  .navbar-toggler:not(.toggle-active.collapsed) #bars-icon,.navbar-toggler:not(.toggle-active.collapsed) #sticky-bars-icon{
   display: none;
 } */
.cart-drawer {
  background: #f9f9f9;
  box-shadow: 1px 0px 8px rgba(0, 0, 0, 0.24);
  height: 100vh;
  --safe-area-inset-top: env(safe-area-inset-top);
  --safe-area-inset-bottom: env(safe-area-inset-bottom);
  height: calc(100% + (var(--safe-area-inset-top) + var(--safe-area-inset-bottom)));
  position: fixed;
  display: flex;
  right: 0;
  top: 0;
  transition: transform 300ms ease-in-out;
  width: 480px;
  z-index: 99999999999;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  transform: translateX(100%);
  overflow: scroll;

  @media (max-width: 480px) {
    width: 100%;
  }

  .cart-header {
    padding: 17px;
    border-bottom: 0.5px solid #681e77;

    .cart-icon {
      svg {
        width: 25px;
        height: 25px;
      }
    }

    .cart-title {
      h5 {
        font-size: 20px;
        font-family: "Lato", serif;
        margin-bottom: 0px;
        line-height: 1.5;
        font-weight: 600;
      }
    }

    .close-cart {
      border: 0.2px solid #681e77;
      width: fit-content;
      border-radius: 100px;
      display: flex;
      padding: 5px;
      cursor: pointer;
      background-color: #fff;

      svg {
        width: 20px;
        height: 20px;
      }
    }
  }

  .cart-footer {
    border-top: 0.2px solid #681e77;
    gap: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 12px 20px 12px;
    justify-content: space-between;

    .footer-details {
      span.detail-title {
        font-family: "Lato", serif;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.5;

        @media (max-width: 640px) {
          font-size: 14px;
        }
      }

      span.details-price {
        font-family: "Lato", serif;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.5;
        color: #681e77;

        @media (max-width: 640px) {
          font-size: 14px;
        }
      }
    }

    .footer-form {
      form {
        max-width: 375px;
        margin: auto;

        em#cart_clinic-error {
          color: #e1020280;
          margin-bottom: 10px !important;
          display: block;
          text-align: left;
          padding-left: 10px;
          font-size: 12px;
          font-family: "Lato", serif;
          font-weight: 600;
          text-transform: capitalize;

          @media (max-width: 640px) {
            font-size: 10px;
          }
        }

        select.form-select {
          border: 0.5px solid #681e77;
          font-family: "Lato", serif;
          font-size: 15px;
          font-weight: 600;
          line-height: 1.5;
          color: #00000080;
          padding: 7px;

          @media (max-width: 640px) {
            font-size: 14px;
          }

          &[aria-invalid="true"] {
            margin-bottom: 6px !important;
          }
        }

        .referal_form,
        .promo_form {
          position: relative;

          button {
            position: absolute;
            right: 8px;
            top: 50%;
            width: 29px;
            height: 29px;
            background-color: #681e77;
            border-radius: 50%;
            border: none;
            display: flex;
            transform: translateY(-50%);
            justify-content: center;
            align-items: center;
            color: #fff;
          }
        }

        input#referal_code,
        input#promo_code {
          border: 0.5px solid #681e77;
          font-family: "Lato", serif;
          font-size: 15px;
          font-weight: 600;
          line-height: 1.5;
          color: #00000080 !important;
          padding: 7px 40px 7px 7px;

          @media (max-width: 640px) {
            font-size: 14px;
          }

          &::placeholder {
            color: #00000080 !important;
          }
        }

        .form-group {
          text-align: center;

          button.submit-button,
          a.btn.submit-button {
            line-height: 1.5;
            width: 250px;
            margin: auto;
            background-color: #681e77;
            box-shadow: none;
            padding: 9px 24px;
            color: white;
            text-align: center;
            font-family: "Lato", serif;
            font-size: 18px;
            width: 263px;
            font-style: normal;
            font-weight: 700;
            border-radius: 5px;
            border: 1px solid rgba(0, 0, 0, 0.25) !important;
            transition: all 0.3s;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;

            @media (max-width: 640px) {
              font-size: 14px;
            }

            &:hover {
              background-color: white;
              color: #681e77;
              border: 1px solid rgba(0, 0, 0, 0.25);
            }
          }
        }
      }
    }
  }

  .cart-items {
    flex-basis: 45%;
    overflow: auto;

    &::-webkit-scrollbar-track {
      /*  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); */
      border-radius: 10px;
      background-color: transparent;
    }

    &::-webkit-scrollbar {
      width: 6px;
      background-color: transparent;
    }

    &::-webkit-scrollbar-thumb {
      border-radius: 10px;
      /*  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); */
      background-color: #681e77;
    }

    .line-item {
      position: relative;
      padding: 20px 14px;
      border-bottom: 0.2px solid #681e77;

      .line-amount {
        span {
          font-family: "Lato", serif;
          font-size: 15px;
          font-weight: 600;
          line-height: 1.5;
          white-space: nowrap;
          color: #681e77;

          @media (max-width: 767px) {
            font-size: 14px;
          }
        }

        span.label {
          font-size: 13px;
          display: block;
          font-weight: 600;
          line-height: 1.5;
          color: #00000080;
          margin-bottom: 3px;

          @media (max-width: 767px) {
            font-size: 10px;
          }
        }
      }

      .line-remove-icon {
        position: absolute;
        top: 0px;
        color: #681e77;
        display: flex;
        right: 0px;
        padding: 5px 15px 0 0;

        &::before {
          color: #681e78;
        }

        @media (min-width: 768px) {
          padding: 15px 15px 0 0;
        }
      }

      .line-image {
        img {
          border-radius: 5px;
        }
      }

      .line-details {
        flex: 1;

        span.category {
          font-family: "Lato", serif;
          font-size: 13px;
          font-weight: 600;
          line-height: 1.5;
          color: #00000080;
          margin-bottom: 3px;

          @media (max-width: 767px) {
            font-size: 10px;
          }
        }

        .title {
          font-family: "Lato", serif;
          font-size: 14px;
          font-weight: 600;
          line-height: 1.4;
          text-align: left;

          @media (max-width: 767px) {
            font-size: 12px;
          }
        }

        .mobile-quantity {
          display: none !important;

          @media (max-width: 767px) {
            margin-top: 10px;
            display: flex !important;
            justify-content: space-between;
            align-items: center;
          }
        }
      }

      .quantity-price {
        @media (max-width: 767px) {
          display: none !important;
        }
      }

      .quantity-form {
        .form-group {
          /*  gap: 5px; */
          border: 1px solid #681e77;
          border-radius: 2px;

          .minus-icon,
          .plus-icon {
            cursor: pointer;
            display: flex;
            color: #681e78;
            align-items: center;
            padding: 1px 6px;

            &::before {
              color: #681e78;
            }
          }

          svg {
            @media (max-width: 767px) {
              width: 18px;
              height: 18px;
            }
          }

          input.quantity {
            width: 30px;
            padding: 0px;
            -moz-appearance: textfield;
            font-size: 16px;
            text-align: center;
            height: 30px;
            font-weight: 600;
            border-radius: 0px;
            border: none;
            background-color: #f9f9f9;

            @media (max-width: 767px) {
              font-size: 12px;
              width: 25px;
              height: 25px;
            }

            &::-webkit-outer-spin-button,
            &::-webkit-inner-spin-button {
              -webkit-appearance: none;
              margin: 0;
            }
          }
        }
      }

      .line-price {
        display: flex;
        align-items: flex-end;
        flex: 1;
        justify-content: flex-end;

        span {
          font-family: "Lato", serif;
          font-size: 15px;
          font-weight: 600;
          line-height: 1.5;
          color: #681e77;

          &#amount {
            margin-left: 3px;
          }

          @media (max-width: 767px) {
            font-size: 14px;
          }
        }
      }
    }
  }

  .empty-cart-section {
    display: none;
  }

  &.empty-cart {
    .empty-cart-section {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      gap: 20px;

      .empty-block-image {
        img {
          width: 200px;
        }
      }

      .empty-cart-message {
        h4 {
          font-family: "Lato", serif;
          font-size: 22px;
          font-weight: 500;
          line-height: 1.5;
          text-align: center;
          margin-bottom: 0;
        }
      }
    }
  }
}

.cart-overlay {
  background: #681e77;
  bottom: 0;
  height: 100vh;
  left: 0;
  opacity: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 250ms, visibility 0s;
  visibility: hidden;
  width: 100vw;
  z-index: 9998;
}

body.show-drawer {
  .cart-drawer {
    transform: translateX(0%);
  }

  .cart-overlay {
    opacity: 0.4;
    visibility: visible;
  }
}

li.accordion-item.list-group-item[aria-expanded="true"] span.add.d-inline-block.d-lg-none {
  display: none !important;
}

#cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent black */
  display: none;
  /* Initially hidden */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  /* Above other content */
}

#cart-overlay .spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #681e77;
  border-radius: 50%;
  animation: cartspin 1s linear infinite;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  bottom: 0;
}

@keyframes cartspin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#cart_message,
#cart_page_message {
  display: none;
  display: block;
  text-align: center;
  font-weight: bold;
  padding: 5px;
  color: #681e77;
}