import { Box, Typography } from "@mui/material";
import styled from "styled-components";
import selectedTheme from "../../../themes";
import {ReactComponent as Search} from "../../../assets/images/svg/magnifying-glass.svg"
import {ReactComponent as Refresh} from "../../../assets/images/svg/refresh.svg"
import { TextField } from "../../TextFields/TextField/TextField";
import { Icon } from "../../Icon/Icon";
import Select from "../../Select/Select";
import Option from "../../Select/Option/Option";
import { ReactComponent as Down } from "../../../assets/images/svg/down-arrow.svg";
import HorizontalScroller from "../../Scroller/HorizontalScroller";

export const ProfileOffersContainer = styled(Box)`
  width: 100%;
  box-sizing: border-box;
  padding: 0 50px;
  margin-top: 34px;
  position: relative;
  @media (max-width: 600px) {
    padding: 0;
  }
`;
export const HeaderTitle = styled(Typography)`
  font-size: 16px;
  font-family: "Open Sans";
  color: ${selectedTheme.primaryDarkTextThird};
  position: relative;
  margin-left: 10px;
  @media (max-width: 600px) {
    font-size: 12px;
  }
`;
export const OffersIcon = styled(Refresh)`
    width: 18px;
    height: 18px;
    & path {
        stroke: ${selectedTheme.primaryDarkTextThird};
    }
    @media (max-width: 600px) {
      width: 12px;
      height: 12px;
    }
`
export const SearchInput = styled(TextField)`
    position: relative;
    top: 15px;
    & div fieldset {
        border-color: ${selectedTheme.primaryPurple} !important;
    }
    @media (max-width: 600px) {
      top: 5px;
      height: 46px;
      & div {
        background-color: white;
      }
    }
`
export const SearchIcon = styled(Search)`
    width: 18px;
    height: 18px;
`
export const IconContainer = styled(Icon)`
    cursor: pointer;
    position: relative;
    top: 4px;
`
export const HeaderSelect = styled(Select)`
  width: 210px;
  height: 35px;
  font-family: "Open Sans";
  margin-top: 3px;
  font-weight: 400;
  position: absolute;
  top: -8px;
  right: 50px;
  & div:first-child {
    padding-left: 8px;
  }

  @media (max-width: 650px) {
    width: 144px;
    height: 30px;
    font-size: 14px;
    right: 1px;
  }
`;
export const SelectOption = styled(Option)`
  @media (max-width: 600px) {
    height: 20px !important;
    min-height: 35px;
    margin: 2px;
  }
`;
export const DownArrow = styled(Down)`
`
export const OffersContainer = styled(Box)`
    margin-top: 30px;
`
export const OffersScroller = styled(HorizontalScroller)`
  height: 330px;
  margin-left: 0;
  & div {
    margin-left: 0;
    margin-right: 0;
  }
`