import styled from "styled-components";
import Button from "../button/button";
export const ModalBody = styled.div `
  display: flex;
  flex-direction: column;
  max-width: 540px;
  align-items: center;
  font-family: "Geometria", "Verdana", sans-serif;
  width: 100%;
  .picture {
    width: 50px;
    height: 50px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 12px;
  }
  .title {
    font-family: "Geometria", "Verdana", sans-serif;
    font-weight: 900;
    font-size: 28px;
    line-height: 34px;
    text-align: center;
    color: #233445;
    margin-bottom: 12px;
  }
  .subtext {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    letter-spacing: -0.02em;
    color: #535e69;
  }
  .space-between,
  .toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .toprow {
    width: 100%;
    .title {
      margin-bottom: 0;
    }
  }
  .closebtn {
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    width: 16px;
    height: 16px;
  }
  .bluelink {
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: -0.02em;
    color: #3897f9;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: "Geometria", "Verdana", sans-serif;
  }
`;
export const ModalMenu = styled.div `
  border: 1px solid ${({ theme }) => theme.new?.palette?.line.dark ?? "#e4e8ed"};
  border-radius: 16px;
  margin-top: 30px;
  width: 100%;
  max-width: 540px;

  .paddings {
    padding: 16px 24px 14px;
  }
  & > * {
    //min-height: 87px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
    height: 88px;
    box-sizing: border-box;
  }
  .noborder {
    border-top: 0;
  }
  .subtitle {
    color: #535e69;
  }
  .modal-form-input {
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  & > div:last-child {
    border-bottom: 0;
  }
  ${(props) => props.sm
    ? `
      margin-top: 16px;
      & > * {
        height: 68px;
      }
      `
    : ""}
`;
export const TransactionBlock = styled.div `
  position: relative;
  display: grid;
  grid-template-columns: 50% 50%;
  height: 88px;

  &::before {
    content: " ";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 24px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 9;
    border-radius: 22px;
    background-image: url("data:image/svg+xml,%3Csvg width='34' height='24' viewBox='0 0 34 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='34' height='24' fill='white'/%3E%3Cpath d='M10 11C9.44772 11 9 11.4477 9 12C9 12.5523 9.44772 13 10 13V11ZM24.7071 12.7071C25.0976 12.3166 25.0976 11.6834 24.7071 11.2929L18.3431 4.92893C17.9526 4.53841 17.3195 4.53841 16.9289 4.92893C16.5384 5.31946 16.5384 5.95262 16.9289 6.34315L22.5858 12L16.9289 17.6569C16.5384 18.0474 16.5384 18.6805 16.9289 19.0711C17.3195 19.4616 17.9526 19.4616 18.3431 19.0711L24.7071 12.7071ZM10 13H24V11H10V13Z' fill='%234E5B69'/%3E%3C/svg%3E%0A");
  }

  .noop {
    visibility: hidden;
    display: none;
  }

  .decoration {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  & > *:first-child {
    border-radius: 16px 0 0 0;
    border-right: 1px solid
      ${({ theme }) => theme.new?.palette?.line.dark ?? "#e4e8ed"};
  }

  & > *:nth-child(2) {
    border-radius: 0 16px 0 0;
    margin-left: -3px;
    margin-right: 3px;
  }

  .darken {
    background: #f5f7f9;
    .dropdown-items {
      background: inherit;
    }
  }

  .paddings {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .space-between .dropdown-items .item {
    padding-left: 2px;
  }
  & > div:nth-child(2) .dropdown-items {
    left: auto;
    right: 0;
  }
  ${(props) => props.sm
    ? `
      height: 68px;
      `
    : ""}
`;
export const Chips = styled.div `
  cursor: pointer;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px 16px 4px;
  margin-left: -8px;
  margin-right: 4px;
  font-size: 12px;

  .chips-text {
    white-space: nowrap;

    span {
      overflow: hidden;
      max-width: 36px;
      text-overflow: ellipsis;
      display: inline-block;
      margin-bottom: -6px;
    }

    color: ${({ theme }) => theme.new?.palette?.accent.normal ?? "#3897F9"};
    font-weight: 700;
  }
`;
export const ChipsMin = styled(Chips) `
  background: #f1f5f9;
  border-radius: 6px;
  .chips-text {
    color: ${({ theme }) => theme.new?.palette?.error.normal ?? "#FE6666"};
  }
`;
export const Tabs = styled.div `
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  width: 100%;
  margin-top: 20px;
  .unit {
    text-align: center;
    transition: 200ms ease-out;
    cursor: pointer;
    border-radius: 10px;
    color: #535e69;
    padding: 16px 10px 14px;
    line-height: 1;
    font-weight: 700;
    font-size: 16px;
    &.active {
      background: #ffffff;
      color: ${({ theme }) => theme.new?.palette?.text.primary ?? "#233445"};
      filter: drop-shadow(0px 2px 9px rgba(150, 177, 205, 0.35));
    }
  }
  ${(props) => props.sm
    ? `
      margin-top: 22px;
      .unit {
        font-size: 14px;
        line-height: 20px;
        color: #4E5B69;
        padding: 10px;
      }
      `
    : ""}
`;
export const ButtonWide = styled(Button) `
  width: 100%;
  height: 64px;
  font-weight: 700;
  font-size: 18px;
  margin-top: 32px;
  .row {
    justify-content: center;
    gap: 12px;
  }
  .transfer-icon {
    width: 28px;
    height: 28px;
    object-fit: container;
    object-position: center;
  }
  &.mobile {
    margin-top: 24px;
  }
`;
export const ModalFee = styled.div `
  margin-top: 16px;
  letter-spacing: -0.02em;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  text-align: center;

  &.error {
    margin-top: 0;

    p {
      color: red;
    }
  }
`;
//# sourceMappingURL=form-builder.js.map