import { Typography } from "@mui/material";
import { Box } from "@mui/system";
import styled from "styled-components";
import { PrimaryButton } from "../../../Buttons/PrimaryButton/PrimaryButton";
import { Icon } from "../../../Icon/Icon";
import { ReactComponent as Remove } from "../../../../assets/images/svg/trash-gold.svg";
import selectedTheme from "../../../../themes";
import { IconButton } from "../../../Buttons/IconButton/IconButton";

export const DeleteOfferContainer = styled(Box)`
  width: 537px;
  height: 309px;
  position: fixed;
  top: calc(50% - 155px);
  left: calc(50% - 268px);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 80px 18px 80px;
  z-index: 150;

  @media screen and (max-width: 600px) {
    width: 350px;
    height: 281px;
    display: block;
    padding: 0 18px 18px 18px;
    left: calc(50% - 175px);
  }
`;

export const OfferInfo = styled(Box)`
  width: 211px;
  height: 90px;
  border: 1px solid #d4d4d4;
  display: flex;
  align-items: center;
  padding: 18px;
  margin-top: 36px;

  @media screen and (max-width: 600px) {
    margin-left: calc(50% - 105px) !important;
  }
`;

export const OfferImageContainer = styled(Box)`
  width: 54px;
  height: 54px;
  border-radius: 2px;

  @media screen and (max-width: 600px) {
    margin-right: 13px;
  }
`;

export const OfferImage = styled.img`
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
`;

export const OfferDescription = styled(Box)`
  display: flex;
  flex-direction: column;
  margin-left: 9px;
`;

export const OfferDescriptionTitle = styled(Typography)`
  font-size: 16px;
  font-weight: 600;
  color: ${selectedTheme.primaryPurple};

  @media screen and (max-width: 600px) {
    font-size: 14px;
  }
`;

export const OfferDescriptionCategory = styled(Typography)`
  font-size: 12px;
  letter-spacing: 2%;
`;

export const CategoryIcon = styled(Icon)`
  margin-right: 4px;
  & svg {
    width: 14px;
    position: relative;
    top: -1px;
  }
`;

export const DeleteQuestion = styled(Typography)`
  font-family: "Open Sans";
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin: 36px 0;

  @media screen and (max-width: 600px) {
    font-size: 14px;
    margin: 27px 0;
    text-align: center;
    width: 100%;
  }
`;

export const RemoveIconBorder = styled(IconButton)`
  width: 40px;
  height: 40px;
  position: absolute;
  top: 16px;
  right: 143px;
  background-color: ${selectedTheme.primaryPurple};
  border-radius: 100%;
  padding-top: 2px;
  text-align: center;

  @media screen and (max-width: 600px) {
    right: 50px;
  }
`;

export const RemoveIconContainer = styled(RemoveIconBorder)`
  cursor: default;
`;

export const RemoveIcon = styled(Remove)`
  cursor: default;
`;

export const ButtonsContainer = styled(Box)`
  display: flex;
  width: 100%;
  justify-content: space-between;
`;

export const CancelButton = styled(PrimaryButton)`
  @media screen and (max-width: 600px) {
    width: 140px;
    height: 45px;
  }
`;

export const SaveButton = styled(PrimaryButton)`
  @media screen and (max-width: 600px) {
    width: 140px;
    height: 45px;
  }
`;
