:root {
  --rp-banner-background: linear-gradient(
    279deg,
    hsl(32.71, 100%, 50%) 35.21%,
    hsl(6.91, 94.76%, 67%) 63.34%
  );
}

.rp-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 999;
  background: var(--rp-banner-background);
  height: 36px;
  box-sizing: border-box;
  padding: 0 3.5rem;

  &__link {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;

    &:hover {
      text-decoration: underline;
      opacity: 0.9;
    }

    &:active {
      opacity: 0.7;
    }
  }

  &__close {
    right: 1.5rem;
    font-size: 28px;
    padding: 5px;
    position: absolute;
    cursor: pointer;
    border-radius: 4px;
    box-sizing: border-box;
    color: inherit;

    &:hover {
      background-color: rgba(255, 255, 255, 0.3);
    }
  }
}
