/**
 * Copyright © 2016-2023 The Thingsboard Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import "../../../../../../../scss/constants";

:host {
  .tb-card-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    @media #{$mat-md-lg} {
      margin-bottom: 4px;
    }
  }

  .tb-contact-us {
    @media #{$mat-md-lg} {
      height: 24px;
      font-size: 12px;
    }
  }

  .tb-version-info-container {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    padding: 8px 16px 4px 16px;
    overflow: hidden;
    white-space: nowrap;
    @media #{$mat-lt-md} {
      padding: 16px;
    }
    @media #{$mat-md-lg} {
      padding: 4px;
    }
    &.up-to-date {
      box-shadow: none;
      border: none;
      background: #F3F6FA;
      white-space: initial;
      text-align: center;
    }
  }

  .tb-version-link {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: rgba(0, 0, 0, 0.76);
    position: relative;
    border-bottom: none;
    @media #{$mat-md-lg} {
      font-size: 11px;
      line-height: 16px;
    }
    &:hover, &:focus {
      border-bottom: none;
    }
    &::after {
      content: 'arrow_forward';
      display: inline-block;
      transform: rotate(315deg);
      font-family: 'Material Icons';
      font-weight: normal;
      font-style: normal;
      font-size: 18px;
      color: rgba(0, 0, 0, 0.12);
      vertical-align: bottom;
      margin-left: 6px;
    }
    &:hover::after {
      color: inherit;
    }
  }

  .tb-version {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.15px;
    color: rgba(0, 0, 0, 0.87);
    @media #{$mat-md-lg} {
      font-size: 12px;
      line-height: 14px;
    }
  }

  .tb-upgrade {
    @media #{$mat-md-lg} {
      height: 24px;
      font-size: 12px;
      padding: 0;
      overflow: hidden;
    }
  }

  .check-icon {
    color: #198038;
    font-weight: 600;
    @media #{$mat-md-lg} {
      font-size: 16px;
    }
  }

  .up-to-date-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: rgba(0, 0, 0, 0.76);
    @media #{$mat-md-lg} {
      font-size: 11px;
      line-height: 16px;
    }
  }
}
