// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only

@use '../mixins';
@use '../variables';

.module-SafetyNumberViewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding-top: 16px;
  padding-inline: 10px;

  a {
    text-decoration: none;
  }

  &__card-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  &__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    max-width: 248px;

    padding: 24px;
    border-radius: 12px;

    background-color: variables.$color-borage-blue;

    &__qr {
      width: 120px;
      height: 120px;
      padding: 10px;
      border-radius: 8px;
      background: variables.$color-white;
    }

    &__number {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      color: variables.$color-white;

      font-family: variables.$monospace;
      margin-block: 0 4px;

      @include mixins.keyboard-mode {
        &:focus {
          box-shadow: 0 0 0 3px variables.$color-ultramarine;
        }
      }
    }
  }

  &__help {
    @include mixins.font-subtitle;
    @include mixins.light-theme {
      color: variables.$color-gray-60;
    }

    @include mixins.dark-theme {
      color: variables.$color-gray-25;
    }

    & {
      margin-top: 4px;
    }
  }

  &__verification-status {
    margin-block: 30px 10px;
    margin-inline: 0;
    text-align: center;
  }

  &__button {
    margin-block: 0 16px;
  }

  &__buttons {
    text-align: end;
  }

  &__modal.module-Modal {
    max-width: 500px;
  }
}
