@use '../../raaghu-react-themes/tokens/breakpoints' as bp;

.rds-comp-product-tour {
  &__container {
    background: var(--rds-background-paper);
    box-shadow: 0 4px 32px 0 var(--rds-product-tour-shadow, rgba(162, 89, 255, 0.18));
    border-radius: var(--rds-border-radius-xl);
    margin: var(--rds-spacing-xl) auto;
    width: 100%;
    max-width: var(--rds-product-tour-max-width, 550px);
    position: relative;
    overflow: visible;
    padding: 0;
    border: none;

    &--image {
      display: flex;
      flex-direction: column;
    }

    &--carousel {
  width: 100%;
  width: 100%;
  max-width: var(--rds-carousel-max-width, 520px);
  height: auto;
  margin: var(--rds-spacing-lg) auto;
  padding: calc(var(--rds-spacing-xl) - var(--rds-spacing-xs)) calc(var(--rds-spacing-xl) - var(--rds-spacing-xs)) var(--rds-spacing-lg) calc(var(--rds-spacing-xl) - var(--rds-spacing-xs));
  overflow: visible;
    }

    &--animation {
      padding: calc(var(--rds-spacing-xl) - var(--rds-spacing-xs)) calc(var(--rds-spacing-2xl) - var(--rds-spacing-md));
      border: 1px solid var(--rds-border-light);
      display: flex;
      align-items: center;
      flex-direction: column;
      box-sizing: border-box;
    }

    &--form {
      padding: var(--rds-spacing-md) calc(var(--rds-spacing-sm) + var(--rds-spacing-xs));
      max-width: 700px;
      margin-top: var(--rds-spacing-md);
      height: auto;
      min-height: unset;
      width: 100%;
      box-sizing: border-box;
      overflow: visible;
      container-type: inline-size;
      container-name: product-tour-form;
    }
  }

  &__corner-dot {
    position: absolute;
    width: var(--rds-spacing-md);
    height: var(--rds-spacing-md);
    background: var(--rds-primary-main);
    border-radius: var(--rds-border-radius-pill);
    box-shadow: 0 0 0 var(--rds-spacing-sm) var(--rds-product-tour-dot-shadow, rgba(135, 46, 252, 0.15));
    z-index: var(--rds-z-index-local-50);

    &--top-left {
      left: -8px;
      top: -8px;
    }

    &--top-right {
      right: -8px;
      top: -8px;
    }

    &--bottom-left {
      left: -8px;
      bottom: -8px;
    }

    &--bottom-right {
      right: -8px;
      bottom: -8px;
    }
  }

  &__close-btn {
    position: absolute;
    top: var(--rds-spacing-sm);
    right: var(--rds-spacing-md);
    background: none;
    border: none;
    padding: 0;
    z-index: var(--rds-z-index-raised);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    svg {
      display: block;
      width: var(--rds-spacing-xl);
      height: var(--rds-spacing-xl);
    }
  }

  &__image-section {
    width: 100%;
    height: var(--rds-product-tour-image-height, 260px);
    margin: 0;
    border-radius: var(--rds-border-radius-md) var(--rds-border-radius-md) 0 0;
    overflow: hidden;
    background: var(--rds-background-surface);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  &__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--rds-border-radius-md) var(--rds-border-radius-md) 0 0;
    display: block;
  }

  &__info-nav-section {
    width: 100%;
    min-height: 137.74px;
    background: var(--rds-background-paper);
    border-radius: 0 0 var(--rds-border-radius-md) var(--rds-border-radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--rds-spacing-md) + var(--rds-spacing-xs)) var(--rds-spacing-xl) calc(var(--rds-spacing-md) + var(--rds-spacing-xs)) var(--rds-spacing-xl);
  }

  &__info {
    padding: 0 0 var(--rds-spacing-sm) 0;
  }

  &__title {
    font-size: var(--rds-font-size-2xl) !important;
    font-weight: 400 !important;
    color: var(--rds-text-primary) !important;
    margin-bottom: var(--rds-spacing-md) !important;
    text-align: left;
  }

  &__desc {
    color: var(--rds-text-secondary) !important;
    font-size: var(--rds-font-size-lg) !important;
  }

  &__navigation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 calc(var(--rds-spacing-md) + var(--rds-spacing-xs)) 0;
    gap: var(--rds-spacing-sm);
  }

  &__stepcount {
    font-size: var(--rds-font-size-md) !important;
    font-weight: 500 !important;
    color: var(--rds-text-primary) !important;
  }

  &__skip {
    color: var(--rds-primary-main) !important;
    font-size: var(--rds-font-size-md) !important;
    font-weight: 500 !important;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: auto !important;
    margin-right: var(--rds-spacing-2xl) !important;
  }

  &__arrows {
    display: flex;
    align-items: center;
    gap: var(--rds-spacing-lg);
  }

    &__arrow {
    border: 0.5px solid var(--rds-primary-main);
    background: var(--rds-background-paper);
    width: var(--rds-spacing-xl);
    height: var(--rds-spacing-xl);
    border-radius: var(--rds-border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, color 0.2s, border 0.2s;

    &--prev {
      color: var(--rds-primary-main);
      box-shadow: none;
    }

    &--next {
      background: var(--rds-primary-main);
      color: var(--rds-neutral-0);
      border: none;
    }

    svg {
      width: var(--rds-spacing-md);
      height: var(--rds-spacing-md);
      fill: none;
      display: block;
      margin: auto;
      stroke-width: 1.5;
    }
  }

  &__carousel-header {
    margin-bottom: var(--rds-spacing-md);
    text-align: left;
  }

  &__carousel-title {
    font-size: var(--rds-font-size-2xl) !important;
    font-weight: 400 !important;
    color: var(--rds-text-primary) !important;
    margin-bottom: var(--rds-spacing-sm) !important;
    text-align: left;
  }

  &__carousel-desc {
    color: var(--rds-text-secondary) !important;
    font-size: var(--rds-font-size-lg) !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
  }

  &__carousel-wrapper {
    width: 100%;
      height: var(--rds-carousel-height, 300px);
    border-radius: var(--rds-border-radius-md);
    overflow: hidden;
    margin-bottom: 0;

    .rds-carousel {
      width: 100% !important;
      height: 100% !important;
      border-radius: var(--rds-border-radius-md) !important;
    }

    .rds-carousel__slide {
      border-radius: var(--rds-border-radius-md) !important;
    }

    .rds-carousel__slide img {
      border-radius: var(--rds-border-radius-md) !important;
    }
  }

  &__carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--rds-spacing-sm);
    margin-top: var(--rds-spacing-md);
    margin-bottom: 0;
  }

  &__carousel-dot {
    width: var(--rds-spacing-sm);
    height: var(--rds-spacing-sm);
    border-radius: var(--rds-border-radius-pill);
    background-color: var(--rds-carousel-dot-bg, rgba(124, 58, 237, 0.3));
    transition: background-color 0.2s ease;

    &--active {
      background-color: var(--rds-primary-main);
    }
  }

  &__carousel-spacer {
    height: var(--rds-spacing-md);
  }

  &__carousel-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0;
    padding: 0 var(--rds-spacing-compact);
  }

  &__carousel-stepcount {
    font-size: var(--rds-font-size-md) !important;
    font-weight: 500 !important;
    color: var(--rds-text-primary) !important;
  }

  &__carousel-nav-group {
    display: flex;
    align-items: center;
    gap: var(--rds-spacing-lg);
  }

  &__carousel-skip {
    color: var(--rds-primary-main) !important;
    font-size: var(--rds-font-size-md) !important;
    font-weight: 500 !important;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: auto !important;
    font-family: var(--rds-font-family-base);
  }

  &__carousel-arrows {
    display: flex;
    align-items: center;
    gap: var(--rds-spacing-lg);
    flex-shrink: 0;
    overflow: visible;
  }

  &__carousel-arrow-prev,
  &__carousel-arrow-next {
    border: 1px solid var(--rds-primary-main);
    background: var(--rds-background-paper);
    width: var(--rds-spacing-xl);
    height: var(--rds-spacing-xl);
    min-width: var(--rds-spacing-xl);
    min-height: var(--rds-spacing-xl);
    border-radius: var(--rds-border-radius-sm);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;

    svg {
      width: var(--rds-spacing-md);
      height: var(--rds-spacing-md);
      fill: none;
      display: block;
      margin: auto;
      stroke-width: 1.5;
      flex-shrink: 0;
    }
  }

  &__carousel-arrow-prev {
    color: var(--rds-primary-main);
    box-shadow: none;
  }

  &__carousel-arrow-next {
    background: var(--rds-primary-main);
    color: var(--rds-neutral-0);
    border-color: var(--rds-primary-main);
  }

  &__animation-section {
    display: flex;
    justify-content: center;
    margin-bottom: var(--rds-spacing-lg);
    width: 100%;
    flex-shrink: 0;

    img, 
    .rds-comp-product-tour__gif {
      max-width: 280px;
      max-height: 280px;
      width: 100%;
      height: auto;
      display: block;
        margin: 0 auto var(--rds-spacing-lg) auto;
    }
  }

  &__animation-info {
    text-align: left;
    padding: 0;
    margin-bottom: var(--rds-spacing-lg);
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
  }

  &__animation-title {
    font-size: var(--rds-font-size-2xl) !important;
    font-weight: 400 !important;
    color: var(--rds-text-primary) !important;
    margin-bottom: var(--rds-spacing-md) !important;
    text-align: left;
  }

  &__animation-desc {
    color: var(--rds-text-secondary) !important;
    font-size: var(--rds-font-size-lg) !important;
  }

  &__animation-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-top: auto;
  }

  &__animation-stepcount {
    font-size: var(--rds-font-size-md) !important;
    font-weight: 500 !important;
    color: var(--rds-text-primary) !important;
  }

  &__animation-controls {
    display: flex;
    align-items: center;
    gap: calc(var(--rds-spacing-2xl) - var(--rds-spacing-xs));
  }

  &__animation-skip {
    color: var(--rds-primary-main) !important;
    font-size: var(--rds-font-size-md) !important;
    font-weight: 500 !important;
    cursor: pointer;
  }

  &__animation-nav-buttons {
    display: flex;
    align-items: center;
    gap: var(--rds-spacing-lg);
  }

  &__animation-nav-prev,
  &__animation-nav-next {
    border: 0.5px solid var(--rds-primary-main);
    background: var(--rds-background-paper);
    width: var(--rds-spacing-xl);
    height: var(--rds-spacing-xl);
    border-radius: var(--rds-border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;

    svg {
      width: var(--rds-spacing-md);
      height: var(--rds-spacing-md);
      fill: none;
      display: block;
      margin: auto;
      stroke-width: 1.5;
    }
  }

  &__animation-nav-prev {
    color: var(--rds-primary-main);
    box-shadow: none;
  }

  &__animation-nav-next {
    background: var(--rds-primary-main);
    color: var(--rds-neutral-0);
    border: none;
  }

  &__form-header {
    margin-bottom: var(--rds-spacing-sm);
  }

  &__form-subtitle {
    font-size: var(--rds-font-size-xl) !important;
    font-weight: 500 !important;
    color: var(--rds-text-primary) !important;
    margin: 0 !important;
  }

  &__form-content {
    margin-top: var(--rds-spacing-cozy);
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  &__form-title-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--rds-spacing-sm);
  }

  &__form-title {
    font-size: var(--rds-font-size-2xl) !important;
    font-weight: 400 !important;
    color: var(--rds-text-primary) !important;
    margin-bottom: 0 !important;
    text-align: left;
  }

  &__form-description {
    color: var(--rds-text-secondary) !important;
    margin-bottom: var(--rds-spacing-sm) !important;
  }

  &__form-tabs-wrapper {
    position: relative;
    margin-bottom: var(--rds-spacing-sm);
  }

  &__form-tabs {
    display: flex;
    margin-bottom: var(--rds-spacing-sm);
    margin-left: var(--rds-spacing-neg-5);
  }

  &__form-tabs-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background-color: var(--rds-border-default);
    width: 306px;
  }

  &__form-tab {
    margin-right: var(--rds-spacing-neg-5);
    padding: calc(var(--rds-spacing-xs) + 1px) calc(var(--rds-spacing-sm) + var(--rds-spacing-xs));
    cursor: pointer;
    max-width: none;
    min-width: auto;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
    flex: 0 0 auto; 
    transition: all 0.3s ease;
    border-radius: 3px;
    position: relative;

    &:hover {
      background-color: var(--rds-primary-light);
      color: var(--rds-text-primary) !important;
      transform: translateY(-1px);
    }
  }

  &__form-input-row {
    margin-bottom: var(--rds-spacing-cozy);
    display: flex;
    align-items: center;
    gap: calc(var(--rds-spacing-sm) + var(--rds-spacing-xs));
    position: relative;
    top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    .rds-button {
      border-color: var(--rds-primary-main) !important;
      color: var(--rds-primary-main) !important;
      background-color: transparent !important;
      min-width: 90px !important;
      width: 90px !important;
      height: 38px !important;
      text-transform: none !important; 

      &:hover {
        background-color: var(--rds-primary-main) !important;
        color: var(--rds-neutral-0) !important;
      }
    }
  }

  &__form-input-container {
    flex: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;

    .rds-select {
      .MuiOutlinedInput-root {
        .MuiOutlinedInput-notchedOutline {
          border-color: var(--rds-border-light) !important;
          border-width: 1px !important;
        }
      }
    }

    .rds-autocomplete__textfield {
      & input::placeholder {
        font-size: var(--rds-font-size-md);
        color: var(--rds-text-secondary);
        opacity: 1;
      }
    
      & input::-webkit-input-placeholder {
        font-size: var(--rds-font-size-md);
        color: var(--rds-text-secondary);
      }
    
      & input::-moz-placeholder {
        font-size: var(--rds-font-size-md);
        color: var(--rds-text-secondary);
      }
     
      & input:-ms-input-placeholder {
        font-size: var(--rds-font-size-md);
        color: var(--rds-text-secondary);
      }
    }
    
    .rds-input,
    textarea,
    .MuiInputBase-root {
      & input::placeholder,
      & textarea::placeholder {
        font-size: var(--rds-font-size-md);
        color: var(--rds-text-secondary);
        opacity: 1;
      }

      & input::-webkit-input-placeholder,
      & textarea::-webkit-input-placeholder {
        font-size: var(--rds-font-size-md);
        color: var(--rds-text-secondary);
      }

      & input::-moz-placeholder,
      & textarea::-moz-placeholder {
        font-size: var(--rds-font-size-md);
        color: var(--rds-text-secondary);
      }

      & input:-ms-input-placeholder,
      & textarea:-ms-input-placeholder {
        font-size: var(--rds-font-size-md);
        color: var(--rds-text-secondary);
      }
    }
  }

  &__form-input-row--group {
    display: flex;
    align-items: center;
    gap: calc(var(--rds-spacing-sm) + var(--rds-spacing-xs));
    width: 100%;
    box-sizing: border-box;
  }

  .rds-comp-product-tour__form-action-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .rds-comp-product-tour__form-action-btn .rds-button,
  .rds-comp-product-tour__form-action-btn .MuiButton-root {
    min-width: 90px !important; 
    width: 90px !important; 
    height: 36px !important;
    padding: calc(var(--rds-spacing-sm) - var(--rds-spacing-xs)) calc(var(--rds-spacing-md) - var(--rds-spacing-xs)) !important;
    box-sizing: border-box !important;
    text-transform: none !important; 
  }

  &__form-button-right {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--rds-spacing-sm);
    margin-top: 0;

      .rds-button {
      border-color: var(--rds-primary-main) !important;
      color: var(--rds-primary-main) !important;
      background-color: transparent !important;
      text-transform: none !important;

      &:hover {
        background-color: var(--rds-primary-main) !important;
        color: var(--rds-neutral-0) !important;
      }
    }

    .rds-comp-product-tour__form-action-btn .rds-button,
    .rds-comp-product-tour__form-action-btn .MuiButton-root {
      min-width: 90px !important;
      width: 90px !important;
      height: 36px !important;
      padding: calc(var(--rds-spacing-sm) - var(--rds-spacing-xs)) calc(var(--rds-spacing-md) - var(--rds-spacing-xs)) !important;
      box-sizing: border-box !important;
      text-transform: none !important; 
    }
  }

  &__form-textarea-container {
    margin-bottom: var(--rds-spacing-sm);
    position: relative;
    top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  &__file-upload-container {
    margin-top: var(--rds-spacing-neg-20);
    margin-bottom: var(--rds-spacing-cozy);
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    
    &-wrapper {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow: visible;
      
      > * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }
    }
    
    .rds-file-uploader {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rds-file-uploader__standard {
      width: 100% !important;
      margin-bottom: 0;
    }

    .rds-file-uploader__hint-row {
      margin-left: 0 !important;
      width: 100%;
      box-sizing: border-box;
      overflow: visible;
    }

    .rds-file-uploader__hint {
      overflow: visible;
      text-overflow: unset;
      white-space: nowrap;
      flex-shrink: 0;
    }
    
    .rds-file-uploader__container {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
    
    .rds-file-uploader__drop-zone {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      padding: var(--rds-spacing-md) !important;
      border: 2px dashed var(--rds-border-default) !important;
      border-radius: var(--rds-border-radius-md) !important;
    }

    .rds-file-uploader__content {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    .rds-file-uploader__button {
      max-width: fit-content !important;
      background-color: var(--rds-primary-main) !important;
      border-color: var(--rds-primary-main) !important;
      color: var(--rds-neutral-0) !important;
      text-transform: none !important;

    }

    .rds-file-uploader__choose-btn {
      background-color: var(--rds-primary-main) !important;
      border-color: var(--rds-primary-main) !important;
      color: var(--rds-neutral-0) !important;
      text-transform: none !important;
    }
    .rds-file-uploader__choose-btn:hover {
      background-color: var(--rds-primary-main) !important; 
      border-color: var(--rds-primary-main) !important;
      color: var(--rds-neutral-0) !important;
    }

    .rds-file-uploader__drop-zone .MuiButton-root,
    .rds-file-uploader__drop-zone button {
      background-color: var(--rds-primary-main) !important;
      border-color: var(--rds-primary-main) !important;
      color: var(--rds-neutral-0) !important;
      text-transform: none !important;
    }

    .rds-file-uploader__text {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      text-align: left !important;
    }
  }

  &__form-navigation {
    margin-top: var(--rds-spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  &__form-stepcount {
    font-size: var(--rds-font-size-md, 15px) !important;
    font-weight: 500 !important;
    color: var(--rds-text-primary) !important;
  }

  &__form-navigation-actions {
    display: flex;
    align-items: center;
    gap: var(--rds-spacing-lg);
  }

    &__form-skip {
    font-size: var(--rds-font-size-md, 15px) !important;
    margin-right: var(--rds-spacing-md);
    color: var(--rds-primary-main) !important;
    font-weight: 500 !important;
    cursor: pointer;
  }

  &__form-arrows {
    display: flex;
    align-items: center;
    gap: var(--rds-spacing-lg);
  }

  &__form-arrow-prev,
  &__form-arrow-next {
    border: 0.5px solid var(--rds-primary-main);
    background: var(--rds-neutral-0);
    width: var(--rds-spacing-xl);
    height: var(--rds-spacing-xl);
    border-radius: var(--rds-border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;

    svg {
      width: var(--rds-icon-button-lg-svg-size, 18px);
      height: var(--rds-icon-button-lg-svg-size, 18px);
      fill: none;
      display: block;
      margin: auto;
      stroke-width: 1.5;
    }
  }

  &__form-arrow-prev {
    color: var(--rds-primary-main);
    box-shadow: none;
  }

  &__form-arrow-next {
    background: var(--rds-primary-main);
    color: var(--rds-neutral-0);
    border: none;
  }
}

.rds-comp-product-tour__container--carousel {
  .rds-comp-product-tour__close-btn {
    top: 6px;
    right: 12px;
    z-index: var(--rds-z-index-local-15);
  }

  .rds-carousel__slide img {
    border-radius: var(--rds-border-radius-md) !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .rds-carousel__slide {
    border-radius: var(--rds-border-radius-md) !important;
    overflow: hidden !important;
  }

  .rds-carousel {
    border-radius: var(--rds-border-radius-md) !important;
    overflow: hidden !important;
  }
}

@include bp.down(420) {
  .rds-comp-product-tour__container--image {
    .rds-comp-product-tour__close-btn {
      top: 0px; 
      right: 0px; 
    }
  }
}

@include bp.down(420) {
  .rds-comp-product-tour__container--carousel {
    padding: var(--rds-spacing-md) calc(var(--rds-spacing-md) - var(--rds-spacing-xs)) calc(var(--rds-spacing-sm) + var(--rds-spacing-xs)) calc(var(--rds-spacing-md) - var(--rds-spacing-xs)); 
    margin: calc(var(--rds-spacing-md) - var(--rds-spacing-xs)) auto;
    max-width: 100%;
    width: 100%;
    overflow: visible;

    .rds-comp-product-tour__carousel-header {
      margin-bottom: var(--rds-spacing-cozy);
    }

    .rds-comp-product-tour__carousel-title {
      font-size: var(--rds-font-size-lg) !important;
      margin-bottom: var(--rds-spacing-9-px) !important;
    }

    .rds-comp-product-tour__carousel-desc {
      font-size: var(--rds-font-size-md) !important;
      line-height: 1.3 !important;
      margin-bottom: var(--rds-spacing-cozy) !important;
    }

    .rds-comp-product-tour__carousel-wrapper {
      height: var(--rds-carousel-mobile-height, 280px); 
      border-radius: var(--rds-border-radius-sm);
      margin-bottom: var(--rds-spacing-sm);
      overflow: hidden;
    }

    .rds-carousel {
      height: 100% !important;
    }

    .rds-comp-product-tour__carousel-dots {
      margin-top: var(--rds-spacing-sm);
      gap: calc(var(--rds-spacing-sm) - var(--rds-spacing-xs));
    }

    .rds-comp-product-tour__carousel-dot {
      width: var(--rds-carousel-dot-size, 6px);
      height: var(--rds-carousel-dot-size, 6px);
    }

    .rds-comp-product-tour__carousel-nav-row,
    .rds-comp-product-tour__carousel-spacer {
      padding: 0 var(--rds-spacing-xs);
      height: auto;
    }

    .rds-comp-product-tour__carousel-nav-row {
      flex-wrap: nowrap;
      gap: var(--rds-spacing-xs);
      align-items: center;
      overflow: visible;
    }

    .rds-comp-product-tour__carousel-nav-group,
    .rds-comp-product-tour__carousel-arrows {
      gap: var(--rds-spacing-sm);
      flex-shrink: 0;
      overflow: visible;
    }

    .rds-comp-product-tour__carousel-arrow-prev,
    .rds-comp-product-tour__carousel-arrow-next {
      width: var(--rds-spacing-xl);
      height: var(--rds-spacing-xl);
      min-width: var(--rds-spacing-xl);
      min-height: var(--rds-spacing-xl);
      border: 1px solid var(--rds-primary-main);
      box-sizing: border-box;
      flex-shrink: 0;
    }

    .rds-comp-product-tour__carousel-arrow-next {
      border-color: var(--rds-primary-main);
      background: var(--rds-primary-main);
    }

    .rds-comp-product-tour__carousel-skip {
      margin-right: 0 !important;
      white-space: nowrap;
    }

    .rds-comp-product-tour__close-btn {
      top: 6px;
      right: 8px;
      svg { width: var(--rds-size-lg); height: var(--rds-size-lg); }
    }
  }
}

@include bp.down(420) {
  .rds-comp-product-tour__container {
    max-height: calc(100vh - 24px);
    overflow: visible;
  }

  .rds-comp-product-tour__info-nav-section,
  .rds-comp-product-tour__form-content,
  .rds-comp-product-tour__animation-info {
    max-height: calc(100vh - 120px); 
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rds-comp-product-tour__info-nav-section::-webkit-scrollbar,
  .rds-comp-product-tour__form-content::-webkit-scrollbar,
  .rds-comp-product-tour__animation-info::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
  }
  .rds-comp-product-tour__info-nav-section,
  .rds-comp-product-tour__form-content,
  .rds-comp-product-tour__animation-info {
    -ms-overflow-style: none; 
    scrollbar-width: none;
    padding-bottom: var(--rds-spacing-18); 
  }

  .rds-comp-product-tour__container--animation {
    padding: var(--rds-spacing-md);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .rds-comp-product-tour__animation-section {
    margin-bottom: var(--rds-spacing-sm);
  }

  .rds-comp-product-tour__animation-section img,
  .rds-comp-product-tour__animation-section .rds-comp-product-tour__gif {
    max-height: 160px;
  }

  .rds-comp-product-tour__animation-info {
    margin-bottom: var(--rds-spacing-sm);
  }

  .rds-comp-product-tour__animation-navigation {
    flex-wrap: nowrap;
    gap: var(--rds-spacing-xs);
    width: 100%;
  }

  .rds-comp-product-tour__animation-controls,
  .rds-comp-product-tour__animation-nav-buttons {
    gap: var(--rds-spacing-sm);
    flex-shrink: 0;
  }

  .rds-comp-product-tour__animation-skip {
    margin-right: 0;
    white-space: nowrap;
  }

  .rds-comp-product-tour__container--carousel {
    display: flex;
    flex-direction: column;
  }

  .rds-comp-product-tour__carousel-wrapper {
    height: clamp(180px, 34vh, 240px);
  }

  .rds-comp-product-tour__carousel-dots {
    margin-top: var(--rds-spacing-xs);
  }

  .rds-comp-product-tour__carousel-spacer {
    height: var(--rds-spacing-xs);
  }

  .rds-comp-product-tour__carousel-nav-row {
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .rds-comp-product-tour__form-tab {
    max-width: 88px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
    display: inline-block;
  }
}

@include bp.down(mobile-lg) {
  .rds-comp-product-tour__container--form {
    .rds-comp-product-tour__form-title-badge-row {
      .rds-badge .rds-badge__badge {
        font-size: 0.75rem;
        padding: var(--rds-spacing-xxs) var(--rds-spacing-sm);
        min-width: 40px;
        height: var(--rds-size-lg);
        line-height: 1.2;
      }
    }

    .rds-comp-product-tour__form-input-row--team-members {
      .rds-autocomplete .MuiAutocomplete-clearIndicator {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
      }
    }
  }
}

@container product-tour-form (max-width: 414px) {
  .rds-comp-product-tour__form-input-row--team-members {
    .rds-autocomplete .MuiAutocomplete-clearIndicator {
      display: none !important;
      visibility: hidden !important;
      width: 0 !important;
      height: 0 !important;
      padding: 0 !important;
      margin: 0 !important;
      pointer-events: none !important;
    }
  }
}

@include bp.down(mobile-sm) {
.sb-show-main.sb-main-padded {
padding: var(--rds-spacing-lg);
}

  .rds-comp-product-tour__container--form {
    .rds-comp-product-tour__form-input-row--team-members {
      min-width: 0;

      .rds-comp-product-tour__form-input-row--group {
        min-width: 0;
      }

      .rds-comp-product-tour__form-input-container {
        min-width: 0;
        flex: 1 1 0;
      }

      .rds-comp-product-tour__form-action-btn .rds-button,
      .rds-comp-product-tour__form-action-btn .MuiButton-root {
        min-width: 64px !important;
        width: 64px !important;
        padding-left: var(--rds-spacing-xs) !important;
        padding-right: var(--rds-spacing-xs) !important;
      }

      .rds-autocomplete {
        min-width: 0;

        .MuiFormHelperText-root {
          display: none;
        }

        .MuiOutlinedInput-root.MuiAutocomplete-inputRoot {
          position: relative;
          flex-wrap: nowrap !important;
          align-items: center !important;
          height: 40px !important;
          min-height: 40px !important;
          max-height: 40px !important;
          padding-top: 4px !important;
          padding-bottom: 4px !important;
          padding-right: 32px !important;

          &.Mui-focused,
          &[aria-expanded='true'] {
            height: 40px !important;
            min-height: 40px !important;
            max-height: 40px !important;
          }
        }

        .MuiAutocomplete-endAdornment {
          position: absolute;
          right: 4px;
          top: 50%;
          transform: translateY(-50%);
          display: flex;
          align-items: center;
          max-height: 32px;
        }

        .MuiAutocomplete-popupIndicator {
          padding: 2px !important;

          .MuiSvgIcon-root {
            font-size: var(--rds-font-size-xl) !important;
          }
        }

        .MuiAutocomplete-input {
          min-width: 0 !important;
          flex: 1 1 0 !important;
          padding: 0 !important;
        }

        .MuiAutocomplete-tag,
        .rds-autocomplete__chip {
          flex-shrink: 1;
          min-width: 0;
          max-width: 72px !important;
        }

        .rds-autocomplete__chip--overflow {
          flex-shrink: 0 !important;
          max-width: 36px !important;
          min-width: 28px !important;
          margin-right: 2px !important;
        }
      }

      .MuiAutocomplete-popper {
        max-width: calc(100vw - 32px);
      }

      .MuiAutocomplete-listbox {
        max-width: 100%;
      }
    }
  }
}
