import styled from "styled-components";
import { IFont } from "interfaces";
import { theme } from "data/dataMx";

interface ILabelStyleProps {
  fontFamily: IFont;
  disabled: boolean;
}

interface IRadioStyleProps {
  disabled: boolean;
}

interface IInputStyleProps {
  disabled: boolean;
}

export const RadioContainer = styled.div`
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 48px;
  padding-left: 8px;
  padding-right: 8px;
  border: ${`4px solid ${theme.transparent}`};
  &:active {
    border: ${`4px solid ${theme.tertiary100}`};
  }
`;

export const RadioLabel = styled.label`
  font-family: ${({ fontFamily }: ILabelStyleProps) => fontFamily.main.bold};
  font-size: 16px;
  margin-left: 8px;
  color: ${({ disabled }: ILabelStyleProps) =>
    disabled ? theme.neutral400 : theme.neutral700};
`;

export const RadioInput = styled.div`
  height: 20px;
  width: 20px;
  border-radius: 100px;
  border-width: 2px;
  border-style: solid;
  border-color: ${({ disabled }: IInputStyleProps) =>
    disabled ? theme.neutral400 : theme.neutral700};
  display: flex;
  justify-content: center;
  align-items: center;
`;

export const RadioCheck = styled.div`
  height: 12px;
  width: 12px;
  border-radius: 100px;
  background-color: ${({ disabled }: IRadioStyleProps) =>
    disabled ? theme.neutral400 : theme.neutral700};
`;
