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

.SavedSignatures {
  width: 100%;
  height: 276px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  gap: 16px;
  flex-direction: column;

  @include small-browser-height {
    height: 192px;
  }

  @include tiny-browser-height {
    height: 162px;
  }

  .signature-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 25%;
    width: 100%;

    .inputContainer {
      width: 100%;
      display: grid;
      gap: 8px;
      align-items: center;
      grid-template-columns: 20px 1fr;

      input {
        width: 16px;
        height: 16px;
      }

      input[type='radio']:checked {
        accent-color: var(--blue-5);
      }

      .contentContainer {
        padding-bottom: 4px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--gray-5);
        display: grid;
        align-items: center;
        grid-template-columns: 1fr 1fr 1fr;

        .icon-button {
          justify-self: end;
          @include button-reset;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 34px;
          border-radius: 4px;
          cursor: pointer;

          &:hover {
            background: var(--tools-overlay-button-hover);
          }
        }

        .radioButton {
          border-radius: 100px;
          border: 1px solid var(--blue-5);
          width: 16px;
          height: 16px;
          border-spacing: 2px;

          &.selected {
            background-color: var(--blue-5);
          }
        }

        .imgContainer {
          width: 162px;
          height: 26px;

          img {
            max-width: 100%;
            max-height: 100%;
          }
        }
      }
    }

    .labelContainer {
      display: grid;
      grid-template-columns: 1fr 2fr;
      padding-inline-start: 28px;
      color: var(--gray-7);
    }

    &.no-initials {
      .contentContainer {
        grid-template-columns: 1fr 2fr;
      }
    }
  }

  .emptyListContainer {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  &.empty {
    grid-template-rows: 1fr;
  }
}
