import styled from "styled-components";

export const Container = styled.div`
  .rdw-editor-main {
    overflow-y: auto;
  }
  .rdw-editor-toolbar {
    display: flex;
    align-items: center;
    padding: 14px;
    gap: 32px;
    .rdw-emoji-wrapper {
      .rdw-option-wrapper {
        display: flex;
      }
    }
    .rdw-inline-wrapper,
    .rdw-text-align-wrapper {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .rdw-dropdown {
      overflow-y: auto;
      height: 192px;
    }
  }
  .rdw-colorpicker-wrapper,
  .rdw-emoji-wrapper,
  .rdw-fontsize-wrapper {
    position: relative;
  }
  .rdw-fontsize-wrapper {
    ul {
      list-style: none;
    }
  }
  .rdw-dropdown-wrapper {
    display: flex;
    align-items: center;
    border: 0;
    outline: 0;
    &:hover {
      border: 0;
      outline: 0;
      box-shadow: none;
    }
  }
  .rdw-inline-wrapper,
  .rdw-colorpicker-wrapper,
  .rdw-text-align-wrapper,
  .rdw-emoji-wrapper,
  .rdw-list-wrapper,
  .rdw-fontsize-wrapper {
    .rdw-option-wrapper {
      border: 0;
      outline: 0;
      &:hover {
        border: 0;
        outline: 0;
        box-shadow: none;
      }
    }
    .rdw-option-wrapper[aria-selected="true"] {
      svg {
        path {
          stroke: #00c2c2;
        }
      }
    }
  }

  .rdw-dropdown {
    position: absolute;
    z-index: 3;
    border-radius: 12px;
    border: 1px solid var(--Neutral-20, #dfe5e5);
    background: #fff;
    padding: 6px 0;
    width: fit-content;
    bottom: 40px;
    left: 0;
    width: 70px;
    .rdw-dropdown-optionwrapper {
      height: 180px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      border: 0;
      li {
        background: #fff;
        cursor: pointer;
        padding: 6px 16px;
      }
    }
  }

  .rdw-editor-wrapper {
    display: flex;
    width: 100%;
    flex-direction: column-reverse;
  }
  .rdw-editor-toolbar {
    width: fit-content;
    margin: 0 auto;
    border-radius: 12px;
    border-radius: 12px;
    border: 1px solid #dfe5e5;
    background: #fff;
  }
  .rdw-editor-main {
    border-radius: 25px;
    width: 100%;
    border: 1px solid #dfe5e5;
    background: #f5f7f7;
    height: 193px;
    padding: 20px;
    margin-bottom: 16px;
  }
`;

export const ColorsWrapper = styled.div``;

export const ColorAction = styled.div`
  display: flex;
  align-items: center;
  gap: 5px;
  .label {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-color: #000;
    border-radius: 50%;
    border: 1px solid #dfe5e5;
  }
`;

export const FontAction = styled(ColorAction)`
  span {
    color: #000;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
  }
`;
