@import "../../styles/colors.scss";
@import "../../styles/fonts.scss";

.light_filter_wrapper {
  .light_filter {
    z-index: 12;
    background-color: $whiteBlue;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 3px 36px 3px 14px;
    position: relative;
    min-height: 40px;
    min-width: 300px;
    border-radius: 10px;
    box-sizing: border-box;
    border: 0.2px solid $greyTertiary;
    .filter_logo {
      height: 18px;
      width: 24px;
    }
    .filter_label {
      margin: 0;
      padding-left: 10px;
      color: $blackPrimary;
      font-feature-settings: "clig" off, "liga" off;
      font-family: Poppins;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: 28px; /* 200% */
    }
    .open_filter_icon {
      transform: rotate(180deg);
    }
    .close_filter_icon {
    }
    .oprionsWrapper {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      .option {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        padding: 2px 8px;
        border-radius: 8px;
        border: 1px solid $orangePrimary;
        background: transparent;
        align-items: center;
        margin-left: 4px;

        > p {
          margin: 0 10px 0 0;
          color: $orangePrimary;
          font-feature-settings: "clig" off, "liga" off;
          font-family: Poppins;
          font-size: 14px;
          font-style: normal;
          font-weight: 500;
          line-height: 26px; /* 200% */
        }
      }
    }
  }
  .filter_modal {
    z-index: 10;
    top: 0;
    left: 0;
    position: absolute;
    padding: 40px 10px 12px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: $white;
    border: 0.2px solid $greyTertiary;
    > div {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin: 13px 0px 2px;
      cursor: pointer;
      > img {
        margin: 0px 10px 0px 0;
      }
      > label {
        cursor: pointer;
        color: $blackPrimary;
        font-feature-settings: "clig" off, "liga" off;
        font-family: Poppins;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 28px; /* 200% */
      }
    }
  }
}

.dark_filter_wrapper {
  .dark_filter {
    z-index: 12;
    background-color: $blackTertinary;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 3px 36px 3px 14px;
    position: relative;
    min-height: 40px;
    min-width: 300px;
    border-radius: 10px;
    box-sizing: border-box;
    .filter_logo {
      height: 18px;
      width: 24px;
    }
    .filter_label {
      margin: 0;
      padding-left: 10px;
      color: $greySecondary;
      font-feature-settings: "clig" off, "liga" off;
      font-family: Poppins;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: 28px; /* 200% */
    }
    .open_filter_icon {
      transform: rotate(180deg);
    }
    .close_filter_icon {
    }
    .oprionsWrapper {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      .option {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        padding: 2px 8px;
        border-radius: 8px;
        border: 1px solid $yellow;
        background: transparent;
        align-items: center;
        margin-left: 4px;

        > p {
          margin: 0 10px 0 0;
          color: $yellow;
          font-feature-settings: "clig" off, "liga" off;
          font-family: Poppins;
          font-size: 14px;
          font-style: normal;
          font-weight: 500;
          line-height: 26px; /* 200% */
        }
      }
    }
  }
  .filter_modal {
    z-index: 10;
    top: 0;
    left: 0;
    position: absolute;
    padding: 40px 10px 12px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: $blackLight;
    > div {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin: 13px 0px 2px;
      cursor: pointer;
      > img {
        margin: 0px 10px 0px 0;
      }
      > label {
        cursor: pointer;
        color: $greySecondary;
        font-feature-settings: "clig" off, "liga" off;
        font-family: Poppins;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 28px; /* 200% */
      }
    }
  }
}

.light_filter_wrapper,
.dark_filter_wrapper {
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  max-width: 303px;
  min-width: 120px;
  position: relative;

  .filter_icon {
    position: absolute;
    right: 10px;
    top: 12px;
  }
  .error_filter {
    background-color: $rozePrimary;
    border: 1px solid $redPrimary;
    > .placeholder {
      color: $redPrimary;
    }
  }
  .error_text {
    margin: 0;
    position: absolute;
    color: $redPrimary;
    font-feature-settings: "clig" off, "liga" off;
    font-family: Poppins;
    font-size: 10px;
    font-style: normal;
    font-weight: 300;
    line-height: 28px; /* 280% */
    transform: translateY(calc(100% - 20px));
    z-index: 0;
    bottom: 0;
    left: 0;
  }
}
