/* Complete Your Ride Modal Styles */
.complete-your-ride-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background: rgba(0, 0, 0, 0.40);
  display: none;
}

.complete-your-ride-modal[open] {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.complete-your-ride-modal__content {
  max-width: 800px;
  max-height: 90vh;
  position: relative;
  background-color: #FFF;
  box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.10);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  display: flex;
  min-width: 91.46vw;
  max-width: 91.46vw;
  padding: 2.4rem 1.2rem 1.6rem 1.2rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;

  @media screen and (min-width: 750px) {
    min-width: 95.4rem;
    max-width: 95.4rem;
  }

  @media screen and (min-width: 990px) {
    padding: 3.2rem 4rem 1.6rem 4rem;
    gap: 2.4rem;
  }
}

.complete-your-ride-modal[open] .complete-your-ride-modal__content {
  overflow: hidden;

  swiper-carousel {
    width: 100%;
    
    .swiper-slide {
      display: flex;
      flex-direction: column;
    }

    .swiper {
      overflow: visible;
    }

    .swiper-wrapper {
      padding-bottom: 1.6rem;

      @media screen and (min-width: 990px) {
        padding-bottom: 0.8rem;
      }
    }

    .swiper-scrollbar {
      margin: 1.6rem 0;
      height: 0.2rem;
      background: var(--Slate, #E6E6E6);

      @media screen and (min-width: 990px) {
        margin: 2.4rem 0;
        height: 0.3rem;
      }
    }

    .swiper-scrollbar-drag {
      background: #000;
      height: 100%;
      display: block !important;
    }
  }

  .pd-card-product {
    .card__description, .product-badge, .pd-main-product__free-gift, .scarcity_indicator {
      display: none;
    }

    .product-form__error-message-wrapper {
      line-height: 1;
      margin: -1rem 0 1rem;
    }

    .product-form__error-message {
      font-size: 1.1rem;
      color: red;
    }

    .card {
      justify-content: space-between;

      .product-swatches {
        margin-top: 2rem;
      }

      .product-swatches__item {
        border: none !important;
      }
    }

    .card__badge {
      display: none;
    }

    .card__content {
      display: flex;
      flex-direction: column;
    }

    .card__media {
      max-width: 100%;
    }

    .card__information {
      margin-top: 1.2rem;
      margin-bottom: 2rem;
    }

    .card__heading {
      color: #000;
      font-family: var(--font-body-custom);
      font-size: 1.6rem;
      font-style: normal;
      font-weight: 700;
      line-height: 2rem;
      text-transform: uppercase;
    }

    .card-information {
      margin-top: 0.8rem;
    }

    variant-selects {
      margin-bottom: 2rem;
      display: flex;
      flex-direction: column;
      gap: 1.7rem;
    }

    .product-form__input--swatch {
      border: none;
      margin-left: 1rem;

      .form__label {
        margin-left: -1rem;
      }

      .swatch-input__label {
        width: 2.4rem;
        height: 2.4rem;
        margin-right: 1.6rem;
        margin-top: 1rem;

        .swatch {
          border: none !important;
        }
      }

      .swatch-input__label:only-of-type, .swatch-input__input:checked + .swatch-input__label, .input:checked + .swatch-input__label {
        position: relative;

        &::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: calc(100% + 6px);
          height: calc(100% + 6px);
          background-color: transparent;
          border: 1px solid #D9D9D9;
          top: -4px;
          left: -4px;
          border-radius: 50%;
        }
      }
    }

    .form__label {
      color: #000;
      text-box-trim: both;
      font-family: var(--font-body-custom);
      font-size: 1.2rem;
      font-style: normal;
      font-weight: 700;
      line-height: 2;
      text-transform: uppercase;

      span[data-selected-value] {
        font-weight: 400;
      }
    }

    .product-form__buttons {
      display: flex;
    }

    .product-form__input--dropdown {
      display: flex;
      display: flex;
      justify-content: space-between;
      align-items: center;
      align-self: stretch;
      position: relative;
      margin-bottom: 0 !important;

      .select {
        position: static !important;
      }

      .svg-wrapper {
        display: none !important;
      }


      .select::before, 
      .select::after {
        display: none !important;
      }

      select {
        border: none;
        position: static !important;
        min-height: unset;
        margin: 0 !important;
        height: auto !important;
        overflow: hidden;
        color: var(--000000, #000);
        text-overflow: ellipsis;
        font-family: var(--font-body-custom);
        font-size: 1.6rem;
        font-style: normal;
        font-weight: 400;
        line-height: 1.3;
        padding: 0.9rem 0.8rem 0.9rem 4.8rem !important;
        border: 1px solid var(--Slate, #E6E6E6);
        line-height: 1;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;      
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M4 6L8 10L12 6' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
        background-repeat: no-repeat;
        background-position: right 0.8rem center;
        background-size: 16px;
        
        @media screen and (min-width: 990px) {
          padding-top: 0.7rem !important;
          padding-bottom: 0.7rem !important;
        }
      }

      label {
        margin: 0 !important;
        padding-right: 4px !important;
        margin-right: 1rem !important;
        line-height: 1;
        position: absolute;
        left: 0.8rem;
      }

      label::after {
        content: ":";
        position: absolute;
        right: 0;
        top: 49%;
        transform: translateY(-50%);
        color: #000;
        font-family: var(--font-body-custom);
        font-size: 1.2rem;
        font-style: normal;
        font-weight: 700;
        line-height: 120%;
      }
    }

    .price-wrapper {
      margin-top: 0 !important;
    }

    .price--on-sale .price-item--regular {
        color: var(--Stone, #9F9F9F);
        font-family: var(--font-body-custom);
        font-size: 1.6rem;
        font-style: normal;
        font-weight: 700;
        line-height: 120%;
        text-decoration-line: line-through;
    }

    .price__regular .price-item--regular, .price--on-sale .price-item--sale {
      color: #000;
      font-family: var(--font-body-custom);
      font-size: 1.6rem;
      font-style: normal;
      font-weight: 400;
      line-height: 120%;
    }

    .quick-add {
      margin: 0 !important;
      margin-top: auto !important;
    }

    .quick-add__submit, .product-form__submit {
      border: 1px solid var(--000000, #000);
      background: #FFF;
      display: flex;
      padding: 0.9rem 2.4rem;
      justify-content: center;
      align-items: center;
      gap: 0.4rem;
      flex: 1 0 0;
      color: #000;

      &.added {
        background: #000;
        color: #FFF;

        .text-add-to-cart {
          color: #FFF;
        }
      }

      &[disabled] {
        border: 1px solid var(--Stone, #9F9F9F);
        background: #FFF;
        padding-left: unset !important;
        padding-right: unset !important;
        text-align: center;
        border-color: #9F9F9F !important;
        opacity: 1 !important;

        .icon--plus-add-to-cart, .icon-added-to-cart {
          display: none !important;
        }

        * {
          color: #9F9F9F !important;
        }

        &:hover {
          cursor: not-allowed;
          background: #FFF;
          color: #9F9F9F;
        }
      }

      span.text-add-to-cart, span.text {
        color: #000;
        font-family: var(--font-body-custom);
        font-size: 1.6rem;
        font-style: normal;
        font-weight: 700;
        line-height: 1.2;
        text-transform: uppercase;
      }

      svg {
        width: 1.6rem;
        height: 1.6rem;
        aspect-ratio: 1/1;
      }

      .icon-added-to-cart {
        margin-left: 0.6rem;
      }

      &:hover {
        cursor: pointer;
        background: #000;
        color: #FFF;
        
        span.text-add-to-cart {
          color: #FFF;
        }
      }
    }
  }
}

/* Correcting misplaced and missing braces */
.complete-your-ride-modal__header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.complete-your-ride-modal__header {
  max-width: 75rem;
}

/* Correcting CSS block structure thoroughly */
.complete-your-ride-modal__heading {
  font-family:var(--font-body-custom);
  font-weight: 700;
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: -0.072rem;
  line-height: 1.2;
  color: #000;

  @media screen and (min-width: 990px) {
    font-size: 3.2rem;
    letter-spacing: -0.096rem;
  }
}

.complete-your-ride-modal__subheading {
  font-family:var(--font-body-custom);
  font-size: 1.4rem;
  line-height: 1.2;
  margin-top: 1.6rem;
  color: #000;

  @media screen and (min-width: 990px) {
    font-size: 1.6rem;
  }

  * {
    color: #000;
  }
}

.complete-your-ride-modal__product {
  border: 1px solid #e6e6e6;
  padding: 0.8rem;
  overflow: hidden;
  height: 100%;

  @media screen and (min-width: 990px) {
    padding: 1.2rem;
  }
}

.complete-your-ride-modal__close-button {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  svg {
    width: 2.4rem;
    height: 2.4rem;
  }
}

/* Review and fix any remaining syntax issues */
.swiper-button-prev,
.swiper-button-next {
  background-color: transparent;
  width: 3.2rem;
  height: 3.2rem;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;

  &:after {
    display: none;
  }
  
  @media screen and (max-width: 749px) {
    display: none;
  }
  
  svg {
    width: 3.2rem;
    height: 3.2rem;
    aspect-ratio: 1/1;
  }
}

.swiper-button-next {
  right: 0;
  transform: translateX(50%);
}

.swiper-button-prev {
  left: 0;
  transform: translateX(-50%) rotate(180deg);
}

.swiper-scrollbar {
  background: #9f9f9f;
  height: 0.3rem;
}