@import '@/styles/responsive.scss';

.storageUnit {
  p {
    max-width: 80%;

    @include small-screen {
      max-width: 100%;
    }
  }

  .storageUnitSection {
    display: flex;
    flex-wrap: wrap; // Allow items to wrap on small screens
    align-items: center;
    gap: 15px;
    box-shadow: 4px 6px 10px 0px rgba(56, 124, 68, 0.15);
    border: 1px solid rgba(56, 124, 68, 0.2);
    background: #fff;
    padding: 15px;
    width: 100%;

    & > div {
      position: relative;
      flex: 1; // Allow each div to take up available space equally

      &:first-child {
        &::after {
          position: absolute;
          top: 0;
          right: -10px;
          background: rgba(56, 124, 68, 0.2);
          width: 1px;
          height: 100%;
          content: '';

          @include extra-small {
            display: none;
          }
        }
      }

      // On small screens, take up 50% of the width
      @include tablet {
        flex-basis: 50%; // Each div takes up 50% on small screens
      }

      @include extra-small {
        flex-basis: 100% !important;
      }
    }

    // Ensure the button moves below the row on small screens
    button {
      @include tablet {
        margin-top: 10px; // Add some space above the button
        width: 100%; // Button takes up full width below the row
      }
    }

    @include tablet {
      border-radius: 20px !important;
      padding: 20px;
    }
  }
}

.storageUnitSlider {
  background: #f6f8fa;
  height: 100%;
  height: 20vh;

  img {
    margin-right: 45px;
    margin-left: 45px;
    // width: 55%;
    width: 90px;
    height: 40px;
    object-fit: contain;

    @media (max-width: 1450px) {
      margin-right: 35px;
      margin-left: 35px;
    }

    @media (max-width: 992px) {
      margin-right: 20px;
      margin-left: 20px;
    }
  }

  @include tablet {
    // margin-top: 20px;
    img {
      width: 42%;
    }
  }
}
