import styled from "styled-components";
export const DropdownModal = styled.div `
  cursor: pointer;
  position: relative;
  user-select: none;
  font-family: "Geometria", "Verdana", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: ${({ theme }) => theme.new?.palette?.text.primary ?? "#233445"};

  .dropdown-items {
    z-index: 10;
    // background: ${({ theme }) => theme.new?.palette?.bg.light ?? "#fff"};
    background: #ffffff;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-height: 288px;
    display: flex;
    overflow-y: auto;
    flex-flow: column nowrap;
    align-items: flex-start;
    box-shadow: 0px 11px 10px rgba(150, 177, 205, 0.19);
    border-radius: 0px 0px 16px 16px;
    padding: 18px 12px;
    max-height: 250px;
    max-width: auto;
    min-width: 100%;
    font-family: "Geometria", "Verdana", sans-serif;
    border-top: 1px solid #e4e8ed;

    .item {
      display: flex;
      align-items: center;
      padding: 8px 34px 6px 12px;
      width: 100%;
      box-sizing: border-box;
      gap: 8px;
      margin-top: 0;
      &:hover {
        background: #f1f5f9;
        border-radius: 10px;
      }

      &.gray {
        filter: grayscale(1);
        opacity: 0.5;
      }

      span:first-child {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
      }

      p {
        max-width: 100%;
        text-overflow: ellipsis;
        overflow: hidden;
        font-size: 18px;
        white-space: nowrap;
        color: ${({ theme }) => theme.new?.palette?.text.primary ?? "#233445"};
      }
      .text-secondary {
        letter-spacing: -0.02em;
        font-size: 14px;
        line-height: 20px;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -0.02em;
        color: ${({ theme }) => theme.new?.palette?.text.quaternary ?? "#919CA7"};
      }
    }
    .item-iconed {
      padding-top: 6px;
      padding-bottom: 6px;
    }

    &::-webkit-scrollbar {
      width: 7px;
    }
    &::-webkit-scrollbar:horizontal {
      height: 7px;
    }

    &::-webkit-scrollbar-track {
      background: transparent;
      border-radius: 1em;
    }
    &::-webkit-scrollbar-thumb {
      background: #dde3eb;
      border-radius: 43px;
    }

    &::-webkit-scrollbar-thumb:hover {
      background: #dde3eb;
    }
  }
`;
export const DropdownItem = styled.div `
  display: flex;
  align-items: center;
  padding: 10px 34px 10px 12px;
  width: auto;
  gap: 8px;
  font-family: "Geometria", "Verdana", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  border-radius: 10px;
  letter-spacing: -0.02em;
  color: ${({ theme }) => theme.new?.palette?.text.primary ?? "#233445"};
  .row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  & + & {
    margin-top: 5px;
  }

  .text-secondary {
    letter-spacing: -0.02em;
    font-size: 14px;
    line-height: 20px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.02em;
    color: ${({ theme }) => theme.new?.palette?.text.quaternary ?? "#919CA7"};
  }

  &:hover {
    background: #f1f5f9;
  }

  &.gray {
    filter: grayscale(1);
    opacity: 0.5;
  }

  span:first-child {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
  }

  p {
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 18px;
    white-space: nowrap;
    color: ${({ theme }) => theme.new?.palette?.text.primary ?? "#233445"};
  }

  .item-iconed {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .chips {
    font-size: 10px;
    line-height: 1;
    padding: 4px 8px;
    margin: 0;
  }
  ${(props) => props.inactive
    ? `
      color: #566573;
      svg, img {opacity: 0.5};
      background: #ffffff;
      pointer-events: none;
      .text-secondary {
        color: #919CA7;
      }
      svg, img {
        filter: grayscale(1);
        opacity: 0.5;
      }
      `
    : ""}
  ${(props) => props.hovered
    ? `
      background: #f1f5f9;

      `
    : ""}
  ${(props) => props.chosen
    ? `
      font-weight: 700;
      `
    : ""}
`;
//# sourceMappingURL=dropdown-item.js.map