@import "../../../shared/ui-components/styles/variables";

:host {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
  min-height: 160px;

  .label-row {
    padding-bottom: 24px;
  }

  .cred-row {
    border-bottom: 1px solid $blue-100;

    .label {
      display: inline-block;
      width: 155px;
      padding: 6px 0;
      color: #71758a;
    }

    .value {
      color: $blue-400;
    }
  }

  .credentials-and-code {
    height: 384px;
    overflow: hidden;
    transition: height 1s ease;

    &.small-popup {
      height: 0;
    }
  }

  .cred-visible {
    visibility: visible;
    opacity: 1;
    transition: height 1s ease, opacity 1s ease;

    &.invisible {
      visibility: hidden;
      opacity: 0;
    }
  }

  .instructions {
    margin-top: 24px;
    line-height: 1.3;
    color: $blue-500;
  }

  .code {
    position: relative;
    line-height: 1.5;
    padding: 16px 16px;
    margin-bottom: 12px;
    width: 530px;
    color: $blue-100;
    background-color: $blue-700;
    border-radius: 4px;

    &:hover {
      sm-copy-clipboard {
        visibility: visible;
      }
    }

    .content {
      white-space: pre;
      font-family: monospace;
      font-size: 12px;
    }

    .operation {
      color: #b087e5;
    }

    .string {
      color: #e6db74;
    }

    .variable {
      color: #9ed66b;
    }

    .comment {
      color: $blue-500;
    }

    sm-copy-clipboard {
      visibility: hidden;
      position: absolute;
      right: 10px;
      top: 10px;
    }
  }

  .footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 32px;
    margin-top: auto;

    button[disabled] {
      pointer-events: none;
    }
  }
}
