/* Desktop invitation to the company MAX channel. Frames are transparent WebP
   files, so there is no extra panel or overlay around the equipment. */
.sez-max-channel-popup {
  display: none;
}

@media (min-width: 900px) {
  .sez-max-channel-popup {
    position: fixed;
    z-index: 1450;
    bottom: clamp(12px, 1.6vw, 30px);
    left: clamp(12px, 1.6vw, 30px);
    display: block;
    width: clamp(345px, 30vw, 540px);
    aspect-ratio: 1;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-18px, 12px, 0);
    transition: opacity .28s var(--sez-ease), transform .28s var(--sez-ease), visibility 0s linear .28s;
  }

  .sez-max-channel-popup.is-visible {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
  }

  .sez-max-channel-popup__link,
  .sez-max-channel-popup__frames {
    display: block;
    width: 100%;
    height: 100%;
  }

  .sez-max-channel-popup__frames {
    position: relative;
    overflow: hidden;
  }

  .sez-max-channel-popup__strip {
    position: absolute;
    inset: 0 auto auto 0;
    display: block;
    width: 500%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    transform: translate3d(var(--sez-max-frame-offset, 0%), 0, 0);
    will-change: transform;
    transition: none;
  }

  .sez-max-channel-popup__link:focus-visible {
    outline: 2px solid var(--sez-accent);
    outline-offset: 4px;
  }

  .sez-max-channel-popup__close {
    position: absolute;
    z-index: 2;
    top: -22px;
    right: -22px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--sez-ink);
    border-radius: 0;
    background: var(--sez-white);
    color: var(--sez-ink);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s var(--sez-ease), background-color .2s var(--sez-ease), color .2s var(--sez-ease);
  }

  .sez-max-channel-popup__close:hover,
  .sez-max-channel-popup__close:focus-visible {
    border-color: var(--sez-accent);
    background: var(--sez-accent);
    color: var(--sez-white);
    outline: 0;
  }

  .sez-max-channel-popup.is-dismissed {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-18px, 12px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sez-max-channel-popup,
  .sez-max-channel-popup__strip {
    transition-duration: .01ms !important;
  }
}
