src/components/ModalWrapper/ModalWrapper.scss
@import '../../constants/styles';
@import '../../constants/modal';

.modal-container {
  @extend %modal-shared-container-style;
  @extend %modal-shared-container-style-mobile;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: var(--border-radius);
  box-shadow: 0px 0px 3px 0px var(--document-box-shadow);
  background: var(--component-background);

  .wrapper {
    align-self: stretch;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;

    .header-container {
      width: 100%;
      padding: 16px;
      border-bottom: 1px solid var(--divider);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 700;
      font-size: 16px;

      .left-header {
        h2 {
          font-weight: 700;
          font-size: 16px;
          margin: 0;
        }

        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 8px;
      }

      .back-button {
        height: 32px;
        width: 32px;
        justify-content: center;
      }

      .close-button {
        position: static;
        height: 32px;
        width: 32px;

        &:hover {
          background: var(--tools-button-hover);
          border-radius: 4px;
        }

        &.selected {
          background: var(--view-header-button-active);
          cursor: default;
        }
      }
    }

    input.text-input-modal {
      width: 100%;
      height: 30px;
      padding-inline-start: 8px;
      border: 1px solid var(--gray-5);
      border-radius: 4px;
      color: var(--text-color);
      padding-bottom: 6px;
      padding-inline-end: 42px;
      padding-top: 4px;
      margin-top: 16px;

      &:focus {
        outline: none;
        border: 1px solid var(--focus-border);

        &.correct {
          border: 1px solid var(--focus-border);
        }
      }

      &::placeholder {
        color: var(--placeholder-text);
      }

      &.wrong {
        border: 1px solid #cf0101;
      }
    }
  }
}
