import styled from 'styled-components';

export const Container = styled.div`
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
`;

export const Modal = styled.div<{ $w?: string }>`
  display: flex;
  width: ${props => props.$w || '430px'};
  padding: 24px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: 4px;
  background: #fff;
`;

export const ModalHeader = styled.div`
  display: flex;
  gap: 16px;
  align-self: stretch;
  align-items: center;
`;

export const ModalIcon = styled.div<{ $bg: string }>`
  display: flex;
  padding: 4px;
  align-items: center;
  border-radius: 4px;
  background-color: ${props => props.$bg};
`;

export const ModalTitle = styled.h1`
  color: #1d1d1d;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.25px;
  margin: 0;
`;

export const ModalBody = styled.div`
  display: flex;
  width: 100%;
  border-bottom: 2px solid #a3a3a3;
  margin-top: 16px;
  padding-bottom: 32px;
`;

export const ModalText = styled.p`
  color: rgba(0, 0, 0, 0.87);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.17px;
  margin: 0;
  line-height: 1.3;
`;

export const ModalFooter = styled.div`
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 8px;
  gap: 8px;
`;
