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

.page-offers {
  .zc-dialog .zc-dialog-wrap{
    max-width: 960px;
  }
  .breadcrumb {
    font-size: 16px;
    padding: 20px 0 10px 0;
  }
  .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;
    }
  }

  .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;
        }
      }
    }
  }

  .offers-list {
    background-color: #f6f6f6;
    padding: 40px 0;
    .container {
      display: flex;
      .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
          }
          .more-cars {
            color: #70ad4d;
            margin-left: 34px;
            cursor: pointer;
          }
        }
      }
      .offer-results {
        display: flex;
        align-self: flex-start;
        flex-wrap: wrap;
        flex: 1;
        justify-content: center;
        .loader {
          height: 30px;
          width: 30px;
          justify-self: center;
        }
        &>div {
          width: 300px;
        }
      }
    }
  }
  .filter-options {
    display: flex;
    font-size: 16px;
    font-weight: normal;
    color: #4a4a4a;
    align-items: center;
    margin-bottom: 10px;
  }
  .spec-table-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(35,35,35,.5);
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    z-index: 2;

    .ovl {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1;
    }

    .table-content, .offer-content {
      position: relative;
      z-index: 2;
      box-shadow: 0 0 100px rgba(0, 0, 0, 0.35);
    }

    .offer-content {
      background-color: #fff;
      border-radius: 4px;
      .component-offer-item {
        margin: 0px;
      }
    }

    table {
      width: 400px;
      background-color: #ffffff;
      border-collapse: collapse;
      border: none;

      td {
        padding: 15px;
        border-color: rgba(0,0,0,.2);

        &:first-child {
          background-color: #f2f2f2;
          white-space: nowrap;
        }
      }

    }
  }
  @media screen and (max-device-width: 480px) {
    section.filters {
      background-color: #fdffd4;
      padding: 5px;
      .container {
        padding: 5px;
        flex-direction: column;
        .range {
          flex-direction: column;
          padding-bottom: 35px;
        }
        .types {
          color: #1d7eef;
          justify-content: flex-end;
          position: relative;
          z-index: 10;
          .ovl {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
            background-color: rgba(0,0,0,0.23);
          }
          .values {
            width: 150px;
            z-index: 10;
            position: absolute;
            top: 20px;
            right: 15px;
            flex-direction: column;
            .item {
              font-size: 10px;
            }
          }
        }
      }
    }
    .offers-filter-selections {
      padding-bottom: 0px;
    }
    .offers-filter-selections {
      .offers-title {
        font-size: 16px;
      }
      .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;
          }
        }
      }
    }
    .offers-list {
      padding: 0px;
      .container {
        padding: 0px;
        .offer-results {
          &>div {
            width: 100%;
          }
          flex-direction: column;
        }
      }
      .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: 18px;
        font-weight: 600;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-transform: uppercase;
        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;
          .title {
            justify-content: space-between;
          }
        }
      }
    }
  }
}
