import styled from '@emotion/styled';

export const ModalBackdrop = styled.div`
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  display: ${(props) => (props.isOpen ? 'flex' : 'none')};
  align-items: center;
  justify-content: center;
  z-index: 3;
`;

export const ModalContainer = styled.div`
  position: absolute;
  z-index: 4;
  min-width: max-content;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 1rem;
  padding: 1.25rem;
  box-sizing: border-box;
  border: 0.06rem solid var(--Stroke, rgba(0, 0, 0, 0.1));
  border-radius: 1rem;
  box-shadow:
    0rem 2rem 4rem -2rem rgba(0, 0, 0, 0.1),
    0rem 4rem 6rem -1rem rgba(0, 0, 0, 0.1);
  background: var(--White, rgba(255, 255, 255, 1));
`;

export const HeaderContainer = styled.div`
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  min-width: 100%;
  align-items: center;
`;

export const ModalTitle = styled.h2`
  color: rgba(31, 31, 31, 1);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
`;

export const SelectLabel = styled.label`
  color: var(--GreyDark, rgba(74, 85, 101, 1));
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.25rem;
  letter-spacing: 0rem;
  text-align: left;
`;

export const SectionTitle = styled.h3`
  color: rgba(31, 31, 31, 1);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25rem;
  letter-spacing: 0rem;
  text-align: left;
  margin: 0 0 1rem 0;
`;
