@import '../../styles/partials/breakpoint';

.page-selection {
  .zc-dialog .zc-dialog-wrap{
    max-width: 960px;
  }

  .loading {
    flex: 1;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 10px;
    font-size: 20px;
    img {
      height: 200px;
    }
  }

  .breadcrumb {
    font-size: 16px;
    padding: 20px 0 10px 0;
  }
  .offers-filter-selections {
    padding-bottom: 30px;
    border-bottom: 1px solid #c8c8c8;
    .offers-title {
      text-transform: capitalize;
      font-size: 24px;
      font-weight: 600;
    }
    .offer-pills {
      display: flex;
      padding-top: 20px;
      flex-wrap: wrap;
      .pill {
        background-color: #e8e8e8;
        margin-right: 20px;
        padding: 7px 45px 7px 20px;
        position: relative;
        border-radius: 17.5px;
        overflow: hidden;
        font-size: 16px;
        color: #4a4a4a;
        font-weight: normal;
        margin-bottom: 20px;
        .remove {
          background-color: #b8b8b8;
          position: absolute;
          right: 0px;
          top: 0px;
          height: 100%;
          font-size: 24px;
          font-weight: 500;
          padding: 0 10px;
          cursor: pointer;
        }
      }
    }
  }

  section.filters {
    padding: 15px 0 30px 0;
    font-size: 14px;
    .container {
      display: flex;
      justify-content: space-between;
    }

    .range{
      label {
        font-size: 13px;
        font-weight: 600;
        margin-right: 15px;
      }
    }
  }

  .car-list {
    background-color: #f6f6f6;
    padding: 18px 0 40px;
    .container{
      display: flex;
      justify-content: space-between;
    }
    .loading {
      justify-content: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      .loader {
        height: 50px;
        width: 50px;
      }
    }
    .action-results-wrapper{
      display: flex;
      flex-direction: column;
    }
    .car-slider-sort-wrapper{
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      margin-bottom: 50px;
      .sort-div{
        display: flex;
        background: #f6f6f6 !important;
        padding: 7px 16px 7px;
        margin: 15px 10px 0;
        border-radius: 4px;
        border: 1px solid #c8c8c8;
        align-items: center;
        label{
          width: 100px;
          font-size: 18px;
          color: #9b9b9b;
        }
      }
      .multiselect__single, .multiselect__option, .sort-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 600;
        background-color: #f6f6f6 !important;
      }
      .multiselect__option {
        background: #f6f6f6 !important;
        color: #232323 !important;
        border: solid 1px #c8c8c8;
        &:hover {
          background: #f6f6f6 !important;
        }
      }
      .multiselect__tags{
        background-color: #f6f6f6 !important;
      }
    }
    .items {
      display: flex;
      flex-wrap: wrap;
  
      .item {
        width: 100%;
        padding: 5px;
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: #232323;

        @include breakpoint(sm) {
          width: 100%;
        }
      
        @include breakpoint(md) {
          width: 50%;
        }
      
        @include breakpoint(lg) {
          width: 33.3%;
        }
      
        // @include breakpoint(xl) {
        //   width: 25%;
        // }

        .component-car-item {
          flex: 1;
        }

        a {
          flex: 1;
          color: #232323;
          display: flex;
          flex-direction: column;
        }
      }
    }
    .offer-filters {
      min-width: 200px;
      .filter {
        font-weight: 600;
        font-size: 18px;
        color: #232323;
        .car-filter-input {
          background-color: transparent;
          border: none;
          border-bottom: solid 1px #e0e0e0;
          font-size: 18px;
          &:focus{
            outline: none;
          }
        }
        .more-cars {
          color: #70ad4d;
          margin-left: 34px;
          cursor: pointer;
        }
      }
    }
  }
  

.filter-options {
  display: flex;
  font-size: 16px;
  font-weight: normal;
  color: #4a4a4a;
  align-items: center;
  margin-bottom: 10px;
}
  @media screen and (max-device-width: 480px) {
    section.filters {
      background-color: #fdffd4;
      padding: 5px;
      position: sticky;
      top: 0;
      box-shadow: 0 0 12px rgba(0,0,0,.1);
      width: 100%;
      .container {
        padding: 5px;
        flex-direction: column;
        .range {
          flex-direction: column;
          padding-bottom: 35px;
        }
      }
    }
    .offers-filter-selections{
      padding: 15px 0 0;
    }
    .car-list {
      padding: 0px;
      .container {
        padding: 0px;
        flex-direction: column;
        .action-results-wrapper{
          flex-direction: column;
        }
        .car-slider-sort-wrapper{
          margin-bottom: 0px !important;
          position: sticky;
          top: 0;
          z-index: 1;
        }
        .items {
          .item {
            padding: 0px;
            .tip-tile {
              flex-direction: column;
              background-color: #f8fbfe;
              .total-price {
                text-align: center;
              }
            }
          }
        }
      }
    }
 
    .filters-button {
      position: sticky;
      bottom: 0;
      width: 100%;
      min-height: 50px;
      background-color: #ffffff;
      box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
      font-size: 16px;
      font-weight: 600;
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      text-transform: uppercase;
      z-index: 2;
      user-select: none;
      -moz-user-select: none;
      -khtml-user-select: none;
      -webkit-user-select: none;
      -o-user-select: none;
      .offer-filters {
        position: relative;
        width: 100%;
        .filter {
          padding: 13px 20px;
          width: 50%;
          height: 50px;
          background-color: #fff;
          font-size: 16px;
          position: initial;
          text-transform: capitalize;
          border: solid 1px rgba(0, 0, 0, 0.12);
          &.active-filter {
            background-color: #e8e8e8;
          }
          .filter-options {
            position:absolute;
            top: 0;
            right: 0;
            display: flex;
            flex-direction: column;
            width: 50%;
            justify-content: flex-start;
            align-items: flex-start;
            overflow: scroll;
            height: 390px;
            border: solid 1px rgba(0, 0, 0, 0.12);
            .option {
              padding: 10px;
            }
          }
        }
      }
      .title {
        width: 100%;
        padding: 13px 20px;
        display: flex;
        justify-content: center;
        .close {
          cursor: pointer;
        }
      }
      &.expanded {
        height: 450px;
        justify-content: flex-start;
        position: fixed;
        bottom: 0;
        flex-direction: column;
        .title {
          justify-content: space-between;
        }
      }
    }
  }
}
