@import "../../scss/variables";
@import "../../scss/mixins";

:global(.pinned-sponsored) {
  --container-height: auto;
  z-index: 0;
  // transition: padding-right var(--transition-standard-out);

  &:before {
    content: none !important;
  }

  // :global(body.is-right-column-shown) & {
  //   padding-right: var(--right-column-width);
  //   // transition: padding-right var(--transition-standard-in);
  // }
}

.container {
  --border-radius: 0.5rem;
  margin: 0.25rem 1rem 0.5rem;
  display: flex;
  padding-left: 0.375rem;
  width: 100%;
  background: none;

  &:before,
  &:after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--light-filled-primary-color);
    border-radius: inherit;
  }

  &:before {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  &:after {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    left: unset;
    right: 0;

    @include sidebar-transform-global(0, true);
  }
}

.content {
  display: flex;
  flex-direction: column;
  padding: 0.1875rem 0;
  font-size: var(--font-size-14);
  line-height: var(--line-height-14);
  position: relative;
  z-index: 1;
}

.title {
  font-weight: var(--font-weight-bold);
}

.text {
  white-space: pre-wrap;

  :global(body.is-right-column-shown) & {
    padding-right: var(--right-column-width);
    // transition: padding-right var(--transition-standard-in);
  }
}

.ad {
  color: var(--primary-color);
}

.photoWrap {
  margin-top: 0.375rem;
  margin-right: 0.375rem;
  position: relative;
}

.photo,
.photo :global(.media-photo) {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.125rem;
}

.actions {
  padding: 0.3125rem 0.25rem 0 0.5rem;
  margin-left: auto;
  position: relative;
  z-index: 1;

  @include sidebar-transform-global(0, true);

  & :global(.btn-icon) {
    color: var(--primary-color);
    padding: 0.25rem;

    @include hover-global() {
      background-color: rgba(var(--primary-color-rgb), 0.1);
    }
  }
}
