.funkwhale.popover-container {
  width: max-content;

  &.split-button {
     display: inline-flex;
     gap: 0;
   }
}

.funkwhale.popover-outer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;

  &:not(.is-mobile) {
    pointer-events: none;
  }
}

.funkwhale {
  &.popover {
    border: 1px solid var(--fw-border-color);
    background-color: color-mix(in oklab, var(--background-color) 98%, var(--color));

    hr {
      border-bottom: 1px solid var(--fw-border-color);
    }

    @include light-theme {
      --fw-border-color: var(--fw-gray-500);

    }

    @include dark-theme {
      --fw-border-color: var(--fw-gray-800);

      .popover-item:hover {
        background-color: var(--hover-background-color);
      }
    }

    pointer-events: auto;

    &.is-mobile {
      width: 90vw;
      margin: 0 5vw;
      left: 0 !important;
      box-shadow: 0 0 0 1000vh rgba(0,0,0,0.2),
                  0 0 100vh rgba(0,0,0,0.6);
    }

    position: absolute;
    padding: 16px;
    border-radius: var(--fw-border-radius);
    min-width: 246px;
    z-index: 999;

    font-size: 0.875rem;

    hr {
      padding-top: 12px;
      margin-bottom: 12px;
    }
  }
}
