.zm-popover {
    position: relative;
}

.zm-popover__content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateY(var(--spacing-xs));
    padding: var(--spacing-s);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-palette-main-10);

    &:after,
    &:before {
        bottom: 100%;
        left: calc(100% - var(--rhythm) * 1.75);
        border: solid transparent;
        content: '';
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }

    &:after {
        border-color: rgba(237, 235, 255, 0);
        border-bottom-color: #edebff;
        border-width: 10px;
        margin-left: -10px;
    }

    &:before {
        border-color: rgba(178, 170, 251, 0);
        border-bottom-color: #b2aafb;
        border-width: 11px;
        margin-left: -11px;
    }

    .zm-popover__plain-btn {
        all: unset;
        cursor: pointer;

        &:hover,
        &:focus {
            text-decoration: underline;
        }
    }
}
