// component styles are encapsulated and only applied to their components
@import "../../../style/themes/themes";

@include themifyComponent() {
  .control-page {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    background-color: themed(stickerPickerControlBgColor);
    color: themed(stickerPickerControlFgColor);
  }

  .loading-badge {
    text-align: center;
    font-size: 20px;
  }

  .auth-error {
    text-align: center;
    position: relative;
    padding: 20px;
    color: themed(stickerPickerErrorColor);
  }

  .no-stickers {
    text-align: center;

    img {
      width: 96px;
      height: 96px;
      margin-top: 40px;
      margin-bottom: 15px;
    }

    .message {
      display: block;
    }
  }

  .sticker-picker {
    margin: 15px 15px 30px;
    padding-bottom: 40px;

    .sticker-pack {
      .header {
        margin-top: 15px;
        margin-left: 3px;

        .title {
          font-weight: bold;
          color: themed(stickerPickerTitleColor);
        }

        .license {
          font-size: 0.6em;
          font-weight: bold;
          color: themed(stickerPickerLicenseColor);
          margin-top: 3px;
          float: right;

          a {
            color: themed(stickerPickerLicenseColor);
          }
        }

        .author {
          font-size: 0.6em;
          font-weight: bold;
          color: themed(stickerPickerAuthorColor);
          display: block;

          a {
            color: themed(stickerPickerAuthorColor);
          }
        }
      }

      .stickers {
        display: flex;
        flex-wrap: wrap;

        .sticker {
          padding: 5px;
          margin: 2px;
          cursor: pointer;
          border-radius: 3px;
          background-color: themed(stickerPickerStickerBgColor);
          box-shadow: 0 2px 6px themed(stickerPickerShadowColor);
        }
      }
    }

    .sticker-pack-list {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: themed(stickerPickerControlBgColor);
      border-top: 1px solid themed(stickerPickerShadowColor);
      overflow-x: auto;
      white-space: nowrap;
      padding: 1px 15px;

      .sticker-pack-list-item {
        display: inline-block;
        cursor: pointer;
        padding: 0 3px;
      }

      .sticker-pack-list-config {
        display: inline-block;
        cursor: pointer;
        height: 40px;
        width: 40px;
        padding: 3px;
        text-align: center;
        vertical-align: middle;
      }
    }
  }
}
