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

.popup-sponsored {
  .scrollable-y {
    position: relative;
    max-height: 25rem;
    margin: 0 -1.5rem;
    width: calc(100% + 3rem);
    padding: .5rem 1.5rem;
    user-select: text;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;

    &:not(.scrolled-top) {
      border-top: 1px solid var(--border-color);
    }

    &:not(.scrolled-bottom) {
      border-bottom: 1px solid var(--border-color);
    }
  }
}
