// About
//================================================== //

.modal.about {
  max-width: 560px;
  min-width: 300px;
  width: calc(100% - 40px);

  .modal-content {
    margin: 0;
    position: relative;
  }

  .modal-content .modal-body-wrapper {
    padding: 16px 16px 0;
  }

  .modal.about .modal-body {
    margin: 0 12px 16px;
  }

  .modal-body p:first-of-type {
    padding-top: 10px;
  }

  .close-container {
    position: absolute;
    right: 4px;
    text-align: right;
    top: 4px;
  }

  .modal-header {
    padding-top: 40px;
    text-align: center;

    h1 {
      @include font-size(28);

      color: $about-header-color;
      margin: 0 0 4px;
      padding: 0;
      text-align: center;
    }
  }

  .modal-body {
    border: 1px solid $about-text-border-color;
    border-radius: 2px;
    margin: 0 12px 30px;
    height: 199px;
    outline: medium none;
    overflow-y: scroll;

    @media only screen and (max-height: ($breakpoint-slim + 25)) {
      max-height: 175px;
    }

    @media only screen and (max-height: $breakpoint-slim) {
      max-height: 145px;
    }

    @media only screen and (max-height: ($breakpoint-slim - 50)) {
      max-height: 115px;
    }

    @media only screen and (max-height: ($breakpoint-phone - 20)) {
      max-height: 100px;
    }

    @media only screen and (max-height: ($breakpoint-phone - 55)) {
      max-height: 53px;
    }

    &:hover {
      border-color: $about-text-hover-border-color;
    }

    &:focus,
    &.focusbody {
      @include focus-state();
    }
  }

  .modal-body-wrapper {
    margin-bottom: 16px;
    overflow: hidden;
  }

  .additional-content {
    @include antialiased();

    color: $about-text-color;
    font-size: $ids-size-font-base;
    line-height: normal;
  }

  .about-logo {
    height: 63px;
    margin-bottom: 6px;
    width: 112px;
  }

  p {
    color: $about-text-color;
    margin-top: 0;
    padding: 10px;

    &:focus {
      outline: none;
    }
  }
}

html[dir='rtl'] {
  .modal.about {
    .close-container {
      left: 8px;
      right: auto;
    }
  }
}

#copy-to-clipboard {
  top: 365px;
  right: 0;
  position: absolute;
}

@-moz-document url-prefix() {
  .modal.about #copy-to-clipboard {
    position: absolute;
    top: 368px;
    right: 20px;
  }
}
