.rf-banner {
  --rf-red: #c4121a;
  --rf-gold: #f5c542;
  --rf-ink: #f6efe4;
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 99950;
  width: min(300px, calc(100vw - 32px));
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.rf-banner *,
.rf-banner *::before,
.rf-banner *::after {
  box-sizing: border-box;
}

.rf-banner__desktop {
  position: relative;
}

.rf-banner__link {
  display: block;
  position: relative;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  outline: 1px solid rgba(245, 197, 66, 0.35);
}

.rf-banner__link img {
  display: block;
  width: 100%;
  height: auto;
}

.rf-banner__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rf-banner__dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.rf-banner__dismiss:hover,
.rf-banner__dismiss:focus-visible {
  background: #000;
}

.rf-banner a:focus-visible,
.rf-banner button:focus-visible {
  outline: 2px solid var(--rf-gold);
  outline-offset: 3px;
}

.rf-banner__mobile {
  display: none;
}

@media (max-width: 781px) {
  .rf-banner {
    top: auto;
    right: auto;
    left: 12px;
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
    width: auto;
    max-width: calc(100vw - 24px);
  }

  .rf-banner__desktop {
    display: none;
  }

  .rf-banner__mobile {
    display: flex;
    align-items: flex-start;
    gap: 6px;
  }

  .rf-banner__mobile .rf-banner__link {
    width: min(220px, calc(100vw - 72px));
  }

  .rf-banner__mobile img {
    width: 100%;
    height: auto;
  }

  .rf-banner__dismiss {
    position: static;
    flex: 0 0 auto;
  }
}
