import styled from "styled-components";

export const Container = styled.div`
  position: relative;
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
`;

export const Badge = styled.div`
  border-radius: 10px;
  background: #dfe5e5;
  position: absolute;
  z-index: 5;
  background-color: #dfe5e5;
  padding: 0 10px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  bottom: 15px;
  right: 15px;
  p {
    color: #636666;
    font-size: 12px;
  }
  span {
    display: inline-block;
    width: 9px;
    border-radius: 50%;
    height: 9px;
    background-color: #febf10;
  }
`;

export const ToolTipContainer = styled.div`
  position: relative;
  width: fit-content;
  > svg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    z-index: 3;
  }
`;
export const ToolTipWrapper = styled.div`
  width: 250px;
  height: 75px;
  border-radius: 10px;
  border: 1px solid #3ac2c2;
  background: #e6f9f9;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 4;
  > span {
    svg {
      width: 28px;
      height: 28px;
    }
  }
`;

export const ToolTipContent = styled.div`
  flex: 1;
  height: 100%;
  padding: 6px 0;
  p {
    color: #475467;
    font-size: 16px;
    font-weight: 400;
  }
  ul {
    list-style: none;
    display: flex;
    width: 100%;
    li {
      flex: 1;
      p {
        &:nth-child(1) {
          color: ${({ $color }) => $color || "#00c2c2"};
          font-size: 16px;
          font-weight: 700;
        }
        &:nth-child(2) {
          color: #636666;
          font-size: 12px;
        }
      }
      &:nth-child(1) {
        padding-right: 14px;
        border-right: 1px solid #d9d9d9;
      }
      &:nth-child(2) {
        padding-left: 14px;
      }
    }
  }
`;
