/*
 * https://github.com/morethanwords/tweb
 * Copyright (C) 2019-2021 Eduard Kuzmenko
 * https://github.com/morethanwords/tweb/blob/master/LICENSE
 */
 
.popup-gift-premium {
  $parent: ".popup";

  #{$parent} {
    &-container {
      padding: 0;
      width: 26.25rem;
      max-width: 26.25rem;

      max-height: unquote('min(100%, 43.5rem)');
      border-radius: $border-radius-huge;
    }

    &-header {
      height: 3.5rem;
      margin: 0;
      padding: 0 .5rem;
      margin-bottom: -2rem;
    }
  }

  .scrollable-y {
    flex: 1 1 auto;
    padding: 0 1rem 1rem;
  }

  &-avatar {
    display: block;
    margin: 0 auto;
  }

  &-title,
  &-subtitle {
    text-align: center;
    display: block;
    padding: 0 2rem;
    @include text-overflow(false);
  }

  &-title {
    font-size: var(--font-size-20);
    font-weight: var(--font-weight-bold);
    margin: .75rem 0;
  }

  &-options {
    display: flex;
    flex-direction: column;
    margin: .5rem 0 1rem;
  }

  &-option {
    .row-title {
      text-transform: capitalize;
    }

    &:nth-child(1) {
      --primary-color: #C564F3;
    }

    &:nth-child(2) {
      --primary-color: #AC64F3;
    }

    &:nth-child(3) {
      --primary-color: #9377FF;
    }
  }

  &-discount {
    background-color: var(--primary-color);
    border-radius: 6px;
    color: #fff;
    margin-inline-end: .375rem;
    padding: 0 0.3125rem;
    height: 20px;
    display: inline-block;
    line-height: 20px;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-13);
  }

  &-confirm {
    --ripple-color: rgba(255, 255, 255, #{$hover-alpha});
    background: linear-gradient(88.39deg, #6C93FF -2.56%, #976FFF 51.27%, #DF69D1 107.39%) !important;
    font-weight: var(--font-weight-bold);
    color: #fff;
    text-transform: uppercase;
    height: 3rem;

    @include hover() {
      &:after {
        content: " ";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: #fff;
        opacity: $hover-alpha;
      }
    }
  }
}
