/*
 * https://github.com/morethanwords/tweb
 * Copyright (C) 2019-2021 Eduard Kuzmenko
 * https://github.com/morethanwords/tweb/blob/master/LICENSE
 */

.popup-stickers {
  $parent: ".popup";
  user-select: none;

  h6 {
    padding: 0 2rem 0 1.5rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height);
  }

  .sticker-set-footer {
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--primary-color);

    .btn-primary {
      text-transform: uppercase;
      width: auto;
      padding: 0 1.0625rem;
      height: 44px;
      line-height: 44px;
    }
  }

  .sticker-set-footer {
    padding: 8px 0;
  }

  #{$parent} {
    &-container {
      max-width: 420px;
      max-height: 420px;
      width: 420px;
      padding: 0;
    }
  
    &-close {
      font-size: 1.5rem;
      margin-left: 1rem;
    }
  
    &-header {
      margin-bottom: 12px;
      flex: 0 0 auto;
      margin-top: 10px;
    }
  }

  .sticker-set {
    margin-bottom: 8px;

    &-stickers {    
      padding: 0 5px;
      display: grid;
      grid-template-columns: repeat(5, 1fr);

      @include respond-to(handhelds) {
        grid-template-columns: repeat(4, 1fr);
      }

      &.is-loading {
        min-height: 9rem;
        position: relative;
      }
    }

    &-sticker {
      width: var(--esg-sticker-size);
      height: var(--esg-sticker-size);
      margin-bottom: 2px;
      justify-self: center;
      cursor: pointer;
      position: relative;

      @include respond-to(handhelds) {
        margin-bottom: 8px;
      }

      &:hover {
        border-radius: 12px;
        background-color: var(--light-secondary-text-color);
      }
    }
  }
}
