@import "../../../../../public/css/mixins";
@import "../../../../../public/css/variables";
@import "~material-components-web/material-components-web";

:host {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

mat-dialog-content {
  min-height: 180px;
}

.buy-knok {
  min-height: inherit;

  &__header {
    position: relative;
    padding: 15px;
    // border-bottom: solid 1px #e4e8ea;
    box-shadow: 0 -1px 9px 0 rgba(0, 0, 0, 0.09);
    @include ng-theming() {
      background-color: theme-get('color-secondary');
      border-bottom: solid 1px theme-get('color-list-item-spacer');
    }
  }

  &__body {
    position: relative;
    padding: 25px;
    @include ng-theming() {
      background-color: theme-get('color-surface');
    }
  }

  &__avatar {
    margin-right: 10px;
  }

  &__avatar-image {
    max-width: 40px;
    max-height: 40px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: contain;

    &--icon {
      font-size: 40px;
      color: $knk-color-primary;
    }
  }

  &__name {
    font-family: Roboto;
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.4;
    letter-spacing: normal;
    // color: #323c47;
    @include ng-theming() {
      color: theme-get('color-ongoing-label');
    }
  }

  &__label {
    margin-bottom: 5px;
    opacity: 0.5;
    font-family: Roboto;
    font-size: 11px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    // color: #26283b;
    @include ng-theming() {
      color: theme-get('color-font');
    }
  }

  &__trading {
    font-family: Roboto;
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.25;
    letter-spacing: normal;
    color: $knk-color-primary;
  }

  &__exchange {
    font-family: Roboto;
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.25;
    letter-spacing: normal;
    color: #00baff;
  }

  &__btn-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    padding: 16px;
    z-index: 9;
    opacity: 0.5;
    font-size: 16px;
    // color: #26283b;
    @include ng-theming() {
      color: theme-get('color-font');
    }

    &:before,
    &:after {
      border-radius: 25%;
    }
  }

  &__btn-buy.mdc-button,
  &__btn-buy {
    width: 100%;
    min-height: 50px;
    height: auto;
    background-color: $knk-color-primary;
    font-family: Roboto;
    font-size: 18px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #ffffff;
    text-transform: none;
  }

  &__tgl-favorite.mdc-icon-toggle,
  &__tgl-favorite {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    padding: 20px;
    opacity: .5;
    // color: #323c47;
    @include ng-theming() {
      color: theme-get('color-ongoing-label');
    }

    &:before,
    &:after {
      border-radius: 25%;
    }
  }

  &__tgl-favorite--on.mdc-icon-toggle,
  &__tgl-favorite--on {
    color: $knk-color-primary;
  }

  &__token-price,
  &__currency-price {
    font-family: Roboto;
    font-size: 28px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
  }

  &__token-price {
    // color: #26283b;
    @include ng-theming() {
      color: theme-get('color-font');
    }
  }

  &__currency-price {
    // color: #bbbbbb;
    @include ng-theming($if: default) {
      color: #bbbbbb;
    }
    @include ng-theming($if: night) {
      color: theme-get('color-font');
    }
  }

  &__note {
    opacity: 0.5;
    font-family: Roboto;
    font-size: 11px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: 1px;
    color: #26283b;
    text-transform: uppercase;
  }

  &__time {
    opacity: 0.5;
    font-family: Roboto;
    font-size: 12px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    // color: #26283b;
    @include ng-theming() {
      color: theme-get('color-font');
    }
  }
}

.knk-button {
  @include knk-button;
}
