
    .bee-ad-popup {
      position: fixed;
      inset: 0;
      z-index: 99999;

      display: flex;
      align-items: center;
      justify-content: center;

      padding: 20px;
      background: rgba(0,0,0,.62);
      box-sizing: border-box;
    }

    .bee-ad-popup[hidden] {
      display: none;
    }

    .bee-ad-popup__dialog {
      position: relative;
      width: min(900px,92vw);
      max-height: calc(100dvh - 40px);
    }

    .bee-ad-popup__link,
    .bee-ad-popup__picture,
    .bee-ad-popup__image {
      display: block;
      width: 100%;
    }

    .bee-ad-popup__image {
      height: auto;
      max-height: calc(100dvh - 40px);
      object-fit: contain;
    }

    .bee-ad-popup__close {
      position: absolute;
      top: -14px;
      right: -14px;

      display: flex;
      align-items: center;
      justify-content: center;

      width: 40px;
      height: 40px;
      padding: 0;

      border: 2px solid #FFFFFF;
      border-radius: 50%;
      background: var(--bee-primary);
      color: var(--bee-primary-dark);

      font-size: 28px;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(0,0,0,.28);
    }

    .bee-ad-popup__close:focus-visible {
      outline: 2px solid #FFFFFF;
      outline-offset: 3px;
    }

    @media screen and (max-width: 767px) {
      .bee-ad-popup {
        padding: 16px;
      }

      .bee-ad-popup__dialog {
        width: min(92vw,560px);
      }

      .bee-ad-popup__close {
        top: -12px;
        right: -8px;
        width: 38px;
        height: 38px;
      }
    }
  