import styled, { css } from "styled-components";
import Box from "../../Box";
import Button from "../../Button";
import Text from "../../Text";
const Content = styled.div`
  width: 100%;
  @media (min-width: 769px) {
    margin: auto;
  }
`;
const TextContainer = styled.div`
  ${({
  theme: {
    yoga: {
      components: { feedback }
    }
  }
}) => css`
      max-width: 100%;
      @media (min-width: 769px) {
        max-width: ${feedback.text.maxWidth}px;
      }
    `}}
`;
const Title = styled(Text.H4).attrs(() => ({
  as: "h1",
  bold: true
}))`
  ${({
  theme: {
    yoga: { fontSizes }
  }
}) => css`
      @media (min-width: 769px) {
        font-size: ${fontSizes.huge}px;
        line-height: ${fontSizes.huge}px;
      }
    `}}
`;
const Actions = styled(Box)`
  ${({
  theme: {
    yoga: { spacing }
  }
}) => css`
      display: flex;
      flex-direction: column;
      gap: ${spacing.small}px;

      @media (min-width: 769px) {
        flex-direction: row;
        margin-top: ${spacing.xxlarge}px;
        gap: 0;
      }
    `}}
`;
const buttonsStyles = css`
  ${({
  theme: {
    yoga: { spacing }
  }
}) => css`
      width: 100%;

      :last-child(:not(:first-child)) {
        margin-top: ${spacing.small}px;
      }

      @media (min-width: 769px) {
        width: auto;

        :last-child(:not(:first-child)) {
          margin-top: 0;
          margin-left: ${spacing.large}px;
        }
      }
    `}}
`;
const PrimaryButton = styled(Button)`
  ${buttonsStyles}
`;
const SecondaryButton = styled(Button.Text)`
  ${buttonsStyles}
`;
const Caption = styled(Text.Body1).attrs(() => ({
  as: "p",
  bold: true
}))`
  ${({
  theme: {
    yoga: { colors }
  }
}) => css`
      color: ${colors.text.secondary};
    `}}
`;
Title.displayName = "Feedback.Title";
PrimaryButton.displayName = "Feedback.PrimaryButton";
SecondaryButton.displayName = "Feedback.SecondaryButton";
Caption.displayName = "Feedback.Caption";
export {
  Actions,
  Caption,
  Content,
  PrimaryButton,
  SecondaryButton,
  TextContainer,
  Title
};
